posix_spawn-internal: Make better use of 'const'.
[gnulib.git] / ChangeLog
blobf909f61222256abd2caece97b2e4146bb8382221
1 2020-12-14  Bruno Haible  <bruno@clisp.org>
3         posix_spawn-internal: Make better use of 'const'.
4         * lib/spawn_int.h (__spawni): Does not need write access to the elements
5         of argv and envp.
6         * lib/spawni.c (__spawni, script_execute): Likewise.
7         * lib/spawn.c (posix_spawn): Update caller.
8         * lib/spawnp.c (posix_spawnp): Likewise.
10 2020-12-14  Bruno Haible  <bruno@clisp.org>
12         spawn: Make it compile on native Windows.
13         * modules/spawn (Depends-on): Add signal-h.
15 2020-12-14  Bruno Haible  <bruno@clisp.org>
17         windows-spawn: Avoid shadowing a variable.
18         * lib/windows-spawn.c (spawnpvech): Rename local variable 'flags'.
20 2020-12-13  Paul Eggert  <eggert@cs.ucla.edu>
22         string: port memchr macro to AIX 7.2 XLC
23         Its <string.h> defines a memchr macro to help inlining.
24         * lib/string.in.h (memchr): #undef before #defining.
26         canonicalize: fix AIX test failures
27         Problem reported by Bruno Haible in:
28         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00109.html
29         * lib/canonicalize.c (canonicalize_filename_mode):
30         When testing a file name ending in '/', use stat rather than
31         readlink, so that it does the right thing on AIX.
32         * modules/canonicalize (Depends-on): Add readlink, to pull in the
33         recent changes in the Gnulib readlink module.
35         Assume readlink/readlinkat ERANGE fix
36         * lib/areadlink-with-size.c (areadlink_with_size):
37         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
38         * lib/careadlinkat.c (readlink_stk):
39         Do not worry about readlink or readlinkat failing with errno == ERANGE,
40         since the Gnulib readlink and readlinkat modules now fix that.
42         getcwd: port to AIX
43         * lib/getcwd.c [!_LIBC]: Undef stat64 before #defining it,
44         in case our sys/stat.h #defined a function macro with the same name.
46         readlink, readlinkat: add ERANGE portability
47         Fix some portability issues with Gnulib's readlink and readlinkat,
48         notably mostly working around the ERANGE problem in AIX and HP-UX.
49         * doc/posix-functions/readlink.texi:
50         * doc/posix-functions/readlinkat.texi:
51         ERANGE problem is mostly fixed now.  Mention AIX problem with
52         trailing / and EINVAL.  Lessen differences between these two files.
53         * lib/readlink.c (rpl_readlink):
54         * lib/readlinkat.c (rpl_readlinkat):
55         If stat ("FILE/", ...) reports EOVERFLOW, treat FILE/ as an
56         existing directory.  Mostly work around READLINK_TRUNCATE BUG.
57         Lessen spurious differences between the readlink and readlinkat code.
58         * lib/readlinkat.c (rpl_readlinkat):
59         Fix bug where stat was used where fstatat was intended.
60         * m4/readlink.m4 (gl_FUNC_READLINK):
61         Rename gl_cv_func_readlink_works to gl_cv_func_readlink_trailing_slash
62         to identify readlink problems more precisely.  All uses changed.
63         Guess no on AIX or HP-UX for this variable.
64         Add check for whether readlink truncates results,
65         and define new macro READLINK_TRUCATE_BUG accordingly.
66         * m4/readlinkat.m4 (gl_FUNC_READLINKAT):
67         Also check gl_cv_func_readlink_trailing_slash when deciding
68         whether to replace readlinkat.
69         * modules/readlinkat (Depends-on): Most dependencies are also
70         needed if replacing readlinkat.  fstatat is different, as it
71         is needed only if replacing an existing readlinkat.
73 2020-12-13  Bruno Haible  <bruno@clisp.org>
75         spawn-pipe: Fix hanging processes on Windows (regression 2020-11-30).
76         * lib/spawn-pipe.c (create_pipe): After spawning the subprocess, close
77         the stdin_handle and/or stdout_handle.
79 2020-12-12  Bruno Haible  <bruno@clisp.org>
81         Fix gnulib-tool error when some modules occur in tests/.
82         * doc/gnulib.texi (Specification): Update statistics.
83         (Autoconf macros): Don't suggest to use AC_LIBOBJ in a .m4 file.
84         (Using AC_LIBOBJ): New section.
85         * check-AC_LIBOBJ: New file.
86         * modules/fnmatch-gnu (Files): Add lib/fnmatch.c.
87         * modules/fopen-gnu (Files): Add lib/fopen.c.
88         * modules/memmem (Files): Add lib/memmem.c.
89         * modules/renameat (Files): Add lib/at-func2.c.
90         * modules/strcasestr (Files): Add lib/strcasestr.c.
91         * modules/strstr (Files): Add lib/strstr.c.
93 2020-12-11  Bruno Haible  <bruno@clisp.org>
95         sh-quote, execute, spawn-pipe, etc.: Make better use of 'const'.
96         * lib/sh-quote.h (shell_quote_argv): Does not need write access to the
97         elements of argv.
98         * lib/sh-quote.c (shell_quote_argv): Likewise.
99         * lib/windows-spawn.h (prepare_spawn): Add 'const' the argument type and
100         the return type.
101         * lib/windows-spawn.c (prepare_spawn): Likewise.
102         * lib/os2-spawn.h (prepare_spawn): Likewise.
103         * lib/os2-spawn.c (prepare_spawn): Likewise.
104         * lib/execute.h (execute): Does not need write access to the elements of
105         prog_argv.
106         * lib/execute.c (execute): Likewise.
107         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
108         Likewise.
109         * lib/spawn-pipe.c (create_pipe, create_pipe_bidi, create_pipe_in,
110         create_pipe_out): Likewise.
111         * lib/pipe-filter.h (pipe_filter_ii_execute, pipe_filter_gi_create):
112         Likewise.
113         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Likewise.
114         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Likewise.
115         * lib/javaexec.h (execute_fn): Does not need write access to the
116         elements of prog_argv.
117         * lib/javaexec.c (execute_java_class): Update variable types and remove
118         casts to 'char *'.
119         * lib/csharpexec.h (execute_fn): Does not need write access to the
120         elements of prog_argv.
121         * lib/csharpexec.c (execute_csharp_using_mono,
122         execute_csharp_using_sscli): Update variable types and remove casts to
123         'char *'.
124         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
125         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
126         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
127         is_jikes_present): Update variable types and remove casts to 'char *'.
128         * lib/javaversion.c (execute_and_read_line): Does not need write access
129         to the elements of prog_argv.
130         * lib/csharpcomp.c (compile_csharp_using_mono,
131         compile_csharp_using_sscli): Update variable types and remove casts to
132         'char *'.
133         * tests/test-sh-quote.c (main): Update variable types and remove casts
134         to 'char *'.
135         * tests/test-execute-main.c (main): Update variable types and remove
136         casts to 'char *'.
137         * tests/test-spawn-pipe-main.c (test_pipe): Update variable types and
138         remove casts to 'char *'.
139         * NEWS: Mention the changes.
141 2020-12-11  Bruno Haible  <bruno@clisp.org>
143         execute-tests: Fix compilation error with MSVC.
144         * tests/test-execute-child.c (is_device): With _fstat, use
145         'struct _stat', not 'struct stat'.
147 2020-12-11  Paul Eggert  <eggert@cs.ucla.edu>
149         vararrays: just use 2.70
150         * m4/vararrays.m4 (AC_C_VARARRAYS): Do not override Autoconf 2.70
151         and later, since Autoconf 2.70 matches Gnulib now.
153         sys_types: just use 2.70
154         * m4/sys_types_h.m4 (AC_HEADER_MAJOR):
155         Reindent to match Autoconf sources.
156         Use Autoconf 2.70 as a prerequisite, not 2.69c.
158         stdint: port to Autoconf 2.70
159         * m4/stdint.m4 (gl_STDINT_H): Check for inttypes.h and sys/types.h
160         instead of assuming that AC_INCLUDES_DEFAULT does it.
161         The old code relied on AC_INCLUDES_DEFAULT being called
162         and setting ac_cv_header_inttypes_h and ac_cv_header_sys_types_h,
163         but this does not occur in Autoconf 2.70.
165         pid_t.m4: just use 2.70
166         * m4/pid_t.m4 (AC_TYPE_PID_T):
167         Use Autoconf 2.70 as a prerequisite, not 2.69c.
169         largefile: just use 2.70
170         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
171         Use Autoconf 2.70 as a prerequisite, not 2.69c.
173         AC_C_RESTRICT: update from Autoconf
174         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use Autoconf 2.70
175         as a prerequisite, not 2.69c, since 2.70 is now out.
176         (AC_C_RESTRICT): Define only for 2.70 or earlier.
177         Try __restrict__ before __restrict.
179         extensions: update from Autoconf
180         * m4/extensions.m4 (AC_CHECK_INCLUDES_DEFAULT):
181         Provide a default implementation for Autoconf 2.69 or earlier.
182         (AC_USE_SYSTEM_EXTENSIONS): Copy from Autoconf git.  Define only
183         if Autoconf 2.70 or earlier, since 2.70.1 or later should be OK.
185         alloca: update from Autoconf
186         * m4/alloca.m4 (gl_PREREQ_ALLOCA):
187         Trivial update to match Autoconf 2.70.
189 2020-12-11  Bruno Haible  <bruno@clisp.org>
191         memchr: Work around memory overrun bug on AIX 7.2.
192         * m4/memchr.m4 (gl_FUNC_MEMCHR): Test against AIX 7.2 bug.
193         * doc/posix-functions/memchr.texi: Mention the AIX bug.
195 2020-12-11  Bruno Haible  <bruno@clisp.org>
197         execute-tests: Fix compilation error on AIX in 32-bit mode.
198         * tests/test-execute-child.c: In order to get the original definition of
199         fstat, don't use '#undef fstat' and '#undef stat'. Instead, arrange to
200         include the system's <sys/stat.h> and use it before including other
201         header files.
203 2020-12-10  Bruno Haible  <bruno@clisp.org>
205         windows-spawn: Relicense under LGPLv2+.
206         * modules/windows-spawn (License): Change to LGPLv2+.
208 2020-12-10  Bruno Haible  <bruno@clisp.org>
210         execute, spawn-pipe: Fix memory leak on native Windows.
211         * lib/windows-spawn.h (prepare_spawn): Add a second parameter.
212         * lib/windows-spawn.c: Don't include xalloc.h.
213         (quoted_arg_length, quoted_arg_string): New functions, extracted from
214         prepare_spawn.
215         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
216         elements of *new_argv together.
217         * modules/windows-spawn (Depends-on): Remove xalloc. Add malloc-posix.
218         * lib/os2-spawn.h (prepare_spawn): Add a second parameter.
219         * lib/os2-spawn.c: Don't include xalloc.h.
220         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
221         elements of *new_argv together.
222         * lib/execute.c: Include xalloc.h.
223         (execute): Check return value of prepare_spawn. Free the memory
224         allocated by prepare_spawn.
225         * modules/execute (Depends-on): Add xalloc-die.
226         * lib/spawn-pipe.c: Include xalloc.h.
227         (create_pipe): Check return value of prepare_spawn. Free the memory
228         allocated by prepare_spawn.
229         * modules/spawn-pipe (Depends-on): Add xalloc-die.
231 2020-12-10  Bruno Haible  <bruno@clisp.org>
233         findprog-in: Relicense under LGPLv2+.
234         Paul Smith's approval is in
235         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00072.html>.
236         * modules/findprog-in (License): Change to LGPLv2+.
238 2020-12-10  Bruno Haible  <bruno@clisp.org>
240         findprog-in: Don't exit upon out-of-memory.
241         * lib/findprog.h (find_in_given_path): Document ENOMEM as possible error
242         code.
243         * lib/findprog-in.c: Don't include xalloc.h.
244         (find_in_given_path): Call concatenated_filename, not
245         xconcatenated_filename. Call strdup, not xstrdup. Upon out-of-memory,
246         return NULL with errno set.
247         * modules/findprog-in (Depends-on): Remove xconcat-filename, xalloc. Add
248         concat-filename, strdup-posix, malloc-posix.
250 2020-12-09  Bruno Haible  <bruno@clisp.org>
252         fmaf: Work around a bug on FreeBSD 12.2/arm.
253         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Add one more test.
254         * doc/posix-functions/fmaf.texi: Mention the FreeBSD bug.
256 2020-12-09  Bruno Haible  <bruno@clisp.org>
258         threadlib: Fix test-fstrcmp failure on FreeBSD 11.
259         * m4/threadlib.m4 (gl_THREADLIB_BODY): When weak symbols are not present
260         on FreeBSD, define PTHREAD_IN_USE_DETECTION_HARD.
261         * lib/glthread/threadlib.c: Include <errno.h>.
262         (glthread_in_use): For FreeBSD, provide an alternative implementation
263         that uses pthread_key_create.
265 2020-12-09  Bruno Haible  <bruno@clisp.org>
267         math C++ tests: Fix compilation error in with clang >= 7 on FreeBSD.
268         * lib/math.in.h (isnan): For clang >= 7 on FreeBSD, declare 'rpl_isnan',
269         not 'isnan'.
271 2020-12-08  Bruno Haible  <bruno@clisp.org>
273         std-gnu11: Make compatible with Autoconf 2.70.
274         * m4/std-gnu11.m4: Disable the entire file if Autoconf >= 2.70 is in
275         use.
277 2020-12-08  Bruno Haible  <bruno@clisp.org>
279         argp: Avoid undefined behaviour when invoking qsort().
280         This fixes a test-argp-2.sh test failure on macOS and FreeBSD.
281         Reported by Jeffrey Walton <noloader@gmail.com> in
282         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00085.html>.
283         * lib/argp-help.c (group_cmp): Remove third argument.
284         (hol_sibling_cluster_cmp, hol_cousin_cluster_cmp): New functions, based
285         upon hol_cluster_cmp.
286         (hol_cluster_cmp): Use hol_cousin_cluster_cmp.
287         (hol_entry_cmp): Rewritten to implement a total order.
289 2020-12-08  Bruno Haible  <bruno@clisp.org>
291         argp: Improve comments.
292         * lib/argp-help.c: Add sectioning comments. Write NULL to designate a
293         null pointer.
294         (struct hol_entry): Fix comment regarding sort order of group.
295         (hol_entry_short_iterate, hol_entry_long_iterate): Add comment.
296         (until_short, canon_doc_option, hol_entry_qcmp): Improve comment.
297         (hol_cluster_is_child, argp_hol): Move functions.
298         (HOL_ENTRY_PTRCMP): Remove unused macro.
300 2020-12-08  Bruno Haible  <bruno@clisp.org>
302         argp: Don't pass invalid arguments to isspace() and isalnum().
303         * lib/argp-help.c (canon_doc_option): Cast character to 'unsigned int'
304         before passing it to isspace() or isalnum().
306 2020-12-08  Bruno Haible  <bruno@clisp.org>
308         argp: Don't rely on undefined behaviour of _tolower().
309         Patch by Eric Blake
310         <https://lists.gnu.org/archive/html/bug-gnulib/2009-09/msg00287.html>.
311         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values that are
312         not upper-case.  Pass correct range to tolower.
314 2020-12-07  Bruno Haible  <bruno@clisp.org>
316         unicodeio: Fix wrong result on FreeBSD.
317         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
318         characters on all platforms.
320 2020-12-07  Bruno Haible  <bruno@clisp.org>
322         get-rusage-data tests: Avoid test failure on FreeBSD/x86_64.
323         * tests/test-get-rusage-data.c (main): Don't expect a strict increase on
324         FreeBSD systems.
326 2020-12-07  Bruno Haible  <bruno@clisp.org>
328         get-rusage-data: Fix link error on FreeBSD 12.2/arm64.
329         * modules/get-rusage-data (configure.ac): Test whether sbrk exists.
330         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit): Define
331         trivially of sbrk is not available.
332         * doc/glibc-functions/sbrk.texi: Mention that the function does not
333         exist in FreeBSD 12.2/arm64.
334         * doc/glibc-functions/brk.texi: Likewise.
336 2020-12-07  Bruno Haible  <bruno@clisp.org>
338         Correct interaction between gl_ANSI_CXX and AC_PROG_CXX.
339         Suggested by Zack Weinberg in
340         <https://savannah.gnu.org/support/?110294>.
341         * m4/ansi-c++.m4 (gl_ANSI_CXX): Mark AC_PROG_CXX as provided.
342         * modules/uchar-c++-tests: Revert the workaround from 2020-08-18.
344 2020-12-07  Bruno Haible  <bruno@clisp.org>
346         Tweak the Windows oldnames workaround.
347         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
348         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00073.html>.
349         * lib/unistd.in.h: On native Windows, include <io.h> and <direct.h>
350         always.
351         (getcwd): Use _GL_CXXALIAS_MDA_CAST.
352         * lib/stdlib.in.h (putenv): Likewise.
354 2020-12-06  Paul Eggert  <eggert@cs.ucla.edu>
356         doc: fix flat address space discussion
357         * doc/gnulib-readme.texi (Other portability assumptions):
358         Move the all-bits-zero assumption outside the flat address space
359         section, since the two issues are independent.
361         doc: document -static-libubsan more
362         * doc/gnulib-readme.texi (High Quality): Document pros and cons of
363         -static-libubsan a bit more.  Mostly cons.
365 2020-12-06  Bruno Haible  <bruno@clisp.org>
367         doc: Add more details regarding the undefined behaviour sanitizer.
368         * doc/gnulib-readme.texi (High Quality): Describe
369         -fsanitize-undefined-trap-on-error better.
371 2020-12-06  Bruno Haible  <bruno@clisp.org>
373         Do the Windows oldnames workaround through the C++ GNULIB_NAMESPACE.
374         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
375         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00029.html>.
376         * lib/c++defs.h (_GL_CXXALIAS_MDA_CAST): New macro.
377         * lib/fcntl.in.h (creat, open):  In C++ mode, when GNULIB_NAMESPACE is
378         defined: 1. Define a symbol in this namespace. 2. Don't redirect using
379         a preprocessor #define.
380         * lib/math.in.h (j0, j1, jn, y0, y1, yn): Likewise.
381         * lib/search.in.h (lfind, lsearch): Likewise.
382         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
383         Likewise.
384         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
385         * lib/string.in.h (memccpy, strdup): Likewise.
386         * lib/sys_stat.in.h (chmod, umask): Likewise.
387         * lib/time.in.h (tzset): Likewise.
388         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
389         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
390         read, rmdir, swab, unlink, write): Likewise.
391         * lib/utime.in.h (utime): Likewise.
392         * lib/wchar.in.h (wcsdup): Likewise.
393         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FCLOSEALL.
394         (gl_STDIO_H): Set HAVE_DECL_FCLOSEALL.
395         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FCLOSEALL.
396         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_ECVT,
397         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
398         (gl_STDLIB_H): Set HAVE_DECL_ECVT, HAVE_DECL_FCVT, HAVE_DECL_GCVT.
399         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_ECVT,
400         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
401         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_EXECVPE.
402         (gl_UNISTD_H): Set HAVE_DECL_EXECVPE.
403         * modules/unistd (Makefile.am): Substitute HAVE_DECL_EXECVPE.
404         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCSDUP.
405         (gl_WCHAR_H): Set HAVE_DECL_WCSDUP.
406         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCSDUP.
408 2020-12-06  Bruno Haible  <bruno@clisp.org>
410         doc: Mention some missing function declarations.
411         * doc/glibc-functions/execvpe.texi: Mention the missing declaration on
412         AIX.
413         * doc/glibc-functions/fcloseall.texi: Mention the missing declaration on
414         FreeBSD.
415         * doc/pastposix-functions/ecvt.texi: Mention the missing declaration on
416         Cygwin.
417         * doc/pastposix-functions/fcvt.texi: Likewise.
418         * doc/pastposix-functions/gcvt.texi: Likewise.
420 2020-12-06  Bruno Haible  <bruno@clisp.org>
422         doc: Tweak example.
423         * doc/intprops.texi (Checking Integer Overflow): Use 'printf', not
424         'print'.
426 2020-12-06  Bruno Haible  <bruno@clisp.org>
428         filenamecat-tests: Use idx_t for nonnegative ptrdiff_t variables.
429         * tests/test-filenamecat.c: Include idx.h.
430         (main): Mark prefixlen as nonnegative.
431         * modules/filenamecat-tests (Depends-on): Add idx.
433 2020-12-06  Bruno Haible  <bruno@clisp.org>
435         time_rz: Use idx_t for nonnegative ptrdiff_t variables.
436         * lib/time_rz.c: Include idx.h.
437         (save_abbr): Mark zone_size as nonnegative.
438         * modules/time_rz (Depends-on): Add idx.
440 2020-12-06  Bruno Haible  <bruno@clisp.org>
442         parse-datetime: Use idx_t for nonnegative ptrdiff_t variables.
443         * lib/parse-datetime.y: Include idx.h.
444         (textint): Mark digits as nonnegative.
445         (parser_control): Mark dates_seen, days_seen, local_zones_seen,
446         dsts_seen, times_seen, zones_seen as nonnegative.
447         (lookup_word): Mark wordlen as nonnegative.
448         (yylex): Mark count as nonnegative.
449         (parse_datetime2): Mark tzsize as nonnegative.
450         * modules/parse-datetime (Depends-on): Add idx.
452 2020-12-06  Bruno Haible  <bruno@clisp.org>
454         fnmatch: Use idx_t for nonnegative ptrdiff_t variables.
455         * lib/fnmatch.c: Include idx.h. In glibc, define idx_t directly.
456         * lib/fnmatch_loop.c (EXT): Mark slen, new_used, plensize as
457         nonnegative.
458         * modules/fnmatch (Depends-on): Add idx.
460 2020-12-06  Bruno Haible  <bruno@clisp.org>
462         c-stack: Use idx_t for nonnegative ptrdiff_t variables.
463         * lib/c-stack.c: Include idx.h.
464         (die): Mark buflen as nonnegative.
465         * modules/c-stack (Depends-on): Add idx.
467 2020-12-06  Bruno Haible  <bruno@clisp.org>
469         backupfile: Use idx_t for nonnegative ptrdiff_t variables.
470         * lib/backupfile.c: Include idx.h.
471         (numbered_backup): Mark base_offset as nonnegative.
472         (backupfile_internal): Likewise.
473         * modules/backup-rename (Depends-on): Add idx.
474         * modules/backupfile (Depends-on): Likewise.
476 2020-12-05  Paul Eggert  <eggert@cs.ucla.edu>
478         doc: fix curved quotes issue
479         * doc/gnulib.texi: Set txicodequoteundirected and
480         txicodequotebacktick so that ` and ' in examples do not generate
481         curved single quotes that do the wrong thing when cut and pasted.
483         doc: mention static and dynamic checking
484         * doc/gnulib-readme.texi (High Quality): Add a bit of advice
485         for static and dynamic checking.
487         intprops: Add INT_ADD_OK etc.
488         * doc/intprops.texi (Checking Integer Overflow): New section.
489         * lib/intprops.h: From a suggestion by Bruno Haible in:
490         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00051.html
491         (SAFE_INT_ADD, SAFE_INT_SUBTRACT, SAFE_INT_MULTIPLY): New macros.
493         doc: move exotic platfroms to Target Platforms
494         * doc/gnulib-intro.texi (Supported Platforms)
495         (Formerly Supported Platforms, Unsupported Platforms):
496         New subsections, split off from Target Platforms.
497         (Unsupported Platforms): Move the exotic-platform stuff here ...
498         * doc/gnulib-readme.texi (Exotic platforms): ... from this removed
499         section.
501         doc: mention intptr_t etc. and IBM i
502         * doc/gnulib-readme.texi (Other portability assumptions):
503         Mention intptr_t and uintptr_t, and that arithmetic on them
504         works in the usual way.
505         (Exotic platforms): New section, containing material from
506         the old 'Integer Portability' section.  Also mention IBM i.
507         * doc/intprops.texi (Wraparound Arithmetic):
508         Say that the macros work on unsigned integers too.
509         (Integer Portability): Remove.
511 2020-12-04  Bruno Haible  <bruno@clisp.org>
513         utime: Fix a test failure on macOS 10.13.
514         Reported by Martin Storsjö <martin@martin.st> in
515         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
516         * m4/utime.m4 (gl_FUNC_UTIME): Test whether utime handles trailing
517         slashes on files.
518         * lib/utime.c (utime): Add alternative implementation for Unix
519         platforms.
520         * modules/utime (Depends-on): Add stat.
521         * doc/posix-functions/utime.texi: Mention the macOS 10.13 bug.
522         * doc/posix-functions/lstat.texi: Mention that macOS 10.13 also has the
523         trailing-slash bug.
524         * doc/posix-functions/open.texi: Likewise.
525         * doc/posix-functions/stat.texi: Likewise.
526         * doc/posix-functions/symlink.texi: Likewise.
528 2020-12-04  Paul Eggert  <eggert@cs.ucla.edu>
530         intprops: update doc and mention Unisys
531         * doc/gnulib-readme.texi (Other portability assumptions):
532         Also mention ptrdiff_t when talking about widths and overflow.
533         * doc/intprops.texi (Integer Properties): Summarize new section.
534         (Arithmetic Type Properties): Document that EXPR_SIGNED no longer
535         evaluates its argument.
536         (Integer Bounds): Fix typo.
537         (Wraparound Arithmetic): Remove obsolete comment about efficiency.
538         Document that the _WRAPV macros now support pointers to unsigned
539         integers.
540         (Integer Range Overflow): Update SEI CERT citation.
541         (Integer Portability): New subsection, which mentions
542         the oddball Unisys platforms as non-Gnulib targets.
544 2020-12-03  Bruno Haible  <bruno@clisp.org>
546         idx: Clarify that idx_t always behaves like a signed type.
547         Suggested by Paul Eggert in
548         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00034.html>.
549         * lib/idx.h: Clarify that idx_t always behaves like a signed type.
550         Don't test UNSIGNED_IDX_T.
552 2020-12-03  Bruno Haible  <bruno@clisp.org>
554         idx: New module.
555         * lib/idx.h: New file.
556         * modules/idx: New file.
557         * lib/canonicalize-lgpl.c: Include idx.h. Use idx_t instead of
558         ptrdiff_t.
559         * lib/canonicalize.c: Likewise.
560         * modules/canonicalize-lgpl (Depends-on): Add idx.
561         * modules/canonicalize (Depends-on): Likewise.
563 2020-12-03  Bruno Haible  <bruno@clisp.org>
565         fprintf-posix-tests: Avoid a test failure on macOS 10.13.
566         Reported by Martin Storsjö <martin@martin.st> in
567         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
568         * tests/test-fprintf-posix3.c: Skip the test on macOS.
569         (main): Return a different exit code at each point. Allow 100 KB extra
570         memory consumption.
571         * tests/test-fprintf-posix3.sh: Update. Remove the "get_rusage_as()
572         doesn't work" diagnostic.
574 2020-12-02  Paul Eggert  <eggert@cs.ucla.edu>
576         canonicalize: refactor can_mode flag
577         * lib/canonicalize.c (MULTIPLE_BITS_SET): Remove, replacing with ...
578         (multiple_bits_set): ... this new static function.  Uses changed.
579         (canonicalize_filename_mode): Refactor for clarity to avoid
580         modifying the CAN_MODE argument.
582         canonicalize: prefer signed integer types
583         * lib/canonicalize.c: Include stddef.h, for ptrdiff_t.
584         (seen_triple, canonicalize_filename_mode): Prefer signed to
585         unsigned types where either will do, as they avoid some glitches
586         in comparisons and can trap on overflow when debugging.
588         canonicalize: fix most of another EOVERFLOW issue
589         * lib/canonicalize.c (canonicalize_filename_mode):
590         Do not call stat if fewer than 20 symlinks have been traversed.
591         This avoids EOVERFLOW failure in the common case where there
592         are not that many symlinks, while continuing to catch loops
593         (or fail due to EOVERFLOW) in the unusual case when there
594         are many symlinks to traverse.
596         canonicalize: do not assume symlinks have st_ino
597         * lib/canonicalize.c (canonicalize_filename_mode):
598         When checking for loops, use st_dev and st_ino from the parent
599         directory not from the symlink, as pre-2017 POSIX says these
600         members are not reliable for symlinks.  Couple this with START
601         (the remaining file name to be resolved), not NAME (the whole file
602         name with START as its suffix).
603         * modules/canonicalize (Depends-on): Depend on stat, not lstat.
605         canonicalize: fix EOVERFLOW bug
606         * lib/canonicalize.c (canonicalize_filename_mode):
607         When testing whether a directory entry is a symbolic link, or a
608         directory or other, do not use lstat or stat or
609         areadlink_with_size.  Just use areadlink, as this suffices and it
610         avoids the EOVERFLOW problem that lstat and stat have.
611         * modules/canonicalize (Depends-on): Depend on areadlink instead
612         of areadlink-with-size and stat.
614         canonicalize-lgpl: fix EOVERFLOW bug
615         * lib/canonicalize-lgpl.c: Do not include <sys/stat.h>.
616         (__realpath): Do not use lstat.  Just use readlink, as this
617         suffices and it avoids the EOVERFLOW problem that lstat has.
618         * modules/canonicalize-lgpl (Depends-on): Remove lstat, sys_stat.
620 2020-12-02  Bruno Haible  <bruno@clisp.org>
622         strsignal-tests: Fix test failure on macOS 10.13.
623         Reported by Martin Storsjö <martin@martin.st> in
624         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
625         * tests/test-strsignal.c (ASSERT_DESCRIPTION): Allow the actual result
626         to be longer than the expected result.
628 2020-12-02  Bruno Haible  <bruno@clisp.org>
630         Fix compilation errors in test-math-c++.cc on FreeBSD 12.2/arm64.
631         * lib/math.in.h (_GL_INCLUDING_MATH_H): New macro, to work around
632         recursive self-include problem on FreeBSD 12.2 in C++ mode.
634 2020-12-02  Bruno Haible  <bruno@clisp.org>
636         spawn-pipe: Allow caller to specify directory for the subprocess.
637         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
638         Add directory argument.
639         * lib/spawn-pipe.c: Include canonicalize.h, filename.h, findprog.h.
640         (create_pipe): Add directory argument. If specified, resolve the program
641         file name and make it absolute, first. Pass the directory to spawnpvech
642         and posix_spawn_file_actions_addchdir.
643         (create_pipe_bidi, create_pipe_in, create_pipe_out): Add directory
644         argument.
645         * modules/spawn-pipe (Depends-on): Add canonicalize, filename,
646         findprog-in, posix_spawn, posix_spawn_file_actions_addchdir.
647         * tests/test-spawn-pipe-main.c (test_pipe): Update.
648         * NEWS: Mention the change.
649         * lib/csharpcomp.c (compile_csharp_using_mono,
650         compile_csharp_using_sscli): Update.
651         * lib/javacomp.c (is_envjavac_gcj, is_envjavac_gcj43, is_gcj_present,
652         is_gcj_43): Update.
653         * lib/javaversion.c (execute_and_read_line): Update.
654         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Update.
655         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Update.
657 2020-12-02  Bruno Haible  <bruno@clisp.org>
659         execute: Allow caller to specify directory for the subprocess.
660         * lib/execute.h (execute): Add directory argument.
661         * lib/execute.c: Include canonicalize.h, filename.h, findprog.h.
662         (execute): Add directory argument. If specified, resolve the program
663         file name and make it absolute, first. Pass the directory to spawnpvech
664         and posix_spawn_file_actions_addchdir.
665         * modules/execute (Depends-on): Add canonicalize, filename, findprog-in,
666         posix_spawn, posix_spawn_file_actions_addchdir.
667         * tests/test-execute-main.c: Add test for passing a directory.
668         * tests/test-execute-child.c: Likewise.
669         * tests/test-execute.sh: Update.
670         * modules/execute-tests (Depends-on): Add mkdir.
671         * NEWS: Mention the change.
672         * lib/csharpcomp.c (compile_csharp_using_sscli): Update.
673         * lib/csharpexec.c (execute_csharp_using_mono,
674         execute_csharp_using_sscli): Update.
675         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
676         compile_using_javac, compile_using_jikes, is_javac_present,
677         is_jikes_present): Update.
678         * lib/javaexec.c (execute_java_class): Update.
680 2020-12-01  Bruno Haible  <bruno@clisp.org>
682         vma-iter: Add support for macOS11/arm64.
683         Patch suggested by Hill Ma <maahiuzeon@gmail.com> in
684         <https://gitlab.com/gnu-clisp/clisp/-/issues/27>
685         and by Martin Storsjö <martin@martin.st> in
686         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
687         * lib/vma-iter.c (vma_iterate): On arm64, use 64-bit type definitions.
689 2020-12-01  Bruno Haible  <bruno@clisp.org>
691         spawn-pipe: Fix handling of OS/2 kLIBC.
692         Reported by KO Myung-Hun <komh78@gmail.com> in
693         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00005.html>.
694         * modules/spawn-pipe (configure.ac): Use the common idiom for
695         recognizing the OS/2 operating system.
697 2020-11-30  Bruno Haible  <bruno@clisp.org>
699         execute: Fix uninitialized use of errno.
700         * lib/execute.c (execute): Preserve errno across several system calls.
702 2020-11-30  Bruno Haible  <bruno@clisp.org>
704         access tests: Fix test failure on native Windows.
705         * tests/test-access.c (main): Change permissions of f2 file before
706         attempting to remove it.
708 2020-11-30  Paul Eggert  <eggert@cs.ucla.edu>
710         faccessat: link with $(LIB_EACCESS)
711         * modules/faccessat (Link:): Add $(LIB_EACCESS), since this
712         module depends on euidaccess.
714 2020-11-30  Bruno Haible  <bruno@clisp.org>
716         execute, spawn-pipe: Make multithread-safe on native Windows.
717         * lib/windows-spawn.h: Include <stdint.h>, <windows.h>.
718         (dup_safer_noinherit, undup_safer_noinherit): Remove declarations.
719         (spawnpvech): New declaration.
720         * lib/windows-spawn.c: Include <stdio.h>, <process.h>, findprog.h.
721         Don't include <unistd.h>, cloexec.h, error.h, gettext.h.
722         (_): Remove macro.
723         (dup_noinherit, fd_safer_noinherit, dup_safer_noinherit,
724         undup_safer_noinherit): Remove functions.
725         (spawnpvech): New function.
726         * modules/windows-spawn (Depends-on): Add findprog-in, stdint. Remove
727         cloexec, dup2, error, gettext-h.
728         * lib/execute.c: Include msvc-nothrow.h.
729         (execute) [WIN32]: Use _get_osfhandle, spawnpvech instead of _spawnvpe.
730         * lib/spawn-pipe.c: Include msvc-nothrow.h.
731         (create_pipe) [WIN32]: Use _get_osfhandle, DuplicateHandle, spawnpvech
732         instead of _spawnvpe.
733         * modules/execute (Depends-on): Add msvc-nothrow.
734         * modules/spawn-pipe (Depends-on): Likewise.
736 2020-11-30  Bruno Haible  <bruno@clisp.org>
738         execute, spawn-pipe: Improve documentation.
739         * lib/execute.h: Describe progname, prog_path, prog_argv.
740         * lib/spawn-pipe.h: Likewise.
742 2020-11-30  Bruno Haible  <bruno@clisp.org>
744         execute tests: Add more tests.
745         * tests/test-execute-main.c: Add tests for reading, writing, isatty on
746         inherited file descriptors >= 3.
747         * tests/test-execute-child.c: Likewise.
748         * tests/test-execute.sh: Update.
750 2020-11-30  Bruno Haible  <bruno@clisp.org>
752         havelib: Fix for non-ELF platforms (regression 2019-11-17).
753         Reported by comex <comexk@gmail.com> in
754         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00188.html>.
755         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On non-ELF platforms,
756         don't expect an ELF header.
758 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
760         bitset: use integer_length in table implementation
761         * lib/bitset/table.c (tbitset_list_reverse): Use
762         BITSET_FOR_EACH_BIT_REVERSE.
764 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
766         bitset: use integer_length in list implementation
767         * lib/bitset/list.c (lbitset_list_reverse): Use
768         BITSET_FOR_EACH_BIT_REVERSE.
770 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
772         bitset: use integer_length in vector implementation
773         * lib/bitset/array.c (vbitset_list_reverse): Use
774         BITSET_FOR_EACH_BIT_REVERSE.
776 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
778         bitset: use integer_length in array implementation
779         * modules/bitset (Depends-on): Add integer_length_l.
780         * lib/bitset/base.h (bitset_fls_, BITSET_FOR_EACH_BIT_REVERSE): New.
781         * lib/bitset/array.c (abitset_list_reverse): Use it.
783 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
785         bitset: style: use consistent names
786         * bitset/list.c (lbitset_list_reverse): Rename 'bcount' as 'bitcnt',
787         and 'boffset' as 'bitoff', for consistency with the other
788         implementations.
789         * bitset/table.c (tbitset_list_reverse): Likewise.
791 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
793         bitset: style: sort header
794         * lib/bitset/base.h (bitset_ffs): Rename as...
795         (bitset_ffs_): this.
796         (bitset_ffs_, BITSET_FOR_EACH_BIT): Move to better places.
798 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
800         bitset: tests: check BITSET_FOR_EACH_REVERSE
801         * tests/test-bitset.c (compare, check_zero, check_one_bit, check_ones):
802         Check BITSET_FOR_EACH_REVERSE.
804 2020-11-29  Bruno Haible  <bruno@clisp.org>
806         spawn-pipe tests: Fix test failure with MSVC.
807         * tests/test-spawn-pipe-child.c: Include <stdint.h>.
808         (gl_msvc_invalid_parameter_handler): New function.
809         (main): Set a global invalid-parameter handler.
810         * modules/spawn-pipe-tests (Depends-on): Add msvc-inval, stdint.
812 2020-11-29  Bruno Haible  <bruno@clisp.org>
814         execute: Add tests.
815         * tests/test-execute.sh: New file.
816         * tests/test-execute-main.c: New file.
817         * tests/test-execute-child.c: New file.
818         * modules/execute-tests: New file.
820 2020-11-29  Bruno Haible  <bruno@clisp.org>
822         fcntl: Work around NetBSD bug with F_DUPFD_CLOEXEC.
823         * m4/fcntl.m4 (gl_FUNC_FCNTL): Test whether F_DUPFD_CLOEXEC actually
824         works.
825         * lib/fcntl.c (rpl_fcntl_DUPFD_CLOEXEC): On NetBSD, use the same
826         fallback implementation as on Haiku.
827         * tests/test-fcntl.c (main): Add a test whether F_DUPFD_CLOEXEC is
828         effective.
829         * doc/posix-functions/fcntl.texi: Mention the NetBSD bug.
831 2020-11-29  Bruno Haible  <bruno@clisp.org>
833         spawn-pipe: Fix build on OS/2 kLIBC (regression 2020-11-28).
834         * lib/os2-spawn.h: New file, based on lib/windows-spawn.h.
835         * lib/os2-spawn.c: New file, based on lib/windows-spawn.c.
836         * lib/spawn-pipe.c: On OS/2 kLIBC, include "os2-spawn.h".
837         * lib/windows-spawn.c: Remove modifications for kLIBC.
838         * modules/spawn-pipe (Files): Add the new files.
839         (configure.ac): Arrange to compile os2-spawn.c on OS/2.
841 2020-11-28  Bruno Haible  <bruno@clisp.org>
843         asyncsafe-spin: Fix compilation error with GCC on 32-bit SPARC.
844         Reported by Paul Eggert in
845         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00066.html>.
846         * m4/sparcv8+.m4: New file.
847         * modules/sparcv8+: New file.
848         * modules/asyncsafe-spin (Depends-on): Add sparcv8+.
850 2020-11-28  Bruno Haible  <bruno@clisp.org>
852         asyncsafe-spin: Fix build error with GCC on 32-bit SPARC.
853         * lib/asyncsafe-spin.c: Don't use GCC >= 4.1 primitives on SPARC.
855 2020-11-28  Bruno Haible  <bruno@clisp.org>
857         windows-spawn: New module.
858         * lib/windows-spawn.h: Renamed from lib/w32spawn.h. Remove
859         implementations.
860         * lib/windows-spawn.c: Renamed from lib/w32spawn.h.
861         * modules/windows-spawn: New file.
862         * lib/execute.c: Include "windows-spawn.h" instead of "w32spawn.h".
863         * lib/spawn-pipe.c: Likewise.
864         * modules/execute (Files): Remove lib/w32spawn.h.
865         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
866         xalloc.
867         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
868         * modules/spawn-pipe (Files): Remove lib/w32spawn.h.
869         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
870         xalloc.
871         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
873 2020-11-27  Bruno Haible  <bruno@clisp.org>
875         ssfmalloc tests: Port to macOS 11.
876         * tests/test-ssfmalloc.c (PAGESIZE_MAX): Set to 16384, not 8192.
878 2020-11-26  Bruno Haible  <bruno@clisp.org>
880         Fix dependencies of modules that use '_exit' on native Windows.
881         Reported by Jim Meyering in
882         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00159.html>.
883         * modules/_Exit (Depends-on): Add unistd.
884         * modules/closein (Depends-on): Likewise.
885         * modules/closeout (Depends-on): Likewise.
886         * modules/forkpty (Depends-on): Likewise.
887         * modules/posix_spawn-internal (Depends-on): Likewise.
888         * modules/savewd (Depends-on): Likewise.
889         * modules/stat-time-tests (Depends-on): Likewise.
891 2020-11-26  Bruno Haible  <bruno@clisp.org>
893         raise-tests: Fix compilation error on MSVC (regression 2020-11-25).
894         * modules/raise-tests (Depends-on): Add unistd.
895         * doc/posix-functions/_exit.texi: Mention the 'unistd' module.
897 2020-11-25  Jim Meyering  <meyering@fb.com>
899         setlocale-tests: do not trigger gcc's -Wanalyzer-possible-null-argument
900         * tests/test-setlocale1.c (main): Assert that each strcmp argument is
901         non-NULL, since we don't bother handing strdup failure.
903         raise-tests: avoid GCC 11's new exit-from-signal-handler warning
904         gcc's -Wanalyzer-unsafe-call-within-signal-handler exposed this.
905         * tests/test-raise.c: Include unistd.h.
906         (handler): Use _exit, not exit.
908 2020-11-23  Bruno Haible  <bruno@clisp.org>
910         Use the correct printf format attribute for mingw.
911         Reported by Reuben Thomas <rrt@sc3d.org> in
912         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00133.html>.
914         * modules/vfprintf-posix (configure.ac): Define GNULIB_VFPRINTF_POSIX.
915         * modules/vprintf-posix (configure.ac): Define GNULIB_VPRINTF_POSIX.
917         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD,
918         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM): New macros.
919         (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
920         _GL_ATTRIBUTE_FORMAT_PRINTF. Use _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD.
921         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use
922         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM.
924         * modules/vasnprintf (Depends-on): Add stdio.
925         * lib/vasnprintf.h: Include <stdio.h>.
926         (asnprintf, vasnprintf): Use the standard printf format attribute.
928         * modules/xvasprintf (Depends-on): Add stdio.
929         * lib/xvasprintf.h: Include <stdio.h>.
930         (xasprintf, xvasprintf): Use the standard printf format attribute.
932         * modules/xprintf (Depends-on): List stdio first.
933         * lib/xprintf.h (xprintf, xvprintf): Use a printf format attribute that
934         depends on GNULIB_VPRINTF_POSIX.
935         (xfprintf, xvfprintf): Use a printf format attribute that depends on
936         GNULIB_VFPRINTF_POSIX.
938         * modules/c-vasnprintf (Depends-on): Add stdio.
939         * lib/c-vasnprintf.h: Include <stdio.h>.
940         (c_vasnprintf): Use the standard printf format attribute.
942         * modules/c-vasprintf (Depends-on): Add stdio.
943         * lib/c-vasprintf.h: Include <stdio.h>.
944         (c_asprintf, c_vasprintf): Use the standard printf format attribute.
946         * modules/c-vsnprintf (Depends-on): Add stdio.
947         * lib/c-vsnprintf.h: Include <stdio.h>.
948         (c_vsnprintf): Use the standard printf format attribute.
950         * modules/c-snprintf (Depends-on): Add stdio.
951         * lib/c-snprintf.h: Include <stdio.h>.
952         (c_snprintf): Use the standard printf format attribute.
954         * modules/c-xvasprintf (Depends-on): Add stdio.
955         * lib/c-xvasprintf.h: Include <stdio.h>.
956         (c_xasprintf, c_xvasprintf): Use the standard printf format attribute.
958         * modules/error (Depends-on): Depend on stdio always.
959         * lib/error.h: Include <stdio.h>.
960         (_GL_ATTRIBUTE_SPEC_PRINTF): Remove macro.
961         (error, error_at_line): Use a printf format attribute that depends on
962         GNULIB_VFPRINTF_POSIX.
963         * lib/error.c (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
964         _GL_ATTRIBUTE_FORMAT_PRINTF.
966         * modules/verror (Depends-on): Add stdio.
967         * lib/verror.h: Include <stdio.h>. Don't include "error.h".
968         (verror, verror_at_line): Use the standard printf format attribute.
969         * lib/verror.c: Include "error.h".
971         * modules/argp (Depends-on): Add stdio.
972         * lib/argp.h (argp_error, __argp_error, argp_failure, __argp_failure):
973         Use a printf format attribute that depends on GNULIB_VFPRINTF_POSIX.
975         * modules/libtextstyle-optional (Depends-on): Add stdio.
976         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Use the standard
977         printf format attribute.
979         * tests/test-nonblocking-misc.h (dbgfprintf): Use the standard printf
980         format attribute.
982 2020-11-23  Pádraig Brady  <P@draigBrady.com>
984         selinux-at, selinux-h: use const correct declarations
985         * lib/se-selinux.in.h: Use const for "set" functions,
986         to match current selinux, and support cleaner user code.
987         * lib/selinux-at.c: Likewise.
988         * lib/selinux-at.h: Likewise.
990 2020-11-22  Paul Eggert  <eggert@cs.ucla.edu>
992         canonicalize-lgpl: fix memory leak
993         * lib/canonicalize-lgpl.c (__realpath): Fix unlikely memory leak,
994         which could have occurred if BUF was so large that malloc was
995         called.  Do this by allocating EXTRA_BUF and BUF at the same time;
996         this eliminates the need to free BUF separately.
998 2020-11-22  Bruno Haible  <bruno@clisp.org>
1000         Fix missing module dependencies to 'xalloc' (regression 2020-10-19).
1001         * modules/xvasprintf (Depends-on): Add xalloc.
1002         * modules/pipe-filter-gi (Depends-on): Likewise.
1003         * modules/execute (Depends-on): Likewise, for w32spawn.h.
1004         * modules/spawn-pipe (Depends-on): Likewise.
1006 2020-11-22  Jose E. Marchesi  <jemarch@gnu.org>
1008         bootstrap: add option hooks
1009         * build-aux/bootstrap (bootstrap_print_option_usage_hook): Define.
1010         (bootstrap_option_hook): Likewise.
1011         (usage): Call bootstrap_print_option_usage_hook.
1013 2020-11-22  Bruno Haible  <bruno@clisp.org>
1015         argp: Don't break getprogname on non-glibc systems.
1016         * m4/argp.m4 (gl_ARGP): Don't expect <argp.h> to exist when testing for
1017         program_invocation_name and program_invocation_short_name.
1019 2020-11-22  Bruno Haible  <bruno@clisp.org>
1021         doc: Document <link.h>.
1022         * doc/glibc-headers/link.texi: New file.
1023         * doc/gnulib.texi: Include it.
1025 2020-11-22  Bruno Haible  <bruno@clisp.org>
1027         doc: Add references to the LSB.
1028         * doc/glibc-functions/*.texi: Add references to LSB 5.0.
1029         * doc/posix-functions/*.texi: Likewise.
1031 2020-11-22  Bruno Haible  <bruno@clisp.org>
1033         doc: Fix a makeinfo warning (regression 2020-11-03).
1034         * doc/posix-functions/aligned_alloc.texi: Add missing @item.
1036 2020-11-21  Paul Eggert  <eggert@cs.ucla.edu>
1038         parse-datetime: fix printf format typo
1039         * lib/parse-datetime.y (parse_datetime2): Fix format typo in
1040         previous patch to this file.  Problem reported by Chris Elvidge in
1041         <https://bugs.gnu.org/44763#32>.
1043         setlocale-null-tests: work around GCC bug 44511
1044         * tests/test-setlocale_null-mt-all.c:
1045         * tests/test-setlocale_null-mt-one.c:
1046         Ignore -Wreturn-type, to work around GCC bug 44511.
1048         nl_langinfo-tests: work around GCC bug 44511
1049         * tests/test-nl_langinfo-mt.c: Ignore -Wreturn-type, to work
1050         around a GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44511>.
1051         Problem reported for GNU grep by Andreas Schwab
1052         <https://bugs.gnu.org/44535>.
1054         selinux-h: add stubs for selabel_open etc.
1055         Coreutils with --enable-gcc-warnings does not build on Ubuntu 20.10
1056         because matchpathcon is deprecated in favor of selabel_open etc.,
1057         so this patch adds stubs for these functions.
1058         * lib/se-label.c, lib/se-label.in.h, m4/selinux-label-h.m4: New files.
1059         * lib/se-selinux.in.h (struct selinux_opt): Add incomplete decl,
1060         as it is needed for selabel_open and selinux/selinux.h declares
1061         this type here.
1062         * modules/selinux-h (Files): Add the new files.
1063         (configure.ac): Add gl_HEADERS_SELINUX_LABEL_H.
1064         (lib_SOURCES): Add se-label.in.h, se-label.c.
1065         (BUILT_SOURCES): Add $(SELINUX_LABEL_H).
1066         (selinux/label.h): New rule, mimicking selinux/context.h.
1067         (MOSTLYCLEANFILES): Add selinux/label.h, selinux/label.h-t.
1068         (Include): Add selinux/label.h.
1070 2020-11-21  Bruno Haible  <bruno@clisp.org>
1072         Update after 'test-driver' in Automake changed.
1073         * build-aux/test-driver.diff: Rebase.
1075 2020-11-21  Daiki Ueno  <ueno@gnu.org>
1077         read-file: remove dead assignment
1078         * lib/read-file.c (fread_file): Remove dead assignment when
1079         RF_SENSITIVE is set, flagged by clang-analyzer.
1081 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1083         bitset: tests: exercise the stats too
1085         * tests/test-bitset.c: Display the stats at the end of the test.
1086         * lib/bitset/stats.c (bitset_log_histogram_print): When diplaying the
1087         last bin, display "256-..." rather that "256-511", since the last bin
1088         does count item greater than or equal to 256.
1090 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1092         bitset: tests: try harder to break it
1093         * tests/test-bitset.c (compare): Be ready to use bitsets larger than
1094         BITSET_LIST_SIZE.
1095         (main): Likewise.
1096         While at it, also exercise super small bitsets.
1098 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1100         bitset: use ffs where possible in the vector implementation
1101         * lib/bitset/vector.c (vbitset_list): Use BITSET_FOR_EACH_BIT.
1103 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1105         bitset: use ffs where possible in the table implementation
1106         * lib/bitset/table.c (tbitset_list): Use BITSET_FOR_EACH_BIT.
1108 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1110         bitset: check empty and full bitsets
1111         * tests/test-bitset.c (check_zero, check_ones): New.
1112         (check_attributes): Use them.
1114 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
1116         bitset: be sure to always return a value
1117         * lib/bitset/array.c (abitset_small_list): Always update *next and
1118         return a value.
1120 2020-11-19  Siddhesh Poyarekar  <siddhesh@gotplt.org>
1122         vcs-to-changelog: Expect spaces in file names
1123         Reported by Thierry Bothorel <thierry.bothorel@zaclys.net> in
1124         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00040.html>,
1125         * build-aux/vcstocl/vcs_git.py (exec_git_cmd): Do not transform
1126         tabs to spaces.
1127         (list_changes): Use tabs to identify file names.
1129 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1131         bitset: strengthen tests
1132         * tests/test-bitset.c (compare): Also check count.
1133         Deal only with random values, move the one-bit tests to...
1134         (check_one_bit): this new function.
1135         (check_attributes): Call it.
1137 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1139         bitset: fix iteration over table bitsets
1140         * lib/bitset/table.c (tbitset_list): Update bitno when windex is.
1142 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1144         bitset: rename internal details for consistency
1145         * lib/bitset/table.c: Rename all the EBITSET_ symbols as TBITSET_.
1147 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1149         bitset: test: run deterministic tests on several bitset sizes
1150         * tests/test-bitset.c (check_attributes): Run it with small and large
1151         sizes.
1153 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1155         bitset: use ffs where possible in the list implementation
1156         * lib/bitset/list.c (lbitset_list): Use BITSET_FOR_EACH_BIT.
1158 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
1160         bitset: use ffs where possible in array implementation
1161         * lib/bitset/array.c (abitset_small_list): Use BITSET_FOR_EACH_BIT.
1163 2020-11-17  Bruno Haible  <bruno@clisp.org>
1165         posixcheck: Don't enable GNULIB_POSIXCHECK in C++ mode.
1166         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
1167         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
1168         * m4/posixcheck.m4 (gl_POSIXCHECK): Don't define GNULIB_POSIXCHECK in
1169         C++ mode.
1171 2020-11-17  Bruno Haible  <bruno@clisp.org>
1173         Fix error when GNULIB_POSIXCHECK is enabled (regression 2019-06-04).
1174         * lib/unistd.in.h (copy_file_range): Don't assume that copy_file_range
1175         is always declared.
1176         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether copy_file_range is
1177         declared.
1179 2020-11-17  Bruno Haible  <bruno@clisp.org>
1181         Fix link errors on AIX.
1182         * modules/clean-temp (Link): Link with $(LIBTHREAD).
1183         * modules/getumask (Link): Link with $(LIBTHREAD).
1184         * modules/getumask-tests (Makefile.am): Link test-getumask with
1185         $(LIBTHREAD).
1186         * modules/supersede (Link): Link with $(LIBTHREAD).
1187         * modules/supersede-tests (Makefile.am): Link test-supersede with
1188         $(LIBTHREAD).
1189         * modules/fatal-signal (Link): New section.
1190         * modules/execute (Link): New section.
1191         * modules/csharpexec (Link): Link with $(LIBTHREAD).
1192         * modules/javaexec (Link): Link with $(LIBTHREAD).
1193         * modules/spawn-pipe (Link): New section.
1194         * modules/spawn-pipe-tests (Makefile.am): Link test-spawn-pipe-main with
1195         $(LIBTHREAD).
1196         * modules/csharpcomp (Link): Link with $(LIBTHREAD).
1197         * modules/javacomp (Link): Link with $(LIBTHREAD).
1198         * modules/javaversion (Link): Link with $(LIBTHREAD).
1199         * modules/pipe-filter-gi (Link): New section.
1200         * modules/pipe-filter-gi-tests (Makefile.am): Link test-pipe-filter-gi1,
1201         test-pipe-filter-gi2-main with $(LIBTHREAD).
1202         * modules/pipe-filter-ii (Link): New section.
1203         * modules/pipe-filter-ii-tests (Makefile.am): Link test-pipe-filter-ii1,
1204         test-pipe-filter-ii2-main with $(LIBTHREAD).
1205         * modules/term-style-control (Link): New section.
1206         * modules/term-style-control-tests (Makefile.am): Link
1207         test-term-style-control-hello, test-term-style-control-yes with
1208         $(LIBTHREAD).
1209         * modules/wait-process (Link): New section.
1210         * modules/nonblocking-pipe-tests (Makefile.am): Link
1211         test-nonblocking-pipe-main with $(LIBTHREAD).
1212         * modules/nonblocking-socket-tests (Makefile.am): Link
1213         test-nonblocking-socket-main with $(LIBTHREAD).
1215 2020-11-16  Bruno Haible  <bruno@clisp.org>
1217         Fix link errors on platforms with libunistring.
1218         * modules/c32isalnum (Link): New section.
1219         * modules/c32isalnum-tests (Makefile.am): Link test-c32isalnum with
1220         $(LIBUNISTRING).
1221         * modules/c32isalpha (Link): New section.
1222         * modules/c32isalpha-tests (Makefile.am): Link test-c32isalpha with
1223         $(LIBUNISTRING).
1224         * modules/c32isblank (Link): New section.
1225         * modules/c32isblank-tests (Makefile.am): Link test-c32isblank with
1226         $(LIBUNISTRING).
1227         * modules/c32iscntrl (Link): New section.
1228         * modules/c32iscntrl-tests (Makefile.am): Link test-c32iscntrl with
1229         $(LIBUNISTRING).
1230         * modules/c32isdigit (Link): New section.
1231         * modules/c32isdigit-tests (Makefile.am): Link test-c32isdigit with
1232         $(LIBUNISTRING).
1233         * modules/c32isgraph (Link): New section.
1234         * modules/c32isgraph-tests (Makefile.am): Link test-c32isgraph with
1235         $(LIBUNISTRING).
1236         * modules/c32islower (Link): New section.
1237         * modules/c32islower-tests (Makefile.am): Link test-c32islower with
1238         $(LIBUNISTRING).
1239         * modules/c32isprint (Link): New section.
1240         * modules/c32isprint-tests (Makefile.am): Link test-c32isprint with
1241         $(LIBUNISTRING).
1242         * modules/c32ispunct (Link): New section.
1243         * modules/c32ispunct-tests (Makefile.am): Link test-c32ispunct with
1244         $(LIBUNISTRING).
1245         * modules/c32isspace (Link): New section.
1246         * modules/c32isspace-tests (Makefile.am): Link test-c32isspace with
1247         $(LIBUNISTRING).
1248         * modules/c32isupper (Link): New section.
1249         * modules/c32isupper-tests (Makefile.am): Link test-c32isupper with
1250         $(LIBUNISTRING).
1251         * modules/c32isxdigit (Link): New section.
1252         * modules/c32isxdigit-tests (Makefile.am): Link test-c32isxdigit with
1253         $(LIBUNISTRING).
1254         * modules/unicodeio (Link): Mention $(LIBUNISTRING).
1255         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
1256         $(LIBUNISTRING).
1258 2020-11-16  Bruno Haible  <bruno@clisp.org>
1260         Fix link errors on platforms with libintl (e.g. Solaris and AIX).
1261         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
1262         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
1263         * modules/getumask-tests (Makefile.am): Link test-getumask with
1264         $(LIBINTL).
1265         * modules/stack-tests (Makefile.am): Link test-stack with $(LIBINTL).
1266         * modules/supersede-tests (Makefile.am): Link test-supersede with
1267         $(LIBINTL).
1268         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
1269         $(LIBINTL).
1271 2020-11-16  Bruno Haible  <bruno@clisp.org>
1273         getumask: Document link dependencies.
1274         * modules/getumask (Link): New section.
1276 2020-11-16  Bruno Haible  <bruno@clisp.org>
1278         Update link dependencies in modules after 2020-09-09 change.
1279         * modules/tempname (Link): Add $(LIB_CLOCK_GETTIME).
1280         * modules/mkdtemp (Link): Likewise.
1281         * modules/mkostemp (Link): Likewise.
1282         * modules/mkostemps (Link): Likewise.
1283         * modules/mkstemp (Link): Likewise.
1284         * modules/mkstemps (Link): Likewise.
1285         * modules/supersede (Link): Likewise.
1286         * modules/tmpfile (Link): Likewise.
1287         * modules/tmpfile-safer (Link): Likewise.
1289 2020-11-15  Paul Eggert  <eggert@cs.ucla.edu>
1291         getumask-tests: port to Solaris 10 etc.
1292         Problem reported by Tom Christensen in:
1293         https://lists.gnu.org/r/bug-gnulib/2020-11/msg00062.html
1294         * modules/getumask-tests (test_getumask_LDADD):
1295         Add $(LIB_CLOCK_GETTIME).
1297 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1299         bitset: use ffsl to accelerate iterations over set bits
1300         Suggested by Bruno Haible.
1301         * modules/bitset: Depend upon ffsl.
1302         * lib/bitset/base.h (bitset_ffs, BITSET_FOR_EACH_BIT): New.
1303         * lib/bitset/array.c (abitset_list): Use BITSET_FOR_EACH_BIT.
1305 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1307         bitset: more tests
1308         * tests/test-bitset.c (compare): Make it clear that the random values
1309         should not be modified.
1310         Check bitset_first, bitset_last and BITSET_FOR_EACH.
1312 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1314         bitset: fix the copy from lbitset to other types
1315         * lib/bitset/list.c (lbitset_copy): Rename as...
1316         (lbitset_copy_): this.
1317         (lbitset_copy): New.
1318         Dispatch to heterogeneous/homogeneous copy.
1320 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
1322         bitset: making debug traces more useful
1323         * lib/bitset.c (bitset_print): Print the bitset type in verbose mode.
1325         bitset: comment changes
1326         * lib/bitset.c: Move some documenting comments to...
1327         * lib/bitset.h: here.
1328         * lib/bitset/array.c: Fix some comments.
1330 2020-11-14  Paul Eggert  <eggert@cs.ucla.edu>
1332         careadlinkat: warn better about GCC bug 93644
1333         * lib/careadlinkat.c (readlink_stk): When --enable-gcc-warnings is
1334         not in effect, use "#warning" to let builders know more clearly
1335         about GCC bug 93644, because the bug triggers even if no -W option
1336         is given to GCC.
1338 2020-11-13  Jim Meyering  <meyering@fb.com>
1340         hard-locale-tests: avoid a -Wstrict-prototypes warning
1341         * tests/locale.c (main): Placate gcc's -Wstrict-prototypes by
1342         changing "main ()" to "main (void)". This was the only case that
1343         triggered a warning when building grep with --enable-gcc-warnings.
1345 2020-11-11  Paul Eggert  <eggert@cs.ucla.edu>
1347         time_rz: simplify CVE-2017-7476 fix
1348         * lib/time_rz.c: Do not include limits.h; I think it was included
1349         under the mistaken impression that limits.h defines SIZE_MAX.
1350         (SIZE_MAX): Remove.
1351         (save_abbr): Put string length into a ptrdiff_t variable,
1352         so that the size comparison works naturally.  This
1353         fixes CVE-2017-7476 in a cleaner way.
1355         parse-datetime: streamline overflow checking
1356         When parse-datetime.y’s overflow code was written, INT_ADD_WRAPV
1357         did not work for unsigned destinations, and since time_t might
1358         be unsigned that meant it did not work for time_t destinations.
1359         This limitation of INT_ADD_WRAPV has been fixed, so we can
1360         now streamline parse-datetime.y a bit.
1361         * lib/parse-datetime.y: Do not include limits.h, as LONG_MAX
1362         has not been used for a while.
1363         (yylex, parse_datetime2): Assume C99 declarations after statements.
1364         (yyles): Use INT_SUBTRACT_WRAPV instead of an explicit comparison
1365         to TYPE_MINIMUM.
1366         (parse_datetime2): No need for time_overflow now that
1367         INT_ADD_WRAPV works for unsigned results.
1369         parse-datetime-tests: port to Alpine Linux 3.12.1
1370         * tests/test-parse-datetime.c: Include errno.h for errno,
1371         and unistd.h for _SC_TZNAME_MAX and sysconf.
1372         (main): In the outlandishly-long time zone abbreviation test,
1373         do not exceed TZNAME_MAX as this has undefined behavior,
1374         and on Alpine Linux 3.12.1 it makes the test fail.
1376 2020-11-09  Pádraig Brady  <P@draigBrady.com>
1378         mgetgroups: avoid warning with clang
1379         * lib/mgetgroups.c: Xcode-12.1 identifies as GCC 4.2.1,
1380         so disable -Wpointer-sign for all clang versions.
1382 2020-11-07  Bruno Haible  <bruno@clisp.org>
1384         gnulib-tool: Fix link error with 'version-etc' (regression 2020-05-29).
1385         Reported by Simon Josefsson in
1386         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00032.html>.
1387         * gnulib-tool (func_emit_tests_Makefile_am): Add libtests.a to
1388         LDADD a third time, after the second occurrence of ../lib/libgnu.a.
1389         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
1391 2020-11-04  Paul Eggert  <eggert@cs.ucla.edu>
1393         tests: pacify Sun C 5.9
1394         Without these changes, Sun C 5.9 (2009/11/22) issues complaints like
1395         “"test-nl_langinfo-mt.c", line 75: warning: statement not reached”.
1396         * tests/test-nl_langinfo-mt.c (thread1_func, thread2_func)
1397         (thread3_func, thread4_func, thread5_func, thread6_func, threadN_func):
1398         * tests/test-setlocale_null-mt-all.c (thread1_func, thread2_func):
1399         * tests/test-setlocale_null-mt-one.c (thread1_func, thread2_func):
1400         Remove unreachable ‘return NULL;’s.
1402         tests: port better to XLC 12.01
1403         * tests/test-argmatch.c (CHECK): Do not use -1 as a subscript,
1404         even in code that is not executed, as IBM XLC 12.01 complains "The
1405         subscript -1 is less than zero."
1406         * tests/test-stdint.c (verify_width): Pass an (unused) 3rd
1407         argument to _GL_VERIFY, as ISO C requires.  Otherwise, IBM XLC
1408         12.01 complains "The invocation of macro _GL_VERIFY contains fewer
1409         arguments than are required by the macro definition."
1411 2020-11-03  Bruno Haible  <bruno@clisp.org>
1413         aligned-malloc: Use fixes from the new modules.
1414         * modules/aligned-malloc (Depends-on): Add posix_memalign,
1415         aligned_alloc, memalign.
1416         (configure.ac): Use AC_CHECK_FUNCS_ONCE.
1418 2020-11-03  Bruno Haible  <bruno@clisp.org>
1420         aligned_alloc: Add tests.
1421         * tests/test-aligned_alloc.c: New file.
1422         * modules/aligned_alloc-tests: New file.
1424         aligned_alloc: New module.
1425         * lib/stdlib.in.h (aligned_alloc): New declaration.
1426         * lib/aligned_alloc.c: New file.
1427         * m4/aligned_alloc.m4: New file.
1428         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether aligned_alloc is declared.
1429         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ALIGNED_ALLOC,
1430         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
1431         * modules/stdlib (Makefile.am): Substitute GNULIB_ALIGNED_ALLOC,
1432         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
1433         * modules/aligned_alloc: New file.
1434         * tests/test-stdlib-c++.cc (aligned_alloc): Check signature.
1435         * doc/posix-functions/aligned_alloc.texi: Mention the new module and the
1436         AIX bug.
1438 2020-11-03  Bruno Haible  <bruno@clisp.org>
1440         posix_memalign: Add tests.
1441         * tests/test-posix_memalign.c: New file.
1442         * modules/posix_memalign-tests: New file.
1444         posix_memalign: New module.
1445         * lib/stdlib.in.h (posix_memalign): New declaration.
1446         * lib/posix_memalign.c: New file.
1447         * m4/posix_memalign.m4: New file.
1448         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether posix_memalign is declared.
1449         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_POSIX_MEMALIGN,
1450         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
1451         * modules/stdlib (Makefile.am): Substitute GNULIB_POSIX_MEMALIGN,
1452         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
1453         * modules/posix_memalign: New file.
1454         * tests/test-stdlib-c++.cc (posix_memalign): Check signature.
1455         * doc/posix-functions/posix_memalign.texi: Mention the new module and
1456         the OpenBSD bug.
1458 2020-11-03  Bruno Haible  <bruno@clisp.org>
1460         memalign: Add tests.
1461         * tests/test-memalign.c: New file.
1462         * modules/memalign-tests: New file.
1464         memalign: New module.
1465         * modules/memalign: New file.
1466         * doc/glibc-functions/memalign.texi: Mention the new module.
1468 2020-11-03  Bruno Haible  <bruno@clisp.org>
1470         verify tests: Fix crash with GCC (regression 2020-11-02).
1471         * tests/test-verify.c (main): Fix initializer of s.
1473 2020-11-03  Pádraig Brady  <P@draigBrady.com>
1475         mountlist: recognize more file system types as remote
1477         * lib/mountlist.c (ME_REMOTE): Sync previously unconsidered
1478         "remote" file systems from stat.c in coreutils.
1480 2020-11-02  Bernhard Voelker  <mail@bernhard-voelker.de>
1482         verify tests: Fix -Wuninitialized warning (regression 2020-10-30).
1483         * tests/test-verify.c (main): Initialize state variable.
1484         Reported by Bruno Haible for GCC 5.4.0.
1486 2020-11-02  Paul Eggert  <eggert@cs.ucla.edu>
1488         dfa.h: support inclusion from C++
1489         * lib/dfa.h: Allow multiple inclusion, and inclusion from
1490         C++ code.  The latter was suggested by Arnold Robbins.
1492 2020-11-01  Bruno Haible  <bruno@clisp.org>
1494         ssfmalloc tests: Portability to Linux/PowerPC and Linux/SPARC.
1495         * tests/test-ssfmalloc.c: Include <limits.h>.
1496         (PAGESIZE_MAX): Set to 65536 on Linux/PowerPC.
1498 2020-11-01  Bruno Haible  <bruno@clisp.org>
1500         verify tests: Fix compilation error with MSVC (regression 2020-10-30).
1501         * tests/test-verify.c (test_assume_noreturn): Fix declaration.
1503 2020-11-01  Jim Meyering  <meyering@fb.com>
1505         dfa-tests: test for today's invalid-merge fix
1506         * tests/test-dfa-invalid-merge.sh: New file.
1507         * modules/dfa-tests (Files): Add it.
1508         (TESTS): Add it.
1510 2020-11-01  Norihiro Tanaka  <noritnk@kcn.ne.jp>
1512         dfa: retain sequences of similar nodes in optimization
1513         DFA was merging similar nodes when it should not.  For example,
1514         it would convert a+a+a to a+a.  Now, a sequence of similar nodes
1515         is not merged.  Problem reported by Gonzalo Padrino in
1516         https://bugs.gnu.org/44351
1517         * lib/dfa.c (merge_nfa_state): Skip the follow for repetition in
1518         optimization.
1520 2020-11-01  Jim Meyering  <meyering@fb.com>
1522         test-dfa-match-aux.c: accept EREs, not BREs
1523         * tests/test-dfa-match-aux.c (main): Specify RE_SYNTAX_EGREP, not
1524         RE_SYNTAX_GREP, so tests can use ERE syntax rather than BRE.
1526 2020-10-30  Bernhard Voelker  <mail@bernhard-voelker.de>
1528         verify tests: avoid -Wmissing-declarations warnings
1529         * tests/test-verify.c (test_assume_expressions): Add declaration.
1530         (test_assume_optimization): Likewise.
1531         (test_assume_noreturn): Likewise.
1532         (main): Move down after all other definitions.  While at it, also
1533         call test_assume_expressions and test_assume_optimization as a
1534         runtime check.
1536 2020-10-26  Paul Eggert  <eggert@cs.ucla.edu>
1538         sys_stat: update comments for S_IRWXUGO, S_IXUGO
1539         * lib/sys_stat.in.h (S_IXUGO, S_IRWXUGO): Update comments.
1540         Perhaps these macros should be removed, as they’re not in either
1541         POSIX or GNU.  They could be moved to stat-macros.h, which would
1542         be cleaner in some sense.
1544 2020-10-25  Bruno Haible  <bruno@clisp.org>
1546         ssfmalloc tests: Small tweaks.
1547         * tests/test-ssfmalloc.c: Add comments.
1548         (alloc_pages): Don't require PROT_EXEC bits.
1549         (block_sizes): Add more small sizes, for better coverage of
1550         ssfmalloc-bitmap.h.
1552         ssfmalloc tests: Portability to Minix.
1553         * modules/ssfmalloc-tests (Files): Add m4/mmap-anon.m4.
1554         (configure.ac): Invoke gl_FUNC_MMAP_ANON.
1555         * m4/mmap-anon.m4: Update comment.
1557         ssfmalloc: Portability to AIX.
1558         * modules/ssfmalloc (Include): Add ssfmalloc.h.
1559         (Link): New section.
1560         * modules/ssfmalloc-tests (Makefile.am): Link test-ssfmalloc with
1561         $(LIBTHREAD).
1563         ssfmalloc: Portability to Cygwin.
1564         * lib/ssfmalloc.h: Add parameter PAGESIZE_MAX.
1565         (pg_offset_t): Define depending on PAGESIZE_MAX.
1566         * tests/test-ssfmalloc.c: Undefine PAGESIZE.
1567         (PAGESIZE_MAX): New macro.
1569         ssfmalloc: Fix buffer overrun in bitmap search.
1570         * lib/ssfmalloc-bitmap.h (find_first_packet_set): Don't access the
1571         word *words_end.
1573 2020-10-24  Paul Eggert  <eggert@cs.ucla.edu>
1575         doc: mention ‘restrict’ and C++
1576         * doc/gnulib-readme.texi (C99 features assumed): Document
1577         that ‘restrict’ should be avoided in C++ code.
1579 2020-10-20  Bernhard Voelker  <mail@bernhard-voelker.de>
1581         selinux-at, selinux-h: port to SELinux 3.1
1582         The new release finally deprecated the typedef 'security_context_t',
1583         see <https://github.com/SELinuxProject/selinux/commit/7a124ca275>.
1584         Use the simpler 'char *' instead.
1585         * lib/getfilecon.c (getfilecon): Adjust type of context parameter.
1586         (lgetfilecon): Likewise.
1587         (fgetfilecon): Likewise.
1588         (map_to_failure): Likewise.
1589         (rpl_getfilecon): Likewise.
1590         (rpl_lgetfilecon): Likewise.
1591         (rpl_fgetfilecon): Likewise.
1592         * lib/se-selinux.in.h (security_context_t): Remove typedef.
1593         (getcon): Adjust type of context parameter.
1594         (freecon): Likewise.
1595         (getfscreatecon): Likewise.
1596         (setfscreatecon): Likewise.
1597         (matchpathcon): Likewise.
1598         (getfilecon): Likewise.
1599         (lgetfilecon): Likewise.
1600         (fgetfilecon): Likewise.
1601         (setfilecon): Likewise.
1602         (lsetfilecon): Likewise.
1603         (fsetfilecon): Likewise.
1604         (security_check_context): Likewise.
1605         (security_check_context_raw): Likewise.
1606         (setexeccon): Likewise.
1607         (security_compute_create): Likewise.
1608         * lib/selinux-at.c (getfileconat): Likewise.
1609         (lgetfileconat): Likewise.
1610         (setfileconat): Likewise.
1611         (lsetfileconat): Likewise.
1612         * lib/selinux-at.h: Likewise.
1614 2020-10-19  Bruno Haible  <bruno@clisp.org>
1616         xalloc-die: Fix link error with Solaris cc (regression 2020-07-27).
1617         * lib/xalloc.h (xalloc_die): Don't declare if GNULIB_XALLOC_DIE is 0.
1618         (xmalloc, xzalloc, xcalloc, xrealloc, x2realloc, xmemdup, xstrdup,
1619         XMALLOC, XNMALLOC, XZALLOC, XCALLOC, xnmalloc, xnrealloc, x2nrealloc,
1620         xcharalloc): Don't declare/define if GNULIB_XALLOC is 0.
1621         * modules/xalloc (configure.ac): Define GNULIB_XALLOC.
1622         * modules/xalloc-die (configure.ac): Define GNULIB_XALLOC_DIE.
1624 2020-10-18  Bruno Haible  <bruno@clisp.org>
1626         ssfmalloc: Add tests.
1627         * tests/test-ssfmalloc.c: New file.
1628         * modules/ssfmalloc-tests: New file.
1630         ssfmalloc: New module.
1631         * lib/ssfmalloc.h: New file.
1632         * lib/ssfmalloc-bitmap.h: New file.
1633         * modules/ssfmalloc: New file.
1635 2020-10-18  Bruno Haible  <bruno@clisp.org>
1637         wchar: Fix configure test result on some versions of AIX.
1638         Reported by Clément Chigot <clement.chigot@atos.net> in
1639         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00115.html>.
1640         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Execute the test only on glibc
1641         systems.
1643 2020-10-18  Bruno Haible  <bruno@clisp.org>
1645         time: Fix warning about asctime when asctime is not used.
1646         * lib/time.in.h (asctime_r, ctime, ctime_r): Fix _GL_WARN_ON_USE
1647         invocation.
1649 2020-10-18  Bruno Haible  <bruno@clisp.org>
1651         *-list, *-oset, *-omap: Avoid a GCC warning (regression 2020-10-10).
1652         * lib/gl_anylinked_list2.h (gl_linked_iterator_free): Remove
1653         '_GL_ATTRIBUTE_CONST'.
1654         * lib/gl_anytree_list2.h (gl_tree_iterator_free): Likewise.
1655         * lib/gl_anytree_omap.h (gl_tree_iterator_free): Likewise.
1656         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
1657         * lib/gl_array_list.c (gl_array_iterator_free): Likewise.
1658         * lib/gl_array_omap.c (gl_array_iterator_free): Likewise.
1659         * lib/gl_array_oset.c (gl_array_iterator_free): Likewise.
1660         * lib/gl_carray_list.c (gl_carray_iterator_free): Likewise.
1662 2020-10-18  Bruno Haible  <bruno@clisp.org>
1664         obstack: Fix a clang warning.
1665         * lib/obstack.c (print_and_abort): Mark as __attribute_noreturn__.
1667 2020-10-16  Bruno Haible  <bruno@clisp.org>
1669         hash: Rename hash_delete to hash_remove.
1670         * lib/hash.h (hash_remove): Renamed from hash_delete.
1671         (hash_delete): New declaration.
1672         * lib/hash.c (hash_remove): Renamed from hash_delete.
1673         (hash_delete): New function.
1674         * tests/test-hash.c (main): Update.
1675         * lib/fts-cycle.c (leave_dir): Likewise.
1676         * NEWS: Mention the change.
1678 2020-10-16  Bruno Haible  <bruno@clisp.org>
1680         hash, xhash: Make usable from C++.
1681         * lib/hash.h: Add extern "C".
1683 2020-10-16  Bruno Haible  <bruno@clisp.org>
1685         hash, xhash: Move comments to the .h file.
1686         * lib/hash.c: Move comments meant for the user from here...
1687         * lib/xhash.c: ... and here...
1688         * lib/hash.h: ... to here.
1690 2020-10-13  Philipp Klaus Krause  <pkk@spth.de>  (tiny change)
1692         Don't declare an intention to modify the return value of strerror.
1693         * tests/test-perror2.c (main): Assign the return value of strerror to a
1694         'const char *' variable.
1696 2020-10-11  Bruno Haible  <bruno@clisp.org>
1698         *printf: Avoid "expanded before it was required" warning.
1699         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99): Define through
1700         AC_DEFUN_ONCE.
1702 2020-10-11  Benji Wiebe  <benjiwiebe14@gmail.com>
1704         getprogname: Add support for OpenServer 6 and UnixWare 7.
1705         * lib/getprogname.c: Include <fcntl.h>, <stdlib.h>, <string.h>.
1706         (getprogname): On OpenServer6 and UnixWare, read /proc/<pid>/cmdline.
1708 2020-10-11  Bruno Haible  <bruno@clisp.org>
1710         tests: Avoid a name clash on UnixWare.
1711         Reported by Tim Rice <tim@multitalents.net> in
1712         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00025.html>.
1713         * tests/nap.h (nap): Define as gl_nap on OpenServer and UnixWare.
1715 2020-10-11  Bruno Haible  <bruno@clisp.org>
1717         stdioext: Update comments regarding UnixWare.
1718         Reported by Tim Rice <tim@multitalents.net> in
1719         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
1720         * lib/fbufmode.c: Update comments.
1721         * lib/fflush.c: Likewise.
1722         * lib/fpending.c: Likewise.
1723         * lib/fpurge.c: Likewise.
1724         * lib/freadable.h: Likewise.
1725         * lib/freadable.c: Likewise.
1726         * lib/freadahead.c: Likewise.
1727         * lib/freading.h: Likewise.
1728         * lib/freading.c: Likewise.
1729         * lib/freadptr.c: Likewise.
1730         * lib/freadseek.c: Likewise.
1731         * lib/fseeko.c: Likewise.
1732         * lib/fseterr.c: Likewise.
1733         * lib/fwritable.h: Likewise.
1734         * lib/fwritable.c: Likewise.
1735         * lib/fwriting.h: Likewise.
1736         * lib/fwriting.c: Likewise.
1738 2020-10-11  Bruno Haible  <bruno@clisp.org>
1740         stdioext: Treat OpenServer 6 and UnixWare 7 like OpenServer 5.
1741         Reported by Tim Rice <tim@multitalents.net> in
1742         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
1743         Uses the info from
1744         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00028.html>.
1745         * lib/stdio-impl.h: Test also __SCO_VERSION__ and __sysv5__.
1747 2020-10-11  Bruno Haible  <bruno@clisp.org>
1749         stdioext: Avoid compilation errors on UnixWare 7.
1750         Reported by Tim Rice <tim@multitalents.net> in
1751         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00127.html>.
1752         * lib/fbufmode.c: Don't include <stdio_ext.h> if it does not exist.
1753         * lib/fpurge.c: Likewise.
1754         * lib/freadable.h: Likewise.
1755         * lib/freading.h: Likewise.
1756         * lib/fwritable.h: Likewise.
1757         * lib/fwriting.h: Likewise.
1758         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether <stdio_ext.h> exists.
1759         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
1760         * m4/freadable.m4 (gl_FUNC_FREADABLE): Likewise.
1761         * m4/freading.m4 (gl_FUNC_FREADING): Likewise.
1762         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Likewise.
1763         * m4/fwriting.m4 (gl_FUNC_FWRITING): Likewise.
1765 2020-10-11  Bruno Haible  <bruno@clisp.org>
1767         stdioext: Update comments regarding Cygwin.
1768         * lib/fpending.c: Update comments.
1769         * lib/fpurge.c: Likewise.
1770         * lib/freadable.h: Likewise.
1771         * lib/freadable.c: Likewise.
1772         * lib/freading.h: Likewise.
1773         * lib/freading.c: Likewise.
1774         * lib/fwritable.h: Likewise.
1775         * lib/fwritable.c: Likewise.
1776         * lib/fwriting.h: Likewise.
1777         * lib/fwriting.c: Likewise.
1779 2020-10-11  KO Myung-Hun  <komh78@gmail.com>
1781         Fix "warning: implicit declaration of function 'pthread_sigmask'".
1782         * lib/signal.in.h [__KLIBC__]: Include <pthread.h>.
1783         * lib/sys_select.in.h [__KLIBC__]: Do not include <signal.h>.
1785 2020-10-10  Bruno Haible  <bruno@clisp.org>
1787         *-list, *-oset, *-omap: Avoid possible compiler warnings.
1788         Reported by Marc Nieper-Wißkirchen in
1789         <https://lists.gnu.org/r/bug-gnulib/2020-10/msg00025.html>.
1790         * lib/gl_anylinked_list2.h (gl_linked_iterator,
1791         gl_linked_iterator_from_to): Mark as 'pure'.
1792         (gl_linked_iterator_free): Mark as 'const'.
1793         * lib/gl_anytree_list2.h (gl_tree_size, gl_tree_node_value,
1794         gl_tree_search_from_to, gl_tree_indexof_from_to, gl_tree_iterator,
1795         gl_tree_iterator_from_to, gl_tree_sortedlist_search,
1796         gl_tree_sortedlist_search_from_to, gl_tree_sortedlist_indexof,
1797         gl_tree_sortedlist_indexof_from_to): Mark as 'pure'.
1798         (gl_tree_iterator_free): Mark as 'const'.
1799         * lib/gl_anytree_omap.h (gl_tree_size, gl_tree_iterator): Mark as
1800         'pure'.
1801         (gl_tree_iterator_free): Mark as 'const'.
1802         * lib/gl_anytree_oset.h (gl_tree_size, gl_tree_next_node,
1803         gl_tree_prev_node, gl_tree_iterator): Mark as 'pure'.
1804         (gl_tree_iterator_free): Mark as 'const'.
1805         * lib/gl_anytreehash_list1.h (node_position, compare_by_position,
1806         compare_position_threshold): Mark as 'pure'.
1807         * lib/gl_array_list.c (gl_array_size, gl_array_indexof_from_to,
1808         gl_array_search_from_to, gl_array_iterator, gl_array_iterator_from_to,
1809         gl_array_sortedlist_indexof_from_to, gl_array_sortedlist_indexof,
1810         gl_array_sortedlist_search_from_to, gl_array_sortedlist_search): Mark as
1811         'pure'.
1812         (gl_array_iterator_free): Mark as 'const'.
1813         * lib/gl_array_omap.c (gl_array_size, gl_array_indexof, gl_array_search,
1814         gl_array_search_atleast, gl_array_iterator): Mark as 'pure'.
1815         (gl_array_iterator_free): Mark as 'const'.
1816         * lib/gl_array_oset.c (gl_array_size, gl_array_indexof, gl_array_search,
1817         gl_array_indexof_atleast, gl_array_search_atleast, gl_array_iterator,
1818         gl_array_iterator_atleast): Mark as 'pure'.
1819         (gl_array_iterator_free): Mark as 'const'.
1820         * lib/gl_carray_list.c (gl_carray_size, gl_carray_node_value,
1821         gl_carray_next_node, gl_carray_previous_node, gl_carray_get_at,
1822         gl_carray_indexof_from_to, gl_carray_search_from_to, gl_carray_iterator,
1823         gl_carray_iterator_from_to, gl_carray_sortedlist_indexof_from_to,
1824         gl_carray_sortedlist_indexof, gl_carray_sortedlist_search_from_to,
1825         gl_carray_sortedlist_search): Mark as 'pure'.
1826         (gl_carray_iterator_free): Mark as 'const'.
1828 2020-10-10  Bruno Haible  <bruno@clisp.org>
1830         rbtree-list: Avoid possible compiler warnings.
1831         This mirrors the change of avltree-list on 2014-09-16.
1832         * lib/gl_rbtree_list.c (gl_rbtree_list_check_invariants): Add extern
1833         declaration. Add cast to void for ignored value of check_invariants.
1835 2020-10-10  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
1837         stack: New module.
1838         * MODULES.html.sh: Add entry for the stack module.
1839         * modules/stack: New file.
1840         * modules/stack-tests: New file.
1841         * lib/stack.h: New file.
1842         * tests/test-stack.c: New file.
1844 2020-10-10  Paul Eggert  <eggert@cs.ucla.edu>
1846         attribute: improve const, pure doc
1847         Problem reported by Marc Nieper-Wißkirchen in:
1848         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00035.html
1849         * lib/attribute.h (ATTRIBUTE_CONST, ATTRIBUTE_PURE): Improv doc.  See:
1850         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51971#c1
1852 2020-10-05  Paul Eggert  <eggert@cs.ucla.edu>
1854         thread: pacify GCC on Solaris 10
1855         Problem reported by Kiyoshi KANAZAWA for grep (Bug#43666#29).
1856         * lib/glthread/thread.h (gl_thread_self): Use ‘(pthread_t) 0’
1857         instead of ‘(pthread_t) NULL’, to pacify GCC on Solaris 10
1858         where pthread_t is unsigned int.
1860 2020-10-04  Paul Eggert  <eggert@cs.ucla.edu>
1862         c-stack: avoid AS_IF
1863         Problem reported by Bruno Haible in:
1864         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00018.html
1865         * m4/c-stack.m4 (gl_PREREQ_C_STACK): No need for AS_IF.
1867         c-stack: pacify GCC 9.3.1 when using libsigsegv
1868         * lib/c-stack.c [USE_LIBSIGSEGV]: Disable --suggest-attribute=pure.
1870 2020-10-04  Bruno Haible  <bruno@clisp.org>
1872         localename: Fix a couple of "unused parameter" warnings.
1873         Reported by Marc Nieper-Wißkirchen <marc@nieper-wisskirchen.de> in
1874         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00014.html>.
1875         * lib/localename.c (gl_locale_name_thread_unsafe, gl_locale_name_thread,
1876         gl_locale_name_posix, gl_locale_name_environ): Add _GL_UNUSED in
1877         parameter list.
1879 2020-10-04  Bruno Haible  <bruno@clisp.org>
1881         vasnprintf: Don't use %n on modern, ISO C 99 compliant platforms.
1882         Suggested by Jeremie Courreges-Anglas <jca@wxcvbn.org> in
1883         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00010.html>.
1884         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Define
1885         HAVE_SNPRINTF_TRUNCATION_C99.
1886         * lib/vasnprintf.c (VASNPRINTF): Don't use %n if
1887         HAVE_SNPRINTF_RETVAL_C99 && HAVE_SNPRINTF_TRUNCATION_C99.
1889 2020-10-03  Paul Eggert  <eggert@cs.ucla.edu>
1891         c-stack: streamline Solaris configuration
1892         * lib/c-stack.c: Omit mention of HAVE_SIGALTSTACK, since
1893         the code is used only if a test for sigaltstack worked
1894         in some other way.
1895         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Do not require gl_LIBSIGSEGV;
1896         instead, execute gl_LIBSIGSEGV only if needed (because the XSI
1897         heuristic does not work).
1898         * modules/c-stack (Files): Add m4/libsigsegv.m4, since
1899         we no longer require the libsigsegv module.
1900         (Depends-on): Depend on havelib, not libsigsegv.
1902         c-stack: stop using SIGSTKSZ
1903         It’s been proposed to stop making SIGSTKSZ an integer constant:
1904         https://sourceware.org/pipermail/libc-alpha/2020-September/118028.html
1905         Also, using SIGSTKSZ in #if did not conform to current POSIX.
1906         Also, avoiding SIGSTKSZ makes the code simpler and easier to grok.
1907         * lib/c-stack.c (SIGSTKSZ): Remove.
1908         (alternate_signal_stack): Now a 64 KiB array, for simplicity.
1909         All uses changed.
1911         c-stack: fix libsigsegv typo
1912         Problem reported by Bruno Haible in:
1913         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00175.html
1914         * lib/c-stack.c (USE_LIBSIGSEGV): Fix typo that caused libsigsegv
1915         to be used only on Solaris (exactly where it is not needed!).
1917 2020-10-03  Thien-Thi Nguyen  <ttn@gnuvola.org>
1919         MODULES.html.sh: Fix typo.
1920         * MODULES.html.sh (Numeric conversion functions <stdlib.h>): Fix typo.
1922 2020-09-28  Paul Eggert  <eggert@cs.ucla.edu>
1924         version-etc: pacify Oracle Studio 12.6
1925         Without this patch, it complains: "version-etc.h", line 64:
1926         warning: token-less macro argument (E_TOKENLESS_MACRO)" when in
1927         pedantic mode.
1928         * lib/version-etc.h (version_etc): Port to C89 macro rules.
1930 2020-09-27  Bruno Haible  <bruno@clisp.org>
1932         Avoid "warning: The macro `AC_DECL_SYS_SIGLIST' is obsolete".
1933         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
1934         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
1935         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check for sys_siglist
1936         ourselves; don't use AC_DECL_SYS_SIGLIST.
1938 2020-09-27  Bruno Haible  <bruno@clisp.org>
1940         Avoid "warning: The macro `_AC_COMPUTE_INT' is obsolete".
1941         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
1942         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
1943         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Use AC_COMPUTE_INT
1944         instead of _AC_COMPUTE_INT.
1946 2020-09-27  Bruno Haible  <bruno@clisp.org>
1948         Avoid "warning: The macro `AC_HEADER_STDC' is obsolete".
1949         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
1950         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
1951         Based on a patch by Paul Eggert.
1952         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Don't require AC_HEADER_STDC. Don't
1953         test STDC_HEADERS. Assume <stdlib.h> exists.
1954         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
1956 2020-09-27  Bruno Haible  <bruno@clisp.org>
1958         Enable testing of prereleases of Autoconf 2.70.
1959         Suggested by Paul Eggert in
1960         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00160.html>.
1961         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Test for Autoconf >= 2.69c, not
1962         >= 2.70.
1963         * m4/largefile.m4 (AC_SYS_LARGEFILE): Likewise.
1964         * m4/pid_t.m4 (AC_TYPE_PID_T): Likewise.
1965         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Likewise.
1967 2020-09-27  Bruno Haible  <bruno@clisp.org>
1969         Avoid "warning: The macro `AC_PROG_CC_STDC' is obsolete".
1970         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
1971         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
1972         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use AC_PROG_CC_C99 or
1973         AC_PROG_CC, depending on the Autoconf version.
1975 2020-09-27  Gavin Smith  <gavinsmith0123@gmail.com>
1977         Avoid "warning: The macro `AC_HELP_STRING' is obsolete".
1978         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Use AS_HELP_STRING instead
1979         of AC_HELP_STRING.
1980         * m4/libgcrypt.m4 (AM_PATH_LIBGCRYPT): Likewise.
1982 2020-09-27  Bruno Haible  <bruno@clisp.org>
1984         Avoid "warning: $as_echo_n is obsolete" from autoconf 2.69c.
1985         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
1986         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
1987         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): Use gl_SILENT.
1989 2020-09-27  Bruno Haible  <bruno@clisp.org>
1991         extensions: Simplify last commit.
1992         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't require
1993         AC_GNU_SOURCE ever.
1995 2020-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1997         extensions: require AC_GNU_SOURCE only for <=2.63
1998         Problem reported by Gavin Smith in:
1999         https://lists.gnu.org/r/autoconf/2020-09/msg00012.html
2000         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS):
2001         Require AC_GNU_SOURCE only for Autoconf 2.63 and earlier, since it
2002         shouldn’t be needed after that, and Autoconf 2.70 complains about
2003         it being obsolete.
2005 2020-09-26  Bruno Haible  <bruno@clisp.org>
2007         regex-tests: Make test more robust.
2008         * tests/test-regex.c (main): Make sure to revert the locale to "C" after
2009         the test in "tr_TR.UTF-8" locale. Exit if we can't revert it.
2011 2020-09-25  Paul Eggert  <eggert@cs.ucla.edu>
2013         regex-tests: fix possible Turkish false-alarm
2014         * modules/regex-tests (Depends-on): Add wctype-h.
2015         * tests/test-regex.c: Include wctype.h.
2016         (main): Check that ‘i’ uppercases to ‘İ’ in Turkish,
2017         as the Turkish regex test assumes this.
2019         regex-tests: fix test and add debug output
2020         Perhaps this will fix the recent grep test failure reported at:
2021         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/199
2022         At least, the debug output should help narrow down the failure.
2023         * tests/test-regex.c: Include stdarg.h, stdio.h.
2024         (exit_status): New var.
2025         (report_error): New function.
2026         (main): Use it to report failures to stdout instead of merely
2027         exiting with some nonzero status.  The status info alone isn’t
2028         enough to do remote debugging.  In the new tr_TR.UTF-8 test, clear
2029         regex before calling re_compile_pattern, fixing a portability bug.
2031         regex: no longer match glibc
2032         * config/srclist.txt: Comment out regex_internal.c for now.
2034 2020-09-23  Paul Eggert  <eggert@cs.ucla.edu>
2036         regex: fix ignore-case Turkish bug
2037         * lib/regex_internal.c (build_wcs_upper_buffer):
2038         Do not assume that converting single-byte character to upper
2039         yields a single-byte character.  This is not true for Turkish,
2040         where towupper (L'i') yields L'İ', which is not single-byte.
2041         * tests/test-regex.c (main): Test for this bug.
2043         regex: port to weird isascii platforms
2044         * lib/regex_internal.h (isascii) [!_LIBC]: Supply glibc version.
2046 2020-09-20  Norihiro Tanaka  <noritnk@kcn.ne.jp>
2048         dfa: make dfasupported a global function
2049         * lib/dfa.c (dfasupported): Rename, and make it global.
2050         Update caller.
2051         * lib/dfa.h (dfasupported): Add prototype.
2053 2020-09-20  Bruno Haible  <bruno@clisp.org>
2055         canonicalize: Add support for UNC file names on native Windows.
2056         Reported and initial patch by Vaclav Slavik <vaclav@slavik.io> in
2057         <https://savannah.gnu.org/bugs/?59079>.
2058         * lib/canonicalize.c (canonicalize_filename_mode): For UNC file names,
2059         extend the prefix to include the server.
2061 2020-09-20  Bruno Haible  <bruno@clisp.org>
2063         supersede: Fix test failures on native Windows.
2064         * lib/supersede.c (open_supersede): Handle non-regular files on native
2065         Windows like on Solaris.
2066         * tests/test-supersede-open.h (test_open_supersede): Use O_BINARY flag.
2068 2020-09-20  Paul Eggert  <eggert@cs.ucla.edu>
2070         test-stdalign: test Oracle Studio better
2071         * doc/posix-headers/stdalign.texi (stdalign.h):
2072         * tests/test-stdalign.c (main):
2073         Sun Studio Bug #2125432 seems to be fixed.
2075         c-stack: output diagnostic in single 'write'
2076         * lib/c-stack.c (die): In the typical case, use just one 'write'
2077         syscall to output the diagnostic, as this lessens interleaving.
2078         (die, c_stack_action): Assume C99.
2079         * modules/c-stack (Depends-on): Add c99, mempcpy.
2081         c-stack: improve checking if !libsigsegv
2082         If SIGINFO_WORKS, do not treat a null pointer dereference as if it
2083         were a stack overflow.  Use uintptr_t and INT_ADD_WRAPV to avoid
2084         unlikely pointer overflow.  Also, fix some obsolete code and typos.
2085         I found these problems while looking into this bug report:
2086         https://lists.gnu.org/r/grep-devel/2020-09/msg00053.html
2087         * lib/c-stack.c: Include c-stack.h first, to test interface.
2088         Include inttypes.h for UINTPTR_MAX, stdbool.h, stddef.h for
2089         max_align_t, intprops.h for INT_ADD_WRAPV.
2090         (USE_LIBSIGSEGV): New macro; use it to simplify later code.
2091         (SIGSTKSZ): Simplify setup.  Work around libsigsegv bug only
2092         for libsigsegv 2.8 and earlier since the bug should be fixed
2093         after that.
2094         (alternate_signal_stack): Use max_align_t instead of doing it by hand.
2095         (segv_handler, overflow_handler, segv_handler) [DEBUG]:
2096         Assume sprintf returns byte count; this assumption is safe now.
2097         (page_size): New static volatile variable, since sysconf isn’t
2098         documented to be async-signal-safe on Solaris.  This variable is
2099         present and used if (!USE_LIBSIGSEGV && HAVE_SIGALTSTACK &&
2100         HAVE_DECL_SIGALTSTACK && HAVE_STACK_OVERFLOW_HANDLING &&
2101         SIGINFO_WORKS).
2102         (segv_handler): Use it if present.  Never report null pointer
2103         dereference as a stack overflow.  Check for (unlikely) unsigned
2104         and/or pointer overflow.
2105         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
2106         Rename cache variables to gl_cv_sys_stack_overflow_works
2107         and gl_cv_sys_xsi_stack_overflow_heuristic.
2108         All uses changed.
2109         (gl_PREREQ_C_STACK): Do not require AC_FUNC_ALLOCA, since
2110         c-stack no longer uses STACK_DIRECTION.
2111         Do not check for unistd.h, since we depend on unistd.
2112         Fix shell typo ‘$"ac_cv_sys_xsi_stack_overflow_heuristic"’.
2113         * modules/c-stack (Depends-on): Sort.  Add intprops, inttypes,
2114         stdbool, stddef.
2116 2020-09-20  Bruno Haible  <bruno@clisp.org>
2118         Revert now-unnecessary override of config.guess on Alpine Linux 3.10.
2119         * m4/musl.m4: Revert 2020-09-19 patch.
2120         * m4/setlocale_null.m4: Likewise.
2121         * modules/setlocale-null: Likewise.
2123 2020-09-19  Ben Pfaff  <blp@cs.stanford.edu>
2124             Bruno Haible  <bruno@clisp.org>
2126         relocatable-prog: Fix for multiple relocatable library directories.
2127         * build-aux/reloc-ldflags: Fix handling of multiple relocatable library
2128         directories.  Each one needs its own -Wl,-rpath,$dir option, instead of
2129         being attached to a single one.
2131 2020-09-19  Jim Meyering  <meyering@fb.com>
2133         test-verify.c: avoid -Wshadow warnings
2134         * tests/test-verify.c (gx): Rename global from "x". Adjust use.
2135         (enum): Capitalize member names. Adjust uses.
2137 2020-09-19  Bruno Haible  <bruno@clisp.org>
2139         havelib: Avoid linking with libc.a on GNU systems.
2140         Reported by Bruce Dubbs <bruce.dubbs@gmail.com> in
2141         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00052.html>.
2142         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When processing the
2143         dependency_libs value of a .la file, ignore '-lc' options on GNU
2144         systems.
2146 2020-09-19  Bruno Haible  <bruno@clisp.org>
2148         Fix recognition of musl libc on Alpine Linux 3.10.
2149         Reported by Jeffrey Walton <noloader@gmail.com> in
2150         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00020.html>.
2151         * m4/musl.m4 (gl_MUSL_CANONICAL_HOST): New macro.
2152         (gl_MUSL_LIBC): Require it.
2153         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Likewise.
2154         * modules/setlocale-null (Files): Add m4/musl.m4.
2156 2020-09-19  Bruno Haible  <bruno@clisp.org>
2158         nl_langinfo: Make multithread-safe on Solaris 10 and Solaris 11.3.
2159         Reported for Solaris 10 by Dagobert Michelsen via Paul Eggert in
2160         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00023.html>
2161         and for Solaris 11.3 by Jeffrey Walton <noloader@gmail.com> in
2162         <https://lists.gnu.org/archive/html/bug-grep/2020-06/msg00013.html>.
2163         * lib/nl_langinfo-lock.c: New file, based on lib/setlocale_null-lock.c.
2164         * lib/nl_langinfo.c: Include <stdlib.h> and <windows.h> or <pthread.h>
2165         or <threads.h>.
2166         (ITEMS, MAX_RESULT_LEN): New macros.
2167         (nl_langinfo_unlocked): New function.
2168         (gl_get_nl_langinfo_lock): New declaration.
2169         (nl_langinfo_with_lock): New function, based on lib/setlocale_null.c.
2170         (rpl_nl_langinfo): Use nl_langinfo_with_lock instead of nl_langinfo.
2171         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require gl_PTHREADLIB. Define
2172         HAVE_THREADS_H. Set NL_LANGINFO_MTSAFE. If setting it to 0, also set
2173         REPLACE_NL_LANGINFO.
2174         (gl_PREREQ_NL_LANGINFO_LOCK): New macro.
2175         * modules/nl_langinfo (Files): Add lib/nl_langinfo-lock.c,
2176         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
2177         (configure.ac): Compile nl_langinfo-lock.c when NL_LANGINFO_MTSAFE is 0.
2178         * doc/posix-functions/nl_langinfo.texi: Mention the Solaris bug.
2180 2020-09-18  Bruno Haible  <bruno@clisp.org>
2182         fsusage, getaddrinfo: Produce more regular configure output.
2183         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove AC_MSG_CHECKING without
2184         corresponding AC_MSG_RESULT.
2185         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
2187 2020-09-18  Bruno Haible  <bruno@clisp.org>
2189         Add back gl_SILENT.
2190         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): New macros.
2192 2020-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2194         c-stack-tests: fix -fsanitize=undefined false alarm
2195         * tests/test-c-stack2.sh: Skip the test-harness self-test
2196         if ‘gcc -fsanitize=undefined’ is in use.
2198 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
2200         signalblocking: simplify and remove gl_SILENT
2201         gl_SILENT was problematic because if a trap was sprung, stderr
2202         generated during the trap was lost.  Avoid the problem by
2203         removing the need for gl_SILENT.
2204         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): Remove.
2205         * m4/signalblocking.m4 (gl_SIGNALBLOCKING):
2206         Simplify, avoiding the need for gl_SILENT while preserving the
2207         ability of the user to override the value of the cache variable,
2208         now ac_cv_func_sigprocmask.
2210 2020-09-17  Bruno Haible  <bruno@clisp.org>
2212         sigprocmask: Fix configuration failure on Solaris 10 (regr. 2020-07-25).
2213         * m4/gnulib-common.m4 (GL_TMP_FD): New macro.
2214         (gl_SILENT): Use 'exec', not a compound statement, to redirect
2215         AS_MESSAGE_FD.
2217 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
2219         intprops, xalloc: avoid __builtin_mul_overflow_p with Clang
2220         Problem reported by Nelson H. F. Beebe for clang 9.0.1 in:
2221         https://lists.gnu.org/r/grep-devel/2020-09/msg00028.html
2222         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P) [__clang__]:
2223         Define to 0.
2224         * lib/xalloc-oversized.h (xalloc_oversized) [__clang__]:
2225         Do not use __builtin_mul_overflow_p.
2227         libc-config: port __THROW to Ubuntu 4
2228         * lib/cdefs.h (__THROW): Do not use __attribute__ ((__nothrow__))
2229         for GCC 3.3.  Problem reported by Jeffrey Walton in:
2230         https://lists.gnu.org/r/bug-gnulib/2019-07/msg00058.html
2231         The GCC 3.3.4 documentation says the attribute should work, but
2232         apparently it does not work on Ubuntu 4’s GCC 3.3.  There seems
2233         little point or desire to research this circa-2004 platform further,
2234         so just avoid the attribute there.
2236 2020-09-17  Jim Meyering  <meyering@fb.com>
2238         test-dfa-match.sh: port timeout work-around to newer Busybox
2239         * tests/test-dfa-match.sh: Update timeout -t portability test to
2240         accommodate Busybox 1.30.0 and newer.
2242 2020-09-16  Paul Eggert  <eggert@cs.ucla.edu>
2244         fnmatch: adjust to match glibc fix
2245         This fixes handling of collating symbols in fnmatch (glibc bug 26620).
2246         This does not affect Gnulib; it merely keeps Gnulib and glibc
2247         closer together, to help with any eventual merge, by incorporating
2248         a recent glibc patch.  The patch and the following commentary is
2249         by Andreas Schwab.
2250         * lib/fnmatch_loop.c (FCT) [WIDE_CHAR_VERSION]: The variable idx
2251         contains the index into the extra array, whereas wextra points
2252         into the extra array at this index, containing the length of the
2253         following collating sequence in the wide character representation.
2255 2020-09-16  Bruno Haible  <bruno@clisp.org>
2257         stat, fstat: Fix compilation error with old mingw headers.
2258         Reported by Eli Zaretskii <eliz@gnu.org> in
2259         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
2260         * lib/stat-w32.c (VOLUME_NAME_NONE): Define if the Windows headers don't
2261         define it.
2263 2020-09-16  Bruno Haible  <bruno@clisp.org>
2265         stat, fstat: Fix when compiling for versions older than Windows Vista.
2266         Reported by Eli Zaretskii <eliz@gnu.org> in
2267         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
2268         * lib/stat-w32.c: Include <sdkddkver.h>. Test the value of _WIN32_WINNT
2269         that was originally set before we redefined it.
2270         * m4/stat.m4 (gl_PREREQ_STAT_W32): New macro.
2271         (gl_PREREQ_STAT): Require it.
2272         * m4/fstat.m4 (gl_PREREQ_FSTAT): Likewise.
2274 2020-09-15  Paul Eggert  <eggert@cs.ucla.edu>
2276         dfa: remove dfa-heap-overrun workaround
2277         * lib/dfa.c (reorder_tokens): Go back to a single pass that
2278         both sets map[*] and does other things.  This reverts
2279         2020-09-14T01:20:01Z!eggert@cs.ucla.edu, which is no longer
2280         neeeded now that 2020-09-14T13:21:05Z!noritnk@kcn.ne.jp
2281         fixed the underlying problem.
2283 2020-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2285         dfa: avoid use of uninitialized constraint
2286         * lib/dfa.c (merge_nfa_state): Do not initialize the constraint
2287         to zero here.
2288         (dfaoptimize): Do it here instead, via xcalloc.  This prevents the
2289         use of an uninitialized constraint by later code when ! (flags[i]
2290         & OPT_QUEUED) means merge_nfa_state was not called to initialize
2291         the constraint.  Problem found by running 'valgrind src/grep -E
2292         '(^| )*(a|b)*(c|d)*( |$)' < /dev/null' on Ubuntu 18.04.5 x86-64.
2294         dfa: assume C99 in reorder_tokens
2295         * lib/dfa.c (reorder_tokens): Assume C99 and simplify.
2297         dfa: fix dfa-heap-overrun failure
2298         * lib/dfa.c (reorder_tokens): When setting
2299         map[d->follows[i].elems[j].index], instead of incorrectly assuming
2300         that (i < d->follows[i].elems[j].index), use two loops, one to set
2301         the map array and the other to use it.  The incorrect assumption
2302         caused some elements to be missed, and this in turn caused grep's
2303         dfa-heap-overrun test to fail on Solaris 10 sparc when compiled
2304         with GCC.  I found this bug while investigating
2305         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/183
2306         and I think the bug also occurs on GNU/Linux but with more-subtle
2307         symptoms.  The bug predates the recent dfa.c changes; perhaps the
2308         recent changes make the bug more likely.
2310 2020-09-13  Bruno Haible  <bruno@clisp.org>
2312         parse-datetime: Make the build rule work with parallel 'make'.
2313         Reported by Daiki Ueno <ueno@gnu.org> in
2314         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00036.html>.
2315         * modules/parse-datetime (Makefile.am): Use a phony target and the
2316         general idiom for rules that produce multiple files.
2318 2020-09-13  Ben Pfaff  <blp@cs.stanford.edu>
2320         getpass: Check for nonnull prompt argument while avoiding warnings.
2321         * lib/getpass.c (_GL_ARG_NONNULL): Define to empty.
2322         (getpass) [!_WIN32]: Print prompt only if nonnull.
2324 2020-09-12  Paul Eggert  <eggert@cs.ucla.edu>
2326         dfa: epsilon-closure tweaks (Bug#40634)
2327         Rename BACKWORD to BACKWARD consistently.
2328         * lib/dfa.c (struct dfa): Reorder members to reduce fragmentation.
2329         (addtok_mb): Redo slightly to make it act more like a state machine.
2330         Check depth only when it increases.
2331         (epsclosure): Let the switch test the tokens.
2332         (dfaanalyze): Cache tindex.  Simplify position loops.
2333         Prefer xcalloc to xnmalloc + explicit zeroing.  Free BACKWARD
2334         only if it is not null, since we're testing that anyway.
2335         (dfaanalyze, build_state): Use merge2 instead of doing it by hand.
2337 2020-09-12  Norihiro Tanaka  <noritnk@kcn.ne.jp>
2339         dfa: use backward set in removal of epsilon closure
2340         When removing in epsilon closure, the code searched all nodes
2341         sequentially, and this was slow for some cases.  Build a backward
2342         set before search, and only check previous position with the set.
2343         Problem reported in <https://bugs.gnu.org/40634>.
2344         * lib/dfa.c (struct dfa): New member 'epsilon'.
2345         (addtok_mb): Check whether a pattern has epsilon node or not.
2346         (epsclosure): New arg BACKWORD; caller changed.  When removing
2347         epsilon node and reconnecting, check only previous positions.
2348         Treat BEG as if it were character.
2349         (dfaanalyze): Build backward set.
2351 2020-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2353         canonicalize: fix pointer indexing bugs
2354         Problem reported by Florian Weimer in:
2355         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00025.html
2356         * lib/canonicalize-lgpl.c (__realpath):
2357         * lib/canonicalize.c (canonicalize_filename_mode):
2358         Do not generate a pointer past the end of the array.
2359         * lib/canonicalize.c (canonicalize_filename_mode):
2360         Do not use a pointer after passing it to realloc.
2362 2020-09-09  Paul Eggert  <eggert@cs.ucla.edu>
2364         tempname: help merge with glibc
2365         Inspired by draft patches by Adhemerval Zanella in:
2366         https://sourceware.org/pipermail/libc-alpha/2020-September/117501.html
2367         https://sourceware.org/pipermail/libc-alpha/2020-September/117502.html
2368         * lib/tempname.c: Include stdalign.h, time.h.
2369         If _LIBC, do not include random-bits.h.
2370         (__getrandom, __clock_gettime64, __timespec64) [!_LIBC]: New macros.
2371         (RANDOM_BITS): Remove, replacing with ...
2372         (random_bits): ... this new static function.  All uses changed.
2373         Add entropy each time if getrandom is not supported.
2374         (RANDOM_VALUE, BASE_62_DIGITS, BASE_62_POWER):
2375         Assume 64-bit support a la C99.
2376         (try_tempname_len): Take advantage of ASLR when initializing
2377         random value.
2378         * modules/tempname (Depends-on): Add clock-time, stdalign, time.
2380         getcwd: merge recent glibc changes
2381         * lib/getcwd.c (GETCWD_RETURN_TYPE) [!_LIBC]: New macro.
2382         (__getcwd, getcwd) [_LIBC && !GETCWD_RETURN_TYPE]: Add aliases.
2384 2020-09-06  Bruno Haible  <bruno@clisp.org>
2386         attribute: Clarify which file to include.
2387         * modules/attribute (Include): Add "attribute.h".
2389 2020-09-06  Bruno Haible  <bruno@clisp.org>
2391         pipe-filter-ii, pipe-filter-gi: Fix warnings on native Windows.
2392         * lib/pipe-filter-ii.c: Include <process.h>.
2393         * lib/pipe-filter-gi.c: Likewise.
2395 2020-09-05  Paul Eggert  <eggert@cs.ucla.edu>
2397         verify: avoid __builtin_assume
2398         Our latest attempt to use Clang’s __builtin_assume caused a crash
2399         in GNU Emacs that we spent quite some time tracking down as being
2400         caused by the switch to __builtin_assume.  It’s not known whether
2401         the crash is due is a Clang bug or a portability bug in GNU Emacs.
2402         For now, play it safe and avoid __builtin_assume.
2403         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): Remove.
2404         (assume): Simplify by not trying to use Clang’s __builtin_assume.
2406 2020-09-05  Bruno Haible  <bruno@clisp.org>
2408         Fix several "warning: no previous prototype for function".
2409         * modules/unicase/locale-language (Makefile.am): Add a 'static' keyword
2410         in front of the declaration of the lookup function in
2411         unicase/locale-languages.h.
2412         * modules/unictype/bidiclass-byname (Makefile.am): Likewise in
2413         unictype/bidi_byname.h.
2414         * modules/unictype/category-byname (Makefile.am): Likewise in
2415         unictype/categ_byname.h.
2416         * modules/unictype/combining-class-byname (Makefile.am): Likewise in
2417         unictype/combiningclass_byname.h.
2418         * modules/unictype/joininggroup-byname (Makefile.am): Likewise in
2419         unictype/joininggroup_byname.h.
2420         * modules/unictype/joiningtype-byname (Makefile.am): Likewise in
2421         unictype/joiningtype_byname.h.
2422         * modules/unictype/property-byname (Makefile.am): Likewise in
2423         unictype/pr_byname.h.
2424         * modules/unictype/scripts (Makefile.am): Likewise in
2425         unictype/scripts_byname.h.
2426         * modules/uninorm/composition (Makefile.am): Likewise in
2427         uninorm/composition-table.h.
2429 2020-09-05  Bruno Haible  <bruno@clisp.org>
2431         select: Fix "warning: no previous prototype for function".
2432         * lib/select.c: Include <sys/select.h>.
2434 2020-09-05  Bruno Haible  <bruno@clisp.org>
2436         Use module 'c99' when needed for variadic macros with '...' syntax.
2437         * modules/crypto/sm3 (Depends-on): Add c99.
2439 2020-09-05  Bruno Haible  <bruno@clisp.org>
2441         Use module 'c99' when needed for subobject initializer syntax.
2442         * modules/tempname (Depends-on): Add c99.
2443         * modules/nstrftime-tests (Depends-on): Likewise.
2445 2020-09-05  Bruno Haible  <bruno@clisp.org>
2447         Use module 'c99' when needed for declaration-after-statement syntax.
2448         * modules/backup-rename (Depends-on): Add c99.
2449         * modules/backupfile (Depends-on): Likewise.
2450         * modules/bitset-tests (Depends-on): Likewise.
2451         * modules/bitsetv (Depends-on): Likewise.
2452         * modules/c-strtod (Depends-on): Likewise.
2453         * modules/c-strtold (Depends-on): Likewise.
2454         * modules/clean-temp (Depends-on): Likewise.
2455         * modules/copy-file (Depends-on): Likewise.
2456         * modules/crypto/hmac-md5-tests (Depends-on): Likewise.
2457         * modules/crypto/hmac-sha1-tests (Depends-on): Likewise.
2458         * modules/crypto/hmac-sha256-tests (Depends-on): Likewise.
2459         * modules/crypto/hmac-sha512-tests (Depends-on): Likewise.
2460         * modules/crypto/md5-buffer (Depends-on): Likewise.
2461         * modules/crypto/md5-tests (Depends-on): Likewise.
2462         * modules/crypto/sha1-buffer (Depends-on): Likewise.
2463         * modules/crypto/sha1-tests (Depends-on): Likewise.
2464         * modules/crypto/sha256-buffer (Depends-on): Likewise.
2465         * modules/crypto/sha256-tests (Depends-on): Likewise.
2466         * modules/crypto/sha512-buffer (Depends-on): Likewise.
2467         * modules/crypto/sha512-tests (Depends-on): Likewise.
2468         * modules/diffseq (Depends-on): Likewise.
2469         * modules/fatal-signal (Depends-on): Likewise.
2470         * modules/fchmodat (Depends-on): Likewise.
2471         * modules/fstrcmp (Depends-on): Likewise.
2472         * modules/fsusage (Depends-on): Likewise.
2473         * modules/fts (Depends-on): Likewise.
2474         * modules/fts-tests (Depends-on): Likewise.
2475         * modules/getumask (Depends-on): Likewise.
2476         * modules/git-merge-changelog (Depends-on): Likewise.
2477         * modules/hash-map (Depends-on): Likewise.
2478         * modules/hash-set (Depends-on): Likewise.
2479         * modules/lchmod (Depends-on): Likewise.
2480         * modules/libgmp-tests (Depends-on): Likewise.
2481         * modules/libtextstyle-optional-tests (Depends-on): Likewise.
2482         * modules/linkedhash-map (Depends-on): Likewise.
2483         * modules/linkedhash-set (Depends-on): Likewise.
2484         * modules/long-options (Depends-on): Likewise.
2485         * modules/mbrtoc32 (Depends-on): Likewise.
2486         * modules/memchr2-tests (Depends-on): Likewise.
2487         * modules/memmem-tests (Depends-on): Likewise.
2488         * modules/memrchr-tests (Depends-on): Likewise.
2489         * modules/mktime-internal (Depends-on): Likewise.
2490         * modules/nstrftime (Depends-on): Likewise.
2491         * modules/opendirat (Depends-on): Likewise.
2492         * modules/parse-datetime (Depends-on): Likewise.
2493         * modules/quotearg-simple-tests (Depends-on): Likewise.
2494         * modules/same (Depends-on): Likewise.
2495         * modules/supersede (Depends-on): Likewise.
2496         * modules/supersede-tests (Depends-on): Likewise.
2497         * modules/time_rz (Depends-on): Likewise.
2498         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
2499         * modules/unistr/u32-chr-tests (Depends-on): Likewise.
2500         * modules/unistr/u8-chr-tests (Depends-on): Likewise.
2501         * modules/xalloc (Depends-on): Likewise.
2502         * modules/xnanosleep (Depends-on): Likewise.
2504 2020-09-05  Bruno Haible  <bruno@clisp.org>
2506         Fix "warning: array initialized from parenthesized string constant".
2507         * tests/test-memmem.c (main): Remove parentheses around string constant.
2508         * tests/test-c-strcasestr.c (main): Likewise.
2509         * tests/test-strcasestr.c (main): Likewise.
2511 2020-09-05  Bruno Haible  <bruno@clisp.org>
2513         argmatch tests: Fix ISO C compliance warning.
2514         * tests/test-argmatch.c: Omit semicolon after ARGMATCH_DEFINE_GROUP
2515         invocation.
2517 2020-09-05  Bruno Haible  <bruno@clisp.org>
2519         uniname/uniname: Fix -Wshadow warning.
2520         * lib/uniname/uniname.c (unicode_name_word): Don't declare i upfront.
2521         * modules/uniname/uniname (Depends-on): Add c99.
2523 2020-09-05  Bruno Haible  <bruno@clisp.org>
2525         uniname/uniname: Fix -Wshorten-64-to-32 warnings.
2526         * lib/uniname/uniname.c (unicode_name_word_lookup): Change type of last
2527         argument to size_t.
2528         (unicode_name_character): Change type of len, n1, n2, n3, words_length,
2529         n to size_t.
2531 2020-09-05  Bruno Haible  <bruno@clisp.org>
2533         unistr/u{8,16,32}-uctomb: Avoid possible trouble with huge strings.
2534         * lib/unistr.in.h (u8_uctomb_aux, u8_uctomb, u16_uctomb_aux, u16_uctomb,
2535         u32_uctomb): Change type of last argument to ptrdiff_t.
2536         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
2537         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
2538         * lib/unistr/u16-uctomb.c (u16_uctomb): Likewise.
2539         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise.
2540         * lib/unistr/u32-uctomb.c (u32_uctomb): Likewise.
2542 2020-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2544         manywarnings: remove -Wchkp and -Wabi from C++ too
2545         Suggested by Reuben Thomas in:
2546         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00001.html
2547         At some point somebody should merge the many other manywarnings-c.m4
2548         changes into manywarnings-c++.m4 too, e.g.,
2549         2020-07-02T00:00:51Z!eggert@cs.ucla.edu.
2550         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
2551         Remove -Wchkp, -Wabi.
2553 2020-08-30  Bruno Haible  <bruno@clisp.org>
2555         strerrorname_np: Add tests.
2556         * tests/test-strerrorname_np.c: New file.
2557         * modules/strerrorname_np-tests: New file.
2559         strerrorname_np: New module.
2560         * lib/string.in.h (strerrorname_np): New declaration.
2561         * lib/strerrorname_np.c: New file.
2562         * m4/strerrorname_np.m4: New file.
2563         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether strerrorname_np
2564         is declared.
2565         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERRORNAME_NP,
2566         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
2567         * modules/string (Makefile.am): Substitute GNULIB_STRERRORNAME_NP,
2568         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
2569         * modules/strerrorname_np: New file.
2570         * tests/test-string-c++.cc: Verify the signature of strerrorname_np.
2571         * doc/glibc-functions/strerrorname_np.texi: Mention the new module and
2572         the glibc 2.32 bug.
2574 2020-08-27  Paul Eggert  <eggert@cs.ucla.edu>
2576         perror, strerror_r: remove unportable tests
2577         Problem reported by Florian Weimer in:
2578         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html
2579         * tests/test-perror2.c (main):
2580         * tests/test-strerror_r.c (main): Omit unportable tests.
2582 2020-08-26  Bruno Haible  <bruno@clisp.org>
2584         stdint, wchar, wctype-h: Change configure message.
2585         * m4/wint_t.m4 (gt_TYPE_WINT_T): Say "checking whether wint_t is large
2586         enough..." instead of "checking whether wint_t is too small...".
2588 2020-08-26  Bruno Haible  <bruno@clisp.org>
2590         time_rz: Change configure message.
2591         * m4/time_rz.m4 (gl_TIME_RZ): Say "checking whether localtime works even
2592         near extrema..." instead of "checking whether localtime loops forever
2593         near extrema...".
2595 2020-08-26  Bruno Haible  <bruno@clisp.org>
2597         stdint: Change configure message.
2598         * m4/stdint.m4 (gl_STDINT_H): Say "checking whether stdint.h works
2599         without ISO C predefines..." instead of "checking whether stdint.h
2600         predates C++11...".
2602 2020-08-26  Bruno Haible  <bruno@clisp.org>
2604         socketlib: Change configure message.
2605         * m4/socketlib.m4 (gl_SOCKETLIB): Say "checking for WSAStartup..."
2606         instead of "checking if we need to call WSAStartup in winsock2.h and
2607         -lws2_32...".
2609 2020-08-26  Bruno Haible  <bruno@clisp.org>
2611         include_next: Change configure message.
2612         * m4/include_next.m4 (gl_INCLUDE_NEXT): Say "checking whether source
2613         code line length is unlimited..." instead of "checking whether system
2614         header files limit the line length...".
2616 2020-08-26  Bruno Haible  <bruno@clisp.org>
2618         getcwd: Change configure message.
2619         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Say "checking
2620         whether getcwd succeeds when 4k < cwd_length < 16k..." instead of
2621         "checking whether getcwd aborts when 4k < cwd_length < 16k...".
2623 2020-08-26  Bruno Haible  <bruno@clisp.org>
2625         chdir-long: Change configure message.
2626         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Say "checking whether this
2627         system supports file names of any length..." instead of "checking
2628         whether this system has an arbitrary file name length limit...".
2629         Set gl_cv_have_unlimited_file_name_length instead of
2630         gl_cv_have_arbitrary_file_name_length_limit.
2631         * modules/chdir-long (Depends-on, configure.ac): Update accordingly.
2633 2020-08-26  Bruno Haible  <bruno@clisp.org>
2635         ceill: Change configure message.
2636         * m4/ceill.m4 (gl_FUNC_CEILL): Say "checking whether ceill() works..."
2637         instead of "checking whether ceill() breaks with small values...".
2639 2020-08-26  Bruno Haible  <bruno@clisp.org>
2641         iconv: Change configure message.
2642         * m4/iconv.m4 (AM_ICONV): Say "checking whether iconv is compatible
2643         with its POSIX signature..." instead of "checking for iconv
2644         declaration...". Remove K&R C support.
2646 2020-08-26  Paul Eggert  <eggert@cs.ucla.edu>
2648         getcwd: help the merge back into glibc
2649         This patch was inspired by Adhemerval Zanella’s proposed glibc patches:
2650         https://sourceware.org/pipermail/libc-alpha/2020-August/117294.html
2651         The idea is to make it easier for Gnulib lib/getcwd.c to match
2652         glibc io/getcwd-generic.c.
2653         * lib/getcwd.c [_LIBC]: Do not include pathmax.h.
2654         Include not-cancel.h.
2655         (HAVE_OPENAT, D_INO_IN_DIRENT, HAVE_MSVC_INVALID_PARAMETER_HANDLER)
2656         (HAVE_MINIMALLY_WORKING_GETCWD): Define for the _LIBC case.
2657         (__getcwd, __lstat, __readdir) [!_LIBC]: Remove these macros.
2658         (__close_nocancel_nostatus, __getcwd_generic, stat64, __fstat64)
2659         (__fstatat64, __lstat64, __readdir64, __fdopendir, __openat)
2660         (__rewinddir, __openat64, dirent64) [_LIBC]: New macros.
2661         (__getcwd_generic): Rename from __getcwd.
2662         Use the abovementioned macros for consistency with glibc.
2663         (weak_alias): Remove.
2665 2020-08-25  Bruno Haible  <bruno@clisp.org>
2667         verify: Avoid warnings when assume(0) is used.
2668         Reported by Mattias Engdegård <mattiase@acm.org> via Paul Eggert in
2669         <https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00838.html>.
2670         * lib/verify.h (assume): Use __builtin_unreachable if the argument is
2671         the constant 0.
2672         * tests/test-verify.c (f): New function.
2673         (state): New type.
2674         (test_assume_expressions, test_assume_optimization,
2675         test_assume_noreturn): New functions.
2677 2020-08-25  Bruno Haible  <bruno@clisp.org>
2679         fstrcmp: Clarification regarding NOTE_ORDERED.
2680         * lib/fstrcmp.c (NOTE_ORDERED): Define to false.
2682 2020-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2684         diffseq: new option NOTE_ORDERED
2685         Problem reported by Phil Sainty <https://bugs.gnu.org/42931>.
2686         * NEWS: Mention this.
2687         * lib/diffseq.h (NOTE_ORDERED): New macro.
2688         (IF_LINT2): Remove; no longer needed.
2689         (compareseq): If (!NOTE_ORDERED), recurse on the smaller
2690         subproblem and iterate to do the larger.
2692 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2694         sys_types: let Autoconf 2.70 do pid_t
2695         * m4/pid_t.m4 (AC_TYPE_PID_T): Redefine this Autoconf macro
2696         only for Autoconf versions 2.69 and earlier, since 2.70
2697         will be fixed.
2699 2020-08-23  Bruno Haible  <bruno@clisp.org>
2701         tests: Don't assume that pid_t fits in an 'int'.
2702         * tests/test-nonblocking-pipe-main.c (main): Use type 'pid_t' instead
2703         of 'int'.
2704         * tests/test-nonblocking-socket-main.c (main): Likewise.
2706         sys_types: Fix definition of pid_t on 64-bit MSVC.
2707         * m4/pid_t.m4: New file.
2708         * modules/sys_types (Files): Add it.
2709         * modules/dirent (Files): Likewise.
2710         * modules/fcntl-h (Files): Likewise.
2711         * modules/sched (Files): Likewise.
2712         * modules/signal-h (Files): Likewise.
2713         * modules/spawn (Files): Likewise.
2714         * modules/sys_stat (Files): Likewise.
2715         * modules/sys_wait (Files): Likewise.
2716         * modules/termios (Files): Likewise.
2717         * modules/unistd (Files): Likewise.
2719 2020-08-23  Bruno Haible  <bruno@clisp.org>
2721         inttypes: Fix {PRI,SCN}*PTR on 32-bit native Windows (regr. 2020-07-21).
2722         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Fix syntax error in test
2723         program.
2725 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2727         intprops: be consistent about +X vs X+0
2728         * lib/intprops.h (_GL_SIGNED_INT_MAXIMUM): Simplify.
2730         intprops: fix INT_MULTIPLY_WRAPV bit-field bug
2731         The bug occurs when using INT_MULTIPLY_WRAPV (a, b, c) where B
2732         is a bit-field, on older GCC or non-GCC compilers where we do
2733         things ourselves instead of using __builtin_mul_overflow.
2734         Without this fix, INT_MULTIPLY_WRAPV would not compile, due
2735         to applying sizeof to a bit-field.
2736         * lib/intprops.h (_GL_INT_MULTIPLY_RANGE_OVERFLOW):
2737         Promote B before giving it to TYPE_WIDTH, in case B is a bit-field.
2739 2020-08-23  Bruno Haible  <bruno@clisp.org>
2741         supersede: Avoid a failure when writing to /dev/null in Solaris zones.
2742         Reported by Jörg Sonnenberger <joerg@netbsd.org>
2743         via Thomas Klausner <tk@giga.or.at> in
2744         <https://pkgsrc.se/files.php?messageId=20200812233110.30230FB28@cvs.NetBSD.org>.
2745         * lib/supersede.c (open_supersede): When opening an existing non-regular
2746         file on Solaris, use O_CREAT although it should not be necessary.
2748 2020-08-23  Bruno Haible  <bruno@clisp.org>
2750         verify: Make assume work on bit field expressions (regr. 2020-08-22).
2751         Reported by Benno Schulenberg <bensberg@telfort.nl> in
2752         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00202.html>.
2753         * lib/verify.h (assume): Use '_Bool' or 'bool' as type of the temporary
2754         variable.
2756 2020-08-23  Bruno Haible  <bruno@clisp.org>
2758         libc-config: Improve comments.
2759         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Explain why we
2760         cannot use clang's __diagnose_if__ here.
2762 2020-08-22  Bruno Haible  <bruno@clisp.org>
2764         verify: Do use __builtin_assume on clang.
2765         * lib/verify.h (assume): Use clang’s __builtin_assume, with a temporary
2766         variable in a statement expression.
2768 2020-08-22  Bruno Haible  <bruno@clisp.org>
2770         sig2str: Add more signals.
2771         * lib/sig2str.c (numname_table): Add SIGCPUFAIL, SIGTHR, SIGBREAK.
2773 2020-08-22  Bruno Haible  <bruno@clisp.org>
2775         doc: Update for OpenBSD 6.0, 6.7.
2776         * doc/*/*.texi: Update.
2777         * m4/printf.m4: Update comments and cross-compilation guesses.
2778         * m4/ceill.m4: Update comments.
2779         * m4/getcwd-abort-bug.m4: Likewise.
2780         * m4/ilogb.m4: Likewise.
2781         * m4/ilogbf.m4: Likewise.
2782         * m4/langinfo_h.m4: Likewise.
2783         * m4/modf.m4: Likewise.
2784         * m4/modff.m4: Likewise.
2786 2020-08-22  Bruno Haible  <bruno@clisp.org>
2788         doc: Mention sig2str module.
2789         * doc/glibc-functions/sigabbrev_np.texi: Mention the sig2str module.
2791 2020-08-21  Bruno Haible  <bruno@clisp.org>
2793         sigdescr_np: Add tests.
2794         * tests/test-sigdescr_np.c: New file.
2795         * modules/sigdescr_np-tests: New file.
2797         sigdescr_np: New module.
2798         * lib/string.in.h (sigdescr_np): New declaration.
2799         * lib/sigdescr_np.c: New file.
2800         * m4/sigdescr_np.m4: New file.
2801         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigdescr_np is
2802         declared.
2803         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGDESCR_NP,
2804         HAVE_SIGDESCR_NP.
2805         * modules/string (Makefile.am): Substitute GNULIB_SIGDESCR_NP,
2806         HAVE_SIGDESCR_NP.
2807         * modules/sigdescr_np: New file.
2808         * tests/test-string-c++.cc: Verify the signature of sigdescr_np.
2809         * doc/glibc-functions/sigdescr_np.texi: Mention the new module.
2811 2020-08-20  Bruno Haible  <bruno@clisp.org>
2813         sigabbrev_np: Add tests.
2814         * tests/test-sigabbrev_np.c: New file.
2815         * modules/sigabbrev_np-tests: New file.
2817         sigabbrev_np: New module.
2818         * lib/string.in.h (sigabbrev_np): New declaration.
2819         * lib/sigabbrev_np.c: New file.
2820         * m4/sigabbrev_np.m4: New file.
2821         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigabbrev_np is
2822         declared.
2823         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGABBREV_NP,
2824         HAVE_SIGABBREV_NP.
2825         * modules/string (Makefile.am): Substitute GNULIB_SIGABBREV_NP,
2826         HAVE_SIGABBREV_NP.
2827         * modules/sigabbrev_np: New file.
2828         * tests/test-string-c++.cc: Verify the signature of sigabbrev_np.
2829         * doc/glibc-functions/sigabbrev_np.texi: Mention the new module.
2831 2020-08-20  Bruno Haible  <bruno@clisp.org>
2833         stdalign tests: Skip test with AIX xlclang.
2834         * tests/test-stdalign.c (main): Skip alignas tests with AIX xlclang.
2836 2020-08-20  Bruno Haible  <bruno@clisp.org>
2838         stdalign: Fix test failures on 32-bit platforms with clang versions < 8.
2839         * lib/stdalign.in.h (_Alignof): For clang versions < 8, use the same
2840         workaround as for GCC versions < 4.9.
2842 2020-08-20  Siddhesh Poyarekar  <siddhesh@gotplt.org>
2844         Sync up ProjectQuirks comments and documentation
2845         Transform the ProjectQuirks comments into a docstring so that it can
2846         be accessed from python as ProjectQuirks.__doc__ and harmonize
2847         descriptions with the documentation.
2848         * build-aux/vcstocl/projectquirks.py (ProjectQuirks):
2849         Transform comments into a docstring.
2850         * doc/vcs-to-changelog.texi: Sync up description with comments.
2852         Split ProjectQuirks out into its own file
2853         ProjectQuirks is used by external quirks files and importing it from
2854         vcs-to-changelog.py is broken since it was renamed to use hyphens.  It
2855         is cleaner to put it in its own file anyway.
2856         * build-aux/vcstocl/projectquirks.py: A new file...
2857         * build-aux/vcs-to-changelog.py (ProjectQuirks): ...to which
2858         we move ProjectQuirks and import the file.
2860 2020-08-19  Bruno Haible  <bruno@clisp.org>
2862         uchar: Fix compilation errors in C++ mode on macOS.
2863         * m4/uchar.m4 (gl_UCHAR_H): Require gl_ANSI_CXX if present. Include some
2864         system header file before attempting to use 'char16_t' and 'char32_t'.
2866 2020-08-19  Bruno Haible  <bruno@clisp.org>
2868         ansi-c++-opt: Work around an autoconf macro reordering problem.
2869         * modules/ansi-c++-opt: Require gl_ANSI_CXX already in the early
2870         section.
2872 2020-08-19  Bruno Haible  <bruno@clisp.org>
2874         math C++ tests: Fix compilation error in with GCC 10.
2875         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
2876         hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder, rint,
2877         round, trunc): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
2879 2020-08-19  Bruno Haible  <bruno@clisp.org>
2881         uchar: Fix compilation errors in C++ mode on OpenBSD.
2882         * lib/uchar.in.h (char16_t, char32_t): Don't define in C++ mode if
2883         CXX_HAS_UCHAR_TYPES is 1.
2884         * m4/uchar.m4 (gl_UCHAR_H): Determine whether the C++ compiler
2885         predefines char16_t and char32_t. Substitute CXX_HAS_UCHAR_TYPES.
2886         * modules/uchar (Makefile.am): Substitute CXX_HAS_UCHAR_TYPES.
2888 2020-08-19  Bruno Haible  <bruno@clisp.org>
2890         Fix compilation errors in C++ mode on OpenBSD.
2891         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on
2892         OpenBSD with clang, use the approach without C preprocessor macro.
2894 2020-08-18  Bruno Haible  <bruno@clisp.org>
2896         uchar C++ tests: Fix side effect on math modules (regr. 2020-08-17).
2897         * modules/uchar-c++-tests (configure.ac): Don't use AC_LANG_PUSH and
2898         AC_LANG_POP.
2900 2020-08-17  Paul Eggert  <eggert@cs.ucla.edu>
2902         verify: avoid __built_assume on Clang
2903         * lib/verify.h (assume): Do not use Clang’s __builtin_assume, as
2904         Clang 9 incorrectly diagnoses arguments as having side effects
2905         even when they do not.  I guess Clang 9 considers any function
2906         call as if it had a side effect here.
2908         libc-config: avoid Clang’s __diagnose_if__
2909         * lib/cdefs.h (__warndecl, __warnattr, __errordecl):
2910         For now, do not use __diagnose_if__ here, as this fails
2911         on Fedora 31 with Clang 9.0.1, with diagnostic
2912         "/usr/include/bits/stdio2.h:263:9: error: fgets called with bigger
2913         size than length of destination buffer
2914         [-Werror,-Wuser-defined-warnings]".  I guess Clang 9 warns even
2915         for functions that are not called?
2917         careadlinkat: speedup for GCC 10 with GCC_LINT
2918         Inspired by a suggestion by Bruno Haible in:
2919         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00155.html
2920         * lib/careadlinkat.c (STACK_BUF_SIZE): New constant.
2921         (readlink_stk): New function, with most of the old careadlinkat
2922         contents and with a new STACK_BUF arg.  Inline it in GCC 10
2923         if GCC_LINT.
2924         (careadlinkat): Use the new function for everything but the
2925         stack buffer.
2927         * build-aux/gcc-warning.spec: Update comments.
2929 2020-08-17  Bruno Haible  <bruno@clisp.org>
2931         Assume autoconf >= 2.64.
2932         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO_LIMIT always.
2934 2020-08-17  Bruno Haible  <bruno@clisp.org>
2936         Revert autoupdate's revert.
2937         * config/srclist.txt: Mark regcomp.c as needing sync with glibc.
2939 2020-08-17  Bruno Haible  <bruno@clisp.org>
2941         uchar C++ tests: Fix build error on FreeBSD 12.
2942         * modules/uchar-c++-tests (configure.ac): Test whether <cuchar> exists.
2943         (Makefile.am): Don't include test-uchar-c++2.cc in the compilation if
2944         <cuchar> does not exist.
2946 2020-08-16  Paul Eggert  <eggert@cs.ucla.edu>
2948         time_rz: remove unused functions
2949         * lib/time_rz.c (isdst_differ, equal_tm): Remove; no longer used.
2951         time_rz: fix issues with mktime_z failures
2952         * lib/time_rz.c (mktime_z): Do not update *TM if revert_tz fails.
2953         Use a cheaper tm_yday test for failed mktime.
2955 2020-08-16  Bruno Haible  <bruno@clisp.org>
2957         intprops test: Strengthen on clang.
2958         * tests/test-intprops.c (VERIFY): Use verify_stmt.
2960 2020-08-16  Bruno Haible  <bruno@clisp.org>
2962         nstrftime: Guide inlining also on clang.
2963         * lib/nstrftime.c (iso_week_days): Inline also on clang.
2965 2020-08-16  Bruno Haible  <bruno@clisp.org>
2967         intprops: Avoid bogus "warning: division by zero is undefined" on clang.
2968         * lib/intprops.h (_GL__GENERIC_BOGUS): Define to 1 on clang.
2970 2020-08-16  Bruno Haible  <bruno@clisp.org>
2972         log2l: Disable MSVC workaround on clang.
2973         * lib/log2l.c (log2l): On clang, use the expression 0.0L/0.0L.
2975 2020-08-16  Bruno Haible  <bruno@clisp.org>
2977         argp: Emit a warning also with clang.
2978         * lib/argp-help.c (__argp_short_program_name): Use #warning also on
2979         clang.
2981 2020-08-16  Bruno Haible  <bruno@clisp.org>
2983         libc-config: Enable __REDIRECT macro also on clang.
2984         * lib/cdefs.h (__REDIRECT, __REDIRECT_NTH, __REDIRECT_NTHNL, __ASMNAME,
2985         __ASMNAME2): Define on clang like on GCC.
2987 2020-08-16  Bruno Haible  <bruno@clisp.org>
2989         regex: Use initializer shorthand syntax also with clang.
2990         * lib/regcomp.c (utf8_sb_map): Use the initializer shorthand syntax also
2991         with clang.
2993 2020-08-16  Bruno Haible  <bruno@clisp.org>
2995         regex: Use space optimization also with clang.
2996         * lib/regex_internal.h (re_token_t): Use a single byte for the type also
2997         with clang.
2999 2020-08-16  Bruno Haible  <bruno@clisp.org>
3001         Use _Static_assert and static_assert primitives when present on clang.
3002         * lib/cdefs.h (_Static_assert): Don't define as a macro on clang.
3003         * lib/verify.h (_GL_HAVE__STATIC_ASSERT, _GL_HAVE__STATIC_ASSERT1,
3004         _GL_HAVE_STATIC_ASSERT1): Define as appropriate on clang.
3006 2020-08-16  Bruno Haible  <bruno@clisp.org>
3008         Use 'throw ()' for optimization in C++ mode also on clang.
3009         * lib/cdefs.h (__THROW): Define to 'throw ()' also on clang.
3010         * lib/getopt-cdefs.in.h (__THROW): Likewise.
3011         * lib/md5.h (__THROW): Likewise.
3013 2020-08-16  Bruno Haible  <bruno@clisp.org>
3015         absolute-header: Add support for clang.
3016         * modules/absolute-header (Makefile.am): Include '__clang__' in the
3017         HAVE_INCLUDE_NEXT expression.
3019 2020-08-16  Bruno Haible  <bruno@clisp.org>
3021         Fix "warning: implicitly declaring library function 'strcasecmp'".
3022         * lib/argp-help.c: Include <strings.h>.
3024 2020-08-16  Bruno Haible  <bruno@clisp.org>
3026         stdio: Don't break attribute 'scanf' on clang.
3027         * lib/stdio.in.h (scanf): Treat clang like GCC.
3029 2020-08-16  Bruno Haible  <bruno@clisp.org>
3031         Use __restrict also on clang.
3032         * lib/argp.h (__restrict): Don't define as a macro on clang >= 3.
3033         * lib/glob.in.h (_Restrict_): Use __restrict on clang >= 3.
3034         * lib/unitypes.in.h (_UC_RESTRICT): Likewise.
3036 2020-08-16  Bruno Haible  <bruno@clisp.org>
3038         pthread-spin: Use GCC built-ins also on clang.
3039         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
3040         pthread_spin_trylock, pthread_spin_unlock): Use the newer GCC built-ins
3041         also on clang.
3043 2020-08-16  Bruno Haible  <bruno@clisp.org>
3045         asyncsafe-spin tests: Update.
3046         * tests/test-asyncsafe-spin2.c: Update to match the change in
3047         lib/asyncsafe-spin.c from 2020-08-11.
3049 2020-08-16  Bruno Haible  <bruno@clisp.org>
3051         setenv: Use tree code also with clang.
3052         * lib/setenv.c (USE_TSEARCH): Treat clang like GCC.
3054 2020-08-16  Bruno Haible  <bruno@clisp.org>
3056         math: Optimize signbit also on clang.
3057         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Optimize also
3058         on clang.
3060 2020-08-16  Bruno Haible  <bruno@clisp.org>
3062         avltreehash-list, rbtreehash-list: Optimize also on clang.
3063         * lib/gl_anytreehash_list1.h (add_nodes_to_buckets): Use
3064         __builtin_expect also on clang.
3066 2020-08-16  Bruno Haible  <bruno@clisp.org>
3068         Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead".
3069         * lib/socket.c: Use WSASocketW, not WSASocketA.
3071         Fix "warning: format specifies type 'unsigned long'".
3072         * tests/test-nonblocking-writer.h (main_writer_loop): Cast dbgfprintf
3073         argument to match the format directive.
3075         Fix "warning: no case matching constant switch condition '0'".
3076         * tests/test-fcntl.c (check_flags): Add a 'default' case.
3078         Fix "warning: integer overflow in expression".
3079         * tests/test-strtol.c (main): Use an 'unsigned long' expression to
3080         remove a 'long' overflow.
3082         Fix "warning: "getpagesize" redefined".
3083         * tests/test-getcwd.c (getpagesize): Don't redefine if defined as a
3084         macro.
3086         Fix "warning: implicitly declaring library function 'strncasecmp'".
3087         * lib/strptime.c: Include <strings.h>.
3089         Fix "warning: 'snprintf' macro redefined".
3090         * lib/strerror_r.c (snprintf): Undefine before redefining.
3092         Fix "warning: address of array 'locale' will always evaluate to 'true'".
3093         * lib/nl_langinfo.c (ctype_codeset): Remove redundant NULL test.
3095         Fix "warning: '__stat64' macro redefined".
3096         * lib/glob.c (__stat64): Undefine also on MSVC/clang.
3098         Fix "warning: 'format' attribute argument not supported: rpl_printf".
3099         * lib/stdio.in.h (printf): Treat clang like GCC.
3101         Fix "warning: attribute declaration must precede definition" with clang.
3102         * lib/math.in.h (acosl, asinl, atanl, ceill, cosl, expl, fabsf, fabsl,
3103         floorl, fmodl, frexpf, frexpl, hypotf, hypotl, ldexpf, ldexpl, logl,
3104         log10l, modfl, sinl, sqrtl, tanl): Disable _GL_CXXALIASWARN invocation
3105         on non-glibc systems.
3106         * lib/netdb.in.h (gai_strerror): Likewise.
3107         * lib/stdio.in.h (snprintf, vfscanf, vscanf, vsnprintf): Likewise.
3108         * lib/sys_stat.in.h (fstat): Likewise.
3109         * lib/utime.in.h (utime): Likewise.
3111         Fix undesired warnings.
3112         * lib/sys_select.in.h: Disable all _GL_WARN_ON_USE invocations with
3113         clang.
3115 2020-08-16  Bruno Haible  <bruno@clisp.org>
3117         C++ tests: Fix link errors on MSVC (regression from 2020-05-31).
3118         * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with
3119         $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol.
3120         * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with
3121         $(LIB_GETRANDOM), needed for the mkdtemp and mkstemp symbols.
3123 2020-08-16  Bruno Haible  <bruno@clisp.org>
3125         Don't use Autoconf quadrigraphs.
3126         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Use '#' instead of the corresponding
3127         Autoconf quadrigraph.
3128         * m4/free.m4 (gl_FUNC_FREE): Likewise.
3129         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
3130         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES,
3131         _AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
3132         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
3133         * m4/math_h.m4 (gl_MATH_H): Likewise.
3134         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
3136 2020-08-16  Bruno Haible  <bruno@clisp.org>
3138         Fix quoting of AC_LANG_PROGRAM arguments.
3139         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Quote the AC_LANG_PROGRAM
3140         arguments through [[...]].
3141         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
3142         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
3143         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
3144         * m4/ld-output-def.m4 (gl_LD_OUTPUT_DEF): Likewise.
3145         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Likewise.
3146         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3147         * m4/mountlist.m4 (gl_MOUNTLIST): Likewise.
3148         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
3149         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
3150         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
3151         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
3152         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
3153         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
3155 2020-08-16  Bruno Haible  <bruno@clisp.org>
3157         Assume autoconf >= 2.64.
3158         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Set to 2.64.
3159         * DEPENDENCIES: Require Autoconf 2.64 or newer.
3160         * NEWS: Mention the changed requirement.
3161         * m4/00gnulib.m4 (_m4_divert_diversion, AC_DEFUN_ONCE): Remove macros.
3162         * m4/gnulib-common.m4 (AS_VAR_IF, AS_VAR_COPY): Remove macros.
3163         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Quote pushdef'ed
3164         variables.
3165         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3166         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
3167         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
3168         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C), gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++),
3169         gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): Define through AC_DEFUN.
3170         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C), gl_MANYWARN_ALL_GCC(C++)):
3171         Likewise.
3172         * m4/iconv.m4 (AM_ICONV): Define through AC_DEFUN_ONCE directly.
3173         * m4/libunistring.m4 (gl_LIBUNISTRING): Likewise.
3174         * m4/configmake.m4: Update comment.
3176 2020-08-16  Bruno Haible  <bruno@clisp.org>
3178         sys_ioctl: Simplify.
3179         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Remove confusing use of
3180         AC_INCLUDES_DEFAULT.
3182 2020-08-16  Bruno Haible  <bruno@clisp.org>
3184         Fix quoting of AC_LANG_SOURCE arguments.
3185         * m4/printf.m4 (gl_PRINTF_ENOMEM): Fix an m4 quoting bug in the
3186         GL_NOCRASH expansion.
3187         * m4/locale-ar.m4 (gt_LOCALE_AR): Simplify m4 quoting.
3188         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
3189         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
3190         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
3191         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3193 2020-08-15  Paul Eggert  <eggert@cs.ucla.edu>
3195         nstrftime: be more predictable about errno
3196         This aligns nstrftime better with draft POSIX 202x strftime.
3197         * lib/nstrftime.c: Include errno.h.
3198         (width_add, __strftime_internal): Set errno on failure,
3199         and preserve it on success.  Check for mktime_z failure.
3200         * modules/nstrftime (Depends-on): Add errno.
3201         * modules/nstrftime-tests (Depends-on): Add atoll, intprops.
3202         * tests/test-nstrftime.c: Include intprops.h, limits.h.
3203         (errno_test): New test function.
3204         (main): Call it.
3206 2020-08-15  Bruno Haible  <bruno@clisp.org>
3208         canonicalize: Fix a problem of the autoconf test on MSVC/clang.
3209         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Remove undesired file
3210         from dependency analysis first.
3212 2020-08-15  Bruno Haible  <bruno@clisp.org>
3214         Determine asm output option and filename suffix for MSVC/clang.
3215         * m4/asm-underscore.m4 (gl_C_ASM): Distinguish clang from cl and
3216         clang-cl.
3218 2020-08-15  Bruno Haible  <bruno@clisp.org>
3220         doc: Update for MSVC/clang.
3221         * doc/*-functions/*printf.texi: Mention that MSVC/clang has two bugs
3222         that MSVC 14 does not have.
3224 2020-08-15  Bruno Haible  <bruno@clisp.org>
3226         Revert autoupdate's revert.
3227         * config/srclist.txt: Mark mktime.c as needing sync with glibc.
3229 2020-08-15  Bruno Haible  <bruno@clisp.org>
3231         frexpl: Fix configuration test result on MSVC.
3232         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Avoid a division by a constant
3233         zero.
3235 2020-08-15  Bruno Haible  <bruno@clisp.org>
3237         Support compiling without -loldnames on native Windows.
3238         * m4/gnulib-common.m4 (GL_MDA_DEFINES, _GL_MDA_DEFINES): New macros.
3239         * m4/chown.m4 (AC_FUNC_CHOWN): In the test programs, use GL_MDA_DEFINES.
3240         (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
3241         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
3242         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
3243         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
3244         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Likewise.
3245         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Likewise.
3246         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
3247         * m4/fcntl.m4 (gl_FUNC_FCNTL): Likewise.
3248         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
3249         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
3250         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
3251         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Likewise.
3252         * m4/freopen.m4 (gl_FUNC_FREOPEN): Likewise.
3253         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
3254         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3255         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3256         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL, gl_FUNC_GETCWD_SIGNATURE):
3257         Likewise.
3258         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Likewise.
3259         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3260         * m4/lseek.m4 (gl_FUNC_LSEEK): Likewise.
3261         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
3262         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
3263         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
3264         * m4/open-slash.m4 (gl_OPEN_TRAILING_SLASH_BUG): Likewise.
3265         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
3266         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
3267         * m4/pread.m4 (gl_FUNC_PREAD): Likewise.
3268         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
3269         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Likewise.
3270         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
3271         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
3272         * m4/pwrite.m4 (gl_FUNC_PWRITE): Likewise.
3273         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
3274         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
3275         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3276         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
3277         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
3278         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
3279         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
3280         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
3281         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3282         * m4/utimens.m4 (gl_UTIMENS): Likewise.
3283         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3284         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
3285         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): On native Windows, don't
3286         test for getcwd.
3287         * m4/utime.m4 (gl_FUNC_UTIME): On native Windows, don't test for utime.
3288         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): To test for wcsdup, use a test program
3289         with GL_MDA_DEFINES.
3290         * lib/c++defs.h (_GL_CXXALIAS_MDA): New macro.
3291         * lib/fcntl.in.h (creat, open):  On native Windows, use the underscore-
3292         prefixed symbol.
3293         * lib/search.in.h (lfind, lsearch): Likewise.
3294         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
3295         Likewise.
3296         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
3297         * lib/string.in.h (memccpy, strdup): Likewise.
3298         * lib/sys_stat.in.h (chmod, umask): Likewise.
3299         * lib/time.in.h (tzset): Likewise.
3300         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
3301         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
3302         read, rmdir, swab, unlink, write): Likewise.
3303         * lib/utime.in.h (utime): Likewise.
3304         * lib/wchar.in.h (wcsdup): Likewise.
3305         * lib/math.in.h (j0, j1, jn, y0, y1, yn):  Likewise.
3306         (isfinite, isinf, isnan, signbit): On native Windows, don't define as an
3307         rpl_-prefixed macro.
3308         * lib/canonicalize-lgpl.c (__getcwd): On native Windows, use _getcwd.
3309         * lib/close.c (close_nothrow): On native Windows, use _close.
3310         * lib/creat.c (orig_creat): On native Windows, use _creat.
3311         * lib/dup.c (dup_nothrow): On native Windows, use _dup.
3312         * lib/dup2.c (dup2_nothrow): Use _dup2.
3313         * lib/fdopen.c (fdopen_nothrow): On native Windows, use _fdopen.
3314         * lib/getcwd-lgpl.c: On native Windows, use _getcwd.
3315         * lib/getcwd.c (getcwd_nothrow): Use _getcwd also on mingw.
3316         * lib/open.c (orig_open): On native Windows, use _open.
3317         * lib/read.c (read_nothrow): Use _read.
3318         * lib/rmdir.c: On native Windows, use _rmdir.
3319         * lib/unlink.c: On native Windows, use _unlink.
3320         * lib/write.c (write_nothrow): Use _write.
3321         * lib/sys_select.in.h (close): With clang, don't attach a warning on an
3322         undefined symbol.
3323         * lib/sys_socket.in.h (close): Likewise.
3324         * lib/sys_time.in.h (close): Likewise.
3325         * tests/test-spawn-pipe-child.c: On native Windows, use _fdopen.
3327 2020-08-15  Bruno Haible  <bruno@clisp.org>
3329         Fix "unknown pragma ignored" warnings with clang on native Windows.
3330         * lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
3331         * lib/cbrtf.c: Likewise.
3332         * lib/ceil.c: Likewise.
3333         * lib/floor.c: Likewise.
3334         * lib/fma.c: Likewise.
3335         * lib/fmod.c: Likewise.
3336         * lib/rint.c: Likewise.
3337         * lib/round.c: Likewise.
3338         * lib/trunc.c: Likewise.
3339         * tests/test-ceil2.c: Likewise.
3340         * tests/test-ceilf2.c: Likewise.
3341         * tests/test-floor2.c: Likewise.
3342         * tests/test-floorf2.c: Likewise.
3343         * tests/test-trunc2.c: Likewise.
3344         * tests/test-truncf2.c: Likewise.
3345         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3346         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3348 2020-08-15  Bruno Haible  <bruno@clisp.org>
3350         Fix compilation errors in C++ mode with clang on native Windows.
3351         * lib/pthread.in.h (pthread_*): Disable _GL_CXXALIASWARN invocation on
3352         non-glibc systems.
3353         * lib/sched.in.h (sched_yield): Likewise.
3355 2020-08-14  Bruno Haible  <bruno@clisp.org>
3357         stdnoreturn: Work around problem with MSVC/clang.
3358         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On native Windows, include some
3359         system header after <stdnoreturn.h>.
3360         * doc/posix-headers/stdnoreturn.texi: Mention the issue.
3362 2020-08-14  Bruno Haible  <bruno@clisp.org>
3364         utime-h: Generate an utime.h file always.
3365         * modules/utime-h (Makefile.am): Generate utime.h always.
3366         * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
3367         GL_GENERATE_UTIME_H.
3369 2020-08-14  Bruno Haible  <bruno@clisp.org>
3371         mktime, mktime-internal: Remove obsolete code.
3372         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't #undef putenv.
3374 2020-08-14  Bruno Haible  <bruno@clisp.org>
3376         getcwd: Remove obsolete code.
3377         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't #undef mkdir.
3378         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3380 2020-08-14  Bruno Haible  <bruno@clisp.org>
3382         tzset: Assume the function exists.
3383         * lib/time.in.h (tzset): Assume HAVE_TZSET is 1.
3384         * lib/tzset.c: Define rpl_tzset, not tzset. Assume HAVE_TZSET is 1.
3385         * modules/tzset (configure.ac): Don't test HAVE_TZSET.
3386         * m4/tzset.m4 (gl_FUNC_TZSET): Don't test for tzset. Don't set
3387         HAVE_TZSET.
3388         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Don't initialize HAVE_TZSET.
3389         * modules/time (Makefile.am): Don't substitute HAVE_TZSET.
3391         nstrftime: Assume tzset exists.
3392         * lib/nstrftime.c (HAVE_TZSET): Remove macro.
3393         (__strftime_internal): Test my_strftime, not HAVE_TZSET.
3394         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Don't test for tzset.
3396         mktime, mktime-internal: Assume tzset exists.
3397         * lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
3398         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.
3400 2020-08-14  Bruno Haible  <bruno@clisp.org>
3402         strdup: Assume the function exists.
3403         * m4/strdup.m4 (gl_FUNC_STRDUP, gl_FUNC_STRDUP_POSIX): Don't test
3404         whether strdup exists.
3405         * modules/strdup (Files): Remove lib/strdup.c.
3406         (configure.ac): Don't compile strdup.c.
3407         * modules/strdup-posix (Depends-on, configure.ac): Don't test
3408         ac_cv_func_strdup.
3409         * doc/posix-functions/strdup.texi: Update.
3410         * lib/unistr/u8-strdup.c: Assume HAVE_STRDUP is 1.
3411         * modules/unistr/u8-strdup (Files): Remove lib/unistr/u-strdup.h.
3412         (Depends-on): Remove unistr/u8-strlen.
3414 2020-08-13  Bruno Haible  <bruno@clisp.org>
3416         sys_random: Work around an uClibc bug.
3417         Reported by akater <nuclearspace@gmail.com>
3418         via Stefan Kangas <stefan@marxist.se>
3419         in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>.
3420         * lib/sys_random.in.h: On uClibc, include <stddef.h> first.
3421         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment.
3422         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
3423         * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
3425 2020-08-12  Bruno Haible  <bruno@clisp.org>
3427         Avoid implicit conversion from 'unsigned int' to 'int' in initializers.
3428         Reported by Florian Weimer in
3429         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00086.html>.
3430         * lib/gen-uni-tables.c (output_predicate): Change the element type of
3431         the level3 array to 'unsigned int'.
3432         * lib/unictype/bitmap.h (bitmap_lookup): Access an 'unsigned int'.
3433         * lib/unictype/categ_*.h: Regenerated.
3434         * lib/unictype/ctype_*.h: Regenerated.
3435         * lib/unictype/pr_*.h: Regenerated.
3436         * lib/unictype/sy_*.h: Regenerated.
3437         * lib/unicase/cased.h: Regenerated.
3438         * lib/unicase/ignorable.h: Regenerated.
3440 2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
3442         stdint: port intptr_t to more-recent MinGW
3443         Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
3444         * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
3445         even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
3446         Apparently those two macros were removed in mingwrt-3.22
3447         dated 2016-07-14.
3449 2020-08-12  Bruno Haible  <bruno@clisp.org>
3451         thread-optim: Export function-like macros only.
3452         Suggested by Paul Eggert.
3453         * lib/thread-optim.h (gl_multithreaded): New macro.
3454         (IF_MT_DECL, IF_MT): Remove macros.
3455         * doc/multithread.texi (Multithreading Optimizations): Add a small
3456         example.
3457         * lib/fatal-signal.c: Update all uses.
3458         * lib/clean-temp.c: Likewise.
3459         * lib/localename.c: Likewise.
3460         * modules/localename (Depends-on): Add stdbool.
3462 2020-08-12  Bruno Haible  <bruno@clisp.org>
3464         Revert autoupdate's revert.
3465         * config/srclist.txt: Mark regex.h as needing sync with glibc.
3467 2020-08-11  Bruno Haible  <bruno@clisp.org>
3469         thread-optim: Fix a compiler warning.
3470         * lib/thread-optim.h (IF_MT_DECL): Define differently.
3472 2020-08-11  Bruno Haible  <bruno@clisp.org>
3474         Use __restrict also on clang.
3475         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
3476         (__restrict_arr): On clang, define like on GCC.
3477         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
3478         (_Restrict_arr_): Use _Restrict_ also on clang.
3479         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
3480         (_Restrict_arr_): Use _Restrict_ also on clang.
3482 2020-08-11  Bruno Haible  <bruno@clisp.org>
3484         Use flexible array syntax also on clang.
3485         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
3486         define like for GCC 3.
3488 2020-08-11  Bruno Haible  <bruno@clisp.org>
3490         fcntl: On native Windows, use _setmode, not setmode.
3491         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
3492         * lib/binary-io.h: Update comment.
3493         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
3494         * tests/test-dup2.c: Likewise.
3495         * tests/test-dup-safer.c: Likewise.
3496         * tests/test-fcntl.c: Likewise.
3498 2020-08-11  Bruno Haible  <bruno@clisp.org>
3500         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
3501         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
3502         * lib/spawn-pipe.c (create_pipe): Likewise.
3503         * tests/test-nonblocking-pipe-main.c (main): Likewise.
3504         * tests/test-nonblocking-socket-main.c (main): Likewise.
3505         * lib/wait-process.c: Update comment.
3506         * doc/posix-functions/fork.texi: Update.
3508 2020-08-11  Bruno Haible  <bruno@clisp.org>
3510         asyncsafe-spin: Use GCC built-ins also on clang.
3511         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
3512         the newer GCC built-ins also on clang.
3514 2020-08-11  Bruno Haible  <bruno@clisp.org>
3516         Use expression statements also on clang.
3517         * lib/cdefs.h (__extension__): Don't define to empty on clang.
3518         * lib/obstack.h (__extension__): Likewise.
3519         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
3520         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
3521         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
3522         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
3523         obstack_finish, obstack_free): Enable as optimized macros also on clang.
3524         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
3526 2020-08-10  Bruno Haible  <bruno@clisp.org>
3528         Use many __attribute__s with clang.
3529         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
3530         on clang.
3531         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
3532         New macros.
3533         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
3534         on clang.
3535         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
3536         also on older clang versions.
3537         (__attribute__): Don't define to empty on clang.
3538         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
3539         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
3540         (__attribute_const__): Use __attribute__ __const__ also on clang.
3541         (__attribute_used__): Use __attribute__ __used__ also on clang.
3542         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
3543         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
3544         clang.
3545         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
3546         clang.
3547         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
3548         also on clang.
3549         (__nonnull): Use __attribute__ __nonnull__ also on clang.
3550         (__attribute_warn_unused_result__): Use __attribute__
3551         __warn_unused_result__ also on clang.
3552         (__always_inline): Use __attribute__ __always_inline__ also on clang.
3553         (__attribute_artificial__): Use __attribute__ __artificial__ also on
3554         clang >= 7.
3555         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
3556         clang versions.
3557         (_Noreturn): Don't redefine on clang >= 3.5.
3558         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
3559         also on clang.
3560         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
3561         on clang.
3562         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3563         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3564         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
3565         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
3566         also on clang.
3567         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
3568         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
3569         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
3570         also on clang.
3571         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
3572         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
3573         __attribute__ __noreturn__ also on clang.
3574         * lib/obstack.h (__attribute_noreturn__): Likewise.
3575         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
3576         clang.
3577         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
3578         always_inline also on clang.
3579         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
3580         clang.
3582 2020-08-10  Bruno Haible  <bruno@clisp.org>
3584         c-ldtoastr tests: Fix test failure.
3585         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
3586         is longer than 'double'.
3588 2020-08-10  Bruno Haible  <bruno@clisp.org>
3590         Revert autoupdate's revert.
3591         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
3593 2020-08-09  Bruno Haible  <bruno@clisp.org>
3595         string: Fix build error in C++ mode with clang (regression from today).
3596         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
3597         parameters, one for GCC, one for clang.
3598         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
3599         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
3600         as return type.
3602 2020-08-09  Bruno Haible  <bruno@clisp.org>
3604         ftruncate: Use _chsize, not chsize.
3605         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
3606         * lib/ftruncate.c: Test HAVE__CHSIZE.
3607         (chsize_nothrow): Use _chsize, not chsize.
3609 2020-08-09  Bruno Haible  <bruno@clisp.org>
3611         Silence warnings from clang 10 with -Wimplicit-fallthrough.
3612         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
3613         clang >= 10.
3614         * lib/fnmatch.c (FALLTHROUGH): Likewise.
3615         * lib/fts.c (FALLTHROUGH): Likewise.
3616         * tests/macros.h (FALLTHROUGH): Likewise.
3617         * lib/regex_internal.h (FALLTHROUGH): Likewise.
3618         * config/srclist.txt: Mark it as needing sync with glibc.
3620 2020-08-09  Bruno Haible  <bruno@clisp.org>
3622         stdbool tests: Enable the stricter tests also on clang.
3623         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
3624         (e): Enable the address-to-bool conversion test also on clang.
3626 2020-08-09  Bruno Haible  <bruno@clisp.org>
3628         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
3629         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
3631 2020-08-09  Bruno Haible  <bruno@clisp.org>
3633         Use attribute __aligned__ with clang.
3634         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
3635         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
3637 2020-08-09  Bruno Haible  <bruno@clisp.org>
3639         Use __alignof__ with clang.
3640         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
3641         on clang.
3642         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
3643         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
3644         clang.
3645         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
3646         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
3647         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
3648         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
3650 2020-08-09  Bruno Haible  <bruno@clisp.org>
3652         ignore-value: Simplify on clang.
3653         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
3654         workaround.
3656 2020-08-09  Bruno Haible  <bruno@clisp.org>
3658         Use __typeof__ with clang.
3659         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
3660         "clang -std=gnu99".
3661         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
3662         * tests/test-stdint.c (verify_same_types): Enable the check also on
3663         clang.
3665 2020-08-09  Bruno Haible  <bruno@clisp.org>
3667         Add ability to emit user-defined warnings and errors with clang.
3668         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
3669         _GL_ATTRIBUTE_WARNING using an attribute for clang.
3670         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
3671         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
3672         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
3673         attribute for clang.
3675 2020-08-09  Bruno Haible  <bruno@clisp.org>
3677         intprops: Fix typo in comment.
3678         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
3680 2020-08-09  Bruno Haible  <bruno@clisp.org>
3682         Use __builtin_signbit* with clang.
3683         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
3684         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
3685         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
3686         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
3687         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
3688         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
3689         not REPLACE_SIGNBIT_USING_GCC.
3691 2020-08-09  Bruno Haible  <bruno@clisp.org>
3693         Use __builtin_isnan with clang.
3694         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
3695         not __builtin_isnanf. Also on clang.
3696         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
3697         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
3698         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
3699         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
3700         built-in.
3701         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
3702         not __builtin_isnanl. Also on clang.
3703         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
3704         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
3705         * lib/math.in.h (__has_builtin): Remove macro.
3706         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
3707         __builtin_isnanf. Also on clang.
3708         (isnand, gl_isnan_d): With clang, use the GCC built-in.
3709         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
3710         __builtin_isnanl. Also on clang.
3711         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
3712         on clang.
3714 2020-08-09  Bruno Haible  <bruno@clisp.org>
3716         thread-optim: Fix logic error.
3717         Reported by Paul Eggert.
3718         * lib/thread-optim.h (IF_MT): Fix logic error.
3720 2020-08-08  Bruno Haible  <bruno@clisp.org>
3722         localename: Use module 'thread-optim'.
3723         * lib/localename.c: Include thread-optim.h.
3724         (struniq): Use IF_MT macro.
3725         * modules/localename (Depends-on): Add thread-optim.
3727         clean-temp: Use module 'thread-optim'.
3728         * lib/clean-temp.c: Include thread-optim.h.
3729         (register_temporary_file, unregister_temporary_file, create_temp_dir,
3730         register_temp_file, unregister_temp_file, register_temp_subdir,
3731         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
3732         close_temp, fclose_variant_temp): Use IF_MT macro.
3733         * modules/clean-temp (Depends-on): Add thread-optim.
3735         fatal-signal: Use module 'thread-optim'.
3736         * lib/fatal-signal.c: Include thread-optim.h.
3737         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
3738         macro.
3739         * modules/fatal-signal (Depends-on): Add thread-optim.
3741 2020-08-08  Bruno Haible  <bruno@clisp.org>
3743         New module 'thread-optim'.
3744         * lib/thread-optim.h: New file.
3745         * modules/thread-optim: New file.
3746         * doc/multithread.texi (Multithreading Optimizations): New section.
3748 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
3750         doc: more updates for glibc 2.32
3751         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
3752         * doc/posix-functions/fchmodat.texi: Update.
3754 2020-08-07  Bruno Haible  <bruno@clisp.org>
3756         doc: Update for glibc 2.32.
3757         * doc/glibc-functions/__libc_single_threaded.texi: New file.
3758         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
3759         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
3760         * doc/glibc-functions/sigabbrev_np.texi: New file.
3761         * doc/glibc-functions/sigdescr_np.texi: New file.
3762         * doc/glibc-functions/strerrordesc_np.texi: New file.
3763         * doc/glibc-functions/strerrorname_np.texi: New file.
3764         * doc/gnulib.texi: Include them.
3765         (Glibc sys/single_threaded.h): New section.
3766         * doc/pastposix-functions/h_errno.texi: Update.
3767         * doc/posix-functions/*.texi: Likewise.
3768         * doc/glibc-functions/*.texi: Likewise.
3770 2020-08-07  Bruno Haible  <bruno@clisp.org>
3772         alloca: No need to compile alloca.c with clang.
3773         * lib/alloca.c: Skip all code with clang.
3775         Use __builtin_alloca with clang.
3776         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
3778 2020-08-06  Bruno Haible  <bruno@clisp.org>
3780         Use __builtin_assume with clang.
3781         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
3782         (assume): Use __builtin_assume when available.
3784 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
3786         libgmp: add <gmp/gmp.h> support
3787         * m4/libgmp.m4 (gl_LIBGMP):
3788         * modules/libgmp (configure.ac, Makefile.am):
3789         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
3790         ‘#include <gmp.h>’.
3792 2020-08-06  Bruno Haible  <bruno@clisp.org>
3794         Consider that clang defines __OPTIMIZE__ like GCC does.
3795         * lib/streq.h: Define the inline functions also on clang.
3796         * lib/c-strcaseeq.h: Likewise.
3797         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
3798         the GCC workaround to clang.
3800 2020-08-06  Bruno Haible  <bruno@clisp.org>
3802         safe-alloc: Remove unused code.
3803         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
3805 2020-08-06  Bruno Haible  <bruno@clisp.org>
3807         Use __builtin_expect with clang everywhere.
3808         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
3809         also on clang.
3811 2020-08-05  Bruno Haible  <bruno@clisp.org>
3813         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
3814         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
3815         built-in also on clang.
3816         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
3817         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
3819 2020-08-05  Bruno Haible  <bruno@clisp.org>
3821         Use __builtin_clz{,l,ll} with clang, also on Windows.
3822         * lib/integer_length.c: With clang, use the GCC built-in, not
3823         <intrin.h>.
3824         * lib/integer_length_l.c: Likewise.
3825         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
3826         also on clang.
3827         * lib/vasnprintf.c (divide): Likewise.
3829 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
3831         Update srclist.txt as per recent glibc changes
3832         * config/srclist.txt: Uncomment lines to reflect recent merges
3833         from Gnulib to glibc.
3835 2020-08-03  Bruno Haible  <bruno@clisp.org>
3837         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
3838         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
3840 2020-08-03  Bruno Haible  <bruno@clisp.org>
3842         integer_length_ll: Optimize for MSVC in 64-bit mode.
3843         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
3844         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
3846 2020-08-03  Bruno Haible  <bruno@clisp.org>
3848         integer_length_ll: Optimize for MSVC in 32-bit mode.
3849         * lib/integer_length_l.c: Include <intrin.h>.
3850         (integer_length): Define as inline function, like in
3851         lib/integer_length.c.
3853 2020-08-03  Bruno Haible  <bruno@clisp.org>
3855         integer_length: Optimize for MSVC.
3856         * lib/integer_length.c: Include <intrin.h>.
3857         (integer_length): With MSVC, use the _BitScanReverse built-in.
3859 2020-08-03  Bruno Haible  <bruno@clisp.org>
3861         ffsll: Optimize for MSVC in 64-bit mode.
3862         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
3863         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
3864         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
3866 2020-08-03  Bruno Haible  <bruno@clisp.org>
3868         ffsll: Optimize for MSVC in 32-bit mode.
3869         * lib/ffsl.h: Include <intrin.h>.
3870         (ffs): Define as inline function, like in lib/ffs.c.
3872 2020-08-03  Bruno Haible  <bruno@clisp.org>
3874         ffs: Optimize for MSVC.
3875         * lib/ffs.c: Include <intrin.h>.
3876         (ffs): With MSVC, use the _BitScanForward built-in.
3878 2020-08-03  Bruno Haible  <bruno@clisp.org>
3880         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
3881         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
3882         variable.
3884 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
3886         fopen: Avoid undesired interactions with glibc headers.
3887         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
3888         __need_FILE, as the latter does not work with glibc.
3890 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
3892         fcntl: document some F_SETLK errno variations
3893         * doc/posix-functions/fcntl.texi (fcntl): Document
3894         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
3896 2020-08-02  Bruno Haible  <bruno@clisp.org>
3898         oset: Add an 'iterator_atleast' operation.
3899         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
3900         extracted from gl_array_search_atleast.
3901         (gl_array_search_atleast): Use it.
3902         (gl_array_iterator_atleast): New function.
3903         (gl_array_oset_implementation): Use it.
3904         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
3905         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
3906         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
3907         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
3908         member.
3909         (gl_oset_iterator_atleast): New function.
3910         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
3911         (gl_OSet::iterator): Add another auxiliary constructor.
3912         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
3913         New functions.
3914         (main): Test also gl_oset_iterator_atleast.
3915         * tests/test-avltree_oset.c (is_at_least): New function.
3916         (main): Test also gl_oset_iterator_atleast.
3917         * tests/test-rbtree_oset.c (is_at_least): New function.
3918         (main): Test also gl_oset_iterator_atleast.
3919         * tests/test-oset-c++.cc (is_at_most): New function.
3920         (main): Test also gl_OSet::begin_atleast.
3922 2020-08-02  Bruno Haible  <bruno@clisp.org>
3924         oset-c++, omap-c++: Remove restriction for search_atleast method.
3925         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
3926         a different type than the element.
3927         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
3928         a different type than the key.
3930 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
3932         gnumakefile: say ‘$(MAKE)’ not ‘make’
3933         * top/GNUmakefile (abort-due-to-no-makefile):
3934         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
3935         This change is backported from Autoconf.
3937 2020-08-01  Bruno Haible  <bruno@clisp.org>
3939         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
3940         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
3941         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
3942         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
3943         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
3944         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
3946 2020-08-01  Bruno Haible  <bruno@clisp.org>
3948         libtextstyle-optional: Update tests.
3949         * modules/libtextstyle-optional-tests (configure.ac): Invoke
3950         gl_LIBTEXTSTYLE_OPTIONAL.
3952 2020-08-01  Bruno Haible  <bruno@clisp.org>
3954         parse-datetime: Fix wrong #line statements.
3955         * modules/parse-datetime (Makefile.am): Correct #line statements also in
3956         parse-datetime-gen.h.
3958 2020-08-01  Bruno Haible  <bruno@clisp.org>
3960         libtextstyle[-optional]: Allow requesting a minimum version.
3961         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
3962         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
3963         gl_LIBTEXTSTYLE_SEARCH): New macros.
3964         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
3965         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
3966         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
3967         * modules/libtextstyle-optional (configure.ac): Don't invoke
3968         gl_LIBTEXTSTYLE_OPTIONAL.
3969         * NEWS: Mention the changes.
3971 2020-07-31  Bruno Haible  <bruno@clisp.org>
3973         _GL_CMP: Improve documentation.
3974         Reported by Paul Eggert in
3975         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
3976         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
3977         passed.
3979 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
3981         largefile: sync with Autoconf master
3982         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
3983         Avoid undefined behavior on platforms where off_t is 32 bits.
3984         See: https://bugs.debian.org/742780
3986         alloca: sync with Autoconf master
3987         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
3988         Do not define if Autoconf 2.70 or later, since Autoconf master
3989         now matches us.
3991 2020-07-30  Bruno Haible  <bruno@clisp.org>
3993         unicodeio: Add comment.
3994         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
3995         different iconv behaviours.
3997 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
3999         Work around some Oracle Studio attribute bugs
4000         These were discovered when building bleeding-edge Emacs with
4001         Oracle Studio.
4002         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
4003         Port to Oracle Studio 12.6, which mishandles __attribute__
4004         ((__cold__)) and __attribute__ ((__may_alias__)) even though
4005         __has_attribute says they work.
4007 2020-07-29  Bruno Haible  <bruno@clisp.org>
4009         unicodeio: Fix wrong result on musl libc.
4010         Reported by A. Wilcox <awilfox@adelielinux.org> in
4011         <https://www.openwall.com/lists/musl/2020/07/29/2>.
4012         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
4013         on musl libc.
4014         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
4015         * modules/unicodeio (Files): Add m4/musl.m4.
4017 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
4019         fsusage, regex, stat-size: remove Cray support
4020         As near as I can make out this is actually support for UNICOS/mp,
4021         last released 2005, and Cray hasn’t supported that for years.
4022         * config/srclist.txt: Comment out regex.h for now.
4023         * lib/fsusage.c (get_fs_usage):
4024         * lib/regex.h (re_comp, re_exec):
4025         * lib/stat-size.h (ST_NBLOCKSIZE):
4026         Don’t worry about _CRAY.
4028 2020-07-29  Bruno Haible  <bruno@clisp.org>
4030         parse-datetime: Fix compilation error with bison 3.7.
4031         * modules/parse-datetime (Makefile.am): Create a generated header file
4032         parse-datetime-gen.h in the source directory. Correct #include and
4033         #line statements during preprocessing.
4035 2020-07-28  Bruno Haible  <bruno@clisp.org>
4037         fopen-gnu: Create files correctly (regression from 2020-05-24).
4038         * lib/fopen.c (rpl_open): Pass a third argument to open().
4040 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
4042         xalloc-die: don’t depend on xalloc
4043         This removes a circular dependency, as xalloc depends on xalloc-die.
4044         * modules/xalloc-die (Files): Add lib/xalloc.h.
4045         (Depends-on): Remove xalloc.
4046         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
4048         dfa-tests: port to MSVC
4049         Problem reported by Gisle Vanem in:
4050         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
4051         Also, remove an unnecessary dependency on getprogname.
4052         * modules/dfa-tests (Depends-on): Remove getprogname.
4053         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
4054         (exit_status): New static var.
4055         (dfawarn): Set it instead of exiting.
4056         Do not declare as _Noreturn, to pacify MSVC.
4057         (main): Return exit_status.
4059 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
4061         argz: pacify MSVC
4062         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
4063         Problem reported by Gisle Vanem.
4065         libgmp: remove dependency on havelib
4066         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
4067         use the more-traditional AC_SEARCH_LIBS approach.
4068         This should work better with GNU Emacs configuration,
4069         which uses pkg-config instead of a havelib-style approach.
4070         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
4071         * modules/libgmp (Depends-on): Remove havelib.
4073         libgmp: remove HAVE_GMP, LIB_GMP
4074         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
4075         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
4077 2020-07-26  Bruno Haible  <bruno@clisp.org>
4079         inttypes: Remove support for AIX 4.
4080         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
4081         * m4/inttypes-pri.m4: Remove file.
4082         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
4083         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
4084         * modules/inttypes-incomplete (Makefile.am): Don't substitute
4085         PRI_MACROS_BROKEN.
4086         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
4088 2020-07-26  Bruno Haible  <bruno@clisp.org>
4090         gettimeofday: Remove workaround for Mac OS X 10.0.
4091         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
4092         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
4093         * lib/gettimeofday.c: Don't include localtime-buffer.h.
4094         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
4095         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
4096         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
4097         * modules/localtime-buffer: Remove file.
4098         * lib/localtime-buffer.h: Remove file.
4099         * lib/localtime-buffer.c: Remove file.
4100         * m4/localtime-buffer.m4: Remove file.
4101         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
4103 2020-07-26  Bruno Haible  <bruno@clisp.org>
4105         tzset: Remove workaround for Solaris 2.6.
4106         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
4107         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
4108         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
4109         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
4110         * lib/localtime-buffer.c: Likewise.
4111         * lib/localtime.c: Likewise.
4112         * lib/tzset.c: Don't include localtime-buffer.h.
4113         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
4114         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
4115         is 1.
4116         * modules/tzset (Depends-on): Remove localtime-buffer.
4118 2020-07-26  Bruno Haible  <bruno@clisp.org>
4120         expl: Simplify autoconf test.
4121         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
4122         with small values..." test into the "checking whether expl works..."
4123         test.
4125 2020-07-26  Bruno Haible  <bruno@clisp.org>
4127         alloca: Remove Cray-2 and Cray Y-MP support.
4128         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
4129         Enable also on Autoconf >= 2.69.
4130         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
4131         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
4132         i00afunc): Remove.
4134 2020-07-25  Bruno Haible  <bruno@clisp.org>
4136         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
4137         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
4139 2020-07-25  Bruno Haible  <bruno@clisp.org>
4141         sigprocmask: Small autoconf macro improvement.
4142         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
4143         user to override the value of gl_cv_func_sigprocmask.
4144         * m4/gnulib-common.m4 (gl_SILENT): New macro.
4146 2020-07-25  Bruno Haible  <bruno@clisp.org>
4148         Small autoconf macro improvements.
4149         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
4150         override the value of gl_cv_func_working_mktime.
4151         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
4152         compiler produces multi-arch binaries..." in the configure output.
4153         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
4154         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
4156 2020-07-25  Bruno Haible  <bruno@clisp.org>
4158         doc: Update for NetBSD 7.1, 8.0, 9.0.
4159         * doc/*/*.texi: Update.
4160         * m4/exp2l.m4: Update comments.
4161         * m4/expl.m4: Likewise.
4162         * m4/ilogb.m4: Likewise.
4163         * m4/ilogbf.m4: Likewise.
4164         * m4/log10l.m4: Likewise.
4165         * m4/logl.m4: Likewise.
4166         * m4/printf.m4: Likewise.
4167         * m4/rintl.m4: Likewise.
4168         * m4/wcwidth.m4: Likewise.
4170 2020-07-24  Bruno Haible  <bruno@clisp.org>
4172         doc: Update for Mac OS X 10.13.
4173         * doc/*/*.texi: Update.
4174         * m4/expm1l.m4: Update comments.
4175         * m4/getgroups.m4: Likewise.
4176         * m4/getlogin_r.m4: Likewise.
4177         * m4/linkat.m4: Likewise.
4178         * m4/printf.m4: Likewise.
4180 2020-07-24  Bruno Haible  <bruno@clisp.org>
4182         doc: Update for Cygwin 2.9.0.
4183         * doc/*/*.texi: Update.
4185 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
4187         parse-datetime: modernize doc
4188         * doc/parse-datetime.texi: Use more-current examples.
4189         Don’t lead with 32-bit time_t, as it’s on its way out.
4190         Capitalize “Epoch” to be consistent with POSIX.
4192         timespec: remove dependence on ‘verify’
4193         * lib/timespec.h: Do not include verify.h; no longer needed.
4194         * modules/timespec (Depends-on): Remove ‘verify’.
4196         Optimize a few more three-valued comparisons
4197         * lib/timespec.h (timespec_cmp, timespec_sign):
4198         * lib/utimecmp.c (utimecmpat):
4199         Avoid conditional branches by using _GL_CMP.
4201         Fix _GL_CMP parenthesization typo
4202         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
4204 2020-07-24  Bruno Haible  <bruno@clisp.org>
4206         dfa: Revert breaking gawk.
4207         Reported by Arnold Robbins <arnold@skeeve.com>.
4208         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
4210 2020-07-23  Bruno Haible  <bruno@clisp.org>
4212         Optimize three-valued comparison between integers.
4213         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
4214         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
4215         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
4216         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
4217         * lib/dfa.c (compare): Likewise.
4218         * lib/fts.c (fts_compare_ino): Likewise.
4219         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
4220         * lib/mbscasecmp.c (mbscasecmp): Likewise.
4221         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
4222         * lib/memcasecmp.c (memcasecmp): Likewise.
4223         * lib/memcmp2.c (memcmp2): Likewise.
4224         * lib/savedir.c (direntry_cmp_inode): Likewise.
4225         * lib/strcasecmp.c (strcasecmp): Likewise.
4226         * lib/strncasecmp.c (strncasecmp): Likewise.
4227         * lib/unistr/u-cmp2.h (FUNC): Likewise.
4229 2020-07-23  Bruno Haible  <bruno@clisp.org>
4231         lchmod: Use /proc on Cygwin.
4232         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
4234 2020-07-23  Ken Brown  <kbrown@cornell.edu>
4236         fchmodat: Use /proc on Cygwin
4237         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
4239 2020-07-21  Bruno Haible  <bruno@clisp.org>
4241         aligned-malloc: Optionally use aligned_alloc.
4242         * lib/aligned-malloc.h: Verify the alignment.
4243         (aligned_malloc): Use aligned_alloc as an alternative.
4244         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
4245         * doc/posix-functions/aligned_alloc.texi: Mention the modules
4246         'aligned-malloc' and 'pagealign_alloc'.
4248 2020-07-21  Bruno Haible  <bruno@clisp.org>
4250         aligned-malloc: Add tests.
4251         * tests/test-aligned-malloc.c: New file.
4252         * modules/aligned-malloc-tests: New file.
4254         aligned-malloc: New module.
4255         * lib/aligned-malloc.h: New file.
4256         * m4/malloc-align.m4: New file.
4257         * modules/aligned-malloc: New file.
4258         * doc/posix-functions/posix_memalign.texi: Mention the new module.
4259         * doc/glibc-functions/memalign.texi: Likewise.
4261 2020-07-21  Bruno Haible  <bruno@clisp.org>
4263         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
4264         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
4265         sure PRIPTR_PREFIX is defined to "ll", not "l".
4267 2020-07-21  Bruno Haible  <bruno@clisp.org>
4269         printf-posix: Make an autoconf test more future-proof.
4270         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
4271         using uintptr_t.
4273 2020-07-20  Bruno Haible  <bruno@clisp.org>
4275         list, oset, omap: Relicense some of the container modules under LGPLv2+.
4276         * modules/list (License): Change to LGPLv2+.
4277         * modules/array-list (License): Likewise.
4278         * modules/carray-list (License): Likewise.
4279         * modules/linked-list (License): Likewise.
4280         * modules/avltree-list (License): Likewise.
4281         * modules/rbtree-list (License): Likewise.
4282         * modules/oset (License): Likewise.
4283         * modules/array-oset (License): Likewise.
4284         * modules/avltree-oset (License): Likewise.
4285         * modules/rbtree-oset (License): Likewise.
4286         * modules/omap (License): Likewise.
4287         * modules/array-omap (License): Likewise.
4288         * modules/avltree-omap (License): Likewise.
4289         * modules/rbtree-omap (License): Likewise.
4291 2020-07-20  Bruno Haible  <bruno@clisp.org>
4293         oset: Add an 'update' operation.
4294         * lib/gl_array_oset.c (gl_array_update): New function.
4295         (gl_array_oset_implementation): Use it.
4296         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4297         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4298         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
4299         extracted from gl_tree_nx_add_before.
4300         (gl_tree_nx_add_before): Invoke it.
4301         (gl_tree_add_node_after): New function, extracted from
4302         gl_tree_nx_add_after.
4303         (gl_tree_nx_add_after): Invoke it.
4304         (gl_tree_remove_node_no_free): New function, extracted from
4305         gl_tree_remove_node.
4306         (gl_tree_remove_node): Invoke it.
4307         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
4308         extracted from gl_tree_nx_add_before.
4309         (gl_tree_nx_add_before): Invoke it.
4310         (gl_tree_add_node_after): New function, extracted from
4311         gl_tree_nx_add_after.
4312         (gl_tree_nx_add_after): Invoke it.
4313         (gl_tree_remove_node_no_free): New function, extracted from
4314         gl_tree_remove_node.
4315         (gl_tree_remove_node): Invoke it.
4316         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
4317         from gl_tree_iterator_next.
4318         (gl_tree_iterator_next): Invoke it.
4319         (gl_tree_prev_node, gl_tree_update): New functions.
4320         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4321         (gl_avltree_oset_implementation): Use gl_tree_update.
4322         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
4323         (gl_rbtree_oset_implementation): Use gl_tree_update.
4324         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
4325         (gl_oset_update): New function.
4326         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
4327         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
4328         * modules/rbtree-oset (configure.ac): Likewise.
4329         * tests/test-oset-update.h: New file.
4330         * tests/test-array_oset.c: Include test-oset-update.h.
4331         (main): Invoke test_update.
4332         * tests/test-avltree_oset.c: Likewise.
4333         * tests/test-rbtree_oset.c: Likewise.
4334         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
4335         * modules/avltree-oset-tests (Files): Likewise.
4336         * modules/rbtree-oset-tests (Files): Likewise.
4337         * tests/test-oset-c++.cc (action): New function.
4338         (main): Test the 'update' member function.
4340 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4342         md5, sha1, sha256, sha512: pacify Autoconf 2.70
4343         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
4344         shell if, so that the argument to AC_CHECK_HEADERS is
4345         a simple string that does not require shell evaluation.
4346         This fixes a warning generated by Autoconf 2.69b.
4348 2020-07-12  Bruno Haible  <bruno@clisp.org>
4350         libgmp: Avoid warning when --without-libgmp is used.
4351         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
4352         GCC >= 8, not for GCC >= 4.6.
4354 2020-07-12  Bruno Haible  <bruno@clisp.org>
4356         libgmp: Link to the correct shared library.
4357         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
4358         * modules/libgmp (Depends-on): Add havelib.
4359         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
4360         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
4362 2020-07-12  Bruno Haible  <bruno@clisp.org>
4364         libgmp tests: Add some safety checks.
4365         * modules/libgmp-tests (Depends-on): Add verify.
4366         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
4367         (main): Verify that gmp.h and libgmp versions match.
4369 2020-07-10  Bruno Haible  <bruno@clisp.org>
4371         unicodeio: Fix wrong result on NetBSD.
4372         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
4373         characters also on NetBSD.
4375 2020-07-09  Bruno Haible  <bruno@clisp.org>
4377         unicodeio: Fix wrong result on Solaris 11.
4378         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
4379         via Akim Demaille <akim.demaille@gmail.com> in
4380         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
4381         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
4382         characters on Solaris.
4383         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
4384         UTF-8 output or the specified fallback.
4386 2020-07-08  Bruno Haible  <bruno@clisp.org>
4388         unicodeio: Add tests.
4389         * tests/test-unicodeio.c: New file.
4390         * tests/test-unicodeio1.sh: New file.
4391         * tests/test-unicodeio2.sh: New file.
4392         * tests/test-unicodeio3.sh: New file.
4393         * modules/unicodeio-tests: New file.
4395 2020-07-08  Bruno Haible  <bruno@clisp.org>
4397         unicodeio: Document link requirements.
4398         * modules/unicodeio (Link): New section.
4400 2020-07-07  Bruno Haible  <bruno@clisp.org>
4402         doc: Remove support for some very old platforms.
4403         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
4404         * doc/posix-functions/memcpy.texi: Likewise.
4405         * doc/posix-functions/memmove.texi: Likewise.
4406         * doc/posix-functions/memset.texi: Likewise.
4407         * doc/posix-functions/getcwd.texi: Likewise.
4409         memchr: Remove support for some very old platforms.
4410         * m4/memchr-obsolete.m4: Remove file.
4411         * modules/memchr-obsolete: Remove file.
4412         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
4413         absent. Don't define HAVE_MEMCHR.
4414         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
4415         * modules/memchr (Depends-on): Remove memchr-obsolete.
4416         (configure.ac): Assume HAVE_MEMCHR is 1.
4417         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
4418         HAVE_MEMCHR.
4419         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
4420         * doc/posix-functions/memchr.texi: Don't mention module
4421         'memchr-obsolete'.
4422         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
4423         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
4424         * modules/strnlen (Depends-on): Remove memchr-obsolete.
4426         dup2: Remove support for some very old platforms.
4427         * m4/dup2-obsolete.m4: Remove file.
4428         * modules/dup2-obsolete: Remove file.
4429         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
4430         Don't define HAVE_DUP2.
4431         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
4432         * lib/dup2.c: Likewise.
4433         * modules/dup2 (Depends-on, configure.ac): Likewise.
4434         (Depends-on): Remove dup2-obsolete.
4435         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
4436         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
4437         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
4439 2020-07-07  Bruno Haible  <bruno@clisp.org>
4441         canonicalize: Trim module dependencies.
4442         * lib/hash-triple.h: Group declarations.
4443         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
4444         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
4445         (STREQ): Remove macro.
4446         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
4447         * modules/hash-triple-simple: New file, based on modules/hash-triple.
4448         * modules/hash-triple (Files): Remove lib/hash-triple.h.
4449         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
4450         * modules/canonicalize (Depends-on): Remove hash-triple. Add
4451         hash-triple-simple.
4452         * modules/file-set (Depends-on): Likewise.
4454 2020-07-07  Bruno Haible  <bruno@clisp.org>
4456         Clarify dependencies to double-slash-root.
4457         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
4458         (Depends-on): Add double-slash-root.
4459         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
4460         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
4462 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4464         libgmp: new module
4465         The idea is to let programs simply include <gmp.h>, and
4466         so long as they live within the mini-gmp subset they need
4467         not worry about whether the GMP libraries are installed.
4468         * MODULES.html.sh: Mention it.
4469         * config/srclist.txt: Mention files copied from GMP source.
4470         * config/srclistvars.sh (GMP): New var.
4471         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
4472         * modules/libgmp-tests, tests/test-libgmp.c: New files.
4473         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
4475 2020-07-05  Bruno Haible  <bruno@clisp.org>
4477         mkancesdirs: Trim module dependencies.
4478         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
4479         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
4481 2020-07-05  Bruno Haible  <bruno@clisp.org>
4483         getprogname: Trim module dependencies.
4484         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
4485         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
4486         basename-lgpl.
4488 2020-07-05  Bruno Haible  <bruno@clisp.org>
4490         filenamecat-lgpl: Trim module dependencies.
4491         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
4492         dirname.h.
4493         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
4494         basename-lgpl, filename.
4496 2020-07-05  Bruno Haible  <bruno@clisp.org>
4498         backupfile, backup-rename: Trim module dependencies.
4499         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
4500         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
4501         basename-lgpl.
4502         * modules/backup-rename (Depends-on): Likewise.
4504 2020-07-05  Bruno Haible  <bruno@clisp.org>
4506         argp: Trim module dependencies.
4507         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
4508         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
4510 2020-07-05  Bruno Haible  <bruno@clisp.org>
4512         basename-lgpl: New module.
4513         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
4514         lib/basename-lgpl.c.
4515         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
4516         <stdbool.h>, filename.h.
4517         (last_component): Rename a local variable.
4518         * lib/dirname.h: Include basename-lgpl.h.
4519         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
4520         (last_component, base_len): Remove declarations.
4521         * modules/basename-lgpl: New file.
4522         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
4523         (Depends-on): Add basename-lgpl. Remove double-slash-root.
4524         (Makefile.am): Don't compile basename-lgpl.c.
4525         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
4526         not 'dirname'.
4528 2020-07-05  Bruno Haible  <bruno@clisp.org>
4530         dirname, dirname-lgpl: Simplify.
4531         * m4/dirname.m4: Remove file.
4532         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
4533         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
4534         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
4536 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
4538         tests: avoid shadowing warning
4539         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
4541 2020-07-05  Bruno Haible  <bruno@clisp.org>
4543         supersede: Add tests.
4544         * tests/test-supersede.c: New file.
4545         * tests/test-supersede-open.h: New file.
4546         * tests/test-supersede-fopen.h: New file.
4547         * modules/supersede-tests: New file.
4549         supersede: New module.
4550         * lib/supersede.h: New file.
4551         * lib/supersede.c: New file.
4552         * m4/supersede.m4: New file.
4553         * modules/supersede: New file.
4555 2020-07-05  Bruno Haible  <bruno@clisp.org>
4557         Add some copyright headers.
4558         * lib/dev-ino.h: Add copyright header.
4559         * lib/di-set.h: Likewise.
4560         * lib/fchown-stub.c: Likewise.
4561         * lib/file-set.h: Likewise.
4562         * lib/hash-triple.h: Likewise.
4563         * lib/idcache.h: Likewise.
4564         * lib/ino-map.h: Likewise.
4565         * lib/mkancesdirs.h: Likewise.
4566         * lib/scratch_buffer.h: Likewise.
4567         * lib/se-context.in.h: Likewise.
4568         * lib/stdopen.h: Likewise.
4569         * lib/userspec.h: Likewise.
4571 2020-07-04  Bruno Haible  <bruno@clisp.org>
4573         getrandom: Relicense under LGPLv2+.
4574         Paul Eggert's approval is in
4575         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
4576         * modules/getrandom (License): Change to LGPLv2+.
4578 2020-07-04  Bruno Haible  <bruno@clisp.org>
4580         getumask: Add tests.
4581         * tests/test-getumask.c: New file.
4582         * modules/getumask-tests: New file.
4584         getumask: New module.
4585         * lib/sys_stat.in.h (getumask): New declaration.
4586         * lib/getumask.c: New file.
4587         * m4/getumask.m4: New file.
4588         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
4589         declared.
4590         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
4591         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
4592         HAVE_GETUMASK.
4593         * modules/getumask: New file.
4594         * tests/test-sys_stat-c++.cc (getumask): Check signature.
4595         * doc/glibc-functions/getumask.texi: New file.
4596         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
4598 2020-07-04  Bruno Haible  <bruno@clisp.org>
4600         clean-temp: Add support for temporary files with given mode.
4601         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
4602         * lib/clean-temp.c (struct try_create_file_params): New type.
4603         (try_create_file): New function.
4604         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
4605         gen_tempname.
4607 2020-07-04  Bruno Haible  <bruno@clisp.org>
4609         clean-temp: Document limitations.
4610         * lib/clean-temp.h: Document limitations.
4612 2020-07-04  Bruno Haible  <bruno@clisp.org>
4614         clean-temp: Add support for temporary files with unpredictable names.
4615         * lib/clean-temp.h (gen_register_open_temp): New declaration.
4616         * lib/clean-temp.c: Include tempname.h.
4617         (gen_register_open_temp): New function.
4618         * modules/tempname (configure.ac): Define a module indicator.
4620 2020-07-04  Bruno Haible  <bruno@clisp.org>
4622         clean-temp: Add support for temporary files anywhere in the file system.
4623         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
4624         cleanup_temporary_file): New declarations.
4625         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
4626         variables.
4627         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
4628         (dir_cleanup_list): Renamed from cleanup_list.
4629         (cleanup_action): Process the file_cleanup_list as well.
4630         (do_init_clean_temp): New function.
4631         (clean_temp_once): New variable.
4632         (init_clean_temp): New function.
4633         (create_temp_dir): Invoke it.
4634         (register_temporary_file, unregister_temporary_file,
4635         cleanup_temporary_file): New functions.
4636         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
4637         argument.
4639 2020-07-04  Bruno Haible  <bruno@clisp.org>
4641         clean-temp: Improve comments.
4642         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
4643         fwriteerror_temp, close_stream_temp): Clarify intended use.
4644         * lib/clean-temp.c: Likewise.
4646 2020-07-04  Bruno Haible  <bruno@clisp.org>
4648         clean-temp: Make multithread-safe, part 2.
4649         * lib/fatal-signal.h: Include <signal.h>.
4650         (get_fatal_signal_set): New declaration.
4651         * lib/fatal-signal.c (get_fatal_signal_set): New function.
4652         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
4653         (struct closeable_fd): New type.
4654         (fatal_signal_set): New variable.
4655         (init_fatal_signal_set): New function.
4656         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
4657         (cleanup_action): Invoke asyncsafe_close instead of close.
4658         (create_temp_dir): Invoke init_fatal_signal_set.
4659         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
4660         element.
4661         (unregister_fd): Remove function.
4662         (close_temp): Cleanup descriptors list on the fly. Invoke
4663         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
4664         (fclose_variant_temp): New function.
4665         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
4666         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
4668 2020-07-04  Bruno Haible  <bruno@clisp.org>
4670         clean-temp: Make multithread-safe, part 1.
4671         * lib/clean-temp.c: Include glthread/lock.h.
4672         (cleanup_list_lock): New variable.
4673         (register_temp_file, unregister_temp_file, register_temp_subdir,
4674         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
4675         (create_temp_dir): Likewise. Don't free the old array.
4676         (descriptors_lock): New variable.
4677         (register_fd, unregister_fd): Use it.
4678         * modules/clean-temp (Depends-on): Add lock.
4680 2020-07-04  Bruno Haible  <bruno@clisp.org>
4682         fatal-signal: Make multithread-safe.
4683         * lib/fatal-signal.c (init_fatal_signals): Add comment.
4684         (do_init_fatal_signal_set): New function, extracted from
4685         init_fatal_signal_set.
4686         (fatal_signal_set_once): New variable.
4687         (init_fatal_signal_set): Use gl_once.
4689 2020-07-03  Bruno Haible  <bruno@clisp.org>
4691         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
4692         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
4693         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
4694         <bcrypt.h>.
4696 2020-07-03  Bruno Haible  <bruno@clisp.org>
4698         dfa tests: Follow common file naming conventions.
4699         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
4700         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
4701         * tests/test-dfa-invalid-char-class.sh: Renamed from
4702         tests/dfa-invalid-char-class.sh. Update.
4703         * modules/dfa-tests (Files, Makefile.am): Update.
4705 2020-07-03  Bruno Haible  <bruno@clisp.org>
4707         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
4708         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
4709         the GCC extended asm syntax also for the Sun Studio 12 compilers.
4711 2020-07-03  Bruno Haible  <bruno@clisp.org>
4713         asyncsafe-spin: Reduce code duplication.
4714         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
4715         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
4716         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
4718 2020-07-03  Bruno Haible  <bruno@clisp.org>
4720         lchmod: Simplify after 2020-02-22 change.
4721         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
4723 2020-07-03  Bruno Haible  <bruno@clisp.org>
4725         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
4726         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
4728 2020-07-03  Bruno Haible  <bruno@clisp.org>
4730         dfa: Make sure the compiler does not barf on 'inline'.
4731         * modules/dfa (configure.ac): Require AC_C_INLINE.
4733 2020-07-03  Bruno Haible  <bruno@clisp.org>
4735         bitset: Make sure the compiler does not barf on 'inline'.
4736         * modules/bitset (configure.ac): New section.
4738 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
4740         manywarnings: improve port to GCC 10.1
4741         * build-aux/gcc-warning.spec: Also list warnings that are default
4742         or are enabled by already-given flags.  This lets us speed up
4743         checking for attributes, and makes the generated compilation
4744         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
4745         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
4746         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
4747         to shell variables that may have long values.
4748         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
4749         consequences of other flags, to speed up checking and
4750         shorten commands.
4752         tests: pacify gcc -fanalyzer on zerosize_ptr
4753         * tests/test-memcasecmp.c (main):
4754         * tests/test-memchr.c (main):
4755         * tests/test-memchr2.c (main):
4756         * tests/test-memcmp.c (main):
4757         * tests/test-memmem.c (main):
4758         * tests/test-memrchr.c (main):
4759         * tests/unistr/test-chr.h (main):
4760         * tests/unistr/test-cmp.h (test_cmp):
4761         Check whether zerosize_ptr returns NULL before using it.
4762         This pacifies GCC 10.1’s new fanalyzer option, and matches
4763         other uses of zerosize_ptr.
4765 2020-07-01  Bruno Haible  <bruno@clisp.org>
4767         asyncsafe-spin: Add tests.
4768         * tests/test-asyncsafe-spin1.c: New file.
4769         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
4770         tests/test-pthread-spin.c.
4771         * modules/asyncsafe-spin-tests: New file.
4773 2020-07-01  Bruno Haible  <bruno@clisp.org>
4775         asyncsafe-spin: New module.
4776         * lib/asyncsafe-spin.h: New file.
4777         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
4778         * modules/asyncsafe-spin: New file.
4780 2020-07-01  Bruno Haible  <bruno@clisp.org>
4782         windows-spin: Fix race condition on multiprocessor systems.
4783         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
4785 2020-07-01  Bruno Haible  <bruno@clisp.org>
4787         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
4788         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
4789         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
4790         an implementation based on other GCC built-ins.
4792 2020-07-01  Bruno Haible  <bruno@clisp.org>
4794         pthread-spin: Optimize fallback for GCC versions >= 4.7.
4795         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
4796         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
4797         lock byte.
4799 2020-07-01  Bruno Haible  <bruno@clisp.org>
4801         pthread-spin: Add error checking.
4802         * lib/pthread-spin.c: Include <stdbool.h>.
4803         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
4804         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
4805         the unlocks.
4806         * modules/pthread-spin (Depends-on): Add stdbool.
4808 2020-07-01  Bruno Haible  <bruno@clisp.org>
4810         pthread-spin: Add tests.
4811         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
4812         * modules/pthread-spin-tests: New file.
4814 2020-07-01  Bruno Haible  <bruno@clisp.org>
4816         tests: Reduce code duplication.
4817         * tests/atomic-int-posix.h: New file, extracted from
4818         tests/test-pthread-mutex.c.
4819         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
4820         * tests/test-pthread-rwlock.c: Likewise.
4821         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
4822         * modules/pthread-rwlock-tests (Files): Likewise.
4824 2020-07-01  Bruno Haible  <bruno@clisp.org>
4826         tests: Refactor.
4827         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
4828         * tests/test-mtx.c: Include it. Remove the corresponding code.
4829         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
4831 2020-07-01  Bruno Haible  <bruno@clisp.org>
4833         tests: Refactor.
4834         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
4835         * tests/test-lock.c: Include it. Remove the corresponding code.
4836         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
4838 2020-06-29  Bruno Haible  <bruno@clisp.org>
4840         sys_socket: Don't define socklen_t if it is already defined on mingw.
4841         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
4842         <https://savannah.gnu.org/bugs/?57725>,
4843         by Rahul Das <bokul_4u@yahoo.com> in
4844         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
4845         and by Eli Zaretskii <eliz@gnu.org> in
4846         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
4847         * lib/sys_socket.in.h (socklen_t): Remove definition.
4849 2020-06-29  Bruno Haible  <bruno@clisp.org>
4851         alloca-opt: Fix warning on mingw.
4852         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
4853         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
4854         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
4855         whether alloca is defined.
4857 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
4859         getrandom: do not depend on ‘open’ on mingw
4860         Similarly for at-internal, getloadavg.  These modules do not call
4861         the ‘open’ function when they are compiled on mingw.  On mingw,
4862         this avoids having to compile open.c when building Emacs, which
4863         does its own thing with ‘open’.
4864         * modules/at-internal, modules/getloadavg, modules/getrandom:
4865         (Depends-on): Don’t depend on ‘open’ on mingw.
4866         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
4867         * modules/getloadavg (Depends-on):
4868         Depend on intprops, open, stdbool, stdlib only if compiling
4869         getloadavg.c.
4871 2020-06-28  Bruno Haible  <bruno@clisp.org>
4873         doc: Add a note about sigprocmask vs. pthread_sigmask.
4874         * doc/posix-functions/sigprocmask.texi: Add note.
4876 2020-06-28  Bruno Haible  <bruno@clisp.org>
4878         getrandom: Fix compilation errors on older versions of mingw.
4879         Reported by Eli Zaretskii <eliz@gnu.org> in
4880         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
4881         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
4882         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
4883         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
4884         BCryptGenRandom ourselves.
4886 2020-06-28  Bruno Haible  <bruno@clisp.org>
4888         clean-temp: Fix wrong errno in error message.
4889         * lib/clean-temp.c (create_temp_dir): Save errno around
4890         unblock_fatal_signals call.
4892 2020-06-27  Bruno Haible  <bruno@clisp.org>
4894         fatal-signal: Make multithread-safe.
4895         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
4897 2020-06-27  Bruno Haible  <bruno@clisp.org>
4899         clean-temp: Don't force deletion of temporary files on native Windows.
4900         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
4901         argument.
4902         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
4903         * NEWS: Mention the change.
4904         * lib/javacomp.c (write_temp_file): Update.
4906 2020-06-27  Bruno Haible  <bruno@clisp.org>
4908         fatal-signal: Make multithread-safe.
4909         * lib/fatal-signal.c: Include glthread/lock.h.
4910         (at_fatal_signal_lock): New variable.
4911         (at_fatal_signal): Use it.
4912         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
4913         (block_fatal_signals, unblock_fatal_signals): Use them.
4914         * modules/fatal-signal (Depends-on): Add lock.
4916 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
4918         getloadavg: don’t depend on fopen-gnu
4919         This is for Emacs, which does not need fopen-gnu for anything else,
4920         and which would need it only on a NetBSD platform where getloadavg
4921         does not work (does that even happen?).
4922         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
4923         * modules/getloadavg (Depends-on): Remove fopen-gnu.
4925         * tests/test-getloadavg.c (main): Fix typo.
4927 2020-06-27  Bruno Haible  <bruno@clisp.org>
4929         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
4930         * modules/tempname (Link): New section.
4931         * modules/mkdtemp (Link): Likewise.
4932         * modules/clean-temp (Link): Likewise.
4933         * modules/mkstemp (Link): Likewise.
4934         * modules/stdlib-safer (Link): Likewise.
4935         * modules/mkstemps (Link): Likewise.
4936         * modules/mkostemp (Link): Likewise.
4937         * modules/mkostemps (Link): Likewise.
4938         * modules/tmpfile (Link): Likewise.
4939         * modules/tmpfile-safer (Link): Likewise.
4940         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
4941         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
4942         $(LIB_GETRANDOM).
4943         * NEWS: Mention the changes.
4945 2020-06-27  Bruno Haible  <bruno@clisp.org>
4947         fopen-gnu: Simplify code.
4948         * lib/fopen.c: Include <stdbool.h>.
4949         (rpl_fopen): Use a single variable open_flags instead of
4950         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
4951         * modules/fopen (Depends-on): Add stdbool.
4953 2020-06-26  Bruno Haible  <bruno@clisp.org>
4955         canonicalize: Improve documentation.
4956         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
4957         return convention.
4959 2020-06-26  Bruno Haible  <bruno@clisp.org>
4961         xgetcwd: Improve documentation.
4962         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
4964 2020-06-26  Bruno Haible  <bruno@clisp.org>
4966         getcwd: Improve documentation.
4967         * lib/getcwd.c (__getcwd): Document the failure return convention.
4969 2020-06-26  Bruno Haible  <bruno@clisp.org>
4971         fchdir: Improve documentation.
4972         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
4973         convention.
4975 2020-06-26  Bruno Haible  <bruno@clisp.org>
4977         filenamecat-lgpl: Set errno upon failure.
4978         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
4979         return convention.
4980         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
4982 2020-06-26  Bruno Haible  <bruno@clisp.org>
4984         areadlink-with-size: Set errno upon failure.
4985         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
4986         fails.
4987         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
4989 2020-06-26  Bruno Haible  <bruno@clisp.org>
4991         copy-file: Shrink dependencies.
4992         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
4993         qcopy-acl.
4995 2020-06-26  Bruno Haible  <bruno@clisp.org>
4997         doc: Mention declaration fixes implemented by some modules.
4998         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
4999         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
5000         declaration appear in <unistd.h>.
5001         * doc/posix-functions/dup.texi: Likewise.
5002         * doc/posix-functions/dup2.texi: Likewise.
5003         * doc/posix-functions/gethostname.texi: Likewise.
5004         * doc/posix-functions/isatty.texi: Likewise.
5005         * doc/posix-functions/lseek.texi: Likewise.
5006         * doc/posix-functions/unlink.texi: Likewise.
5007         * doc/posix-functions/read.texi: Mention the module 'read'.
5008         * doc/posix-functions/write.texi: Mention the effects of the module
5009         'write'.
5011 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
5013         c-dtoastr, c-ldtoastr: new modules
5014         These modules provide the same functionality as the modules
5015         dtoastr and ldtoastr except for the formatting taking place in the
5016         C locale.
5017         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
5018         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
5019         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
5020         defined.  Use c_snprintf and c_strtod/c_strtold instead of
5021         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
5022         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
5023         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
5024         modules/c-ldtoastr-tests: New files.
5025         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
5026         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
5028 2020-06-21  Bruno Haible  <bruno@clisp.org>
5030         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
5031         * lib/tzset.c: Include <stdlib.h>, <string.h>.
5033 2020-06-16  Bruno Haible  <bruno@clisp.org>
5035         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
5036         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
5038 2020-06-16  Bruno Haible  <bruno@clisp.org>
5040         thread, thrd: Avoid a compiler warning.
5041         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
5043 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
5045         windows-thread: Avoid a compiler warning.
5046         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
5047         void.
5048         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
5050 2020-06-15  Bruno Haible  <bruno@clisp.org>
5052         unictype/joininggroup-name: Fix warning on 64-bit mingw.
5053         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
5054         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
5055         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
5056         first.
5058 2020-06-06  Bruno Haible  <bruno@clisp.org>
5060         calloc-gnu tests: Avoid a test failure with clang.
5061         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
5062         'volatile', to defeat compiler optimizations.
5064 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
5066         getloadavg: fix double-increment bug
5067         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
5068         Linux without glibc, Android, Cygwin.  This fixes a bug I
5069         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
5070         Problem and fix reported by Semen Verchenko in:
5071         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
5073         tempname: use getrandom, not getentropy
5074         This removes a dependency, as getentropy depends on getrandom.
5075         * lib/tempname.c: Include sys/random.h instead of unistd.h.
5076         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
5077         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
5079 2020-06-01  Bruno Haible  <bruno@clisp.org>
5081         doc: New chapter 'Multithreading'.
5082         * doc/multithread.texi: New file.
5083         * doc/gnulib.texi: Include it.
5085 2020-06-01  Bruno Haible  <bruno@clisp.org>
5087         doc: Move 'Running self-tests under valgrind' section.
5088         * doc/gnulib.texi (Build Infrastructure Modules): Include
5089         valgrind-tests.texi here...
5090         (Miscellaneous Notes): ... not here.
5092 2020-06-01  Bruno Haible  <bruno@clisp.org>
5094         doc: Move 'Visual Studio Compatibility' section.
5095         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
5096         here...
5097         (Build Infrastructure Modules): ... not here.
5099 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
5101         doc: improve randomness discussion
5102         Inspired by comments from Jeffrey Walton in:
5103         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
5104         * doc/glibc-functions/getentropy.texi (getentropy):
5105         * doc/glibc-functions/getrandom.texi (getrandom):
5106         Improve discussion of problems with "random" data,
5107         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
5109 2020-06-01  Bruno Haible  <bruno@clisp.org>
5111         doc: Fix Texinfo syntax error.
5112         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
5114 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
5116         doc: Change '.' to '@.' where appropriate.
5117         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
5118         * doc/glibc-functions/fstatfs.texi: Likewise.
5119         * doc/glibc-functions/fts_children.texi: Likewise.
5120         * doc/glibc-functions/fts_read.texi: Likewise.
5121         * doc/glibc-functions/getdirentries.texi: Likewise.
5122         * doc/glibc-functions/mkostemp.texi: Likewise.
5123         * doc/glibc-functions/mkostemps.texi: Likewise.
5124         * doc/glibc-functions/mkstemps.texi: Likewise.
5125         * doc/glibc-functions/preadv.texi: Likewise.
5126         * doc/glibc-functions/pwritev.texi: Likewise.
5127         * doc/glibc-functions/sendfile.texi: Likewise.
5128         * doc/glibc-functions/statfs.texi: Likewise.
5129         * doc/gnulib-intro.texi: Likewise.
5130         * doc/gnulib-tool.texi: Likewise.
5131         * doc/intprops.texi: Likewise.
5132         * doc/lib-symbol-visibility.texi: Likewise.
5133         * doc/licenses-texi.texi: Likewise.
5134         * doc/pastposix-functions/bcmp.texi: Likewise.
5135         * doc/pastposix-functions/bcopy.texi: Likewise.
5136         * doc/pastposix-functions/bzero.texi: Likewise.
5137         * doc/pastposix-functions/ecvt.texi: Likewise.
5138         * doc/pastposix-functions/fcvt.texi: Likewise.
5139         * doc/pastposix-functions/ftime.texi: Likewise.
5140         * doc/pastposix-functions/gcvt.texi: Likewise.
5141         * doc/pastposix-functions/getwd.texi: Likewise.
5142         * doc/pastposix-functions/index.texi: Likewise.
5143         * doc/pastposix-functions/mktemp.texi: Likewise.
5144         * doc/pastposix-functions/rindex.texi: Likewise.
5145         * doc/pastposix-functions/wcswcs.texi: Likewise.
5146         * doc/posix-functions/aio_cancel.texi: Likewise.
5147         * doc/posix-functions/aio_error.texi: Likewise.
5148         * doc/posix-functions/aio_fsync.texi: Likewise.
5149         * doc/posix-functions/aio_read.texi: Likewise.
5150         * doc/posix-functions/aio_return.texi: Likewise.
5151         * doc/posix-functions/aio_suspend.texi: Likewise.
5152         * doc/posix-functions/aio_write.texi: Likewise.
5153         * doc/posix-functions/creat.texi: Likewise.
5154         * doc/posix-functions/ctime.texi: Likewise.
5155         * doc/posix-functions/daylight.texi: Likewise.
5156         * doc/posix-functions/fgetpos.texi: Likewise.
5157         * doc/posix-functions/fopen.texi: Likewise.
5158         * doc/posix-functions/freopen.texi: Likewise.
5159         * doc/posix-functions/fseeko.texi: Likewise.
5160         * doc/posix-functions/fsetpos.texi: Likewise.
5161         * doc/posix-functions/fstatat.texi: Likewise.
5162         * doc/posix-functions/fstatvfs.texi: Likewise.
5163         * doc/posix-functions/ftello.texi: Likewise.
5164         * doc/posix-functions/ftruncate.texi: Likewise.
5165         * doc/posix-functions/getrlimit.texi: Likewise.
5166         * doc/posix-functions/lio_listio.texi: Likewise.
5167         * doc/posix-functions/localtime.texi: Likewise.
5168         * doc/posix-functions/lseek.texi: Likewise.
5169         * doc/posix-functions/mkstemp.texi: Likewise.
5170         * doc/posix-functions/mktime.texi: Likewise.
5171         * doc/posix-functions/open.texi: Likewise.
5172         * doc/posix-functions/openat.texi: Likewise.
5173         * doc/posix-functions/opendir.texi: Likewise.
5174         * doc/posix-functions/pread.texi: Likewise.
5175         * doc/posix-functions/pwrite.texi: Likewise.
5176         * doc/posix-functions/readdir.texi: Likewise.
5177         * doc/posix-functions/readdir_r.texi: Likewise.
5178         * doc/posix-functions/scandir.texi: Likewise.
5179         * doc/posix-functions/seekdir.texi: Likewise.
5180         * doc/posix-functions/setrlimit.texi: Likewise.
5181         * doc/posix-functions/statvfs.texi: Likewise.
5182         * doc/posix-functions/strftime.texi: Likewise.
5183         * doc/posix-functions/telldir.texi: Likewise.
5184         * doc/posix-functions/timezone.texi: Likewise.
5185         * doc/posix-functions/tmpfile.texi: Likewise.
5186         * doc/posix-functions/truncate.texi: Likewise.
5187         * doc/posix-functions/tzname.texi: Likewise.
5188         * doc/posix-functions/wcsftime.texi: Likewise.
5189         * doc/windows-sockets.texi: Likewise.
5191 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
5193         getrandom-tests: do not assume GRND_RANDOM yields short read
5194         * tests/test-getrandom.c (main): Omit assertion that
5195         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
5196         when b’s size is 100000.  This assertion fails with Linux kernel
5197         5.6.13, as that kernel ignores the GRND_RANDOM flag.
5198         The separate blocking pool is going away in the Linux kernel, and
5199         they’ve added a flag GRND_INSECURE instead; see:
5200         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
5201         The assertion was iffy anyway; what’s to prevent a kernel from
5202         lazily filling a large buffer with random bytes?
5204         read-file-test: pacify --enable-gcc-warnings
5205         * tests/test-read-file.c (test_read_file): Now static.
5207         tempname: merge from glibc and coreutils
5208         Also, merge in Gnulib’s more-recent methods of making it easier
5209         to share between Gnulib and glibc, and fix a few randomness
5210         glitches.
5211         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
5212         (__set_errno): Remove; libc-config.h does that for us.
5213         Do not include <sys/time.h>.
5214         (__secure_getenv) [_LIBC]: New macro.
5215         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
5216         (RANDOM_BITS): Rewrite.
5217         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
5218         (random_value): New typedef.
5219         (try_file, try_dir, try_nocreate): Move up.
5220         (gen_tempname_len, try_tempname_len): New functions.
5221         (gen_tempname_len): Use a constant array rather than a switch.
5222         (try_tempname_len): Don’t assume string length fits in int.
5223         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
5224         has enough entropy (it’s a bit short).
5225         (__gen_tempname): Rewrite in terms of gen_tempname_len.
5226         (__try_tempname): Rewrite in terms of try_tempname_len.
5227         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
5228         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
5229         Add getentropy, libc-config.
5231 2020-05-31  Bruno Haible  <bruno@clisp.org>
5233         getrandom, getentropy: Mention the crypto/gc-random module.
5234         Suggested by Simon Josefsson in
5235         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
5236         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
5237         crypto/gc-random module.
5238         * doc/glibc-functions/getentropy.texi: Likewise.
5240 2020-05-31  Bruno Haible  <bruno@clisp.org>
5242         getentropy: Enhance tests.
5243         * tests/test-getentropy.c (main): Add one more test.
5244         * tests/test-unistd-c++.cc: Check the signature of getentropy.
5246 2020-05-31  Bruno Haible  <bruno@clisp.org>
5248         getentropy: Work around a macOS and Solaris problem.
5249         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
5250         'getentropy' module.
5251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5252         UNISTD_H_HAVE_SYS_RANDOM_H.
5253         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
5254         UNISTD_H_HAVE_SYS_RANDOM_H.
5255         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
5256         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
5257         problem. List more platforms.
5259 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
5261         fnmatch: merge from glibc
5262         Also, merge in Gnulib’s more-recent methods of making it easier
5263         to share between Gnulib and glibc.
5264         * lib/fnmatch.c: Reorder includes to match glibc better.
5265         Include libc-config.h instead of config.h.
5266         Include alloca.h only if _LIBC || HAVE_ALLOCA.
5267         Do not include "../locale/elem-hash.h" if _LIBC.
5268         Define macros for btowc, etc. if _LIBC.  All uses simplified.
5269         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
5270         Include intprops.h, since glibc has it now.
5271         (SIZE_MAX): Remove; use (size_t) -1 instead.
5272         Omit the "Comment out all this code" ifdef, since Gnulib
5273         has never really needed it.
5274         (STREQ): Remove; no longer used.
5275         (__libc_use_alloca, alloca, alloca_account): Define as
5276         needed if !_LIBC.
5277         (ISWCTYPE): Remove; all uses replaced by iswctype.
5278         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
5279         (internal_function): Remove.  All uses removed.
5280         (STRUCT): New macro.
5281         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
5282         (WMEMCMP): New macro.
5283         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
5284         and <locale/weightwc.h>.
5285         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
5286         __builtin_expect.  Check for integer overflow more
5287         systematically.  Account for alloca storage better when
5288         recursive.  Use strnlen instead of strlen for efficiency.
5289         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
5290         (struct STRUCT): New type.
5291         (FCT, EXT): New ENDS and ALLOCA_USED args.
5292         All callers changed.
5293         (FCT): Prefer __glibc_unlikely to __builtin_expect.
5294         Simplify by assuming WIDE_CHAR_SUPPORT.
5295         Copy _LIBC code from glibc without worrying Gnulib compatibility.
5296         Cast cold to UCHAR to avoid signedness warning.
5297         (END): Check for invalid pattern.
5298         (EXT): Improve alloca/malloc checking (taken from glibc),
5299         and improve it some more by using intprops.h and checking
5300         for integer overflow and using bool for booleans.
5301         * lib/libc-config.h (compat_symbol): New macro.
5302         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
5303         acceptable to non-GCC when a trailing semicolon is added.
5304         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
5305         libc-config, strnlen.  Remove alloca.
5307 2020-05-31  Bruno Haible  <bruno@clisp.org>
5309         getrandom: Doc and test tweaks.
5310         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
5311         it sets errno when failing.
5312         * tests/test-getrandom.c (main): Disable the high-quality check on those
5313         platforms on which it fails.
5314         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
5315         Cygwin to the list of platforms that don't have the function. Add a note
5316         about the quality of the result.
5317         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
5318         declaration; this is fixed by module 'getrandom'.
5320 2020-05-31  Bruno Haible  <bruno@clisp.org>
5322         getrandom: Add support for native Windows.
5323         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
5324         <wincrypt.h>.
5325         (CRYPT_VERIFY_CONTEXT): New macro.
5326         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
5327         'A'.
5328         (GetProcAddress): New macro.
5329         (BCryptGenRandomFuncType): New type.
5330         (BCryptGenRandomFunc, initialized): New variables.
5331         (initialize): New function.
5332         (getrandom): On native Windows, use <bcrypt.h> API when available, and
5333         <wincrypt.h> API as fallback.
5334         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
5335         * modules/getrandom (Link): New section.
5336         * modules/getentropy (Link): Likewise.
5337         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
5338         $(LIB_GETRANDOM).
5339         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
5340         $(LIB_GETRANDOM).
5341         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
5342         against $(LIB_GETRANDOM).
5343         * doc/glibc-functions/getrandom.texi: Mention the native Windows
5344         support.
5346 2020-05-31  Bruno Haible  <bruno@clisp.org>
5348         getrandom: Simplify the determination of the random number devices.
5349         Suggested by Paul Eggert in
5350         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
5351         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
5352         macros.
5353         * modules/getrandom (Depends-on): Remove crypto/gc-random.
5355 2020-05-31  Bruno Haible  <bruno@clisp.org>
5357         crypto/gc-random: Fix list of crypto devices for Solaris.
5358         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
5360 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
5362         list: fix GCC warnings
5363         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
5364         (gl_tree_next_node, gl_tree_node_nx_set_value)
5365         (gl_tree_previous_node, gl_tree_next_node):
5366         Mark unused arguments.
5367         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
5368         * lib/gl_anylinked_list2.h (gl_linked_node_value)
5369         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
5371         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
5372         the same variable name in nested scopes.
5374 2020-05-31  Bruno Haible  <bruno@clisp.org>
5376         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
5377         Reported by Akim Demaille in
5378         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
5379         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
5380         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
5381         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
5382         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
5383         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
5385 2020-05-30  Bruno Haible  <bruno@clisp.org>
5387         wmemchr: Relicense under LGPLv2+.
5388         * modules/wmemchr (License): Set to LGPLv2+.
5390 2020-05-30  Bruno Haible  <bruno@clisp.org>
5392         wmempcpy: New module.
5393         Reported by Paul Eggert in
5394         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
5395         * lib/wchar.in.h (wmempcpy): New declaration.
5396         * lib/wmempcpy.c: New file.
5397         * m4/wmempcpy.m4: New file.
5398         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
5399         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
5400         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
5401         HAVE_WMEMPCPY.
5402         * modules/wmempcpy: New file.
5403         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
5404         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
5405         * modules/mempcpy (Description): Fix typo.
5407 2020-05-30  Bruno Haible  <bruno@clisp.org>
5409         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
5410         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
5412 2020-05-30  Bruno Haible  <bruno@clisp.org>
5414         sys_random: Work around macOS bug.
5415         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
5416         <stdlib.h> before <sys/random.h>.
5417         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
5418         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
5419         first.
5420         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
5422 2020-05-30  Bruno Haible  <bruno@clisp.org>
5424         getrandom: Override incompatible system function on Solaris 11.
5425         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
5426         * lib/getrandom.c (getrandom): When the system has getrandom, just
5427         invoke it.
5428         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
5429         system's getrandom function's prototype is not the expected one.
5430         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
5431         REPLACE_GETRANDOM.
5432         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
5433         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
5434         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
5435         EAGAIN.
5436         * doc/glibc-functions/getrandom.texi: Mention the new module and the
5437         Solaris problem.
5439 2020-05-30  Bruno Haible  <bruno@clisp.org>
5441         sys_random: Add C++ tests.
5442         * tests/test-sys_random-c++.cc: New file.
5443         * modules/sys_random-c++-tests: New file.
5444         * modules/sys_random-tests (Depends-on): Depend on it.
5446         sys_random: Add tests.
5447         * tests/test-sys_random.c: New file.
5448         * modules/sys_random-tests: New file.
5450         sys_random: New module.
5451         * lib/sys_random.in.h: Use the common idioms for overridable header
5452         files.
5453         * m4/sys_random_h.m4: New file.
5454         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
5455         * modules/sys_random: New file.
5456         * modules/getrandom (Files): Remove lib/sys_random.in.h.
5457         (Depends-on): Add sys_random.
5458         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
5459         gl_UNISTD_MODULE_INDICATOR.
5460         (Makefile.am): Don't generate sys/random.h here.
5461         * doc/glibc-headers/sys_random.texi: New file.
5462         * doc/gnulib.texi: Include it.
5464 2020-05-30  Bruno Haible  <bruno@clisp.org>
5466         unistd: Remove conflicting declaration of getrandom().
5467         * lib/unistd.in.h (getrandom): Remove declaration.
5468         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
5469         declared.
5470         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
5471         HAVE_GETRANDOM.
5472         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
5473         HAVE_GETRANDOM.
5475 2020-05-30  Bruno Haible  <bruno@clisp.org>
5477         getrandom: Add tests.
5478         * tests/test-getrandom.c: New file.
5479         * modules/getrandom-tests: New file.
5481 2020-05-30  Bruno Haible  <bruno@clisp.org>
5483         crypto/gc-random: Fix link error on MSVC.
5484         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
5485         * modules/crypto/gc-random (Link): New section.
5486         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
5487         $(LIB_GC_RANDOM).
5489 2020-05-30  Bruno Haible  <bruno@clisp.org>
5491         Don't assume that UNICODE is not defined.
5492         Many Windows API functions are defined differently (redirecting to a
5493         function with suffix 'W') if the application defines the macro UNICODE
5494         than by default (redirecting to a function with suffix 'A').
5495         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
5496         variant with suffix 'A'.
5497         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
5498         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
5499         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
5500         * lib/getlogin.c (GetUserName): Likewise.
5501         * lib/getlogin_r.c (GetUserName): Likewise.
5502         * lib/gettimeofday.c (LoadLibrary): Likewise.
5503         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
5504         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
5505         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
5506         * lib/mountlist.c (GetDriveType): Likewise.
5507         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
5508         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
5509         Likewise.
5510         * lib/physmem.c (GetModuleHandle): Likewise.
5511         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
5512         PeekMessage, DispatchMessage): Likewise.
5513         * lib/progreloc.c (GetModuleFileName): Likewise.
5514         * lib/putenv.c (SetEnvironmentVariable): Likewise.
5515         * lib/read.c (GetNamedPipeHandleState): Likewise.
5516         * lib/readdir.c (FindNextFile): Likewise.
5517         * lib/relocatable.c (GetModuleFileName): Likewise.
5518         * lib/rename.c (MoveFileEx): Likewise.
5519         * lib/rewinddir.c (FindFirstFile): Likewise.
5520         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
5521         PeekMessage, DispatchMessage): Likewise.
5522         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
5523         * lib/socket.c (WSASocket): Likewise.
5524         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
5525         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
5526         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
5527         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
5528         * lib/tmpdir.c (GetTempPath): Likewise.
5529         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
5530         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
5531         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
5532         * lib/windows-cond.c (CreateEvent): Likewise.
5533         * lib/windows-rwlock.c (CreateEvent): Likewise.
5534         * lib/windows-timedmutex.c (CreateEvent): Likewise.
5535         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
5536         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
5537         * lib/write.c (GetNamedPipeHandleState): Likewise.
5539 2020-05-30  Bruno Haible  <bruno@clisp.org>
5541         physmem: Fix compilation errors on MSVC.
5542         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
5543         * modules/physmem (Depends-on): Add unistd.
5545 2020-05-29  Bruno Haible  <bruno@clisp.org>
5547         gnulib-tool: Fix link errors with a particular set of modules on mingw.
5548         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
5549         LDADD a second time, after the second occurrence of libtests.a.
5550         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
5552 2020-05-29  Bruno Haible  <bruno@clisp.org>
5554         fnmatch: Rely on more gnulib modules.
5555         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
5556         wmempcpy, mempcpy.
5557         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
5558         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
5559         HAVE_MEMPCPY are all 1.
5560         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
5561         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
5563 2020-05-29  Bruno Haible  <bruno@clisp.org>
5565         Avoid dynamic lookup of Windows API functions when possible.
5566         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
5567         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
5568         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
5569         (use_win32_p): Define differently.
5570         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
5571         CreateHardLinkFunc, initialized, initialize): Don't define in a build
5572         for Windows XP or higher.
5574 2020-05-29  Daiki Ueno  <ueno@gnu.org>
5576         read-file: disable buffering if RF_SENSITIVE is set
5577         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
5578         Suggested by Glenn Strauss.
5579         (fread_file): Suggest calling setvbuf before calling this
5580         function.  Suggested by Bruno Haible.
5582 2020-05-29  Bruno Haible  <bruno@clisp.org>
5584         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
5585         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
5586         program.
5587         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
5588         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
5589         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
5590         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
5592 2020-05-29  Bruno Haible  <bruno@clisp.org>
5594         Fix compilation error on native Windows (regression from 2020-05-28).
5595         Reported by Daiki Ueno.
5596         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
5597         macro when not using dynamic loading.
5598         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
5599         QueryFullProcessImageNameFunc): Likewise.
5600         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
5601         GetFinalPathNameByHandleFunc): Likewise.
5603 2020-05-29  Daiki Ueno  <ueno@gnu.org>
5605         fopen-gnu-tests: fix "\x" escape usage
5606         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
5608 2020-05-28  Bruno Haible  <bruno@clisp.org>
5610         Avoid dynamic loading of Windows API functions when possible.
5611         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
5612         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
5613         * lib/gettimeofday.c (GetProcAddress,
5614         GetSystemTimePreciseAsFileTimeFuncType,
5615         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
5616         define in a build for Windows 8 or higher.
5617         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
5618         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
5619         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
5620         in a build for Windows Vista or higher.
5621         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
5622         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
5623         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
5625 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
5627         explicit_bzero-tests: improve -Wmissing-declarations pacification
5628         * tests/test-explicit_bzero.c: Now noinline.
5629         Suggested by Bruno Haible in:
5630         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
5632 2020-05-28  Bruno Haible  <bruno@clisp.org>
5634         Fix build errors due to read-file changes (regression from 2020-05-27).
5635         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
5636         invocation.
5637         * tests/test-sameacls.c (main): Likewise.
5638         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
5639         read_binary_file.
5640         * tests/test-pipe-filter-ii1.c (main): Likewise.
5642 2020-05-28  Bruno Haible  <bruno@clisp.org>
5644         fts: Make more robust in multithreaded applications.
5645         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
5646         * modules/fts (Depends-on): Add 'open'.
5648 2020-05-28  Bruno Haible  <bruno@clisp.org>
5650         relocatable-prog: Make more robust in multithreaded applications.
5651         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
5652         relocatable-prog-wrapper.
5653         (find_executable): Pass an O_CLOEXEC flag to open().
5654         * modules/relocatable-prog (Depends-on): Add 'open'.
5656 2020-05-28  Bruno Haible  <bruno@clisp.org>
5658         getloadavg: Make more robust in multithreaded applications.
5659         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
5660         Simplify use of O_CLOEXEC.
5661         * modules/getloadavg (Depends-on): Add 'open'.
5663 2020-05-28  Bruno Haible  <bruno@clisp.org>
5665         vma-iter: Make more robust in multithreaded applications.
5666         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
5667         open().
5668         * modules/vma-iter (Depends-on): Add 'open'.
5670 2020-05-28  Bruno Haible  <bruno@clisp.org>
5672         truncate: Make more robust in multithreaded applications.
5673         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
5675 2020-05-28  Bruno Haible  <bruno@clisp.org>
5677         pagealign_alloc: Make more robust in multithreaded applications.
5678         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
5679         open().
5680         * modules/pagealign_alloc (Depends-on): Add 'open'.
5682 2020-05-28  Bruno Haible  <bruno@clisp.org>
5684         openat: Make more robust in multithreaded applications.
5685         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
5687 2020-05-28  Bruno Haible  <bruno@clisp.org>
5689         at-internal: Make more robust in multithreaded applications.
5690         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
5691         open().
5693 2020-05-28  Bruno Haible  <bruno@clisp.org>
5695         mountlist: Make more robust in multithreaded applications.
5696         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
5697         open().
5698         * modules/mountlist (Depends-on): Add 'open'.
5700 2020-05-28  Bruno Haible  <bruno@clisp.org>
5702         login_tty: Make more robust in multithreaded applications.
5703         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
5704         * modules/login_tty (Depends-on): Add 'open'.
5706 2020-05-28  Bruno Haible  <bruno@clisp.org>
5708         javacomp: Make more robust in multithreaded applications.
5709         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
5710         open().
5711         * modules/javacomp (Depends-on): Add 'open'.
5713 2020-05-28  Bruno Haible  <bruno@clisp.org>
5715         getprogname: Make more robust in multithreaded applications.
5716         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
5717         * modules/getprogname (Depends-on): Add 'open'.
5719 2020-05-28  Bruno Haible  <bruno@clisp.org>
5721         get_progname_of: Make more robust in multithreaded applications.
5722         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
5723         open().
5724         * modules/get_progname_of (Depends-on): Add 'open'.
5726 2020-05-28  Bruno Haible  <bruno@clisp.org>
5728         get_ppid_of: Make more robust in multithreaded applications.
5729         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
5730         * modules/get_ppid_of (Depends-on): Add 'open'.
5732 2020-05-28  Bruno Haible  <bruno@clisp.org>
5734         get-rusage-as: Make more robust in multithreaded applications.
5735         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
5736         flag to open().
5737         * modules/get-rusage-as (Depends-on): Add 'open'.
5739 2020-05-28  Bruno Haible  <bruno@clisp.org>
5741         crypto/gc: Make more robust in multithreaded applications.
5742         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
5743         * modules/crypto/gc (Depends-on): Add 'open'.
5745 2020-05-28  Bruno Haible  <bruno@clisp.org>
5747         copy-file: Make more robust in multithreaded applications.
5748         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
5749         open().
5751 2020-05-28  Bruno Haible  <bruno@clisp.org>
5753         chown: Make more robust in multithreaded applications.
5754         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
5756 2020-05-28  Bruno Haible  <bruno@clisp.org>
5758         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
5759         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
5761 2020-05-28  Daiki Ueno  <ueno@gnu.org>
5763         fopen-gnu: make 'b' flag can be used with 'e' on Windows
5764         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
5765         specified on Windows.
5766         * tests/test-fopen-gnu.c (DATA): New define.
5767         (main): Add test for reading binary files with an 'e' flag.
5769 2020-05-27  Bruno Haible  <bruno@clisp.org>
5771         Don't assume that UNICODE is not defined.
5772         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
5773         differently if the application defines the macro UNICODE.
5774         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
5775         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
5776         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
5777         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
5778         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
5780 2020-05-27  Bruno Haible  <bruno@clisp.org>
5782         Improve pattern for defining _WIN32_WINNT.
5783         Newer versions of the Windows API may not only add, but also remove API
5784         functions. Therefore, when the user is e.g. building for Windows 10, we
5785         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
5786         use of APIs that were present in Windows 8 but removed in Windows 10.
5787         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
5788         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
5789         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
5790         * lib/sethostname.c (_WIN32_WINNT): Likewise.
5791         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
5793 2020-05-27  Bruno Haible  <bruno@clisp.org>
5795         javacomp: Make more robust in multithreaded applications.
5796         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
5797         * modules/javacomp (Depends-on): Add fopen-gnu.
5799 2020-05-27  Bruno Haible  <bruno@clisp.org>
5801         mountlist: Make more robust in multithreaded applications.
5802         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
5803         to fopen.
5804         * modules/mountlist (Depends-on): Add fopen-gnu.
5806 2020-05-27  Bruno Haible  <bruno@clisp.org>
5808         sethostname: Make more robust in multithreaded applications.
5809         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
5810         * modules/sethostname (Depends-on): Add fopen-gnu.
5812 2020-05-27  Bruno Haible  <bruno@clisp.org>
5814         readutmp: Make more robust in multithreaded applications.
5815         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
5816         * modules/readutmp (Depends-on): Add fopen-gnu.
5818 2020-05-27  Bruno Haible  <bruno@clisp.org>
5820         getpass: Make more robust in multithreaded applications.
5821         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
5822         * modules/getpass (Depends-on): Add fopen-gnu.
5824 2020-05-27  Bruno Haible  <bruno@clisp.org>
5826         getloadavg: Make more robust in multithreaded applications.
5827         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
5828         * modules/getloadavg (Depends-on): Add fopen-gnu.
5830 2020-05-27  Bruno Haible  <bruno@clisp.org>
5832         exclude: Make more robust in multithreaded applications.
5833         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
5834         * modules/exclude (Depends-on): Add fopen-gnu.
5836 2020-05-27  Bruno Haible  <bruno@clisp.org>
5838         bitset: Make more robust in multithreaded applications.
5839         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
5840         'e' flag to fopen.
5841         * modules/bitset (Depends-on): Add fopen-gnu.
5843 2020-05-27  Daiki Ueno  <ueno@gnu.org>
5845         read-file: add RF_SENSITIVE flag
5846         * lib/read-file.h (RF_SENSITIVE): New define.
5847         * lib/read-file.c (fread_file, read_file): Take into account of
5848         RF_SENSITIVE flag.
5849         * modules/read-file (Depends-on): Add explicit_bzero.
5850         This adds an alternative behavior of those functions to explicitly
5851         clear the internal memory block when it becomes unused.  This is
5852         useful for reading sensitive information from a file.
5854 2020-05-27  Daiki Ueno  <ueno@gnu.org>
5856         read-file: add flags to modify reading behavior
5857         * lib/read-file.h (RF_BINARY): New define.
5858         (fread_file, read_file): Take FLAGS argument.
5859         (read_binary_file): Remove.
5860         * lib/read-file.c (internal_read_file): Merge into ...
5861         (read_file): ... here.
5862         * modules/read-file-tests (Files): Add "tests/macros.h".
5863         * tests/test-read-file.c (main): Refactor using ASSERT macro.
5864         * NEWS: Mention this change.
5866 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
5868         doc/gnulib-intro.texi: add missing "to" in sentence
5869         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
5870         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
5871         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
5873 2020-05-26  Bruno Haible  <bruno@clisp.org>
5875         count-one-bits: Fix MSVC specific code.
5876         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
5877         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
5878         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
5879         using GCC.
5880         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
5881         (__popcnt64): In 32-bit mode, define as an inline function.
5882         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
5884 2020-05-26  Bruno Haible  <bruno@clisp.org>
5886         argz: Avoid name clashes through argz.h.
5887         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
5888         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
5889         * lib/argz.h: Don't use __ prefixed identifiers.
5890         (const): Remove definition.
5891         (argz_next): Remove inline definitions.
5893 2020-05-26  Daiki Ueno  <ueno@gnu.org>
5895         read-file: make use of fopen-gnu
5896         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
5897         (read_binary_file): Likewise.
5898         * modules/read-file (Depends-on): Add fopen-gnu.
5900 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
5902         getentropy, getrandom: new modules
5903         * MODULES.html.sh (func_all_modules):
5904         * lib/unistd.in.h (getentropy, getrandom):
5905         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
5906         * modules/unistd (unistd.h):
5907         Add support for getentropy, getrandom.
5908         * doc/glibc-functions/getentropy.texi (getentropy):
5909         * doc/glibc-functions/getrandom.texi (getrandom):
5910         These are now fixed on some platforms.
5911         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
5912         * m4/getentropy.m4, m4/getrandom.m4:
5913         * modules/getentropy, modules/getentropy-tests:
5914         * modules/getrandom, modules/getrandom-tests:
5915         * tests/test-getentropy.c, tests/test-getrandom.c:
5916         New files.
5918 2020-05-25  Bruno Haible  <bruno@clisp.org>
5920         Add missing C99 dependencies.
5921         Reported by Paul Smith <psmith@gnu.org> in
5922         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
5923         * modules/assert (Depends-on): Add c99.
5924         * modules/filenamecat-lgpl (Depends-on): Likewise.
5925         * modules/libc-config (Depends-on): Likewise.
5926         * modules/mktime (Depends-on): Likewise.
5927         * modules/random_r (Depends-on): Likewise.
5928         * modules/regex (Depends-on): Likewise.
5929         * modules/scratch_buffer (Depends-on): Likewise.
5930         * modules/timespec-add (Depends-on): Likewise.
5931         * modules/timespec-sub (Depends-on): Likewise.
5932         * modules/verify (Depends-on): Likewise.
5934 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
5936         explicit_bzero-tests: pacify -Wmissing-declarations
5937         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
5938         Now static.
5940 2020-05-24  Bruno Haible  <bruno@clisp.org>
5942         fopen-gnu: Add tests.
5943         * tests/test-fopen-gnu.c: New file.
5944         * modules/fopen-gnu-tests: New file.
5946         fopen-gnu: New module.
5947         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
5948         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
5949         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
5950         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
5951         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
5952         * modules/fopen-gnu: New file.
5953         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
5955 2020-05-24  Bruno Haible  <bruno@clisp.org>
5957         open, openat: Really support O_CLOEXEC.
5958         * lib/open.c (open): When have_cloexec is still undecided, do pass a
5959         O_CLOEXEC flag to orig_open.
5960         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
5961         pass a O_CLOEXEC flag to orig_openat.
5962         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
5963         * modules/open-tests (Depends-on): Add fcntl.
5964         * modules/openat-tests (Depends-on): Likewise.
5965         * modules/fcntl-safer-tests (Depends-on): Likewise.
5967 2020-05-24  Bruno Haible  <bruno@clisp.org>
5969         fopen: Fix the trailing slash workaround.
5970         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
5971         write access. Pass the right flags to open().
5972         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
5974 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5976         assure: new macro ‘affirm’
5977         * lib/assure.h: Include verify.h.
5978         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
5979         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
5980         and commentary by Bruno Haible in:
5981         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
5982         * modules/assure (Depends-on:): Add verify.
5984 2020-05-23  Bruno Haible  <bruno@clisp.org>
5986         calloc-gnu: Make test work in non-flat address spaces.
5987         Uses code by Paul Eggert.
5988         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
5989         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
5991 2020-05-23  Bruno Haible  <bruno@clisp.org>
5993         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
5994         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
5995         AC_RUN_IFELSE invocations.
5997 2020-05-23  Bruno Haible  <bruno@clisp.org>
5999         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
6000         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
6001         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
6002         don't have it.
6003         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
6004         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
6005         don't have it.
6006         * lib/isnanf-nolibm.h (__has_builtin): New macro.
6007         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
6008         it.
6009         * lib/isnanl-nolibm.h (__has_builtin): New macro.
6010         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
6011         it.
6012         * lib/math.in.h (__has_builtin): New macro.
6013         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
6014         it.
6015         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
6016         it.
6017         (isnan): Don't use the builtins on clang versions that don't have
6018         __builtin_isnanf and __builtin_isnanl.
6020 2020-05-23  Bruno Haible  <bruno@clisp.org>
6022         calloc-gnu: Avoid wrong configure results with clang.
6023         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
6024         'volatile', to defeat compiler optimizations.
6026 2020-05-23  Bruno Haible  <bruno@clisp.org>
6028         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
6029         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
6030         'long double' values by reference, with values taken from a statically
6031         allocated array.
6033 2020-05-23  Bruno Haible  <bruno@clisp.org>
6035         findprog-in: Ignore directories.
6036         Reported by Frederick Eaton via Dmitry Goncharov in
6037         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
6038         * lib/findprog-in.c (find_in_given_path): When the file found is a
6039         directory, set errno to EACCES and, during a PATH search, continue
6040         searching.
6041         * modules/findprog-in (Depends-on): Add sys_stat, stat.
6043 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6045         verify: document ‘assume’ better
6046         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
6048 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
6050         gendocs: Clarify licenses for templates.
6051         * doc/gendocs_template: Add a GNU All-Permissive license notice
6052         and bump Parent-Version.
6053         * doc/gendocs_template_min: Add a GNU All-Permissive license
6054         notice and copy the explanatory comment about the license notice
6055         at the bottom from gendocs_template.
6057 2020-05-21  Bruno Haible  <bruno@clisp.org>
6059         group-member: Relicense under LGPLv2+.
6060         Jim Meyering's approval is in
6061         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
6062         Paul Eggert's approval is in
6063         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
6064         Eric Blake's approval is in
6065         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
6066         * modules/group-member (License): Change to LGPLv2+.
6068 2020-05-21  Bruno Haible  <bruno@clisp.org>
6070         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
6071         Reported by Tim Rühsen in
6072         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
6073         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
6075 2020-05-21  Bruno Haible  <bruno@clisp.org>
6077         regex: Avoid wrong configure results with "clang -fsanitize=leak".
6078         Reported by Tim Rühsen in
6079         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
6080         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
6081         before returning with status 0.
6083 2020-05-21  Bruno Haible  <bruno@clisp.org>
6085         glob: Avoid wrong configure results with "clang -fsanitize=leak".
6086         Reported by Tim Rühsen in
6087         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
6088         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
6090 2020-05-21  Bruno Haible  <bruno@clisp.org>
6092         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
6093         Reported by Tim Rühsen in
6094         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
6095         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
6096         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
6097         respectively.
6099 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
6101         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
6102         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
6104 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6106         ftoastr: fix ifndef typo
6107         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
6109 2020-05-19  Bruno Haible  <bruno@clisp.org>
6111         havelib: Tweak documentation.
6112         * doc/havelib.texi (Searching for Libraries): Fix typo.
6114 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
6116         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
6117         This was needed earlier because modules had to import the main script,
6118         but that is no longer true.  Rename the script so that it is
6119         consistent with all other scripts in gnulib and uses hyphens.
6120         * build-aux/vcs_to_changelog.py: Rename to...
6121         * build-aux/vcs-to-changelog.py: ... this.
6122         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
6123         * modules/vcs-to-changelog: Likewise.
6125 2020-05-17  Bruno Haible  <bruno@clisp.org>
6127         Clarify intended usage of the license file modules.
6128         Reported by Asher Gordon <AsDaGo@posteo.net> in
6129         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
6130         * doc/licenses-texi.texi (License Texinfo sources): Mention the
6131         GNU AGPL. Explain the intended usage of the modules.
6132         * modules/fdl (Notice): Discourage use as a module.
6133         * modules/fdl-1.3 (Notice): Likewise.
6135 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
6137         hash: add hash_xinsert
6138         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
6140 2020-05-16  Bruno Haible  <bruno@clisp.org>
6142         findprog-lgpl: Fix link error (existing since 2008-09-02).
6143         * modules/findprog-lgpl (Makefile.am): Arrange to compile
6144         findprog-lgpl.c, not findprog.c.
6145         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
6146         XNMALLOC.
6148 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
6150         c-stack: pacify -Wunused-result when DEBUG
6151         Problem reported by Marc Nieper-Wißkirchen in:
6152         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
6153         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
6154         Explicitly ignore write failures.
6156 2020-05-13  Jim Meyering  <meyering@fb.com>
6158         announce-gen: improve a comment
6159         * build-aux/announce-gen: Improve comment.
6161 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
6163         xalloc: pacify -Wanalyzer-possible-null-argument
6164         Problem reported for GCC 10.1.0 by Bruno Haible in:
6165         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
6166         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
6167         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
6168         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
6170 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
6172         careadlinkat: fix GCC 10 workaround
6173         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
6174         Massage the code so that it’s closer to what it was before
6175         the GCC 10.1.0 workaround was introduced.  This fixes
6176         a loop when !buffer and the bug workaround is in effect.
6177         Remove unnecessary casts.  Defend in a different way
6178         against (buffer && !buffer_size), by adding at least 1
6179         to buf_size each time through the loop.
6181 2020-05-10  Bruno Haible  <bruno@clisp.org>
6183         doc: Mark HP-UX as unsupported.
6184         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
6186 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
6188         careadlinkat: limit GCC workaround
6189         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
6190         10.1.0 and later, since the workaround is pretty bad and the GCC
6191         bug should get fixed.
6193 2020-05-10  Bruno Haible  <bruno@clisp.org>
6195         havelib: Enhance documentation.
6196         * doc/havelib.texi (Searching for Libraries): Mention the bad
6197         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
6199 2020-05-10  Bruno Haible  <bruno@clisp.org>
6201         attribute: Clarify list of attributes.
6202         * lib/attribute.h: Reorder the list of attributes, and group them by
6203         purpose.
6205 2020-05-10  Bruno Haible  <bruno@clisp.org>
6207         string: Fix compilation error in C++ mode.
6208         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
6209         _GL_WARN_ON_USE.
6210         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
6211         instead of _GL_WARN_ON_USE.
6213 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
6215         announce-gen: add support for dist-lzip
6216         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
6218 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
6220         manywarnings: port to GCC 10.1
6221         * build-aux/gcc-warning.spec:
6222         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
6223         Add GCC 10.1.0 warnings.
6225         careadlinkat: pacify -Wreturn-local-addr
6226         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
6227         Pacify gcc 10’s -Wreturn-local-addr option.
6228         Simplify some of the later code.
6230 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
6232         attribute: remove ATTRIBUTE_DEPRECATED
6233         * lib/attribute.h: Improve recently-added comments, mostly
6234         by shortening them (use active voice, etc.).
6235         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
6236         Problem reported by Bruno Haible in:
6237         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
6239 2020-05-09  Bruno Haible  <bruno@clisp.org>
6241         attribute: Add comments.
6242         * lib/attribute.h: Document each macro.
6244 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
6246         bitset: use the attribute module
6247         * modules/bitset: Depend on 'attribute'.
6248         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
6249         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
6250         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
6251         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
6253 2020-05-09  Bruno Haible  <bruno@clisp.org>
6255         c-stack: Fix warning when DEBUG is enabled.
6256         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
6257         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
6258         * lib/c-stack.c: Include <stdio.h>.
6260 2020-05-09  Bruno Haible  <bruno@clisp.org>
6262         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
6263         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
6264         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6265         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6266         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6267         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6268         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6269         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6270         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6271         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
6272         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6273         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6274         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6276 2020-05-09  Bruno Haible  <bruno@clisp.org>
6278         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
6279         Reported by Akim Demaille in
6280         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
6281         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
6282         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
6283         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
6285 2020-05-09  Bruno Haible  <bruno@clisp.org>
6287         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
6288         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
6289         that usually comes from m4/gnulib-common.m4.
6290         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
6292 2020-05-09  Bruno Haible  <bruno@clisp.org>
6294         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
6295         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
6296         that usually comes from m4/gnulib-common.m4.
6297         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
6298         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
6299         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
6301 2020-05-09  Bruno Haible  <bruno@clisp.org>
6303         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
6304         * lib/uchar.in.h (char16_t): Define as macro if
6305         GNULIB_OVERRIDES_CHAR16_T.
6306         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
6307         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
6308         (gl_UCHAR_H): Invoke them.
6309         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
6310         GNULIB_OVERRIDES_CHAR32_T.
6311         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
6312         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
6313         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
6314         GNULIB_OVERRIDES_CHAR32_T.
6316 2020-05-09  Bruno Haible  <bruno@clisp.org>
6318         Macro tweaks.
6319         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
6320         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
6322 2020-05-08  Bruno Haible  <bruno@clisp.org>
6324         c32rtomb: Avoid compilation failure on Haiku.
6325         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
6326         inline definitions.
6327         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
6329 2020-05-08  Bruno Haible  <bruno@clisp.org>
6331         mbrtoc32: Avoid compilation failure on Haiku.
6332         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
6333         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
6334         AC_CHECK_FUNCS_ONCE.
6335         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
6337 2020-05-08  Bruno Haible  <bruno@clisp.org>
6339         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
6340         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
6342 2020-05-08  Bruno Haible  <bruno@clisp.org>
6344         list: Update documentation.
6345         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
6346         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
6347         * doc/containers.texi (Container data types): Document the new list
6348         operations and their complexity.
6350 2020-05-08  Bruno Haible  <bruno@clisp.org>
6352         ignore-value tests: Use module 'attribute'.
6353         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
6354         * tests/test-ignore-value.c: Include attribute.h.
6355         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
6356         * modules/ignore-value-tests (Depends-on): Add attribute.
6358 2020-05-08  Bruno Haible  <bruno@clisp.org>
6360         uniname/uniname: Use module 'attribute'.
6361         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
6362         * lib/uniname/uninames.h: Regenerated.
6363         * lib/uniname/uniname.c: Include attribute.h.
6364         * modules/uniname/uniname (Depends-on): Add attribute.
6366 2020-05-08  Bruno Haible  <bruno@clisp.org>
6368         c32rtomb: Use module 'attribute'.
6369         * lib/c32rtomb.c: Include attribute.h.
6370         (FALLTHROUGH): Remove macro.
6371         * modules/c32rtomb (Depends-on): Add attribute.
6373 2020-05-08  Bruno Haible  <bruno@clisp.org>
6375         xsize: Use module 'attribute'.
6376         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
6377         * modules/xsize (Depends-on): Add attribute.
6379 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
6381         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
6383         * lib/attribute.h: Minor style fixes.
6385         Fix version-etc glitch on OpenIndiana
6386         Problem reported by Mats Erik Andersson in:
6387         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
6388         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
6389         that now clashes with gnulib-common.h.  All uses changed.
6391 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
6393         attribute: new module
6394         This simplifies use of GCC and C2X attributes like ‘deprecated’.
6395         * MODULES.html.sh: Add attribute.
6396         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
6397         * doc/gnulib.texi (Particular Modules): Add Attributes.
6398         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
6399         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
6400         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
6401         * lib/vasnprintf.c:
6402         Include attribute.h, and let it define FALLTHROUGH.
6403         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
6404         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
6405         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
6406         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
6407         This is a copy since Gawk doesn’t use Gnulib.
6408         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
6409         is incompatible with gl_COMMON_BODY’s.  All uses changed.
6410         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
6411         Keep the existing FALLTHROUGH definition since Glibc might use it,
6412         and it does no harm to Gnulib’s FALLTHROUGH.
6413         * lib/fts_.h, lib/inttostr.h:
6414         (__GNUC_PREREQ): Remove; no longer needed.
6415         (__attribute_warn_unused_result__): Remove.  All uses
6416         replaced by _GL_ATTRIBUTE_NODISCARD.
6417         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
6418         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
6419         __attribute__ ((__warn_unused_result__)), for forward
6420         compatibility to C2X.
6421         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
6422         _GL_ATTRIBUTE_NODISCARD.
6423         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
6424         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
6425         replaced by gl_COMMON_BODY’s implementation, which has a
6426         slightly different signature.
6427         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
6428         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
6429         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
6430         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
6431         No doubt all uses should be replaced, at some point.
6432         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
6433         (_Noreturn): Use it.
6434         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
6435         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
6436         (_GL_ATTRIBUTE_COLD)
6437         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
6438         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
6439         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
6440         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
6441         (_GL_ATTRIBUTE_MAYBE_UNUSED)
6442         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
6443         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
6444         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
6445         (_GL_ATTRIBUTE_RETURNS_NONNULL)
6446         (_GL_ATTRIBUTE_SENTINEL): New macros.
6447         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
6448         * modules/fnmatch, modules/freopen-safer, modules/fts:
6449         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
6450         * modules/quotearg, modules/savewd:
6451         * modules/unistdio/u16-u16-vasnprintf:
6452         * modules/unistdio/u16-vasnprintf:
6453         * modules/unistdio/u32-u32-vasnprintf:
6454         * modules/unistdio/u32-vasnprintf:
6455         * modules/unistdio/u8-u8-vasnprintf:
6456         * modules/unistdio/u8-vasnprintf:
6457         * modules/unistdio/ulc-vasnprintf:
6458         * modules/unistr/u8-uctomb, modules/vasnprintf:
6459         (Depends-on:): Add attribute module.
6461 2020-05-03  Bruno Haible  <bruno@clisp.org>
6463         bison: Fix today's commit.
6464         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
6466 2020-05-03  Bruno Haible  <bruno@clisp.org>
6468         list-c++: Add get_first, get_last, set_first, set_last operations.
6469         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
6470         set_first, set_last.
6471         * lib/gl_list.h: Tweak comments.
6473 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
6475         bison: rely on bison's %require to check a version requirement
6476         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
6477         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
6478         enough of not.
6479         So far it is the only know Yacc tool that supports '%require'.
6480         Other yaccs will actually even choke on seeing the -o option after the
6481         input file name.
6482         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
6484 2020-05-02  Bruno Haible  <bruno@clisp.org>
6486         list: Add get_first, get_last, set_first, set_last operations.
6487         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
6488         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
6489         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
6491 2020-05-02  Bruno Haible  <bruno@clisp.org>
6493         list: Remove redundant code for remove_first and remove_last operations.
6494         * lib/gl_list.h (struct gl_list_implementation): Remove fields
6495         remove_first, remove_last.
6496         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
6497         * lib/gl_array_list.c: Revert last change.
6498         * lib/gl_carray_list.c: Likewise.
6499         * lib/gl_anylinked_list2.h: Likewise.
6500         * lib/gl_linked_list.c: Likewise.
6501         * lib/gl_linkedhash_list.c: Likewise.
6502         * lib/gl_anytree_list2.h: Likewise.
6503         * lib/gl_avltree_list.c: Likewise.
6504         * lib/gl_avltreehash_list.c: Likewise.
6505         * lib/gl_rbtree_list.c: Likewise.
6506         * lib/gl_rbtreehash_list.c: Likewise.
6507         * lib/gl_sublist.c: Likewise.
6509 2020-05-02  Bruno Haible  <bruno@clisp.org>
6511         bison-i18n: Add support for cross-compilation.
6512         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
6513         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
6514         via Akim Demaille <akim@lrde.epita.fr>.
6515         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
6516         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
6517         Don't use bison's --print-localedir option when cross-compiling.
6518         Also, fix an error message and a comment.
6520 2020-05-01  Bruno Haible  <bruno@clisp.org>
6522         list: Add remove_first and remove_last operations.
6523         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
6524         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
6525         * lib/gl_list.h (struct gl_list_implementation): Add fields
6526         remove_first, remove_last.
6527         (gl_list_remove_first, gl_list_remove_last): New functions.
6528         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
6529         functions, based on gl_array_remove_at.
6530         (gl_array_list_implementation): Implement the new operations.
6531         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
6532         New functions, based on gl_carray_remove_at.
6533         (gl_carray_list_implementation): Implement the new operations.
6534         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
6535         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
6536         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
6537         new operations.
6538         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
6539         Likewise.
6540         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
6541         New functions, based on gl_tree_remove_at.
6542         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
6543         new operations.
6544         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
6545         Likewise.
6546         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
6547         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
6548         Likewise.
6549         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
6550         New functions, based on gl_sublist_remove_at.
6551         (gl_sublist_list_implementation): Implement the new operations.
6552         * lib/gl_list.hh (class gl_List): Add methods remove_first,
6553         remove_last.
6554         * tests/test-array_list.c (main): Test also gl_list_remove_first and
6555         gl_list_remove_last.
6556         * tests/test-avltree_list.c (main): Likewise.
6557         * tests/test-avltreehash_list.c (main): Likewise.
6558         * tests/test-carray_list.c (main): Likewise.
6559         * tests/test-linked_list.c (main): Likewise.
6560         * tests/test-linkedhash_list.c (main): Likewise.
6561         * tests/test-rbtree_list.c (main): Likewise.
6562         * tests/test-rbtreehash_list.c (main): Likewise.
6564 2020-05-01  Bruno Haible  <bruno@clisp.org>
6566         parse-datetime: Fix a build failure with an older bison version.
6567         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
6568         parse-datetime.tab.c if a suitable version of bison was not found.
6570 2020-05-01  Bruno Haible  <bruno@clisp.org>
6572         bison: New module.
6573         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
6574         m4/parse-datetime.m4.
6575         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
6576         * modules/bison: New file.
6577         * modules/parse-datetime (Files): Remove m4/bison.m4.
6578         (Depends-on): Add bison.
6580 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
6582         Update users.txt.
6583         * users.txt: Add poke.
6585 2020-04-28  Bruno Haible  <bruno@clisp.org>
6587         posix_spawn_file_actions_addfchdir tests: Enhance test.
6588         * tests/test-posix_spawn5.c: Include findprog.h.
6589         (test): New function, extracted from main.
6590         (main): Invoke it. Also, invoke it with a program name such as
6591         "bin/pwd".
6592         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
6593         findprog.
6595 2020-04-28  Bruno Haible  <bruno@clisp.org>
6597         posix_spawn_file_actions_addchdir tests: Enhance test.
6598         * tests/test-posix_spawn4.c: Include findprog.h.
6599         (test): New function, extracted from main.
6600         (main): Invoke it. Also, invoke it with a program name such as
6601         "bin/pwd".
6602         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
6603         findprog.
6605 2020-04-28  Bruno Haible  <bruno@clisp.org>
6607         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
6608         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
6609         access elements of the wrong union member.
6611 2020-04-27  Bruno Haible  <bruno@clisp.org>
6613         getdate: Remove deprecated module.
6614         * modules/getdate: Remove file.
6615         * doc/getdate.texi: Remove file.
6616         * lib/getdate.h: Remove file.
6617         * NEWS: Mention the removal.
6619 2020-04-27  Bruno Haible  <bruno@clisp.org>
6621         realloc: Remove deprecated module.
6622         * modules/realloc: Remove file.
6623         * NEWS: Mention the removal.
6625 2020-04-27  Bruno Haible  <bruno@clisp.org>
6627         calloc: Remove deprecated module.
6628         * modules/calloc: Remove file.
6629         * NEWS: Mention the removal.
6631 2020-04-27  Bruno Haible  <bruno@clisp.org>
6633         malloc: Remove deprecated module.
6634         * modules/malloc: Remove file.
6635         * NEWS: Mention the removal.
6637 2020-04-27  Bruno Haible  <bruno@clisp.org>
6639         fnmatch-posix: Remove deprecated module.
6640         * modules/fnmatch-posix: Remove file.
6641         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
6642         * NEWS: Mention the removal.
6644 2020-04-27  Bruno Haible  <bruno@clisp.org>
6646         pipe: Remove deprecated module.
6647         * modules/pipe: Remove file.
6648         * lib/pipe.h: Remove file.
6649         * NEWS: Mention the removal.
6651 2020-04-27  Bruno Haible  <bruno@clisp.org>
6653         getopt: Remove deprecated module.
6654         * modules/getopt: Remove file.
6655         * NEWS: Mention the removal.
6657 2020-04-27  Bruno Haible  <bruno@clisp.org>
6659         remove-dest-slash: Remove deprecated module.
6660         * modules/rename-dest-slash: Remove file.
6661         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
6662         Update.
6663         * NEWS: Mention the removal.
6665 2020-04-27  Bruno Haible  <bruno@clisp.org>
6667         unictype/bidicategory-*: Remove deprecated modules.
6668         * modules/unictype/bidicategory-all: Remove file.
6669         * modules/unictype/bidicategory-byname: Remove file.
6670         * modules/unictype/bidicategory-name: Remove file.
6671         * modules/unictype/bidicategory-of: Remove file.
6672         * modules/unictype/bidicategory-test: Remove file.
6673         * MODULES.html.sh (Unicode string functions): Update.
6674         * NEWS: Mention the removals.
6676 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
6678         Tune fts for FTS_LOGICAL+FTS_NOSTAT
6679         From a suggestion by Askar Safin in:
6680         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
6681         * lib/fts.c (fts_build): If file types are known, optimize
6682         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
6683         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
6684         non-directories.
6686 2020-04-19  Bruno Haible  <bruno@clisp.org>
6688         vasnprintf: Add support for printing wide characters using escapes.
6689         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
6690         (wctomb_fallback): New function.
6691         (local_wctomb): New function.
6692         (local_wcrtomb): New function or macro.
6693         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
6694         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
6695         %lc.
6697 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
6699         fts: remove NOSTAT_LEAF_OPTIMIZATION
6700         It caused ‘find’ and ‘du’ to dump core, and it was useful
6701         only for obsolescent Linux filesystems anyway.  Problem reported in:
6702         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
6703         Quite possibly there is still a serious underlying fts bug with
6704         tight-loop-check and mutating file systems, but if so this patch
6705         should cause the bug to be triggered less often.
6706         * lib/fts.c (enum leaf_optimization): Remove
6707         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
6708         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
6709         (leaf_optimization): Remove special cases for ReiserFS and XFS.
6710         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
6711         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
6712         Remove.  All uses removed.
6714 2020-04-13  Bastien Roucariès  <rouca@debian.org>
6716         explicit_bzero: Improve code style.
6717         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
6719 2020-04-13  Bastien Roucariès  <rouca@debian.org>
6721         explicit_bzero: On native Windows, use SecureZeroMemory().
6722         * lib/explicit_bzero.c: Include <windows.h>.
6723         (explicit_bzero): On native Windows, use SecureZeroMemory.
6725 2020-04-13  Bastien Roucariès  <rouca@debian.org>
6727         explicit_bzero: Use memset_s() when available.
6728         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
6729         (explicit_bzero): Use memset_s when available.
6730         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
6732 2020-04-13  Bastien Roucariès  <rouca@debian.org>
6734         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
6735         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
6736         free() that overwrite the memory with canaries.
6738 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
6740         bootstrap: recommend git submodule update --init
6741         Reported by Bruno Haible.
6742         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
6743         * build-aux/bootstrap: recommand "git submodule update --init"
6744         rather than "git submodule init".
6746 2020-04-12  Bruno Haible  <bruno@clisp.org>
6748         explicit_bzero: Add tests.
6749         * tests/test-explicit_bzero.c: New file.
6750         * modules/explicit_bzero-tests: New file.
6752 2020-04-11  Bruno Haible  <bruno@clisp.org>
6754         explicit_bzero: Relicense under LGPLv2+.
6755         Approved by Paul Eggert.
6756         * modules/explicit_bzero (License): Change to LGPLv2+.
6758 2020-04-10  Bruno Haible  <bruno@clisp.org>
6760         findprog, relocatable-prog: Ignore directories during PATH search.
6761         Reported by Frederick Eaton via Dmitry Goncharov in
6762         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
6764         * lib/findprog.c (find_in_path): When the file found in a PATH element
6765         is a directory, continue searching.
6766         * modules/findprog (Depends-on): Add sys_stat, stat.
6767         * modules/findprog-lgpl (Depends-on): Likewise.
6769         * lib/progreloc.c (maybe_executable): When the file found in a PATH
6770         element is a directory, continue searching.
6771         * lib/relocwrapper.c: Update comments.
6772         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
6773         (configure.ac-early): New section.
6775 2020-04-10  Bruno Haible  <bruno@clisp.org>
6777         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
6778         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
6779         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
6780         * MODULES.html.sh: In a git-less tarball, use the date of the first
6781         ChangeLog entry.
6783 2020-04-04  Bruno Haible  <bruno@clisp.org>
6785         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
6786         * m4/gettext.m4: Fix comments regarding the gettext library.
6787         * m4/intl-thread-locale.m4: Likewise.
6788         * m4/intlmacosx.m4: Likewise.
6789         * m4/lcmessage.m4: Likewise.
6790         * m4/nls.m4: Likewise.
6791         * m4/po.m4: Likewise.
6792         * m4/progtest.m4: Likewise.
6794 2020-04-04  Jim Meyering  <meyering@fb.com>
6796         maint: remove a stray inter-word space in a 6x-repeated comment
6797         Induce the changes by running this:
6798           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
6799         * build-aux/announce-gen: Change "by  perl" to "by perl".
6800         * build-aux/gitlog-to-changelog: Likewise.
6801         * build-aux/prefix-gnulib-mk: Likewise.
6802         * build-aux/update-copyright: Likewise.
6803         * build-aux/useless-if-before-free: Likewise.
6804         * tests/test-update-copyright.sh: Likewise.
6806 2020-03-28  Bruno Haible  <bruno@clisp.org>
6808         Use module 'filename' instead of module 'dosname'.
6810         * lib/at-func.c: Include filename.h instead of dosname.h.
6811         * lib/unlinkat.c: Likewise.
6812         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
6813         * modules/areadlinkat-with-size (Depends-on): Likewise.
6814         * modules/faccessat (Depends-on): Likewise.
6815         * modules/fchmodat (Depends-on): Likewise.
6816         * modules/fchownat (Depends-on): Likewise.
6817         * modules/fstatat (Depends-on): Likewise.
6818         * modules/mkdirat (Depends-on): Likewise.
6819         * modules/mkfifoat (Depends-on): Likewise.
6820         * modules/readlinkat (Depends-on): Likewise.
6821         * modules/selinux-at (Depends-on): Likewise.
6822         * modules/symlinkat (Depends-on): Likewise.
6823         * modules/unlinkat (Depends-on): Likewise.
6824         * modules/utimensat (Depends-on): Likewise.
6826         * lib/at-func2.c: Include filename.h instead of dosname.h.
6827         * modules/linkat (Depends-on): Add filename. Remove dosname.
6828         * modules/renameatu (Depends-on): Likewise.
6830         * lib/canonicalize.c: Include filename.h instead of dosname.h.
6831         * lib/canonicalize-lgpl.c: Likewise.
6832         * modules/canonicalize (Depends-on): Add filename.
6833         * modules/canonicalize-lgpl (Depends-on): Likewise.
6835         * lib/dirname.h: Include filename.h instead of dosname.h.
6836         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
6838         * lib/fchdir.c: Include filename.h instead of dosname.h.
6839         * modules/fchdir (Depends-on): Add filename. Remove dosname.
6841         * lib/openat.c: Include filename.h instead of dosname.h.
6842         * modules/openat (Depends-on): Add filename. Remove dosname.
6844         * lib/rmdir.c: Include filename.h instead of dosname.h.
6845         * modules/rmdir (Depends-on): Add filename. Remove dosname.
6847         * lib/savewd.c: Include filename.h instead of dosname.h.
6848         * modules/savewd (Depends-on): Add filename. Remove dosname.
6850         * lib/unlink.c: Include filename.h instead of dosname.h.
6851         * modules/unlink (Depends-on): Add filename. Remove dosname.
6853         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
6854         * lib/relocwrapper.c: Update comments.
6856         * modules/lstat (Depends-on): Remove dosname.
6858 2020-03-28  Bruno Haible  <bruno@clisp.org>
6860         dosname: Redirect to 'filename'.
6861         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
6862         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
6863         * lib/dosname.h: Remove all definitions. Just include filename.h.
6864         * modules/dosname (Status, Notice): Mark as deprecated.
6865         (Depends-on): Add 'filename'.
6867 2020-03-28  Bruno Haible  <bruno@clisp.org>
6869         dosname: Change IS_RELATIVE_FILE_NAME.
6870         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
6871         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
6872         * NEWS: Mention the change.
6874 2020-03-28  Bruno Haible  <bruno@clisp.org>
6876         filename: Copy some definitions from module 'dosname'.
6877         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
6878         (HAS_DEVICE): Document macro.
6879         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
6880         (IS_ABSOLUTE_FILE_NAME): Consider
6881         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
6882         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
6883         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
6884         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
6885         IS_PATH_WITH_DIR.
6886         (DllMain): Update.
6887         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
6888         IS_PATH_WITH_DIR.
6889         (find_executable): Update.
6890         * NEWS: Document the deprecations.
6892 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
6894         getopt-posix: port __GETOPT_PREFIX to macOS
6895         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
6896         Define to work around a problem with asm on macOS (Bug#40205).
6898 2020-03-22  Bruno Haible  <bruno@clisp.org>
6900         MODULES.html.sh: Add support for reproducible builds.
6901         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
6902         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
6903         * MODULES.html.sh: Print the date of the last gnulib commit, not the
6904         current date.
6906 2020-03-22  Bruno Haible  <bruno@clisp.org>
6908         Several modules: Depend on stat.
6909         * modules/acl-permissions (Depends-on): Add stat.
6910         * modules/canonicalize (Depends-on): Likewise.
6911         * modules/file-has-acl (Depends-on): Likewise.
6912         * modules/fstat (Depends-on): Likewise.
6913         * modules/fstatat (Depends-on): Likewise.
6914         * modules/glob (Depends-on): Likewise.
6915         * modules/javacomp (Depends-on): Likewise.
6916         * modules/linkat (Depends-on): Likewise.
6917         * modules/mkdir (Depends-on): Likewise.
6918         * modules/pt_chown (Depends-on): Likewise.
6919         * modules/ptsname_r (Depends-on): Likewise.
6920         * modules/readlinkat (Depends-on): Likewise.
6921         * modules/rename (Depends-on): Likewise.
6922         * modules/renameatu (Depends-on): Likewise.
6923         * modules/tmpdir (Depends-on): Likewise.
6924         * modules/utimens (Depends-on): Likewise.
6925         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
6926         * modules/same (Depends-on): Remove stat.
6928 2020-03-22  Bruno Haible  <bruno@clisp.org>
6930         acl-permissions: Improve autoconf macro.
6931         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
6932         more reliably.
6934 2020-03-22  Bruno Haible  <bruno@clisp.org>
6936         file-has-acl: Fix module description.
6937         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
6938         (Depends-on): Depend on acl-permissions unconditionally.
6940 2020-03-21  Bruno Haible  <bruno@clisp.org>
6942         unlink: Ensure errno also on native Windows.
6943         * modules/unlink (Depends-on): Add malloc-posix.
6945 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
6947         unlink: fix malloc errno typo
6948         Problem reported by Tim Rühsen in:
6949         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
6950         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
6952 2020-03-16  Bruno Haible  <bruno@clisp.org>
6954         *printf-posix: Fix m4 error (regression from 2020-03-08).
6955         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
6956         brackets in AC_COMPILE_IFELSE invocation.
6958 2020-03-08  Bruno Haible  <bruno@clisp.org>
6960         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
6961         * modules/crypto/af_alg (Depends-on): Add fstat.
6962         * modules/renameatu (Depends-on): Likewise.
6963         * modules/same (Depends-on): Likewise.
6964         * modules/term-style-control (Depends-on): Likewise.
6966 2020-03-08  Bruno Haible  <bruno@clisp.org>
6968         *printf-posix: Document why it's overridden on some glibc systems.
6969         Reported by Adrian Bunk <bunk@stusta.de> in
6970         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
6971         * doc/posix-functions/*printf.texi: Document the problem with the %n
6972         directive on some glibc systems.
6973         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
6974         the cross-compilation guesses accordingly.
6976 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
6978         open, openat: port to (O_RDWR | O_RDONLY) != 0
6979         Potential portability problem reported by Dan Gohman in:
6980         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
6981         * lib/open.c (open):
6982         * lib/openat.c (rpl_openat):
6983         Don’t assume O_RDONLY is disjoint from O_RDWR.
6985 2020-03-07  Bruno Haible  <bruno@clisp.org>
6987         openat: Fix theoretically possible issue on GNU/Hurd.
6988         Reported by Dan Gohman <sunfish@mozilla.com> in
6989         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
6990         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
6991         ignore the bits that are also set in O_RDONLY.
6993 2020-02-24  Bruno Haible  <bruno@clisp.org>
6995         getloadavg: Don't use /usr/local when cross-compiling on AIX.
6996         Reported by Jens Rehsack <sno@netbsd.org> in
6997         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
6998         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
6999         cross-compiling.
7001 2020-02-24  Bruno Haible  <bruno@clisp.org>
7003         fcntl: Add witness of gnulib override.
7004         Reported by Jens Rehsack <sno@netbsd.org> in
7005         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
7006         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
7007         macros.
7009 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
7011         Update users.txt.
7012         * users.txt: Add datamash, time.
7014 2020-02-23  Bruno Haible  <bruno@clisp.org>
7016         uni*/base: Use 'restrict'.
7017         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
7018         from lib/regex.h.
7019         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
7020         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
7021         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
7022         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
7023         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
7024         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
7025         '_UC_RESTRICT'.
7026         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
7027         u32_conv_to_encoding): Use '_UC_RESTRICT'.
7028         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
7029         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
7030         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
7031         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
7032         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
7033         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
7034         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
7035         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
7036         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
7037         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
7038         '_UC_RESTRICT'.
7039         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
7040         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
7041         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
7042         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
7043         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
7044         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
7045         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
7046         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
7048 2020-02-23  Bruno Haible  <bruno@clisp.org>
7050         glob, spawn: Use improved '_Restrict_' definition.
7051         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
7052         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
7054 2020-02-23  Bruno Haible  <bruno@clisp.org>
7056         crypto/gc: Use 'restrict'.
7057         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
7058         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
7060         crypto/hmac-*: Use 'restrict'.
7061         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
7062         'restrict'.
7063         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
7064         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
7065         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
7066         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
7068         crypto/sm3: Use 'restrict'.
7069         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
7070         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
7072         crypto/*-buffer: Use 'restrict'.
7073         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
7074         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
7076         crypto/sha512-buffer: Use 'restrict'.
7077         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
7078         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
7079         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
7081         crypto/sha256-buffer: Use 'restrict'.
7082         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
7083         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
7084         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
7086         crypto/sha1-buffer: Use 'restrict'.
7087         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
7088         'restrict'.
7089         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
7091         crypto/md5-buffer: Use 'restrict'.
7092         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
7093         'restrict'.
7094         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
7096         crypto/md4: Use 'restrict'.
7097         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
7098         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
7100         crypto/md2: Use 'restrict'.
7101         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
7102         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
7104         crypto/rijndael: Use 'restrict'.
7105         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
7106         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
7107         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
7109         crypto/arctwo: Use 'restrict'.
7110         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
7111         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
7113         crypto/arcfour: Use 'restrict'.
7114         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
7115         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
7117         careadlinkat: Use 'restrict'.
7118         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
7119         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
7120         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
7122         regex-quote: Use 'restrict'.
7123         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
7124         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
7126         system-quote: Use 'restrict'.
7127         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
7128         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
7130         sh-quote: Use 'restrict'.
7131         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
7132         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
7134         quotearg: Use 'restrict'.
7135         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
7136         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
7138         parse-datetime: Use 'restrict'.
7139         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
7140         'restrict'.
7141         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
7143         nstrftime: Use 'restrict'.
7144         * lib/strftime.h (nstrftime): Use 'restrict'.
7145         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
7147         mbstok_r: Use 'restrict'.
7148         * lib/string.in.h (mbstok_r): Use 'restrict'.
7150         xmemcoll: Use 'restrict'.
7151         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
7152         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
7154         memcoll: Use 'restrict'.
7155         * lib/memcoll.h (memcoll): Use 'restrict'.
7156         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
7158         vasnprintf: Use 'restrict'.
7159         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
7160         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
7162         c-vasnprintf: Use 'restrict'.
7163         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
7164         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
7166         c-vsnprintf: Use 'restrict'.
7167         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
7168         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
7170         c-snprintf: Use 'restrict'.
7171         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
7172         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
7174         astrxfrm: Use 'restrict'.
7175         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
7176         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
7178         amemxfrm: Use 'restrict'.
7179         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
7180         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
7182 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
7184         fchmodat, lchmod: simplify
7185         It appears that we may have overengineered lchmod and fchmodat,
7186         in that the code was prepared for some hypothetical platforms but
7187         was so complicated that it was hard to understand.  I attempted to
7188         improve the situation by simplifying the code when this
7189         simplification should not hurt on real platforms; we can re-add
7190         complexity later to port to platforms I didn’t know about.
7191         * lib/fchmodat.c (fchmodat):
7192         * lib/lchmod.c (lchmod):
7193         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
7194         around the /proc code that needs it.
7195         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
7196         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
7197         Do not include <config.h> twice.
7198         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
7199         lchmod on any known hosts.
7200         (lchmod): Do not defer to fchmodat, so that the lchmod module
7201         need not depend on the fchmodat module (which is a circular
7202         dependency).  Do not use openat, since ‘open’ suffices.
7203         Coalesce calls to lchmod/chmod.
7204         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
7205         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
7206         * modules/lchmod (Depends-on, configure.ac):
7207         * modules/sys_stat (Depends-on):
7208         Do not worry about replacing lchmod, since that shouldn’t happen.
7209         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
7210         Do not worry about whether lchmod works on non-symlinks,
7211         since every known lchmod works on non-symlinks.
7212         * modules/lchmod (Depends-on):
7213         Remove circular dependency on fchmodat.
7215 2020-02-22  Bruno Haible  <bruno@clisp.org>
7217         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
7218         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
7219         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
7221 2020-02-22  Bruno Haible  <bruno@clisp.org>
7223         Use 'restrict' in all POSIX function declarations.
7224         * lib/iconv.in.h (iconv): Use 'restrict'.
7225         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
7226         * lib/monetary.in.h (strfmon_l): Likewise.
7227         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
7228         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
7229         pthread_mutex_timedlock, pthread_rwlock_init,
7230         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
7231         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
7232         * lib/search.in.h (tdelete): Likewise.
7233         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
7234         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
7235         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
7236         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
7237         Likewise.
7238         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
7239         strtoull): Likewise.
7240         * lib/string.in.h (strncat): Likewise.
7241         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
7242         recvfrom): Likewise.
7243         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
7244         * lib/time.in.h (strftime): Likewise.
7245         * lib/unistd.in.h (readlink, readlinkat): Likewise.
7246         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
7247         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
7248         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
7249         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
7250         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
7251         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
7252         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
7253         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
7254         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
7255         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
7256         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
7257         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
7258         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
7259         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
7260         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
7261         other *_h.m4 files.
7262         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
7264 2020-02-22  Bruno Haible  <bruno@clisp.org>
7266         Update NEWS.
7267         * NEWS: Mention the last change.
7269 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
7271         chmodat, chownat: new modules
7272         These are split from fchmodat, fchownat.  GNU Emacs needs the
7273         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
7274         lchmodat.  Split the latter two into a new module chmodat.
7275         Similarly for fchownat.  This the same basic idea for why statat
7276         was split from fstatat on 2013-01-23.
7277         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
7278         Rename from FCHMODAT_INLINE.  All uses changed.
7279         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
7280         Rename from FCHOWNAT_INLINE.  All uses changed.
7281         * lib/openat.h:
7282         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
7283         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
7284         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
7285         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
7286         (configure.ac): Remove fchmodat module indicator.
7287         (Makefile.am): Omit chmodat.c.
7288         (Maintainer): Add self.
7289         * modules/fchownat: Similarly, but for chown.
7290         * tests/test-fchownat.c (BASE): Don't define if already defined.
7291         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
7293 2020-02-22  Bruno Haible  <bruno@clisp.org>
7295         users.txt: Add groff.
7296         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
7297         * users.txt: Add groff.
7299 2020-02-22  Bruno Haible  <bruno@clisp.org>
7301         gnulib-tool: Ensure copied files are writable.
7302         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
7303         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
7304         * gnulib-tool (func_ensure_writable): New function.
7305         (func_ln_s, func_hardlink, func_lookup_file, func_import,
7306         func_create_testdir, copy-file): Invoke it after copying a file.
7308 2020-02-22  Bruno Haible  <bruno@clisp.org>
7310         users.txt: Update.
7311         * users.txt: Update URLs to projects that have moved or switched to git.
7312         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
7313         over the summary view. Add gawk.
7315 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
7317         largefile: remove _DARWIN_USE_64_BIT_INODE
7318         It’s not needed in currently-supported macOS versions, and was
7319         problematic anyway in MacOS X 10.5 which was the only version that
7320         could use it.  Problem reported by Peter Eisentraut in:
7321         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
7322         * m4/largefile.m4 (AC_SYS_LARGEFILE):
7323         Don’t define _DARWIN_USE_64_BIT_INODE.
7324         This syncs with Autoconf master.
7326         Add ‘extern "C"’ to count-one-bits.h etc.
7327         This ports these .h files to C++.
7328         Problem reported by Simon Marchi in:
7329         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
7330         * lib/count-leading-zeros.h, lib/count-one-bits.h:
7331         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
7333 2020-02-19  Bruno Haible  <bruno@clisp.org>
7335         uninorm/decompose-internal: Avoid "no previous prototype" warning.
7336         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
7337         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
7338         * lib/array-mergesort.h: Accept an optional macro definition
7339         STATIC_FROMTO.
7340         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
7342 2020-02-16  Bruno Haible  <bruno@clisp.org>
7344         fchmodat: Make more future-proof.
7345         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
7346         NEED_FCHMODAT_NONSYMLINK_FIX.
7347         (gl_PREREQ_FCHMODAT): New macro.
7348         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
7349         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
7350         without lchmod function.
7351         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
7353 2020-02-16  Bruno Haible  <bruno@clisp.org>
7355         lchmod: Make more future-proof.
7356         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
7357         (gl_PREREQ_LCHMOD): New macro.
7358         * lib/lchmod.c (orig_lchmod): New function.
7359         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
7360         Return EOPNOTSUPP only on Linux and on platforms without lchmod
7361         function.
7362         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
7364         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
7365         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
7367 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
7369         xnanosleep: prefer pause, and get remaining time
7370         Problem reported by Vladimir Panteleev in:
7371         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
7372         * lib/xnanosleep.c: Include intprops.h, unistd.h.
7373         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
7374         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
7375         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
7376         * modules/xnanosleep (Depends-on): Add intprops, unistd.
7378 2020-02-16  Bruno Haible  <bruno@clisp.org>
7380         lchmod: Improve cross-compilation guess.
7381         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
7382         cross-compiling, guess depending on the platform.
7384 2020-02-16  Bruno Haible  <bruno@clisp.org>
7386         fstrcmp: Add API to clean up resources.
7387         Reported by Akim Demaille <akim@lrde.epita.fr> in
7388         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
7389         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
7390         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
7392 2020-02-14  Bruno Haible  <bruno@clisp.org>
7394         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
7395         Reported by Christian Biesinger in
7396         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
7397         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
7398         corresponding module is not enabled.
7399         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
7400         prototype if the corresponding module is not enabled.
7402 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
7404         fchmodat, lchmod: port to buggy Linux filesystems
7405         Problem reported by Florian Weimer in:
7406         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
7407         * lib/fchmodat.c (fchmodat):
7408         * lib/lchmod.c (lchmod):
7409         Don’t assume that chmod on the O_PATH-opened fd will do
7410         the right thing on a symbolic link.
7411         * lib/fchmodat.c (fchmodat):
7412         Don’t attempt to special-case
7413         any flag value other than AT_SYMLINK_NOFOLLOW.
7415 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
7417         lchmod: pacify Coverity CID 1491216
7418         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
7419         not complain about unreachable code at the ‘struct stat st;’
7420         declaration.
7422 2020-02-10  Bruno Haible  <bruno@clisp.org>
7424         copysignf: Fix link error on HP-UX with cc.
7425         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
7426         HP-UX, set COPYSIGNF_LIBM to -lm.
7428 2020-02-10  Bruno Haible  <bruno@clisp.org>
7430         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
7431         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
7432         with $(LIB_SEMAPHORE).
7433         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
7434         with $(LIB_SEMAPHORE).
7436 2020-02-10  Bruno Haible  <bruno@clisp.org>
7438         ptsname_r-tests: Avoid unused function warning.
7439         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
7441 2020-02-08  Bruno Haible  <bruno@clisp.org>
7443         lchmod: Add tests.
7444         * tests/test-lchmod.c: New file.
7445         * modules/lchmod-tests: New file.
7447 2020-02-08  Bruno Haible  <bruno@clisp.org>
7449         lchmod: Ensure declaration on HP-UX.
7450         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
7451         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
7453 2020-02-08  Bruno Haible  <bruno@clisp.org>
7455         fchmodat: Strengthen tests.
7456         * tests/test-fchmodat.c (BASE): New macro.
7457         (main): Use it, to avoid conflicts with other unit tests. Verify that
7458         fchmodat changed the file permission bits.
7460 2020-02-08  Bruno Haible  <bruno@clisp.org>
7462         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
7463         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
7464         '#undef __need_system_sys_stat_h'.
7466 2020-02-08  Bruno Haible  <bruno@clisp.org>
7468         fchmodat: Improve cross-compilation guesses.
7469         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
7470         cross-compiling, guess depending on the platform.
7471         * doc/posix-functions/fchmodat.texi: Clarify.
7473 2020-02-08  Bruno Haible  <bruno@clisp.org>
7475         Fix compilation errors in a testdir created with --with-c++-tests.
7476         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
7477         since it does not work any more with g++ >= 4.4.
7479 2020-02-08  Bruno Haible  <bruno@clisp.org>
7481         doc: Update for glibc 2.31.
7482         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
7483         * doc/gnulib.texi: Include it.
7484         * doc/pastposix-functions/h_errno.texi: Update.
7485         * doc/posix-functions/*.texi: Likewise.
7487 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
7489         mountlist: consider smb3 file systems as remote
7490         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
7491         "smb3" as remote.
7493 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7495         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
7496         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
7497         they act like chmod on non-symlinks.
7498         * NEWS:
7499         * doc/glibc-functions/lchmod.texi (lchmod):
7500         * doc/posix-functions/fchmodat.texi (fchmodat):
7501         Mention this.
7502         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
7503         config.h, and undef it after including sys/stat.h the first time.
7504         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
7505         sys/stat.h a second time after defining orig_fchmodat.
7506         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
7507         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
7508         * lib/lchmod.c: New file.
7509         * lib/sys_stat.in.h (fchmodat, lchmod):
7510         Support replacing these functions.
7511         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
7512         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
7513         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
7514         Test that lchmod works on non-symlinks.
7515         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
7516         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
7517         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
7518         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
7519         * modules/lchmod (Files): Add lib/lchmod.c.
7520         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
7521         (configure.ac): Compile lchmod.c if needed.
7522         (lib_SOURCES): Add lchmod.c.
7523         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
7524         and REPLACE_LCHMOD.
7525         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
7526         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
7528 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
7530         mountlist: Consider AFS filesystems as remote
7531         df --local relies on the ME_REMOTE macro to determine if a given
7532         mount entry should be considered "local".  There is special logic
7533         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
7534         kernel's kafs module or AuriStorFS is treated as a local mount.
7535         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
7536         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
7538 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
7540         Port _Noreturn to older Clang
7541         Problem reported by Jeffery Walton in:
7542         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
7543         * lib/_Noreturn.h (_Noreturn):
7544         * m4/gnulib-common.m4 (gl_COMMON_BODY):
7545         Assume _Noreturn works in Clang 3.5 and later.
7546         It is documented to work in Clang 3.5:
7547         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
7548         and is not documented in Clang 3.4:
7549         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
7550         Apple sets __clang_version__ to a different value, so use
7551         __apple_build_version__ there.  See:
7552         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
7554 2020-02-04  Pádraig Brady  <P@draigBrady.com>
7556         test-canonicalize: avoid unused function warning
7557         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
7558         with the same guard as that used to protect usage of the null_ptr
7559         function, so that one doesn't get a -Wunused warning.
7560         * tests/test-canonicalize-lgpl.c: Likewise.
7562 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
7564         libc-config: port to Apple’s Clang variant
7565         * lib/libc-config.h (__glibc_clang_prereq):
7566         Port to Apple’s Clang variant, which uses a different
7567         numbering scheme for __clang_major__.
7569 2020-02-02  Bruno Haible  <bruno@clisp.org>
7571         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
7572         * doc/containers.texi: Document these new modules.
7574 2020-02-02  Bruno Haible  <bruno@clisp.org>
7576         omap-c++: Add tests.
7577         * tests/test-omap-c++.cc: New file.
7578         * modules/omap-c++-tests: New file.
7580         omap-c++: New module.
7581         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
7582         * modules/omap-c++: New file.
7584 2020-02-02  Bruno Haible  <bruno@clisp.org>
7586         map-c++: Add tests.
7587         * tests/test-map-c++.cc: New file.
7588         * modules/map-c++-tests: New file.
7590         map-c++: New module.
7591         * lib/gl_map.hh: New file, based on lib/gl_map.h.
7592         * modules/map-c++: New file.
7594 2020-02-02  Bruno Haible  <bruno@clisp.org>
7596         oset-c++: Add tests.
7597         * tests/test-oset-c++.cc: New file.
7598         * modules/oset-c++-tests: New file.
7600         oset-c++: New module.
7601         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
7602         * modules/oset-c++: New file.
7604 2020-02-02  Bruno Haible  <bruno@clisp.org>
7606         set-c++: Add tests.
7607         * tests/test-set-c++.cc: New file.
7608         * modules/set-c++-tests: New file.
7610         set-c++: New module.
7611         * lib/gl_set.hh: New file, based on lib/gl_set.h.
7612         * modules/set-c++: New file.
7614 2020-02-02  Bruno Haible  <bruno@clisp.org>
7616         list-c++: Add tests.
7617         * tests/test-list-c++.cc: New file.
7618         * modules/list-c++-tests: New file.
7620         list-c++: New module.
7621         * lib/gl_list.hh: New file, based on lib/gl_list.h.
7622         * modules/list-c++: New file.
7624 2020-02-02  Bruno Haible  <bruno@clisp.org>
7626         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
7627         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
7628         '_Noreturn'.
7629         * lib/sigpipe-die.h (sigpipe_die): Likewise.
7631 2020-02-02  Pádraig Brady  <P@draigBrady.com>
7633         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
7634         On x86_64 with glibc-2.30, gcc 9.2 is giving:
7635           error: argument 2 value '18446744073709551615'
7636           exceeds maximum object size 9223372036854775807
7637           [-Werror=alloc-size-larger-than=]
7638         The details of this restriction are discussed at:
7639         https://stackoverflow.com/q/42574890/4421
7640         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
7642 2020-02-02  Pádraig Brady  <P@draigBrady.com>
7644         sysctl.h: avoid including on glibc
7645         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
7646         * lib/physmem.c: Likewise.
7648 2020-02-02  Bruno Haible  <bruno@clisp.org>
7650         list, set, oset, map, omap: Avoid imperative voice in documentation.
7651         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
7652         in the specification of functions.
7653         * lib/gl_set.h: Likewise.
7654         * lib/gl_oset.h: Likewise.
7655         * lib/gl_map.h: Likewise.
7656         * lib/gl_omap.h: Likewise.
7657         * lib/gl_*.h: Likewise.
7659 2020-02-01  Bruno Haible  <bruno@clisp.org>
7661         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
7662         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
7663         does.
7665 2020-01-29  Bruno Haible  <bruno@clisp.org>
7667         array-map, hash-map, linkedhash-map: Fix module description.
7668         * modules/array-map (Description): Fix description.
7669         * modules/hash-map (Description): Likewise.
7670         * modules/linkedhash-map (Description): Likewise.
7672 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
7674         dfa: do not depend on isblank
7675         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
7676         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
7677         * modules/dfa (Depends-on): Remove isblank.
7678         * modules/isblank: Add a module indicator, for lib/dfa.c.
7680         dfa: do not assume 64-bit int
7681         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
7682         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
7683         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
7684         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
7685         Fall back to 32-bit words.
7686         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
7687         of 4 64-bit args.  All uses changed.
7689 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7691         regex: remove limits-h dependency
7692         * modules/regex (Depends-on): Remove limits-h, since the
7693         code no longer depends on ULONG_WIDTH already being defined.
7695         regex: port to non-GCC pre-IEC-60559
7696         Problem reported by Arnold Robbins in:
7697         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
7698         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
7700 2020-01-25  Bruno Haible  <bruno@clisp.org>
7702         c32isxdigit: Add tests.
7703         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
7704         * tests/test-c32isxdigit.sh: New file.
7705         * modules/c32isxdigit-tests: New file.
7707         c32isxdigit: New module.
7708         * lib/c32isxdigit.c: New file.
7709         * modules/c32isxdigit: New file.
7710         * doc/posix-functions/iswxdigit.texi: Mention the new module.
7712 2020-01-25  Bruno Haible  <bruno@clisp.org>
7714         c32isupper: Add tests.
7715         * tests/test-c32isupper.c: New file.
7716         * tests/test-c32isupper.sh: New file.
7717         * modules/c32isupper-tests: New file.
7719         c32isupper: New module.
7720         * lib/c32isupper.c: New file.
7721         * modules/c32isupper: New file.
7722         * doc/posix-functions/iswupper.texi: Mention the new module.
7724 2020-01-25  Bruno Haible  <bruno@clisp.org>
7726         c32isspace: Add tests.
7727         * tests/test-c32isspace.c: New file.
7728         * tests/test-c32isspace.sh: New file.
7729         * modules/c32isspace-tests: New file.
7731         c32isspace: New module.
7732         * lib/c32isspace.c: New file.
7733         * modules/c32isspace: New file.
7734         * doc/posix-functions/iswspace.texi: Mention the new module.
7736 2020-01-25  Bruno Haible  <bruno@clisp.org>
7738         c32ispunct: Add tests.
7739         * tests/test-c32ispunct.c: New file.
7740         * tests/test-c32ispunct.sh: New file.
7741         * modules/c32ispunct-tests: New file.
7743         c32ispunct: New module.
7744         * lib/c32ispunct.c: New file.
7745         * modules/c32ispunct: New file.
7746         * doc/posix-functions/iswpunct.texi: Mention the new module.
7748 2020-01-25  Bruno Haible  <bruno@clisp.org>
7750         c32isprint: Add tests.
7751         * tests/test-c32isprint.c: New file.
7752         * tests/test-c32isprint.sh: New file.
7753         * modules/c32isprint-tests: New file.
7755         c32isprint: New module.
7756         * lib/c32isprint.c: New file.
7757         * modules/c32isprint: New file.
7758         * doc/posix-functions/iswprint.texi: Mention the new module.
7760 2020-01-25  Bruno Haible  <bruno@clisp.org>
7762         c32islower: Add tests.
7763         * tests/test-c32islower.c: New file.
7764         * tests/test-c32islower.sh: New file.
7765         * modules/c32islower-tests: New file.
7767         c32islower: New module.
7768         * lib/c32islower.c: New file.
7769         * modules/c32islower: New file.
7770         * doc/posix-functions/iswlower.texi: Mention the new module.
7772 2020-01-25  Bruno Haible  <bruno@clisp.org>
7774         c32isgraph: Add tests.
7775         * tests/test-c32isgraph.c: New file.
7776         * tests/test-c32isgraph.sh: New file.
7777         * modules/c32isgraph-tests: New file.
7779         c32isgraph: New module.
7780         * lib/c32isgraph.c: New file.
7781         * modules/c32isgraph: New file.
7782         * doc/posix-functions/iswgraph.texi: Mention the new module.
7784 2020-01-25  Bruno Haible  <bruno@clisp.org>
7786         c32isdigit: Add tests.
7787         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
7788         * tests/test-c32isdigit.sh: New file.
7789         * modules/c32isdigit-tests: New file.
7791         c32isdigit: New module.
7792         * lib/c32isdigit.c: New file.
7793         * modules/c32isdigit: New file.
7794         * doc/posix-functions/iswdigit.texi: Mention the new module.
7796 2020-01-25  Bruno Haible  <bruno@clisp.org>
7798         c32iscntrl: Add tests.
7799         * tests/test-c32iscntrl.c: New file.
7800         * tests/test-c32iscntrl.sh: New file.
7801         * modules/c32iscntrl-tests: New file.
7803         c32iscntrl: New module.
7804         * lib/c32iscntrl.c: New file.
7805         * modules/c32iscntrl: New file.
7806         * doc/posix-functions/iswcntrl.texi: Mention the new module.
7808 2020-01-25  Bruno Haible  <bruno@clisp.org>
7810         c32isblank: Add tests.
7811         * tests/test-c32isblank.c: New file.
7812         * tests/test-c32isblank.sh: New file.
7813         * modules/c32isblank-tests: New file.
7815         c32isblank: New module.
7816         * lib/c32isblank.c: New file.
7817         * modules/c32isblank: New file.
7818         * doc/posix-functions/iswblank.texi: Mention the new module.
7820 2020-01-25  Bruno Haible  <bruno@clisp.org>
7822         c32isalpha: Add tests.
7823         * tests/test-c32isalpha.c: New file.
7824         * tests/test-c32isalpha.sh: New file.
7825         * modules/c32isalpha-tests: New file.
7827         c32isalpha: New module.
7828         * lib/c32isalpha.c: New file.
7829         * modules/c32isalpha: New file.
7830         * doc/posix-functions/iswalpha.texi: Mention the new module.
7832 2020-01-25  Bruno Haible  <bruno@clisp.org>
7834         c32isalnum: Add tests.
7835         * tests/test-c32isalnum.c: New file.
7836         * tests/test-c32isalnum.sh: New file.
7837         * modules/c32isalnum-tests: New file.
7839         c32isalnum: New module.
7840         * lib/c32isalnum.c: New file.
7841         * lib/c32is-impl.h: New file.
7842         * modules/c32isalnum: New file.
7843         * doc/posix-functions/iswalnum.texi: Mention the new module.
7845 2020-01-25  Bruno Haible  <bruno@clisp.org>
7847         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
7848         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
7849         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
7850         c32isupper, c32isxdigit): New declarations.
7851         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
7852         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
7853         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
7854         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
7855         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
7856         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
7857         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
7858         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
7859         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
7860         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
7861         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
7862         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
7863         c32ispunct, c32isspace, c32isupper, c32isxdigit.
7865 2020-01-25  Bruno Haible  <bruno@clisp.org>
7867         mbchar, wctype: Use the corrected iswxdigit function.
7868         * modules/mbchar (Depends-on): Add iswxdigit.
7869         * modules/wctype (Depends-on): Likewise.
7871         iswxdigit: Add tests.
7872         * tests/test-iswxdigit.c: New file.
7873         * tests/test-iswxdigit.sh: New file.
7874         * modules/iswxdigit-tests: New file.
7876         iswxdigit: New module.
7877         * m4/iswxdigit.m4: New file.
7878         * lib/wctype.in.h (iswxdigit): Potentially override.
7879         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
7880         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
7881         * lib/iswxdigit.c: New file.
7882         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
7883         REPLACE_ISWXDIGIT.
7884         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
7885         REPLACE_ISWXDIGIT.
7886         * modules/iswxdigit: New file.
7887         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
7889 2020-01-25  Bruno Haible  <bruno@clisp.org>
7891         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
7892         Reported by John Donoghue <john.david.donoghue@gmail.com> in
7893         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
7894         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
7895         off_t on mingw, invoke _lseeki64 instead of lseek.
7897 2020-01-25  Bruno Haible  <bruno@clisp.org>
7899         iswdigit tests: Avoid test failure on Cygwin.
7900         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
7901         byte sequence, return 0.
7903         iswdigit: Fix test failure on native Windows.
7904         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
7906         mbchar, wctype: Use the corrected iswdigit function.
7907         * modules/mbchar (Depends-on): Add iswdigit.
7908         * modules/wctype (Depends-on): Likewise.
7910         iswdigit: Add tests.
7911         * tests/test-iswdigit.c: New file.
7912         * tests/test-iswdigit.sh: New file.
7913         * modules/iswdigit-tests: New file.
7915         iswdigit: New module.
7916         * m4/iswdigit.m4: New file.
7917         * lib/wctype.in.h (iswdigit): Potentially override.
7918         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
7919         * lib/iswdigit.c: New file.
7920         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
7921         REPLACE_ISWDIGIT.
7922         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
7923         REPLACE_ISWDIGIT.
7924         * modules/iswdigit: New file.
7925         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
7927 2020-01-25  Bruno Haible  <bruno@clisp.org>
7929         hard-locale tests: Make it easy to reuse the musl test.
7930         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
7931         * modules/hard-locale-tests (Files): Add it.
7932         (configure.ac): Invoke gl_MUSL_LIBC.
7934 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
7936         regex: port to Gawk on nonstandard platforms
7937         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
7938         This is useful for Gawk, which does not use the Gnulib stdlib-h
7939         module.  Problem reported by Arnold Robbins in:
7940         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
7942 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
7944         regex: fix bug with >=16 subexpressions
7945         * lib/regex_internal.h (struct re_backref_cache_entry):
7946         Use bitset_word_t as the type of eps_reachable_subexps_map,
7947         instead of unsigned short int.  This fixes a bug I introduced
7948         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
7949         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
7950         Remove unused member 'unused'.
7952         regex: simplify definition of BITSET_WORD_BITS
7953         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
7954         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
7955         * lib/regex_internal.h (BITSET_WORD_BITS):
7956         * modules/regex (Depends-on): Add limits-h.
7957         Simplify now that we can use ULONG_WIDTH.
7959 2020-01-20  Bruno Haible  <bruno@clisp.org>
7961         mbrtoc32: Add note about FreeBSD 12.
7962         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
7963         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
7964         affected.
7966 2020-01-20  Bruno Haible  <bruno@clisp.org>
7968         unistr/u8-uctomb: Fix warning.
7969         Reported by Andreas Schwab <schwab@suse.de> in
7970         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
7971         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
7972         (u8_uctomb): Add FALLTHROUGH markers.
7974 2020-01-20  Bruno Haible  <bruno@clisp.org>
7976         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
7977         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
7978         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
7979         (glthread_once): Use it.
7981 2020-01-19  Bruno Haible  <bruno@clisp.org>
7983         threadlib: Disable use of weak symbols on FreeBSD 11.
7984         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
7985         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
7986         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
7987         against a bug in FreeBSD 11.
7989 2020-01-19  Bruno Haible  <bruno@clisp.org>
7991         iconv_open: Improve z/OS support.
7992         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
7993         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
7994         Remove mapping for EUC-TW.
7996 2020-01-18  Bruno Haible  <bruno@clisp.org>
7998         Rename ~~gnulib.m4 to zzgnulib.m4.
7999         Suggested by Paul Eggert.
8000         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
8001         * gnulib-tool (func_get_filelist): Update.
8002         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
8004 2020-01-18  Bruno Haible  <bruno@clisp.org>
8006         doc: Update license notices.
8007         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
8008         reference to a section or to a "file as part of this distribution".
8010 2020-01-18  Bruno Haible  <bruno@clisp.org>
8012         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
8013         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
8014         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
8015         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
8016         AC_EGREP_CPP.
8018 2020-01-18  Bruno Haible  <bruno@clisp.org>
8020         Ensure Automake does not drop ~~gnulib.m4.
8021         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
8022         * m4/gnulib-common.m4 (gl_COMMON): Require it.
8024 2020-01-18  Bruno Haible  <bruno@clisp.org>
8026         Fix major regression from 2020-01-10.
8027         Reported by Paul Eggert in
8028         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
8029         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
8030         Don't AC_REQUIRE anything.
8031         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
8032         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
8033         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
8034         use ac_compile instead.
8035         (AC_CHECK_DECL): Remove override.
8036         * m4/~~gnulib.m4: New file.
8037         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
8038         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
8040 2020-01-17  Bruno Haible  <bruno@clisp.org>
8041             Paul Eggert  <eggert@cs.ucla.edu>
8043         glob: Fix use-after-free bug.
8044         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8045         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
8046         * lib/glob.c (__glob): Delay freeing dirname until after the use of
8047         end_name.
8049 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8051         vcs-to-changelog: Fix parsing of fndecl without args.
8052         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
8053         for empty arguments.
8055 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8057         vcs-to-changelog: Add documentation.
8058         * doc/vcs-to-changelog.texi: New file.
8059         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
8060         section.
8062 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8064         vcs-to-changelog: Allow loading of custom quirks file.
8065         * build-aux/vcs_to_changelog.py: New commandline option -q.
8067 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8069         vcs-to-changelog: Fix formatting of ChangeLog output.
8070         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
8071         output.
8073 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
8075         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
8076         Reported in
8077         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
8078         * build-aux/vcstocl/frontend_c.py: Remove shebang.
8080 2020-01-15  Simon Josefsson  <simon@josefsson.org>
8082         crypto/gc-pbkdf2: New module.
8083         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
8084         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
8085         * lib/gc-pbkdf2.c: New file.
8086         * lib/gc-pbkdf2-sha1.c: Use new interface.
8087         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
8088         * modules/crypto/gc-pbkdf2: New file.
8089         * modules/crypto/gc-pbkdf2-tests: New file.
8090         * tests/test-gc-pbkdf2.c: New file.
8092 2020-01-12  Bruno Haible  <bruno@clisp.org>
8094         c32stombs: Add tests.
8095         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
8096         * tests/test-c32stombs-1.sh: New file, based on
8097         tests/test-c32srtombs-1.sh.
8098         * tests/test-c32stombs-2.sh: New file, based on
8099         tests/test-c32srtombs-2.sh.
8100         * tests/test-c32stombs-3.sh: New file, based on
8101         tests/test-c32srtombs-3.sh.
8102         * tests/test-c32stombs-4.sh: New file, based on
8103         tests/test-c32srtombs-4.sh.
8104         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
8106         c32stombs: New module.
8107         * lib/uchar.in.h (c32stombs): New declaration.
8108         * lib/c32stombs.c: New file.
8109         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
8110         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
8111         * modules/c32stombs: New file.
8112         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
8113         * doc/posix-functions/wcstombs.texi: Mention the new module.
8115 2020-01-11  Jim Meyering  <meyering@fb.com>
8117         perl: require the "warnings" module
8118         * m4/perl.m4: Also "use warnings", so we reject the perl found
8119         on at least one IRIX 6.5 system. Reported by Bruno Haible in
8120         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
8122 2020-01-10  Bruno Haible  <bruno@clisp.org>
8124         Fix major regression from 2020-01-04.
8125         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
8126         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
8127         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
8128         AC_DEFUN_ONCE.
8129         (AC_CHECK_DECL): Invoke, not require, it.
8131 2020-01-10  Bruno Haible  <bruno@clisp.org>
8133         c32snrtombs: Add tests.
8134         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
8135         * tests/test-c32snrtombs-1.sh: New file, based on
8136         tests/test-wcsnrtombs1.sh.
8137         * tests/test-c32snrtombs-2.sh: New file, based on
8138         tests/test-wcsnrtombs2.sh.
8139         * tests/test-c32snrtombs-3.sh: New file, based on
8140         tests/test-wcsnrtombs3.sh.
8141         * tests/test-c32snrtombs-4.sh: New file, based on
8142         tests/test-wcsnrtombs4.sh.
8143         * modules/c32snrtombs-tests: New file, based on
8144         modules/wcsnrtombs-tests.
8146         c32snrtombs: New module.
8147         * lib/uchar.in.h (c32snrtombs): New declaration.
8148         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
8149         INTERNAL_STATE, WCRTOMB.
8150         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
8151         * lib/c32snrtombs.c: New file.
8152         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
8153         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
8154         * modules/c32snrtombs: New file.
8155         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
8156         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
8158 2020-01-09  Bruno Haible  <bruno@clisp.org>
8160         c32srtombs: Add tests.
8161         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
8162         * tests/test-c32srtombs-1.sh: New file, based on
8163         tests/test-wcsrtombs1.sh.
8164         * tests/test-c32srtombs-2.sh: New file, based on
8165         tests/test-wcsrtombs2.sh.
8166         * tests/test-c32srtombs-3.sh: New file, based on
8167         tests/test-wcsrtombs3.sh.
8168         * tests/test-c32srtombs-4.sh: New file, based on
8169         tests/test-wcsrtombs4.sh.
8170         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
8172         c32srtombs: New module.
8173         * lib/uchar.in.h (c32srtombs): New declaration.
8174         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
8175         INTERNAL_STATE, WCRTOMB.
8176         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
8177         * lib/c32srtombs.c: New file.
8178         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
8179         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
8180         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
8181         * modules/c32srtombs: New file.
8182         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
8183         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
8185 2020-01-08  Bruno Haible  <bruno@clisp.org>
8187         c32tob: Make consistent with mbrtoc32.
8188         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
8189         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
8190         use c32rtomb, not wctob.
8191         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
8192         (Depends-on): Add c32rtomb.
8193         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
8195 2020-01-08  Bruno Haible  <bruno@clisp.org>
8197         c32rtomb: Add tests.
8198         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
8199         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
8200         * tests/test-c32rtomb-w32.c: New file, based on
8201         tests/test-wcrtomb-w32.c.
8202         * tests/test-c32rtomb-w32-1.sh: New file, based on
8203         tests/test-wcrtomb-w32-1.sh.
8204         * tests/test-c32rtomb-w32-2.sh: New file, based on
8205         tests/test-wcrtomb-w32-2.sh.
8206         * tests/test-c32rtomb-w32-3.sh: New file, based on
8207         tests/test-wcrtomb-w32-3.sh.
8208         * tests/test-c32rtomb-w32-4.sh: New file, based on
8209         tests/test-wcrtomb-w32-4.sh.
8210         * tests/test-c32rtomb-w32-5.sh: New file, based on
8211         tests/test-wcrtomb-w32-5.sh.
8212         * tests/test-c32rtomb-w32-6.sh: New file, based on
8213         tests/test-wcrtomb-w32-6.sh.
8214         * tests/test-c32rtomb-w32-7.sh: New file, based on
8215         tests/test-wcrtomb-w32-7.sh.
8216         * modules/c32rtomb-tests: New file.
8218         c32rtomb: New module.
8219         * lib/uchar.in.h (c32rtomb): New declaration.
8220         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
8221         * m4/c32rtomb.m4: New file.
8222         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
8223         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
8224         REPLACE_C32RTOMB.
8225         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
8226         HAVE_C32RTOMB, REPLACE_C32RTOMB.
8227         * modules/c32rtomb: New file.
8228         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
8229         * doc/posix-functions/c32rtomb.texi: Document the new module.
8230         * doc/posix-functions/wcrtomb.texi: Mention the new module.
8232 2020-01-08  Bruno Haible  <bruno@clisp.org>
8234         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
8235         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
8236         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
8237         but is not working.
8238         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
8239         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
8240         differ, use the system's mbrtoc32, adding workarounds.
8241         * modules/mbrtoc32 (Depends-on): Add hard-locale.
8242         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
8243         Windows problem.
8244         * lib/btoc32.c: Include <stdio.h>, <string.h>.
8245         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
8246         use mbrtoc32, not btowc.
8247         * modules/btoc32 (Depends-on): Add mbrtoc32.
8248         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
8249         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
8250         * modules/mbsrtoc32s (Depends-on): Update conditions.
8251         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
8252         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
8253         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
8254         * modules/mbsnrtoc32s (Depends-on): Update conditions.
8255         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
8257 2020-01-07  Bruno Haible  <bruno@clisp.org>
8259         wcrtomb: Make multithread-safe, except possibly on IRIX.
8260         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
8261         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
8262         WCRTOMB_RETVAL_BUG.
8263         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
8264         wctomb only on IRIX.
8266 2020-01-05  Jim Meyering  <meyering@fb.com>
8268         tests: skip thread-using tests when threading is disabled
8269         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
8270         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
8271         of those, so they are skipped in this case.
8272         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
8273         * tests/test-setlocale_null-mt-all.c (main): Likewise.
8274         * tests/test-setlocale_null-mt-one.c (main): Likewise.
8276 2020-01-05  Bruno Haible  <bruno@clisp.org>
8278         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
8279         Reported by Jim Meyering in
8280         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
8281         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
8282         (GNULIB_defined_ptsname_r): New macro.
8283         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
8284         (main): Disable the NULL argument test if canonicalize_file_name does
8285         not come from gnulib.
8286         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
8287         (main): Disable the NULL argument test if canonicalize_file_name does
8288         not come from gnulib.
8289         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
8290         (test_errors): Disable the NULL argument test if ptsname_r does not come
8291         from gnulib.
8293 2020-01-04  Jim Meyering  <meyering@fb.com>
8295         update-copyright: reenable its always-skipped test
8296         * tests/test-update-copyright.sh: Restore the "-pi" options removed
8297         on 2019-06-15. Without those, an internal preliminary test would
8298         fail, causing this test always to be skipped.
8299         Verify that the test is now run and passes via this:
8300           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
8302 2020-01-05  Bruno Haible  <bruno@clisp.org>
8304         mbstoc32s: Add tests.
8305         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
8306         * tests/test-mbstoc32s-1.sh: New file, based on
8307         tests/test-mbsrtoc32s-1.sh.
8308         * tests/test-mbstoc32s-2.sh: New file, based on
8309         tests/test-mbsrtoc32s-2.sh.
8310         * tests/test-mbstoc32s-3.sh: New file, based on
8311         tests/test-mbsrtoc32s-3.sh.
8312         * tests/test-mbstoc32s-4.sh: New file, based on
8313         tests/test-mbsrtoc32s-4.sh.
8314         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
8316         mbstoc32s: New module.
8317         * lib/uchar.in.h (mbstoc32s): New declaration.
8318         * lib/mbstoc32s.c: New file.
8319         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
8320         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
8321         * modules/mbstoc32s: New file.
8322         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
8323         * doc/posix-functions/mbstowcs.texi: Mention the new module.
8325 2020-01-05  Bruno Haible  <bruno@clisp.org>
8327         Tweak recently added tests.
8328         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
8329         * tests/test-mbsrtoc32s.c: Likewise.
8330         * tests/test-mbsnrtoc32s.c: Likewise.
8332 2020-01-04  Bruno Haible  <bruno@clisp.org>
8334         mbsnrtoc32s: Add tests.
8335         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
8336         * tests/test-mbsnrtoc32s-1.sh: New file, based on
8337         tests/test-mbsnrtowcs1.sh.
8338         * tests/test-mbsnrtoc32s-2.sh: New file, based on
8339         tests/test-mbsnrtowcs2.sh.
8340         * tests/test-mbsnrtoc32s-3.sh: New file, based on
8341         tests/test-mbsnrtowcs3.sh.
8342         * tests/test-mbsnrtoc32s-4.sh: New file, based on
8343         tests/test-mbsnrtowcs4.sh.
8344         * modules/mbsnrtoc32s-tests: New file, based on
8345         modules/mbsnrtowcs-tests.
8347         mbsnrtoc32s: New module.
8348         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
8349         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
8350         INTERNAL_STATE, MBRTOWC.
8351         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
8352         * lib/mbsnrtoc32s.c: New file.
8353         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
8354         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
8355         * modules/mbsnrtoc32s: New file.
8356         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
8357         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
8359 2020-01-04  Bruno Haible  <bruno@clisp.org>
8361         mbsrtoc32s tests: Enhance test.
8362         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
8363         test strings for UTF-8 and GB18030.
8365 2020-01-04  Bruno Haible  <bruno@clisp.org>
8367         mbsrtoc32s: Fix bug.
8368         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
8369         that SMALL_WCHAR_T is defined.
8371 2020-01-04  Bruno Haible  <bruno@clisp.org>
8373         mbsrtoc32s: Add tests.
8374         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
8375         * tests/test-mbsrtoc32s-1.sh: New file, based on
8376         tests/test-mbsrtowcs1.sh.
8377         * tests/test-mbsrtoc32s-2.sh: New file, based on
8378         tests/test-mbsrtowcs2.sh.
8379         * tests/test-mbsrtoc32s-3.sh: New file, based on
8380         tests/test-mbsrtowcs3.sh.
8381         * tests/test-mbsrtoc32s-4.sh: New file, based on
8382         tests/test-mbsrtowcs4.sh.
8383         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
8385         mbsrtoc32s: New module.
8386         * lib/uchar.in.h (mbsrtoc32s): New declaration.
8387         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
8388         INTERNAL_STATE, MBRTOWC.
8389         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
8390         * lib/mbsrtoc32s.c: New file.
8391         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
8392         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
8393         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
8394         * modules/mbsrtoc32s: New file.
8395         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
8396         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
8398 2020-01-04  Bruno Haible  <bruno@clisp.org>
8400         mbrtowc, mbrtoc32: Tighten dependendies.
8401         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
8402         REPLACE_MBSTATE_T is 1.
8403         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
8404         REPLACE_MBSTATE_T is 0.
8405         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
8406         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
8407         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
8408         REPLACE_MBSTATE_T is 0.
8410 2020-01-04  Bruno Haible  <bruno@clisp.org>
8412         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
8413         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
8414         * modules/uchar (Files): Add stdint.m4.
8415         (Makefile.am): Substitute SMALL_WCHAR_T.
8416         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
8418 2020-01-04  Bruno Haible  <bruno@clisp.org>
8420         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
8421         Reported by Martin Storsjö <martin@martin.st> in
8422         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
8423         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
8424         New macros.
8425         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
8427 2020-01-04  Bruno Haible  <bruno@clisp.org>
8429         btoc32: Add tests.
8430         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
8431         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
8432         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
8433         * modules/btoc32-tests: New file, based on modules/btowc-tests.
8435         btoc32: New module.
8436         * lib/uchar.in.h (btoc32): New declaration.
8437         * lib/btoc32.c: New file.
8438         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
8439         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
8440         * modules/btoc32: New file.
8441         * tests/test-uchar-c++.cc: Test the signature of btoc32.
8442         * doc/posix-functions/btowc.texi: Mention the new module.
8444 2020-01-03  Bruno Haible  <bruno@clisp.org>
8446         uchar tests: Avoid compilation error with HP cc.
8447         * tests/test-uchar.c: Disable a test when HP cc is in use.
8449 2020-01-03  Bruno Haible  <bruno@clisp.org>
8451         mbrtoc32: Add tests.
8452         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
8453         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
8454         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
8455         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
8456         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
8457         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
8458         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
8459         * tests/test-mbrtoc32-w32-1.sh: New file, based on
8460         tests/test-mbrtowc-w32-1.sh.
8461         * tests/test-mbrtoc32-w32-2.sh: New file, based on
8462         tests/test-mbrtowc-w32-2.sh.
8463         * tests/test-mbrtoc32-w32-3.sh: New file, based on
8464         tests/test-mbrtowc-w32-3.sh.
8465         * tests/test-mbrtoc32-w32-4.sh: New file, based on
8466         tests/test-mbrtowc-w32-4.sh.
8467         * tests/test-mbrtoc32-w32-5.sh: New file, based on
8468         tests/test-mbrtowc-w32-5.sh.
8469         * tests/test-mbrtoc32-w32-6.sh: New file, based on
8470         tests/test-mbrtowc-w32-6.sh.
8471         * tests/test-mbrtoc32-w32-7.sh: New file, based on
8472         tests/test-mbrtowc-w32-7.sh.
8473         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
8475         mbrtoc32: New module.
8476         * lib/uchar.in.h (mbrtoc32): New declaration.
8477         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
8478         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
8479         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
8480         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
8481         REPLACE_MBRTOC32.
8482         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
8483         HAVE_MBRTOC32, REPLACE_MBRTOC32.
8484         * modules/mbrtoc32: New file, based on modules/mbrtowc.
8485         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
8486         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
8487         $(LIB_MBRTOWC).
8488         * doc/posix-functions/mbrtoc32.texi: Document the new module.
8489         * doc/posix-functions/mbrtowc.texi: Mention the new module.
8491 2020-01-03  Bruno Haible  <bruno@clisp.org>
8493         mbrtowc: Refactor to share code with mbrtoc32.
8494         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
8495         * lib/mbrtowc-impl-utf8.h: Likewise.
8496         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
8497         mbrtowc-impl.h.
8498         * modules/mbrtowc (Files): Add the new files.
8500 2020-01-03  Jim Meyering  <meyering@fb.com>
8502         doc: fix time.texi wording
8503         * doc/posix-headers/time.texi (time.h): Typo.
8505 2020-01-03  Bruno Haible  <bruno@clisp.org>
8507         mbrtowc: Refactor locale charset dispatching.
8508         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
8509         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
8510         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
8511         localcharset.h, streq.h.
8512         (enc_t): Remove type.
8513         (locale_enc): Remove function.
8514         (cached_locale_enc): Remove variable.
8515         (locale_enc_cached): Remove function.
8516         (mbrtowc): Invoke locale_encoding_classification.
8517         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
8518         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
8519         lc-charset-dispatch.c.
8520         (configure.ac): Arrange to compile lc-charset-dispatch.c.
8522 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
8524         doc: mention 32-bit time_t issue
8525         * doc/posix-headers/sys_stat.texi (sys/stat.h):
8526         * doc/posix-headers/time.texi (time.h): Mention 2038.
8528 2020-01-03  Bruno Haible  <bruno@clisp.org>
8530         mbrtowc: Ensure the mbtowc_lock is unique.
8531         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
8532         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
8533         lib/setlocale_null.c.
8534         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
8535         glthread/lock.h. Include mbtowc-lock.h.
8536         (mbtowc_lock): Remove declaration.
8537         (mbrtowc): Use mbtowc_with_lock.
8538         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
8539         threads.h. Set LIB_MBRTOWC.
8540         (gl_PREREQ_MBTOWC_LOCK): New macro.
8541         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
8542         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
8543         (Depends-on): Remove lock.
8544         (configure.ac): Arrange to compile mbtowc-lock.c.
8545         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
8546         * modules/acl (Link): Likewise.
8547         * modules/argmatch (Link): Likewise.
8548         * modules/backup-rename (Link): Likewise.
8549         * modules/backupfile (Link): Likewise.
8550         * modules/closein (Link): Likewise.
8551         * modules/closeout (Link): Likewise.
8552         * modules/copy-file (Link): Likewise.
8553         * modules/csharpcomp (Link): Likewise.
8554         * modules/csharpexec (Link): Likewise.
8555         * modules/dfa (Link): Likewise.
8556         * modules/exclude (Link): Likewise.
8557         * modules/fnmatch (Link): Likewise.
8558         * modules/fnmatch-gnu (Link): Likewise.
8559         * modules/fnmatch-posix (Link): Likewise.
8560         * modules/glob (Link): Likewise.
8561         * modules/human (Link): Likewise.
8562         * modules/javacomp (Link): Likewise.
8563         * modules/javaexec (Link): Likewise.
8564         * modules/javaversion (Link): Likewise.
8565         * modules/mbfile (Link): Likewise.
8566         * modules/mbiter (Link): Likewise.
8567         * modules/mbmemcasecmp (Link): Likewise.
8568         * modules/mbmemcasecoll (Link): Likewise.
8569         * modules/mbrlen (Link): Likewise.
8570         * modules/mbscasecmp (Link): Likewise.
8571         * modules/mbscasestr (Link): Likewise.
8572         * modules/mbschr (Link): Likewise.
8573         * modules/mbscspn (Link): Likewise.
8574         * modules/mbsinit (Link): Likewise.
8575         * modules/mbslen (Link): Likewise.
8576         * modules/mbsncasecmp (Link): Likewise.
8577         * modules/mbsnlen (Link): Likewise.
8578         * modules/mbsnrtowcs (Link): Likewise.
8579         * modules/mbspbrk (Link): Likewise.
8580         * modules/mbspcasecmp (Link): Likewise.
8581         * modules/mbsrchr (Link): Likewise.
8582         * modules/mbsrtowcs (Link): Likewise.
8583         * modules/mbssep (Link): Likewise.
8584         * modules/mbsspn (Link): Likewise.
8585         * modules/mbsstr (Link): Likewise.
8586         * modules/mbstok_r (Link): Likewise.
8587         * modules/mbswidth (Link): Likewise.
8588         * modules/mbuiter (Link): Likewise.
8589         * modules/mkdir-p (Link): Likewise.
8590         * modules/propername (Link): Likewise.
8591         * modules/quote (Link): Likewise.
8592         * modules/quotearg (Link): Likewise.
8593         * modules/quotearg-simple (Link): Likewise.
8594         * modules/regex-quote (Link): Likewise.
8595         * modules/rpmatch (Link): Likewise.
8596         * modules/sh-quote (Link): Likewise.
8597         * modules/system-quote (Link): Likewise.
8598         * modules/trim (Link): Likewise.
8599         * modules/unistdio/ulc-asnprintf (Link): Likewise.
8600         * modules/unistdio/ulc-fprintf (Link): Likewise.
8601         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
8602         * modules/unistdio/ulc-vasprintf (Link): Likewise.
8603         * modules/unistdio/ulc-vfprintf (Link): Likewise.
8604         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
8605         * modules/unistdio/ulc-vsprintf (Link): Likewise.
8606         * modules/xfreopen (Link): Likewise.
8607         * modules/xmemcoll (Link): Likewise.
8608         * modules/yesno (Link): Likewise.
8609         * modules/regex (Link): Add $(LIB_MBRTOWC).
8610         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
8611         instead of $(LIBTHREAD).
8612         * modules/argmatch-tests (Makefile.am): Likewise.
8613         * modules/closein-tests (Makefile.am): Likewise.
8614         * modules/copy-file-tests (Makefile.am): Likewise.
8615         * modules/dfa-tests (Makefile.am): Likewise.
8616         * modules/fnmatch-tests (Makefile.am): Likewise.
8617         * modules/glob-tests (Makefile.am): Likewise.
8618         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
8619         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
8620         * modules/mbrtowc-tests (Makefile.am): Likewise.
8621         * modules/mbscasecmp-tests (Makefile.am): Likewise.
8622         * modules/mbscasestr-tests (Makefile.am): Likewise.
8623         * modules/mbschr-tests (Makefile.am): Likewise.
8624         * modules/mbscspn-tests (Makefile.am): Likewise.
8625         * modules/mbsinit-tests (Makefile.am): Likewise.
8626         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
8627         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
8628         * modules/mbspbrk-tests (Makefile.am): Likewise.
8629         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
8630         * modules/mbsrchr-tests (Makefile.am): Likewise.
8631         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
8632         * modules/mbsspn-tests (Makefile.am): Likewise.
8633         * modules/mbsstr-tests (Makefile.am): Likewise.
8634         * modules/quotearg-simple-tests (Makefile.am): Likewise.
8635         * modules/quotearg-tests (Makefile.am): Likewise.
8636         * modules/readtokens-tests (Makefile.am): Likewise.
8637         * modules/sh-quote-tests (Makefile.am): Likewise.
8638         * modules/system-quote-tests (Makefile.am): Likewise.
8639         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
8640         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
8641         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
8642         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
8643         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
8644         * modules/yesno-tests (Makefile.am): Likewise.
8645         * modules/exclude-tests (Makefile.am): Link the programs with
8646         $(LIB_MBRTOWC).
8647         * modules/regex-tests (Makefile.am): Likewise.
8648         * modules/regex-quote-tests (Makefile.am): Likewise.
8650 2020-01-03  Bruno Haible  <bruno@clisp.org>
8652         getopt-posix: Fix compilation failure in testdirs.
8653         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
8654         when the gnulib module 'getopt-posix' is enabled.
8655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
8656         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
8657         module indicator.
8658         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
8660 2020-01-03  Bruno Haible  <bruno@clisp.org>
8662         doc: Mention the 64-bit inode number problem.
8663         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
8664         64-bit inode number problem.
8665         * doc/posix-functions/stat.texi: Mention that this module fixes the
8666         64-bit inode number problem.
8667         * doc/posix-functions/lstat.texi: Likewise.
8668         * doc/posix-functions/fstat.texi: Likewise.
8669         * doc/posix-functions/readdir.texi: Add more details.
8670         * doc/posix-functions/readdir_r.texi: Likewise.
8672 2020-01-02  Bruno Haible  <bruno@clisp.org>
8674         wcrtomb: Add more tests.
8675         * tests/test-wcrtomb-w32.c: Include localcharset.h.
8676         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
8677         locale_charset() returns the expected value; otherwise, skip the test.
8678         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
8679         * tests/test-wcrtomb-w32-7.sh: Likewise.
8680         * modules/wcrtomb-tests (Files): Add these files.
8681         (Depends-on): Add localcharset.
8682         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
8684 2020-01-02  Bruno Haible  <bruno@clisp.org>
8686         mbrtowc: Add more tests.
8687         * tests/test-mbrtowc-w32.c: Include localcharset.h.
8688         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
8689         locale_charset() returns the expected value; otherwise, skip the test.
8690         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
8691         * tests/test-mbrtowc-w32-7.sh: Likewise.
8692         * modules/mbrtowc-tests (Files): Add these files.
8693         (Depends-on): Add localcharset.
8694         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
8696 2020-01-02  Bruno Haible  <bruno@clisp.org>
8698         mbrtowc: Fix test failures on MSVC (regression by previous commit).
8699         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
8700         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
8701         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
8702         MBRTOWC_STORES_INCOMPLETE_BUG.
8703         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
8705 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
8707         doc: mention glibc bug 24269
8708         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
8709         Reformat slightly so that it looks nicer in the Grep manual.
8711 2020-01-02  Bruno Haible  <bruno@clisp.org>
8713         mbrtowc: Don't replace mbstate_t on MSVC.
8714         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
8715         a missing mbsinit function on native Windows.
8716         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
8717         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
8718         MSVC bug.
8719         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
8721 2020-01-02  Bruno Haible  <bruno@clisp.org>
8723         setlocale-null: Avoid crashing the MSVC linker.
8724         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
8725         MSVC.
8727 2020-01-02  Bruno Haible  <bruno@clisp.org>
8729         wchar: Make the HP-UX workaround work on HP-UX 11.31.
8730         * modules/wchar (Depends-on): Add inttypes-incomplete.
8731         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
8732         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
8733         of strtoimax.
8735 2020-01-02  Bruno Haible  <bruno@clisp.org>
8737         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
8738         * lib/mbrtowc.c: Include <stdint.h>.
8739         * modules/mbrtowc (Depends-on): Add stdint.
8741 2020-01-01  Pádraig Brady  <P@draigBrady.com>
8743         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
8744         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
8745         which will auto enable use of openssl, only for >= version 3,
8746         which is newly licensed under the Apache Software License.
8748 2020-01-01  Bruno Haible  <bruno@clisp.org>
8750         mbrtowc: Include function name in macro names.
8751         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
8752         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
8753         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
8754         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
8755         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
8756         C_LOCALE_MAYBE_EILSEQ.
8758 2020-01-01  Bruno Haible  <bruno@clisp.org>
8760         c32tob: New module.
8761         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
8762         (c32tob): New declaration.
8763         * lib/c32tob.c: New file.
8764         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
8765         macros.
8766         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
8767         * modules/uchar (Depends-on): Add snippet/c++defs.
8768         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
8769         uchar.h.
8770         * modules/c32tob: New file.
8771         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
8772         defined.
8773         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
8774         c32tob.
8775         * modules/uchar-c++-tests (Files): Add tests/signature.h.
8776         * doc/posix-functions/wctob.texi: Mention the new module.
8778 2020-01-01  Bruno Haible  <bruno@clisp.org>
8780         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
8781         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
8782         $(LIB_SETLOCALE).
8784 2020-01-01  Bruno Haible  <bruno@clisp.org>
8786         hard-locale tests: Fix a conflict with the C++ tests.
8787         * modules/hard-locale-tests (Makefile.am): Build a program named
8788         'current-locale', not 'locale'.
8790 2020-01-01  Bruno Haible  <bruno@clisp.org>
8792         doc: Update documentation about wchar_t.
8793         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
8794         wchar_t type.
8796 2020-01-01  Bruno Haible  <bruno@clisp.org>
8798         mbrtowc tests: Fix typos.
8799         * tests/test-mbrtowc.c (main): Fix typo.
8800         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
8802 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
8804         maint: update copyright notices
8805         Before doing the following changes done by hand, I also ran ‘make
8806         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
8807         to do most of the copyright years automatically.  A few upstream
8808         sources are still in 2019 but these should eventually be changed
8809         automatically too.
8810         * build-aux/declared.sh (func_version):
8811         * build-aux/libtool-next-version (func_version):
8812         * build-aux/run-test (func_version):
8813         Update these notices by hand.  Put just the last year
8814         in output of programs, as per GNU coding standards.
8816 2019-12-31  Bruno Haible  <bruno@clisp.org>
8818         uchar: Add C++ tests.
8819         * tests/test-uchar-c++.cc: New file.
8820         * tests/test-uchar-c++2.cc: New file.
8821         * modules/uchar-c++-tests: New file.
8823         uchar: Add tests.
8824         * tests/test-uchar.c: New file.
8825         * modules/uchar-tests: New file.
8827         uchar: New module.
8828         * lib/uchar.in.h: New file.
8829         * m4/uchar.m4: New file.
8830         * modules/uchar: New file.
8831         * doc/posix-headers/uchar.texi: Mention the new module.
8833 2019-12-30  Jim Meyering  <meyering@fb.com>
8835         localeinfo: ->simple would be wrong for LC_ALL=C
8836         That would lead to using unnecessary and expensive code paths in dfa.c.
8837         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
8838         error that would have made grep many times slower in the C locale.
8839         With this change, and a file created like this:
8840           yes 00 | head -10000000 > in
8841         Running grep as follows becomes more than 40 times faster:
8842           LC_ALL=C grep -Fw 0 in
8844 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
8846         doc: document trouble with back-references
8847         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
8849 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
8851         doc: use “back-reference” for \1 etc.
8852         * doc/regex.texi: Consistently spell “back-reference” with
8853         a hyphen, since that’s how POSIX does it.
8855 2019-12-26  Jim Meyering  <meyering@fb.com>
8857         test-framework-sh: tighten an internal grep regexp
8858         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
8859         that helps test for a working printf.
8861 2019-12-26  Bruno Haible  <bruno@clisp.org>
8863         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
8864         Reported by Paul Eggert in
8865         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
8866         Simplification by Jim Meyering.
8867         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
8868         octal escape sequence in a UTF-8 locale.
8870 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
8872         mbrtowc: port better to narrow-wchar_t platforms
8873         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
8874         wchar_t is too narrow to represent all the Unicode characters,
8875         consider a byte sequence for an out-of-wchar_t-range character to
8876         be an encoding error.  This fixes grep’s surrogate-pair test
8877         failure on AIX 7.2.
8879 2019-12-24  Bruno Haible  <bruno@clisp.org>
8881         localcharset: Avoid referencing rpl_setlocale on native Windows.
8882         * lib/localcharset.c (setlocale): Undefine.
8884 2019-12-24  Bruno Haible  <bruno@clisp.org>
8886         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
8887         * m4/semaphore.m4: New file.
8888         * modules/lock-tests (Files): Add it.
8889         (configure.ac): Require gl_SEMAPHORE.
8890         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
8892 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
8894         strptime: fix typo in previous patch
8895         Problem and fix reported by Bruno Haible in:
8896         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
8897         * lib/strptime.c (day_of_the_week): Fix paren bug.
8899 2019-12-24  Bruno Haible  <bruno@clisp.org>
8901         setlocale-null: Make it easy to rely on the lock in another library.
8902         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
8903         defined.
8905 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
8907         gethrxtime, mktime, nstrftime, strptime: tweak division performance
8908         Performanced analyzed by Bruno Haible in:
8909         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
8910         * config/srclist.txt: Do not sync mktime.c for now.
8911         * lib/mktime.c (shr, ydhms_diff):
8912         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
8913         * lib/strptime.c (day_of_the_week):
8914         * lib/xtime.h (xtime_sec):
8915         Redo with neither ‘%’ nor conditional branches.
8917 2019-12-23  Bruno Haible  <bruno@clisp.org>
8919         setlocale-null: Export the lock function also on non-Windows platforms.
8920         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
8921         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
8922         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
8923         * modules/setlocale-null (configure.ac): Invoke it.
8924         (Files): Add m4/visibility.m4.
8926 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8928         gethrxtime: fix rounding bug with negative args
8929         Problem reported by Bruno Haible in:
8930         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
8931         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
8932         with negative rounding.  Common platforms can compute / and % with
8933         a single instruction, so the simplified code should be shorter and
8934         faster on these platforms anyway.
8936 2019-12-22  Bruno Haible  <bruno@clisp.org>
8938         gethrxtime: remove incorrect overflow detection
8939         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
8940         integer overflow, as it didn’t suffice.  This reverts the xtime.h
8941         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
8942         cannot now see the need for anyway (even in cases where it works),
8943         as the patch is helpful only when the signs of S and NS disagree,
8944         and all callers pass nonnegative values for S and NS.
8946 2019-12-22  Bruno Haible  <bruno@clisp.org>
8948         setlocale-null: Add standalone include file.
8949         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
8950         * lib/locale.in.h: Include setlocale_null.h.
8951         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
8952         setlocale_null): Remove declarations.
8953         * lib/setlocale_null.c: Include setlocale_null.h.
8954         * lib/localename.c: Likewise.
8955         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
8956         (Depends-on): Add snippet/arg-nonnull.
8957         (Include): Allow either "setlocale_null.h" or <locale.h>.
8959 2019-12-22  Bruno Haible  <bruno@clisp.org>
8961         strfmon_l: Fix test failures on FreeBSD and Cygwin.
8962         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
8963         AC_RUN_IFELSE test.
8964         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
8965         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
8966         problem.
8968 2019-12-22  Bruno Haible  <bruno@clisp.org>
8970         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
8971         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
8972         unconditional AC_LIBOBJ.
8973         * modules/selinux-at: Likewise.
8974         * modules/xmemdup0: Likewise.
8975         * modules/xstrtoll: Likewise.
8977 2019-12-22  Bruno Haible  <bruno@clisp.org>
8979         longlong: Mark module obsolete.
8980         * modules/longlong (Status, Notice): New sections.
8982         stdint: Assume that the compiler supports 'long long'.
8983         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
8984         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
8985         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
8986         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
8987         AC_TYPE_UNSIGNED_LONG_LONG_INT.
8988         * modules/stdint (Files): Remove longlong.m4.
8989         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
8990         HAVE_UNSIGNED_LONG_LONG_INT.
8992         inttypes-incomplete: Assume that the compiler supports 'long long'.
8993         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
8994         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
8995         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
8996         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
8997         HAVE_LONG_LONG_INT to be 1.
8998         * modules/inttypes-incomplete (Makefile.am): Don't substitute
8999         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
9001         malloca: Assume that the compiler supports 'long long'.
9002         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
9003         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
9004         * modules/malloca (Files): Remove longlong.m4.
9005         * modules/relocatable-prog-wrapper (Files): Likewise.
9007         atoll: Assume that the compiler supports 'long long'.
9008         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
9009         * modules/atoll (Files): Remove longlong.m4.
9011         strtoll: Assume that the compiler supports 'long long'.
9012         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
9013         * modules/strtoll (Files): Remove longlong.m4.
9015         strtoull: Assume that the compiler supports 'long long'.
9016         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
9017         AC_TYPE_UNSIGNED_LONG_LONG_INT.
9018         * modules/strtoull (Files): Remove longlong.m4.
9020         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
9021         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
9022         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
9023         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
9024         AC_TYPE_LONG_LONG_INT.
9025         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
9026         AC_TYPE_UNSIGNED_LONG_LONG_INT.
9027         * modules/strtoimax (Files): Remove longlong.m4.
9028         * modules/strtoumax (Files): Likewise.
9030         xstrtoll: Assume that the compiler supports 'long long'.
9031         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
9032         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
9034         vasnprintf: Assume that the compiler supports 'long long'.
9035         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
9036         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
9037         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
9038         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
9039         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
9040         require AC_TYPE_LONG_LONG_INT.
9041         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
9042         gl_PREREQ_VASNPRINTF): Likewise.
9043         * modules/vasnprintf (Files): Remove longlong.m4.
9044         * modules/c-vasnprintf (Files): Likewise.
9045         * modules/unistdio/u8-vasnprintf (Files): Likewise.
9046         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
9047         * modules/unistdio/u16-vasnprintf (Files): Likewise.
9048         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
9049         * modules/unistdio/u32-vasnprintf (Files): Likewise.
9050         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
9051         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
9053         gethrxtime: Assume that the compiler supports 'long long'.
9054         * lib/xtime.h (xtime_t): Define to 'long long int' always.
9055         (XTIME_PRECISION): Define to 1000000000 always.
9056         (xtime_make, xtime_sec): Optimize accordingly.
9057         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
9058         * modules/gethrxtime (Files): Remove longlong.m4.
9060         integer_length*: Assume that the compiler supports 'long long'.
9061         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
9062         * modules/integer_length (Files): Remove longlong.m4.
9063         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
9064         * modules/integer_length_l (Files): Remove longlong.m4.
9065         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
9066         * modules/integer_length_ll (Files): Remove longlong.m4.
9067         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
9069         count-one-bits: Assume that the compiler supports 'long long'.
9070         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
9071         * m4/count-one-bits.m4: Remove file.
9072         * modules/count-one-bits (Files): Remove it.
9073         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
9074         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
9075         unconditionally.
9077         count-trailing-zeros: Assume that the compiler supports 'long long'.
9078         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
9079         unconditionally.
9080         * m4/count-trailing-zeros.m4: Remove file.
9081         * modules/count-trailing-zeros (Files): Remove it.
9082         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
9083         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
9084         unconditionally.
9086         count-leading-zeros: Assume that the compiler supports 'long long'.
9087         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
9088         unconditionally.
9089         * m4/count-leading-zeros.m4: Remove file.
9090         * modules/count-leading-zeros (Files): Remove it.
9091         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
9092         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
9093         unconditionally.
9095 2019-12-22  Bruno Haible  <bruno@clisp.org>
9097         localcharset: Update support for OpenBSD.
9098         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
9100 2019-12-21  Bruno Haible  <bruno@clisp.org>
9102         pthread_sigmask: Avoid test failure on NetBSD 8.0.
9103         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
9104         NetBSD.
9105         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
9107 2019-12-21  Bruno Haible  <bruno@clisp.org>
9109         threadlib: Improve code structure.
9110         * m4/threadlib.m4: Reorder macros. Add comments.
9112 2019-12-21  Bruno Haible  <bruno@clisp.org>
9114         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
9115         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
9116         here from m4/threads.m4).
9117         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
9118         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
9119         (gl_STDTHREADLIB): New macro.
9120         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
9121         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
9123 2019-12-21  Bruno Haible  <bruno@clisp.org>
9125         sched_yield: Don't depend on threadlib and yield.
9126         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
9127         LIB_SCHED_YIELD.
9128         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
9129         m4/yield.m4).
9130         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
9131         gl_THREADLIB and gl_YIELD.
9132         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
9133         based on $(LIB_SCHED_YIELD).
9134         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
9135         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
9136         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
9137         (Depends-on): Remove threadlib.
9138         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
9139         * modules/threads-h (Files): Remove m4/yield.m4.
9140         * modules/pthread-cond-tests (Makefile.am): Link the programs against
9141         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
9142         * modules/pthread-mutex-tests (Makefile.am): Likewise.
9143         * modules/pthread-once-tests (Makefile.am): Likewise.
9144         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
9145         * modules/pthread-tss-tests (Makefile.am): Likewise.
9147 2019-12-21  Bruno Haible  <bruno@clisp.org>
9149         threads-h: Don't depend on threadlib.
9150         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
9151         not gl_THREADLIB_EARLY.
9153 2019-12-21  Bruno Haible  <bruno@clisp.org>
9155         nl_langinfo tests: Fix link error (regression from 2019-12-18).
9156         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
9157         with $(LIB_SETLOCALE).
9159 2019-12-21  Bruno Haible  <bruno@clisp.org>
9161         threadlib: Remove unused dependency (left over from 2019-07-06).
9162         * modules/threadlib (Depends-on): Remove havelib.
9164 2019-12-21  Bruno Haible  <bruno@clisp.org>
9166         New convention for multithread-safety tests.
9167         * tests/test-setlocale_null-mt-one.c: Renamed from
9168         tests/test-setlocale_null-one.c.
9169         * tests/test-setlocale_null-mt-all.c: Renamed from
9170         tests/test-setlocale_null-all.c.
9171         * modules/setlocale-null-tests (Files, Makefile.am): Update.
9173 2019-12-21  Bruno Haible  <bruno@clisp.org>
9175         quotearg tests: Fix conflict with hard-locale tests.
9176         * tests/testlocale: Renamed from tests/locale.
9177         * modules/quotearg-tests (Files): Update.
9178         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
9180 2019-12-21  Bruno Haible  <bruno@clisp.org>
9182         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
9183         Reported by Daniel Richard G. in
9184         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
9185         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
9186         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
9187         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
9188         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
9189         alternative to PTHREAD_RWLOCK_INITIALIZER.
9190         * lib/glthread/lock.c: Likewise.
9192 2019-12-21  Bruno Haible  <bruno@clisp.org>
9194         memcmp tests: Work around the clang bug.
9195         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
9196         the clang optimization.
9198 2019-12-20  Bruno Haible  <bruno@clisp.org>
9200         localcharset: Add support for z/OS encoding names.
9201         * lib/localcharset.h: Mention which encodings are used as locale
9202         encodings on z/OS.
9204 2019-12-20  Bruno Haible  <bruno@clisp.org>
9206         iconv_open: Add support for z/OS encoding names.
9207         Reported by Daniel Richard G. in
9208         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
9209         * lib/iconv_open-zos.gperf: New file.
9210         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
9211         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
9212         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
9213         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
9214         * doc/posix-functions/iconv_open.texi: Mention z/OS.
9216 2019-12-20  Bruno Haible  <bruno@clisp.org>
9218         doc: Document the problem of the per-thread locale functions on z/OS.
9219         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
9220         * doc/posix-functions/newlocale.texi: Likewise.
9221         * doc/posix-functions/duplocale.texi: Likewise.
9222         * doc/posix-functions/freelocale.texi: Likewise.
9224 2019-12-20  Bruno Haible  <bruno@clisp.org>
9226         localename, gettext: Fix host_os value for z/OS.
9227         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
9228         cross-configuration code.
9230 2019-12-19  Jim Meyering  <meyering@fb.com>
9232         nstrftime: avoid a shadowing warning
9233         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
9234         to avoid shadowing an "i" declared hundreds of lines above.
9236 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
9238         dfa: struct dfamust now uses flexible array
9239         * lib/dfa.c: Include flexmember.h.
9240         (dfamust, dfamustfree): Adjust to struct dfamust change.
9241         This saves a call to malloc+free.
9242         * lib/dfa.h (struct dfamust): Make the final member a
9243         flexible array member.
9244         * modules/dfa (Depends-on): Add flexmember.
9246         dfa: fast->small for array elements
9247         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
9248         since this type is used in arrays.  This change is more for
9249         documentation than for any practical effect, since the two types
9250         are the same on all known platforms.
9252 2019-12-19  Bruno Haible  <bruno@clisp.org>
9254         iconv tests: Test canonicalized, not system-dependent, encoding names.
9255         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
9256         * modules/iconv-tests (Depends-on): Add iconv_open.
9258 2019-12-18  Bruno Haible  <bruno@clisp.org>
9260         localename: Fix test failure on AIX 7.2.
9261         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
9262         locales on AIX.
9263         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
9264         locales on AIX.
9266 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9268         Improve port of AC_C_RESTRICT to Oracle C++
9269         Problem reported by Christian Biesinger in:
9270         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
9271         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
9272         Oracle Developer Studio C++ 12.5 or later.
9274 2019-12-18  Bruno Haible  <bruno@clisp.org>
9276         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
9277         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
9279 2019-12-18  Bruno Haible  <bruno@clisp.org>
9281         localename: Ensure multithread-safety in future changes.
9282         * lib/localename.c (setlocale): Reference the system's setlocale().
9283         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
9284         (gl_locale_name_posix): Likewise.
9285         * modules/localename (Depends-on): Add setlocale-null.
9287 2019-12-18  Bruno Haible  <bruno@clisp.org>
9289         setlocale-null: Make API more useful.
9290         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
9291         callers changed.
9292         (setlocale_null): New declaration.
9293         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
9294         extracted from setlocale_null_unlocked.
9295         (setlocale_null_unlocked): Invoke it.
9296         (setlocale_null_r): Renamed from setlocale_null.
9297         (setlocale_null): New function, extracted from setlocale_mtsafe in
9298         setlocale.c.
9299         * lib/setlocale.c: Don't include <errno.h>.
9300         (setlocale_mtsafe): Invoke setlocale_null.
9301         * lib/setlocale-lock.c: Update comments.
9302         * doc/posix-functions/setlocale.texi: Mention both functions.
9304 2019-12-18  Bruno Haible  <bruno@clisp.org>
9306         localename: Optimize code for native Windows.
9307         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
9308         category (not allowed here).
9310 2019-12-18  Bruno Haible  <bruno@clisp.org>
9312         setlocale: Make calls with NULL argument multithread-safe.
9313         * lib/setlocale.c: Include <errno.h>.
9314         (setlocale_mtsafe): New function.
9315         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
9316         (setlocale_improved): Renamed from rpl_setlocale.
9317         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
9318         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
9319         LIB_SETLOCALE.
9320         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
9321         (Link): New section.
9322         * tests/locale.c: Undefine setlocale.
9323         * tests/test-setlocale_null-one.c: Likewise.
9324         * tests/test-setlocale_null-all.c: Likewise.
9325         * modules/setlocale-tests (Makefile.am): Link the test programs with
9326         $(LIB_SETLOCALE).
9327         * modules/astrxfrm-tests (Makefile.am): Likewise.
9328         * modules/btowc-tests (Makefile.am): Likewise.
9329         * modules/c-ctype-tests (Makefile.am): Likewise.
9330         * modules/c-snprintf-tests (Makefile.am): Likewise.
9331         * modules/c-strcase-tests (Makefile.am): Likewise.
9332         * modules/c-vasprintf-tests (Makefile.am): Likewise.
9333         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
9334         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
9335         * modules/dfa-tests (Makefile.am): Likewise.
9336         * modules/duplocale-tests (Makefile.am): Likewise.
9337         * modules/hard-locale-tests (Makefile.am): Likewise.
9338         * modules/localcharset-tests (Makefile.am): Likewise.
9339         * modules/localename-tests (Makefile.am): Likewise.
9340         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
9341         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
9342         * modules/mbrtowc-tests (Makefile.am): Likewise.
9343         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9344         * modules/mbscasestr-tests (Makefile.am): Likewise.
9345         * modules/mbschr-tests (Makefile.am): Likewise.
9346         * modules/mbscspn-tests (Makefile.am): Likewise.
9347         * modules/mbsinit-tests (Makefile.am): Likewise.
9348         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9349         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
9350         * modules/mbspbrk-tests (Makefile.am): Likewise.
9351         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9352         * modules/mbsrchr-tests (Makefile.am): Likewise.
9353         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
9354         * modules/mbsspn-tests (Makefile.am): Likewise.
9355         * modules/mbsstr-tests (Makefile.am): Likewise.
9356         * modules/nl_langinfo-tests (Makefile.am): Likewise.
9357         * modules/quotearg-tests (Makefile.am): Likewise.
9358         * modules/regex-tests (Makefile.am): Likewise.
9359         * modules/strfmon_l-tests (Makefile.am): Likewise.
9360         * modules/strtod-tests (Makefile.am): Likewise.
9361         * modules/strtold-tests (Makefile.am): Likewise.
9362         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
9363         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
9364         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
9365         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
9366         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
9367         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
9368         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
9369         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9370         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
9371         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
9372         * modules/wcrtomb-tests (Makefile.am): Likewise.
9373         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
9374         * modules/wcsrtombs-tests (Makefile.am): Likewise.
9375         * modules/wcwidth-tests (Makefile.am): Likewise.
9376         * doc/posix-functions/setlocale.texi: Mention that the multithread-
9377         safety fix is also available in module 'setlocale'.
9379 2019-12-18  Bruno Haible  <bruno@clisp.org>
9381         hard-locale: Make multithread-safe.
9382         * lib/hard-locale.h (hard_locale): Move documentation to here.
9383         * lib/hard-locale.c: Don't include <stdlib.h>.
9384         (GLIBC_VERSION): Remove macro.
9385         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
9386         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
9387         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
9388         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
9389         (Link): New section.
9390         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
9391         $(LIB_HARD_LOCALE).
9393 2019-12-18  Bruno Haible  <bruno@clisp.org>
9395         hard-locale: Avoid test failure on Haiku.
9396         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
9398 2019-12-18  Bruno Haible  <bruno@clisp.org>
9400         setlocale-null: Handle NULL result from setlocale.
9401         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
9402         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
9403         from setlocale or _wsetlocale.
9405 2019-12-18  Bruno Haible  <bruno@clisp.org>
9407         hard-locale: Add test.
9408         * tests/test-hard-locale.c: New file.
9409         * tests/locale.c: New file.
9410         * modules/hard-locale-tests: New file.
9412 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
9414         dfa: do not match invalid UTF-8
9415         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
9416         from 5 to 9 tokens; this is needed due to the changes to
9417         add_utf8_anychar.
9418         (charclass_index): 2nd arg is now pointer-to-const.
9419         (add_utf8_anychar): Match only valid UTF-8 byte sequences
9420         instead of allowing overlong encodings or surrogate halves.
9422         dfa: simplify charclass by assuming C99
9423         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
9424         (charclass_word): Now always uint_fast64_t.
9425         (CHARCLASS_PAIR): Remove.
9426         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
9428         fts: tune via calloc
9429         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
9431         dfa: tune via xzalloc
9432         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
9434 2019-12-17  Bruno Haible  <bruno@clisp.org>
9436         localcharset: Fix multithread-safety bug on Windows and OS/2.
9437         * lib/localcharset.h (locale_charset): Clarify when the result becomes
9438         invalid.
9439         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
9440         assemble the result.
9442 2019-12-17  Bruno Haible  <bruno@clisp.org>
9444         localcharset: Optimize code for native Windows.
9445         * lib/localcharset.c (locale_charset): Don't bother calling
9446         setlocale (LC_ALL, NULL) since we're not interested in its result.
9448 2019-12-17  Bruno Haible  <bruno@clisp.org>
9450         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
9451         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
9452         setlocale.
9453         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
9454         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
9455         * modules/nl_langinfo (Depends-on): Add setlocale-null.
9457 2019-12-17  Bruno Haible  <bruno@clisp.org>
9459         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
9460         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
9461         stack-allocated buffer to assemble each result and different static
9462         buffers to return it.
9463         * tests/test-nl_langinfo-mt.c: New file.
9464         * modules/nl_langinfo-tests (Files): Add it.
9465         (Depends-on): Add thread, nanosleep.
9466         (Makefile.am): Build test-nl_langinfo-mt test.
9468 2019-12-17  Bruno Haible  <bruno@clisp.org>
9470         langinfo: Document more details.
9471         * doc/posix-headers/langinfo.texi: List platform details.
9472         * doc/posix-functions/nl_langinfo.texi: Likewise.
9474 2019-12-17  Bruno Haible  <bruno@clisp.org>
9476         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
9477         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
9478         and Martin Storsjö <martin@martin.st>
9479         in <https://savannah.gnu.org/bugs/?57406>.
9480         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
9481         mingw.
9483 2019-12-17  Bruno Haible  <bruno@clisp.org>
9485         glob: Avoid warning on mingw.
9486         Reported by Christian Biesinger <cbiesinger@google.com> in
9487         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
9488         * lib/glob.c (__stat64): Undefine first.
9490 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
9492         xalloc: tune xzalloc for fresh allocations
9493         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
9494         because when the memory is freshly allocated from the OS via sbrk
9495         or mmap, calloc can avoid doing the memset.
9497         dfa: new function dfacopysyntax
9498         * lib/dfa.c (struct dfa): Move syntax member later so
9499         that dfacopysyntax can easily clear earlier members.
9500         (dfacopysyntax): New function, used by Gawk.
9502 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
9504         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
9505         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
9506         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
9507         if not already defined.
9509         dfa: remove one dependency on MB_CUR_MAX
9510         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
9512         dfa: remove struct lexer_state.cur_mb_len
9513         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
9514         as it’s not needed and the code is simpler without it.
9515         All uses removed.
9517 2019-12-16  Bruno Haible  <bruno@clisp.org>
9519         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
9520         Reported by Arnold Robbins <arnold@skeeve.com>.
9521         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
9522         copied from lib/glthread/lock.h.
9523         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
9524         (setlocale_null_with_lock): If pthread_in_use() is false, use
9525         setlocale_null_unlocked directly.
9526         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
9527         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
9528         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
9529         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
9530         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
9531         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
9533 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
9535         dfa: make dfasyntax thread-safe
9536         Problem reported by Bruno Haible in:
9537         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
9538         * lib/dfa.c: Do not include locale.h.
9539         (struct dfa): Remove simple_locale member.
9540         All uses replaced by localeinfo.simple.
9541         (using_simple_locale): Remove; now present (with some
9542         changes) in localeinfo.c.
9543         (dfasyntax): No need to initialize removed member.
9545         localeinfo: record whether locale is simple
9546         * lib/localeinfo.c (using_simple_locale): New function,
9547         copied here from lib/dfa.c but with a change: it uses
9548         strcoll for its heuristic, instead of using setlocale.
9549         This lets it be thread-safe.
9550         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
9552 2019-12-15  Bruno Haible  <bruno@clisp.org>
9554         duplocale: Fix multithread-safety bug on AIX.
9555         * lib/duplocale.c: Don't include <stdlib.h>.
9556         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
9557         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
9558         Set LIB_DUPLOCALE.
9559         * modules/duplocale (Depends-on): Add setlocale-null.
9560         (Link): New section.
9561         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
9562         $(LIB_DUPLOCALE).
9564 2019-12-15  Bruno Haible  <bruno@clisp.org>
9566         setlocale-null: Add tests.
9567         * tests/test-setlocale_null.c: New file.
9568         * tests/test-setlocale_null-one.c: New file.
9569         * tests/test-setlocale_null-all.c: New file.
9570         * modules/setlocale-null-tests: New file.
9572         setlocale-null: New module.
9573         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
9574         setlocale_null): New declarations.
9575         * lib/setlocale_null.c: New file.
9576         * lib/setlocale-lock.c: New file.
9577         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
9578         * m4/setlocale_null.m4: New file.
9579         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
9580         GNULIB_SETLOCALE_NULL.
9581         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
9582         * modules/setlocale-null: New file.
9583         * doc/posix-functions/setlocale.texi: Mention the new module.
9585 2019-12-15  Bruno Haible  <bruno@clisp.org>
9587         lock tests: Skip test when no multithreading is enabled.
9588         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
9590 2019-12-14  Bruno Haible  <bruno@clisp.org>
9592         locale, duplocale, localename: Fix last patch.
9593         Reported by Daniel Richard G. in
9594         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
9595         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
9596         Don't define if locale_t does not exist.
9598 2019-12-13  Bruno Haible  <bruno@clisp.org>
9600         locale, duplocale, localename: Fix errors if locale_t does not exist.
9601         Reported by Daniel Richard G. in
9602         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
9603         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
9604         macros.
9605         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
9606         HAVE_NEWLOCALE.
9607         * tests/test-localename.c: Likewise.
9608         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
9609         HAVE_DUPLOCALE.
9610         * tests/test-locale-c++.cc: Likewise.
9612 2019-12-13  Bruno Haible  <bruno@clisp.org>
9614         wcstok: Fix test failure on HP-UX.
9615         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
9616         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
9618 2019-12-12  Bruno Haible  <bruno@clisp.org>
9620         strtod, strtold tests: Avoid test failure on AIX 7.2.
9621         * tests/test-strtod1.c (main): Allow implementations in which ',' and
9622         '.' both are radix characters.
9623         * tests/test-strtold1.c (main): Likewise.
9625 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
9627         dfa: prefer ptrdiff_t for API, too
9628         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
9629         but do this only for internal use for now.
9630         * NEWS: Mention the API change.
9631         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
9632         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
9633         values known to be nonnegative.
9634         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
9635         Prefer idx_t or ptrdiff_t to size_t for API.
9636         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
9637         Prefer ptrdiff_t to size_t for API.
9639         stdalign: port to xlclang 16.01
9640         Problem reportd by Bruno Haible in:
9641         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
9642         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
9643         ((__aligned__ (...))) with xlclang, as a top-level
9644         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
9645         xlclang version 16.01.0000.0001; the alignment directive is ignored.
9647 2019-12-12  Bruno Haible  <bruno@clisp.org>
9649         duplocale: Fix test failure on AIX 7.2 with xlclang.
9650         * lib/duplocale.c: Include <stdlib.h>.
9651         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
9652         value.
9654 2019-12-12  Bruno Haible  <bruno@clisp.org>
9656         stddef: Document the AIX xlc issue.
9657         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
9659 2019-12-12  Bruno Haible  <bruno@clisp.org>
9661         duplocale: Don't attempt to override if locale_t does not exist.
9662         Reported by Daniel Richard G. in
9663         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
9664         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
9665         HAVE_DUPLOCALE to 0.
9667 2019-12-12  Bruno Haible  <bruno@clisp.org>
9669         wcwidth: Avoid test failure on AIX 7.2.
9670         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
9671         negative.
9672         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
9674 2019-12-12  Bruno Haible  <bruno@clisp.org>
9676         ilogbl: Work around Cygwin bug.
9677         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
9678         correct.
9679         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
9681 2019-12-12  Bruno Haible  <bruno@clisp.org>
9683         strtold: Work around Cygwin bug.
9684         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
9685         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
9686         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
9687         STRTOLD_HAS_UNDERFLOW_BUG is defined.
9688         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
9690 2019-12-12  Bruno Haible  <bruno@clisp.org>
9692         strtold: Fix autoconf test.
9693         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
9695 2019-12-11  Bruno Haible  <bruno@clisp.org>
9697         fsync tests: Skip test that is known to fail.
9698         * doc/posix-functions/fsync.texi: Update list of platforms.
9699         * tests/test-fsync.c (main): Skip test with read-only file descriptors
9700         that is known to fail on AIX and Cygwin.
9702 2019-12-11  Bruno Haible  <bruno@clisp.org>
9704         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
9705         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
9706         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
9707         HAVE_GETADDRINFO as a C macro.
9708         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
9709         declare as replacement functions.
9710         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
9711         define as no-op overrides.
9712         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
9713         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
9714         * modules/getaddrinfo (Depends-on, configure.ac): Test
9715         REPLACE_GETADDRINFO.
9716         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
9717         problem.
9718         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
9719         convention problems.
9721 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
9723         dfa: prefer signed integers for internals
9724         Signed integers can be checked more easily for integer overflow.
9725         * lib/dfa.c (position, struct lexer_state, struct parser_state)
9726         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
9727         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
9728         (nsubtoks, copytoks, closure, alloc_position_set, delete)
9729         (replace, state_index, epsclosure, charclass_context)
9730         (state_separate_contexts, merge_nfa_state, dfaoptimize)
9731         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
9732         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
9733         (comsubs, inboth, allocmust):
9734         Prefer a signed to an unsigned integer when calculating indexes,
9735         unless the integer is part of the external API (a bigger deal,
9736         and to be done later).
9738         dfa: fix index overflow
9739         * lib/dfa.c (compare): Avoid integer overflow when analyzing
9740         very large regular expressions.
9742         dfa: update commentary for previous change
9743         * NEWS: Mention the change.
9744         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
9746 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
9748         dfa: separate parse and compile phase
9749         ‘dfamust’ must be called after parsing and before tokens are
9750         reordered, but both are executed in the compilation phase.
9751         Token reordering was introduced in Gnulib commit
9752         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
9753         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
9754         * lib/dfa.c (dfaparse): Change it to global function.
9755         (dfacomp): If first argument is NULL, skip parse.
9756         * lib/dfa.h: (dfaparse): Add a prototype.
9758 2019-12-11  Bruno Haible  <bruno@clisp.org>
9760         unistd tests: Fix link error on MSVC.
9761         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
9762         $(LIB_GETLOGIN).
9764 2019-12-11  Bruno Haible  <bruno@clisp.org>
9766         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
9767         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
9768         and POSIX substitutes are supported in C++ mode.
9769         * NEWS: Likewise.
9771 2019-12-11  Bruno Haible  <bruno@clisp.org>
9773         stddef: Fix compilation error in C++ mode on MSVC.
9774         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
9775         instead, include <cstddef>.
9777 2019-12-11  Bruno Haible  <bruno@clisp.org>
9779         unistd: Fix compilation error in C++ mode on MSVC.
9780         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
9781         does not have <unistd.h>.
9783 2019-12-11  Bruno Haible  <bruno@clisp.org>
9785         locale: Fix compilation error in C++ mode on MSVC.
9786         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
9787         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
9788         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
9789         int_n_sep_by_space): Define as macros on MSVC.
9791 2019-12-11  Bruno Haible  <bruno@clisp.org>
9793         wchar: Fix compilation error in C++ mode on MSVC.
9794         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
9796 2019-12-11  Bruno Haible  <bruno@clisp.org>
9798         pthread-thread: Fix compilation error in C++ mode on MSVC.
9799         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
9800         _GL_CXXALIAS_RPL invocation.
9802 2019-12-08  Bruno Haible  <bruno@clisp.org>
9804         Fix compilation errors in C++ mode on Haiku.
9805         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
9806         non-glibc systems.
9807         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
9808         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
9809         posix_spawnattr_setschedparam): Likewise.
9810         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
9811         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
9812         * lib/unistd.in.h (usleep): Likewise.
9814 2019-12-08  Bruno Haible  <bruno@clisp.org>
9816         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
9817         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
9818         * modules/fseeko (configure.ac-early): Require it instead of
9819         AC_FUNC_FSEEKO.
9820         * modules/ftello (configure.ac-early): Likewise.
9821         * modules/fflush (configure.ac-early): Likewise.
9823 2019-12-08  Bruno Haible  <bruno@clisp.org>
9825         Fix compilation error in C++ mode on HP-UX 11.
9826         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
9827         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
9829 2019-12-08  Bruno Haible  <bruno@clisp.org>
9831         Fix compilation errors on HP-UX 11/ia64.
9832         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
9833         _GL_FUNCDECL_SYS.
9835 2019-12-08  Bruno Haible  <bruno@clisp.org>
9837         Fix compilation error in C++ mode on OpenBSD.
9838         * lib/signal.in.h (signal): Declare on OpenBSD.
9840 2019-12-08  Bruno Haible  <bruno@clisp.org>
9842         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
9843         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
9844         instead of #error.
9846 2019-12-08  Bruno Haible  <bruno@clisp.org>
9848         Fix compilation errors in C++ mode on FreeBSD.
9849         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
9850         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
9851         * lib/threads.in.h (thrd_exit): Likewise.
9852         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
9854 2019-12-08  Bruno Haible  <bruno@clisp.org>
9856         Fix compilation errors in C++ mode on macOS and FreeBSD.
9857         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
9858         or FreeBSD with clang, use the approach without C preprocessor macro.
9860 2019-12-07  Bruno Haible  <bruno@clisp.org>
9862         Fix compilation errors in C++ mode on AIX with xlclang++.
9863         Reported by Christian Biesinger <cbiesinger@google.com> in
9864         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
9865         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
9867 2019-12-07  Bruno Haible  <bruno@clisp.org>
9869         Document compilation error in C++ mode on NetBSD 8.0.
9870         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
9872 2019-12-07  Bruno Haible  <bruno@clisp.org>
9874         Fix compilation errors in C++ mode on Solaris 10.
9875         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
9876         to non-empty on Solaris with a non-GCC compiler.
9877         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
9879 2019-12-07  Bruno Haible  <bruno@clisp.org>
9881         Reword NEWS entry.
9882         * NEWS: Reword the latest NEWS entry.
9884 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
9886         Move xstrtol_fatal to a new xstrtol-error module.
9887         * lib/xstrtol.h: Stop including <getopt.h>.
9888         (xstrtol_fatal): Move ...
9889         * lib/xstrtol-error.h: ... here.  New file.
9890         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
9891         * tests/test-xstrtol.c: Likewise.
9892         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
9893         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
9894         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
9895         * modules/xstrtol-error: New file.
9896         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
9897         * MODULES.html.sh: Add xstrtol-error.
9898         * NEWS: Document the change.
9900 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
9902         nstrftime: better width support for %N, %z
9903         * lib/nstrftime.c (width_add, width_add1, width_cpy):
9904         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
9905         a new WIDTH parameter.
9906         (add, add1, cpy): Use these macros.
9907         (width_add): Do not treat digits == 0 as a special case,
9908         do not pad if padding is ‘-’, and do not use a negative width.
9909         (__strftime_internal): Redo formatting of nanoseconds and numeric
9910         timezones to avoid buffer misuse in unusual cases, and so that
9911         widths make more sense.  Add support for widths greater than 9 to
9912         the %N format; they are zero filled on the right.
9913         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
9915 2019-12-05  Bruno Haible  <bruno@clisp.org>
9917         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
9918         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
9919         set REPLACE_ISFINITE to 1.
9920         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
9921         REPLACE_ISINF to 1.
9922         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
9923         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
9924         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
9925         * lib/threads.in.h (call_once): Likewise.
9926         * lib/iconv.in.h (iconv): Likewise.
9928 2019-12-05  Bruno Haible  <bruno@clisp.org>
9930         wchar: Add more C++ tests.
9931         Reported by Christian Biesinger <cbiesinger@google.com> in
9932         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
9933         * tests/test-wchar-c++3.cc: New file.
9934         * modules/wchar-c++-tests (Files): Add it.
9935         (Makefile.am): Compile it.
9937 2019-12-05  Bruno Haible  <bruno@clisp.org>
9939         Add more C++ tests.
9941         assert-h: Add C++ tests.
9942         * tests/test-assert-h-c++.cc: New file.
9943         * tests/test-assert-h-c++2.cc: New file.
9944         * modules/assert-h-c++-tests: New file.
9945         * modules/assert-h-tests: New file.
9947         ctype: Add C++ tests.
9948         * tests/test-ctype-c++.cc: New file.
9949         * tests/test-ctype-c++2.cc: New file.
9950         * modules/ctype-c++-tests: New file.
9951         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
9953         errno: Add C++ tests.
9954         * tests/test-errno-c++.cc: New file.
9955         * tests/test-errno-c++2.cc: New file.
9956         * modules/errno-c++-tests: New file.
9957         * modules/errno-tests (Depends-on): Add errno-c++-tests.
9959         float: Add C++ tests.
9960         * tests/test-float-c++.cc: New file.
9961         * tests/test-float-c++2.cc: New file.
9962         * modules/float-c++-tests: New file.
9963         * modules/float-tests (Depends-on): Add float-c++-tests.
9965         inttypes: Add more C++ tests.
9966         * tests/test-inttypes-c++2.cc: New file.
9967         * modules/inttypes-c++-tests (Files): Add it.
9968         (Makefile.am): Compile it.
9970         limits-h: Add C++ tests.
9971         * tests/test-limits-h-c++.cc: New file.
9972         * tests/test-limits-h-c++2.cc: New file.
9973         * modules/limits-h-c++-tests: New file.
9974         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
9976         stdarg: Add C++ tests.
9977         * tests/test-stdarg-c++.cc: New file.
9978         * tests/test-stdarg-c++2.cc: New file.
9979         * modules/stdarg-c++-tests: New file.
9980         * modules/stdarg-tests: New file.
9982         stdbool: Add C++ tests.
9983         * tests/test-stdbool-c++.cc: New file.
9984         * tests/test-stdbool-c++2.cc: New file.
9985         * modules/stdbool-c++-tests: New file.
9986         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
9988         stddef: Add C++ tests.
9989         * tests/test-stddef-c++.cc: New file.
9990         * tests/test-stddef-c++2.cc: New file.
9991         * modules/stddef-c++-tests: New file.
9992         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
9994         stdint: Add C++ tests.
9995         * tests/test-stdint-c++.cc: New file.
9996         * tests/test-stdint-c++2.cc: New file.
9997         * modules/stdint-c++-tests: New file.
9998         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
10000         wchar: Add more C++ tests.
10001         * tests/test-wchar-c++2.cc: New file.
10002         * modules/wchar-c++-tests (Files): Add it.
10003         (Makefile.am): Compile it.
10005         wctype-h: Add more C++ tests.
10006         * tests/test-wctype-h-c++2.cc: New file.
10007         * modules/wctype-h-c++-tests (Files): Add it.
10008         (Makefile.am): Compile it.
10010 2019-12-04  Bruno Haible  <bruno@clisp.org>
10012         Fix compilation errors in C++ mode with xlclang++ on AIX.
10013         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
10014         C++ mode on AIX.
10015         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
10016         without C preprocessor macro.
10017         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
10018         _GL_CXXALIAS_SYS.
10019         * lib/threads.in.h (thrd_exit): Likewise.
10021 2019-12-04  Bruno Haible  <bruno@clisp.org>
10023         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
10024         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
10025         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
10027 2019-12-04  Bruno Haible  <bruno@clisp.org>
10029         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
10030         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
10031         _GL_CXXALIASWARN invocation on non-glibc systems.
10032         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
10033         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
10034         iswctype, towlower, towupper): Likewise.
10036 2019-12-03  Bruno Haible  <bruno@clisp.org>
10038         Avoid hassles caused by [[noreturn]] in C++.
10039         Reported by Christian Biesinger <cbiesinger@google.com> in
10040         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
10041         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
10042         * lib/_Noreturn.h: Likewise.
10044 2019-12-02  Bruno Haible  <bruno@clisp.org>
10046         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
10047         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
10048         LIBMULTITHREAD.
10049         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
10050         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
10051         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
10052         gl_THREADLIB.
10053         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
10055 2019-12-02  Bruno Haible  <bruno@clisp.org>
10057         Fix some more link errors with --enable-threads=isoc.
10058         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
10059         * modules/pthread-rwlock (Depends-on): Likewise.
10061 2019-12-02  Bruno Haible  <bruno@clisp.org>
10063         Fix link errors with --enable-threads=posix on AIX.
10064         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
10065         program with $(LIBTHREAD).
10066         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
10067         program with $(LIBTHREAD).
10069 2019-12-02  Bruno Haible  <bruno@clisp.org>
10071         Fix link errors with --enable-threads=posix on AIX.
10072         * modules/mbrtowc (Link): New section.
10073         * modules/acl (Link): Likewise.
10074         * modules/argmatch (Link): Likewise.
10075         * modules/backup-rename (Link): Likewise.
10076         * modules/backupfile (Link): Likewise.
10077         * modules/closein (Link): Likewise.
10078         * modules/closeout (Link): Likewise.
10079         * modules/copy-file (Link): Likewise.
10080         * modules/csharpcomp (Link): Likewise.
10081         * modules/csharpexec (Link): Likewise.
10082         * modules/dfa (Link): Likewise.
10083         * modules/exclude (Link): Likewise.
10084         * modules/fnmatch (Link): Likewise.
10085         * modules/fnmatch-gnu (Link): Likewise.
10086         * modules/fnmatch-posix (Link): Likewise.
10087         * modules/glob (Link): Likewise.
10088         * modules/human (Link): Likewise.
10089         * modules/javacomp (Link): Likewise.
10090         * modules/javaexec (Link): Likewise.
10091         * modules/javaversion (Link): Likewise.
10092         * modules/mbfile (Link): Likewise.
10093         * modules/mbiter (Link): Likewise.
10094         * modules/mbmemcasecmp (Link): Likewise.
10095         * modules/mbmemcasecoll (Link): Likewise.
10096         * modules/mbrlen (Link): Likewise.
10097         * modules/mbscasecmp (Link): Likewise.
10098         * modules/mbscasestr (Link): Likewise.
10099         * modules/mbschr (Link): Likewise.
10100         * modules/mbscspn (Link): Likewise.
10101         * modules/mbsinit (Link): Likewise.
10102         * modules/mbslen (Link): Likewise.
10103         * modules/mbsncasecmp (Link): Likewise.
10104         * modules/mbsnlen (Link): Likewise.
10105         * modules/mbsnrtowcs (Link): Likewise.
10106         * modules/mbspbrk (Link): Likewise.
10107         * modules/mbspcasecmp (Link): Likewise.
10108         * modules/mbsrchr (Link): Likewise.
10109         * modules/mbsrtowcs (Link): Likewise.
10110         * modules/mbssep (Link): Likewise.
10111         * modules/mbsspn (Link): Likewise.
10112         * modules/mbsstr (Link): Likewise.
10113         * modules/mbstok_r (Link): Likewise.
10114         * modules/mbswidth (Link): Likewise.
10115         * modules/mbuiter (Link): Likewise.
10116         * modules/mkdir-p (Link): Likewise.
10117         * modules/propername (Link): Likewise.
10118         * modules/quote (Link): Likewise.
10119         * modules/quotearg (Link): Likewise.
10120         * modules/quotearg-simple (Link): Likewise.
10121         * modules/regex-quote (Link): Likewise.
10122         * modules/rpmatch (Link): Likewise.
10123         * modules/sh-quote (Link): Likewise.
10124         * modules/system-quote (Link): Likewise.
10125         * modules/trim (Link): Likewise.
10126         * modules/unistdio/ulc-asnprintf (Link): Likewise.
10127         * modules/unistdio/ulc-fprintf (Link): Likewise.
10128         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
10129         * modules/unistdio/ulc-vasprintf (Link): Likewise.
10130         * modules/unistdio/ulc-vfprintf (Link): Likewise.
10131         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
10132         * modules/unistdio/ulc-vsprintf (Link): Likewise.
10133         * modules/xfreopen (Link): Likewise.
10134         * modules/xmemcoll (Link): Likewise.
10135         * modules/yesno (Link): Likewise.
10136         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
10137         * modules/argmatch-tests (Makefile.am): Likewise.
10138         * modules/closein-tests (Makefile.am): Likewise.
10139         * modules/copy-file-tests (Makefile.am): Likewise.
10140         * modules/dfa-tests (Makefile.am): Likewise.
10141         * modules/fnmatch-tests (Makefile.am): Likewise.
10142         * modules/glob-tests (Makefile.am): Likewise.
10143         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
10144         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
10145         * modules/mbrtowc-tests (Makefile.am): Likewise.
10146         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10147         * modules/mbscasestr-tests (Makefile.am): Likewise.
10148         * modules/mbschr-tests (Makefile.am): Likewise.
10149         * modules/mbscspn-tests (Makefile.am): Likewise.
10150         * modules/mbsinit-tests (Makefile.am): Likewise.
10151         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10152         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
10153         * modules/mbspbrk-tests (Makefile.am): Likewise.
10154         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10155         * modules/mbsrchr-tests (Makefile.am): Likewise.
10156         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
10157         * modules/mbsspn-tests (Makefile.am): Likewise.
10158         * modules/mbsstr-tests (Makefile.am): Likewise.
10159         * modules/quotearg-tests (Makefile.am): Likewise.
10160         * modules/quotearg-simple-tests (Makefile.am): Likewise.
10161         * modules/readtokens-tests (Makefile.am): Likewise.
10162         * modules/regex-quote-tests (Makefile.am): Likewise.
10163         * modules/sh-quote-tests (Makefile.am): Likewise.
10164         * modules/system-quote-tests (Makefile.am): Likewise.
10165         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
10166         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10167         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
10168         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
10169         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
10170         * modules/yesno-tests (Makefile.am): Likewise.
10172 2019-12-02  Bruno Haible  <bruno@clisp.org>
10174         Simplify link sections.
10175         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
10176         * modules/lock (Link): Likewise.
10177         * modules/cond (Link): Likewise.
10178         * modules/tls (Link): Likewise.
10179         * modules/yield (Link): Likewise.
10180         * modules/regex (Link): Likewise.
10181         * modules/localename (Link): Likewise.
10182         * modules/unicase/locale-language (Link): Likewise.
10183         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
10185 2019-12-02  Bruno Haible  <bruno@clisp.org>
10187         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
10188         * tests/test-thread_self.c (main): Disable test on AIX.
10190 2019-12-01  Bruno Haible  <bruno@clisp.org>
10192         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
10193         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
10194         gl_THREADLIB_EARLY_BODY.
10195         (gl_THREADLIB_EARLY_BODY): Invoke it.
10196         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
10197         (gl_THREADLIB_BODY): Invoke it.
10198         (gl_PTHREADLIB): New macro.
10199         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
10200         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
10201         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
10202         * modules/pthread-h (Files): Add threadlib.m4.
10203         (Depends-on): Remove threadlib.
10204         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
10205         and _THREAD_SAFE here.
10206         (Link): Use LIBPTHREAD, not LIBTHREAD.
10207         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
10208         LIBMULTITHREAD.
10209         * modules/pthread-once (Link): Likewise.
10210         * modules/pthread-mutex (Link): Likewise.
10211         * modules/pthread-rwlock (Link): Likewise.
10212         * modules/pthread-cond (Link): Likewise.
10213         * modules/pthread-tss (Link): Likewise.
10214         * modules/pthread-spin (Link): Likewise.
10215         * modules/pthread (Link): Likewise.
10216         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
10217         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
10218         * modules/pthread-once-tests (test_pthread_once1_LDADD,
10219         test_pthread_once2_LDADD): Likewise.
10220         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
10221         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
10222         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
10223         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
10225 2019-12-01  Bruno Haible  <bruno@clisp.org>
10227         cond: State linking requirements.
10228         * modules/cond (Link): New section.
10230 2019-12-01  Bruno Haible  <bruno@clisp.org>
10232         threadlib: Remove unnecessary file (left over from 2019-07-06).
10233         * modules/threadlib (Files): Remove config.rpath.
10235 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
10237         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
10238         Reported by Dagobert Michelsen <dam@opencsw.org> in
10239         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
10240         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
10241         list of strings instead of one string.
10242         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
10243         * pygnulib/GLImport.py (execute): Likewise.
10245 2019-11-27  Bruno Haible  <bruno@clisp.org>
10247         openpty, forkpty: Fix build error on Solaris 11.4.
10248         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
10249         also in <termios.h>.
10250         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
10251         of the function also in <termios.h>.
10252         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
10253         * doc/glibc-functions/forkpty.texi: Likewise.
10255 2019-11-27  Bruno Haible  <bruno@clisp.org>
10257         New options --enable-threads=isoc and --enable-threads=isoc+posix.
10258         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
10259         --enable-threads=isoc and --enable-threads=isoc+posix.
10260         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
10261         When both the ISO C and the POSIX threads API are available, choose
10262         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
10263         --enable-threads=isoc+posix was specified. When only the ISO C threads
10264         API is available and --enable-threads=iso was specified, choose
10265         USE_ISOC_THREADS.
10266         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
10267         USE_ISOC_AND_POSIX_THREADS.
10268         * lib/glthread/lock.c: Likewise.
10269         * lib/glthread/cond.h: Likewise.
10270         * lib/glthread/cond.c: Likewise.
10271         * lib/glthread/tls.h: Likewise.
10272         * lib/glthread/tls.c: Likewise.
10273         * lib/glthread/yield.h: Likewise.
10274         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
10275         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
10276         * lib/glthread/thread.c: Likewise.
10277         * lib/glthread/threadlib.c: Likewise.
10278         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
10279         USE_ISOC_AND_POSIX_THREADS.
10280         * tests/test-cond.c: Consider USE_ISOC_THREADS and
10281         USE_ISOC_AND_POSIX_THREADS.
10282         * tests/test-tls.c: Likewise.
10283         * tests/test-thread_create.c (main): Likewise.
10284         * tests/test-pthread-cond.c: Likewise.
10285         * tests/test-pthread-mutex.c: Likewise.
10286         * tests/test-pthread-once2.c: Likewise.
10287         * tests/test-pthread-rwlock.c: Likewise.
10288         * tests/test-pthread-tss.c: Likewise.
10289         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
10290         USE_POSIX_THREADS.
10292 2019-11-24  Bruno Haible  <bruno@clisp.org>
10294         mbrtowc: Modernize autoconf test.
10295         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
10296         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
10297         try a UTF-8 locale.
10298         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
10300 2019-11-24  Bruno Haible  <bruno@clisp.org>
10302         Fix errors in C++ mode on mingw.
10303         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
10304         instead of _GL_CXXALIAS_SYS.
10305         * lib/signal.in.h (pthread_sigmask): Likewise.
10306         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
10307         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
10308         Likewise.
10309         * lib/wchar.in.h (btowc): Likewise.
10311 2019-11-24  Bruno Haible  <bruno@clisp.org>
10313         sys_time: Fix errors in C++ mode on mingw.
10314         * lib/sys_time.in.h (timeval): Restore the redirection
10315         '#define timeval rpl_timeval', for when the symbol timeval is being used
10316         outside the 'gnulib' namespace.
10317         * lib/sys_select.in.h (select): In C++, write 'timeval', not
10318         'struct timeval'.
10320 2019-11-24  Bruno Haible  <bruno@clisp.org>
10322         iswctype: Fix errors in C++ mode on mingw.
10323         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
10324         is 1.
10325         * lib/iswctype.c (iswctype): Add another implementation, for the
10326         GNULIB_defined_wint_t case.
10327         * modules/iswctype (configure.ac): Compile iswctype.c also if
10328         GNULIB_OVERRIDES_WINT_T is 1.
10330 2019-11-24  Bruno Haible  <bruno@clisp.org>
10332         windows-timedmutex: Fix errors in C++ mode on mingw.
10333         * lib/windows-timedmutex.h: Add closing brace.
10335 2019-11-24  Bruno Haible  <bruno@clisp.org>
10337         Fix errors in C++ mode on Cygwin.
10338         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
10339         _GL_CXXALIAS_SYS.
10341 2019-11-24  Bruno Haible  <bruno@clisp.org>
10343         time_r: Fix for mingw (regression from 2019-11-16).
10344         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
10345         AC_LINK_IFELSE test only if the function does not appear to exist.
10347 2019-11-24  Bruno Haible  <bruno@clisp.org>
10349         wcstok: Add tests.
10350         * tests/test-wcstok.c: New file.
10351         * modules/wcstok-tests: New file.
10353 2019-11-24  Bruno Haible  <bruno@clisp.org>
10355         wcstok: Work around wrong signature on native Windows.
10356         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
10357         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
10358         REPLACE_WCSTOK.
10359         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
10360         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
10361         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
10362         * doc/posix-functions/wcstok.texi: Mention the problem.
10364 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
10366         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
10367         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
10368         remove workaround for GCC bug 91450 as the bug should be fixed
10369         there too.
10371 2019-11-21  Bruno Haible  <bruno@clisp.org>
10373         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
10374         Reported by Christian Biesinger <cbiesinger@google.com> in
10375         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
10376         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
10377         non-glibc systems.
10378         * lib/locale.in.h (localeconv, setlocale): Likewise.
10379         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
10380         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
10381         rint, round, trunc): Likewise.
10382         * lib/monetary.in.h (strfmon_l): Likewise.
10383         * lib/pthread.in.h (pthread_mutexattr_getrobust,
10384         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
10385         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
10386         pthread_spin_destroy): Likewise.
10387         * lib/signal.in.h (raise, signal): Likewise.
10388         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
10389         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
10390         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
10391         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
10392         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
10393         Likewise.
10394         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
10395         Likewise.
10396         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
10397         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
10398         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
10399         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
10400         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
10401         wcsftime): Likewise.
10402         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
10404 2019-11-21  Bruno Haible  <bruno@clisp.org>
10406         Fix various errors in _GL_CXXALIAS_SYS invocations.
10407         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
10408         _GL_CXXALIAS_SYS.
10409         * lib/pthread.in.h (pthread_mutexattr_gettype,
10410         pthread_mutexattr_getrobust): Likewise.
10411         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
10412         * lib/sys_socket.in.h (recv, send): Likewise.
10413         * lib/unistd.in.h (getdtablesize): Likewise.
10414         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
10415         'struct timeval'.
10417 2019-11-21  Bruno Haible  <bruno@clisp.org>
10419         math tests: Update after 2019-08-28 change.
10420         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
10421         return type of 'bool', not 'int'.
10423 2019-11-21  Bruno Haible  <bruno@clisp.org>
10425         pthread-spin: Fix errors in C++ mode.
10426         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
10427         functions as nonexistent when <pthread.h> exists but does not define
10428         the pthread_spinlock_t type.
10430 2019-11-21  Bruno Haible  <bruno@clisp.org>
10432         pthread-mutex: Fix errors in C++ mode.
10433         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
10434         pthread_mutexattr_getrobust exists. If not, define
10435         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
10436         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
10437         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
10438         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
10439         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
10440         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
10441         definition.
10443 2019-11-19  Bruno Haible  <bruno@clisp.org>
10445         threads-h tests: Fix typo.
10446         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
10448 2019-11-19  Bruno Haible  <bruno@clisp.org>
10450         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
10451         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
10452         to 'const pthread_attr_t *'.
10453         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
10454         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
10456 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
10458         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
10459         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
10460         work around GCC bug 91450 as the bug should be fixed there.
10462 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
10464         glob: get closer to glibc glob.c
10465         Omit differences from glibc when the differences don’t matter.
10466         * lib/glob.c [_LIBC]: Include shlib-compat.h.
10467         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
10468         (glob_lstat): New function.
10469         (glob_in_dir): Use it.
10470         (GLOB_ATTRIBUTE): Define to empty if not already defined.
10471         Use changed.
10473 2019-11-18  Bruno Haible  <bruno@clisp.org>
10475         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
10476         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
10477         UINTPTR_MAX): Consider _WIN64.
10478         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
10479         a pointer.
10481 2019-11-18  Bruno Haible  <bruno@clisp.org>
10483         stdint: Fix value of WINT_MAX when we override wint_t.
10484         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
10485         when GNULIB_OVERRIDES_WINT_T is 1.
10487 2019-11-18  Bruno Haible  <bruno@clisp.org>
10489         vcs-to-changelog: New module.
10490         * modules/vcs-to-changelog: New file.
10491         * MODULES.html.sh (func_all_modules): Add it.
10493 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
10495         vcs-to-changelog: New script to generate ChangeLog-like output.
10496         Discussion:
10497         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
10498         * build-aux/vcs_to_changelog.py: New file.
10499         * build-aux/vcstocl/frontend_c.py: New file.
10500         * build-aux/vcstocl/misc_util.py: New file.
10501         * build-aux/vcstocl/vcs_git.py: New file.
10503 2019-11-18  Bruno Haible  <bruno@clisp.org>
10505         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
10506         Reported by Keith Marshall <keith@users.osdn.me> in
10507         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
10508         and <https://osdn.net/projects/mingw/ticket/39677>.
10509         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
10510         already been defined by mingw's <crtdefs.h>.
10512 2019-11-18  Bruno Haible  <bruno@clisp.org>
10514         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
10515         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
10516         conditionally enabled.
10518 2019-11-18  Bruno Haible  <bruno@clisp.org>
10520         gc: Mirror libgcrypt.m4 from libgcrypt.
10521         * config/srclistvars.sh (LIBGCRYPT): New variable.
10522         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
10524 2019-11-17  Bruno Haible  <bruno@clisp.org>
10526         locale, localename: Improve z/OS support.
10527         Reported by Daniel Richard G. in
10528         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
10529         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
10530         gl_LOCALE_H.
10531         (gl_LOCALE_H): Require it.
10532         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
10533         defined, don't even check for newlocale, duplocale, freelocale.
10534         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
10535         locale_t is not defined.
10537 2019-11-17  Bruno Haible  <bruno@clisp.org>
10539         havelib: Make libdirstems processing more flexible.
10540         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
10541         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
10542         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
10543         patch from 2017-02-19).
10544         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
10545         libdirs, even when the first one exists as a directory.
10547 2019-11-17  Bruno Haible  <bruno@clisp.org>
10549         havelib: Match the bitness when searching for libraries.
10550         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
10551         acl_is_expected_elfclass.
10552         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
10553         file exists, in ELF, also test whether it has the ELF class that
10554         corresponds to the host's bitness.
10556 2019-11-17  Bruno Haible  <bruno@clisp.org>
10558         host-cpu-c-abi: Add support for unknown CPUs.
10559         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
10560         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
10561         32-bit or 64-bit.
10563 2019-11-17  Bruno Haible  <bruno@clisp.org>
10565         havelib: Remove redundant code.
10566         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
10567         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
10569 2019-11-17  Bruno Haible  <bruno@clisp.org>
10571         havelib: Fix a bug in dependency processing.
10572         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
10573         of .la files, don't overwrite the value of additional_libdir for the
10574         next rounds.
10576 2019-11-16  Bruno Haible  <bruno@clisp.org>
10578         wctype-h: When overriding wint_t, override also the related functions.
10579         Reported by Christian Biesinger <cbiesinger@google.com> in
10580         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
10581         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
10582         REPLACE_ISWCNTRL to 1.
10583         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
10584         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
10585         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
10586         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
10587         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
10588         on mingw.
10589         * doc/posix-headers/wctype.texi: Likewise.
10591 2019-11-16  Bruno Haible  <bruno@clisp.org>
10593         time_r: Fix for mingw.
10594         Reported by Christian Biesinger <cbiesinger@google.com> in
10595         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
10596         * lib/time.in.h: On mingw, include <unistd.h>.
10597         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
10598         <time.h>. Test for localtime_r in a way that works when it is defined
10599         as an inline function.
10601 2019-11-13  Bruno Haible  <bruno@clisp.org>
10603         havelib: Revert last change.
10604         * build-aux/config.rpath: Revert last change. We can add msys2 support
10605         when it has been added to libtool.m4 upstream.
10607 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
10609         config: add msys support
10610         Requested by Arnold Robbins in:
10611         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
10612         He also requested a change to config.guess, which I’ll forward
10613         upstream.
10614         * build-aux/ar-lib (func_file_conv):
10615         * build-aux/compile (func_file_conv):
10616         * build-aux/config.rpath (wl, with_gnu_ld)
10617         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
10618         Treat msys like cygwin.
10620 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
10622         regex: now back in sync with glibc
10623         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
10624         regexec.c got merged into glibc and are now copies again.
10626 2019-10-27  Bruno Haible  <bruno@clisp.org>
10628         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
10629         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
10630         statement.
10631         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
10632         32-bit CPUs.
10634 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
10636         timespec-add, timespec-sub: simplify
10637         * lib/timespec-add.c (timespec_add):
10638         * lib/timespec-sub.c (timespec_sub):
10639         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
10640         work on unsigned integers.
10642 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
10644         nstrftime: speed up integer overflow checking
10645         * lib/nstrftime.c: Include intprops.h.
10646         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
10647         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
10648         instead of doing it by hand.
10649         * modules/nstrftime (Depends-on): Add intprops.
10651         Port better to GCC under macOS
10652         Work around macOS header that has ‘#define __has_builtin(x) 0’
10653         when compiled by GCC.  Apple really, really doesn’t want you to
10654         use GCC, apparently.  Rroblem reported by Akim Demaille in:
10655         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
10656         The fix is to not trust __has_builtin when being compiled by
10657         recent-enough GCC.
10658         * lib/intprops.h (__has_builtin)
10659         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
10660         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
10661         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
10662         Remove.  All uses removed.
10663         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
10664         directly, if defined and if not newer GCC.
10665         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
10666         New macro, that use __has_builtin directly, if defined and if
10667         not newer GCC.
10668         (assume): Use them.
10670 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
10672         maintainer-makefile: update rule for argmatch.
10673         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
10675 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
10677         bitset: let freeing functions accept NULL.
10678         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
10679         given NULL.
10680         * lib/bitset.h: Document that.
10681         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
10683 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
10685         inttypes: use more-robust test for int range
10686         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
10687         Problem reported by Dagobert Michelsen in:
10688         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
10689         * lib/inttypes.in.h: Rely only on limits.h when checking
10690         int range.
10692 2019-10-15  Bruno Haible  <bruno@clisp.org>
10694         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
10695         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
10696         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
10697         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
10698         term_ostream_set_hyperlink): New functions.
10699         (term_styled_ostream_get_hyperlink_ref,
10700         term_styled_ostream_get_hyperlink_id,
10701         term_styled_ostream_set_hyperlink): New function aliases.
10703 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
10705         update-copyright: use en dashes in .texi ranges
10706         * build-aux/update-copyright: Match year ranges like "1998--2019",
10707         which are used in the Autoconf manual.  Also, update ranges in
10708         .tex, .texi, and .texinfo files to use en dashes instead of
10709         hyphens.
10711 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10713         * config/srclist.txt: Remove posix/regex_internal.c for now.
10715 2019-10-13  Bruno Haible  <bruno@clisp.org>
10717         git-version-gen: Allow 'snapshot' as .tarball-version contents.
10718         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
10719         contents to the empty string.
10721 2019-10-12  Bruno Haible  <bruno@clisp.org>
10723         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
10724         * tests/test-intprops.c (main): Disable two more tests when using
10725         HP-UX cc.
10727 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
10729         Simplify and regularize regex use of ‘assert’
10730         Also, tell GCC about the asserts even when compiling without
10731         debugging, to give it further optimization opportunities.
10732         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
10733         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
10734         (parse_expression, parse_bracket_exp):
10735         * lib/regex_internal.c (build_wcs_buffer)
10736         (build_wcs_upper_buffer, re_string_reconstruct)
10737         (re_string_context_at):
10738         * lib/regexec.c (re_search_stub, re_copy_regs)
10739         (re_search_internal, prune_impossible_nodes, check_matching)
10740         (check_halt_state_context, set_regs, sift_states_backward)
10741         (build_sifted_states, transit_state_mb, transit_state_bkref)
10742         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
10743         (match_ctx_add_subtop):
10744         Use it instead of plain ‘assert’.
10746 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
10748         regex: omit debug assignment when not debugging
10749         * lib/regexec.c (re_search_internal) [!DEBUG]:
10750         Remove unnecessary assignment.
10752         regex: tell compiler there’s at most 256 arcs out
10753         Partly this is to help the reader (and maybe help GCC);
10754         partly this is to pacify Coverity.
10755         * lib/regex_internal.h: Include verify.h.
10756         * lib/regexec.c (group_nodes_into_DFAstates):
10757         Tell the compiler that ndests cannot exceed SBC_MAX.
10758         * modules/regex (Depends-on): Add ‘verify’.
10760         regex: simplify by assuming C99
10761         * config/srclist.txt: Comment out regex_internal.h and regexec.c
10762         temporarily.
10763         * lib/regex_internal.h (lock_define, re_match_context_t):
10764         Simplify by assuming C99 macros and const.
10765         * lib/regexec.c (re_search_internal): Simplify by assuming C99
10766         initializers.  Remove unnecessary assignment, as mctx is now
10767         safely initialized earlier.
10769         regex: avoid copying of uninitialized storage
10770         * config/srclist.txt: Comment out regcomp.c temporarily.
10771         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
10772         Initialize even when not checking for lint, as the behavior is
10773         arguably undefined otherwise and Coverity warns about it.
10775 2019-10-06  Bruno Haible  <bruno@clisp.org>
10777         access tests: Fix test failure when run as root.
10778         * tests/test-access.c: Include root-uid.h.
10779         (geteuid): Define fallback.
10780         (main): Don't expect that writing to a read-only file would fail when
10781         running as root. Also, remove the created files at the end.
10782         * modules/access-tests (Depends-on): Add root-uid.
10783         (configure.ac): Test whether geteuid exists.
10785 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
10787         users.txt: add GNU nano
10788         Nano has been making use of gnulib since March 2017, version 2.8.0.
10790 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10792         bootstrap: simplify debugging of wget failures
10793         Problem reported by Tim Rühsen in:
10794         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
10795         * build-aux/bootstrap (po_download_command_format):
10796         Invoke wget with -nv instead of -q, to make debugging easier.
10798 2019-09-29  Bruno Haible  <bruno@clisp.org>
10800         avltree-list: Fix compilation warning (introduced on 2014-09-16).
10801         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
10802         'const' attribute.
10804 2019-09-29  Bruno Haible  <bruno@clisp.org>
10806         fbufmode: Fix compilation error on glibc >= 2.28 systems.
10807         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
10809 2019-09-28  Bruno Haible  <bruno@clisp.org>
10811         Update comments that refer to POSIX.
10812         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
10813         sentence about trailing slashes.
10814         * lib/fflush.c: Clarify the reasoning.
10815         * tests/test-fflush2.c: Cite the relevant sentence.
10817 2019-09-28  Bruno Haible  <bruno@clisp.org>
10819         access: Document limitations on Windows.
10820         Suggested by Zaretskii <eliz@gnu.org>.
10821         * doc/posix-functions/access.texi: Mention two limitations on Windows.
10823 2019-09-28  Bruno Haible  <bruno@clisp.org>
10825         findprog-in: Fix comment.
10826         Reported by Eli Zaretskii <eliz@gnu.org>.
10827         * lib/findprog.h (find_in_given_path): Extend description of EACCES
10828         condition.
10829         * lib/stat.c (rpl_stat): Fix typo in comment.
10830         * lib/utime.c (_gl_utimens_windows): Likewise.
10832 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10834         Update URLs and associated text
10835         (Thanks to Bruno Haible for proofreading this patch.)
10836         Prefer https: to http: in URLs where either will do, for the usual
10837         security reasons.  I also updated broken and/or moved URLs
10838         discovered during the process. In a few places I had to resort to
10839         archive.org, since I didn't find the originals elsewhere.
10841 2019-09-15  Paul Smith  <psmith@gnu.org>
10842             Bruno Haible  <bruno@clisp.org>
10844         findprog-in: Set errno when the search fails.
10845         * lib/findprog-in.c: Include <errno.h>.
10846         (find_in_given_path): Set errno before returning NULL.
10847         * lib/findprog.h (find_in_given_path): Update comment accordingly.
10848         Define the term "slash".
10850 2019-09-15  Bruno Haible  <bruno@clisp.org>
10852         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
10853         * modules/findprog (Depends-on): Add access.
10854         * modules/findprog-lgpl (Depends-on): Likewise.
10855         * modules/findprog-in (Depends-on): Likewise.
10857 2019-09-15  Bruno Haible  <bruno@clisp.org>
10859         access: Add tests.
10860         * tests/test-access.c: New file.
10861         * modules/access-tests: New file.
10863         access: New module.
10864         * lib/unistd.in.h (access): New declaration.
10865         * lib/access.c: New file.
10866         * m4/access.m4: New file.
10867         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
10868         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
10869         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
10870         REPLACE_ACCESS.
10871         * modules/access: New file.
10872         * tests/test-unistd-c++.cc (access): Check signature.
10873         * doc/posix-functions/access.texi: Mention the new module.
10875 2019-09-15  Bruno Haible  <bruno@clisp.org>
10877         fcntl-h: Fix compilation error of creat.c on MSVC.
10878         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
10879         defined.
10881 2019-09-15  Bruno Haible  <bruno@clisp.org>
10883         creat: Add tests.
10884         * tests/test-creat.c: New file, based on tests/test-open.h.
10885         * modules/creat-tests: New file.
10887         creat: New module.
10888         * lib/fcntl.in.h (creat): New declaration.
10889         * lib/creat.c: New file, based on lib/open.c.
10890         * m4/creat.m4: New file.
10891         * m4/open-slash.m4: New file, extracted from m4/open.m4.
10892         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
10893         Invoke gl_OPEN_TRAILING_SLASH_BUG.
10894         * modules/open (Files): Add m4/open-slash.m4.
10895         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
10896         REPLACE_CREAT.
10897         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
10898         * modules/creat: New file.
10899         * tests/test-fcntl-h-c++.cc (creat): Check signature.
10900         * doc/posix-functions/creat.texi: Mention the new module.
10902 2019-09-15  Bruno Haible  <bruno@clisp.org>
10904         open tests: Enhance test.
10905         * tests/test-open.h (test_open): Test the creation of an executable
10906         regular file. Also improve initial cleanup.
10908 2019-09-15  Bruno Haible  <bruno@clisp.org>
10910         intprops tests: Avoid build failure with HP-UX cc.
10911         * tests/test-intprops.c: Disable a check that makes HP cc choke with
10912         "error 4018: Macro param too large after substitution - use -H option.".
10914 2019-09-14  Bruno Haible  <bruno@clisp.org>
10916         Make autoconf tests work with -Werror=implicit-function-declaration.
10917         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
10918         towupper() declaration.
10919         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
10920         declaration.
10922 2019-09-14  Bruno Haible  <bruno@clisp.org>
10924         findprog-in: Better mimic the system on native Windows.
10925         Reported by Paul Smith <psmith@gnu.org>.
10926         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
10927         non-empty suffixes when the file name already contains a '.'.
10929 2019-09-10  Bruno Haible  <bruno@clisp.org>
10931         wctob: Fix autoconf test.
10932         Based on patch by Florian Weimer <fweimer@redhat.com>.
10933         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
10935 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
10937         xhash: provide hash_xinitialize.
10938         Suggested by Egor Pugin <egor.pugin@gmail.com>
10939         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
10940         * modules/xhash, lib/xhash.c: New.
10941         * lib/hash.h (hash_xinitialize): New.
10943 2019-09-09  Bruno Haible  <bruno@clisp.org>
10945         findprog-in: Make exec optimization optional.
10946         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
10947         (find_in_given_path): Add optimize_for_exec parameter.
10948         * lib/findprog-in.c (find_in_given_path): Likewise.
10950 2019-09-08  Bruno Haible  <bruno@clisp.org>
10952         Add option to assume the best, not the worst, when cross-compiling.
10953         Suggested by Jonas Termansen <sortie@maxsi.org>.
10954         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
10955         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
10956         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
10957         lt_cv_sys_argz_works.
10958         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
10959         ac_cv_func_calloc_0_nonnull.
10960         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
10961         --enable-cross-guesses for gl_cv_func_realpath_works.
10962         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
10963         gl_cv_func_cbrtl_ieee.
10964         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
10965         gl_cv_func_ceil_ieee.
10966         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
10967         gl_cv_func_ceilf_ieee.
10968         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
10969         gl_cv_func_ceill_ieee.
10970         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
10971         ac_cv_func_chown_works.
10972         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
10973         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
10974         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
10975         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
10976         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
10977         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
10978         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
10979         gl_cv_func_expl_works.
10980         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
10981         gl_cv_func_expm1_ieee.
10982         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
10983         gl_cv_func_expm1l_works.
10984         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
10985         gl_cv_func_open_directory_works.
10986         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
10987         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
10988         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
10989         gl_cv_func_fchownat_empty_filename_works.
10990         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
10991         gl_cv_func_fdopendir_works.
10992         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
10993         gl_cv_func_floor_ieee.
10994         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
10995         gl_cv_func_floorf_ieee.
10996         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
10997         gl_cv_func_fma_works.
10998         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
10999         gl_cv_func_fmaf_works.
11000         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
11001         gl_cv_func_fmal_works.
11002         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
11003         gl_cv_func_fmod_ieee.
11004         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
11005         gl_cv_func_fmodf_ieee.
11006         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
11007         gl_cv_func_fmodl_ieee.
11008         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
11009         gl_cv_func_fpurge_works.
11010         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
11011         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
11012         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
11013         gl_cv_func_getcwd_null.
11014         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
11015         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
11016         gl_cv_func_working_getdelim.
11017         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
11018         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
11019         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
11020         gl_cv_func_getgroups_works.
11021         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
11022         am_cv_func_working_getline.
11023         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
11024         for gl_cv_func_getopt_gnu.
11025         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
11026         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
11027         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
11028         gl_cv_func_hypot_ieee.
11029         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
11030         gl_cv_func_hypotf_ieee.
11031         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
11032         gl_cv_func_hypotl_ieee.
11033         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
11034         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
11035         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
11036         gl_cv_func_link_works.
11037         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
11038         gl_cv_func_linkat_slash.
11039         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
11040         gl_cv_func_log_ieee.
11041         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
11042         gl_cv_func_logf_ieee.
11043         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
11044         gl_cv_func_logl_works.
11045         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
11046         gl_cv_func_log10_ieee.
11047         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
11048         gl_cv_func_log10f_ieee.
11049         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
11050         gl_cv_func_log10l_works.
11051         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
11052         gl_cv_func_log1p_ieee.
11053         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
11054         gl_cv_func_log1pf_ieee.
11055         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
11056         gl_cv_func_log1pl_ieee.
11057         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
11058         gl_cv_func_log2_ieee.
11059         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
11060         gl_cv_func_log2f_ieee.
11061         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
11062         --enable-cross-guesses for
11063         gl_cv_func_lstat_dereferences_slashed_symlink.
11064         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
11065         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
11066         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
11067         gl_cv_C_locale_sans_EILSEQ.
11068         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
11069         gl_cv_func_memchr_works.
11070         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
11071         gl_cv_func_memmem_works_always.
11072         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
11073         gl_cv_func_memmem_works_fast.
11074         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
11075         gl_cv_func_mkdir_trailing_slash_works,
11076         gl_cv_func_mkdir_trailing_dot_works.
11077         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
11078         gl_cv_func_mkfifo_works.
11079         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
11080         gl_cv_func_mknod_works.
11081         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
11082         gl_cv_func_working_mkstemp.
11083         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
11084         gl_cv_func_working_mktime.
11085         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
11086         gl_cv_func_modf_ieee.
11087         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
11088         gl_cv_func_modff_ieee.
11089         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
11090         gl_cv_func_modfl_ieee.
11091         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
11092         gl_cv_func_nanosleep.
11093         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
11094         gl_cv_func_perror_works.
11095         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
11096         gl_cv_func_printf_sizes_c99.
11097         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
11098         gl_cv_func_printf_infinite.
11099         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
11100         gl_cv_func_printf_infinite_long_double.
11101         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
11102         gl_cv_func_printf_directive_a.
11103         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
11104         gl_cv_func_printf_directive_f.
11105         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
11106         gl_cv_func_printf_flag_zero.
11107         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
11108         gl_cv_func_printf_enomem.
11109         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
11110         gl_cv_func_snprintf_truncation_c99.
11111         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
11112         gl_cv_func_snprintf_retval_c99.
11113         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
11114         gl_cv_func_snprintf_directive_n.
11115         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
11116         gl_cv_func_vsnprintf_zerosize_c99.
11117         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
11118         gl_cv_func_pselect_detects_ebadf.
11119         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
11120         Obey --enable-cross-guesses for
11121         gl_cv_pthread_rwlock_rdlock_prefer_writer.
11122         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
11123         gl_cv_func_ptsname_sets_errno.
11124         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
11125         gl_cv_func_svid_putenv.
11126         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
11127         gl_cv_func_readlink_works.
11128         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
11129         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
11130         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
11131         gl_cv_func_re_compile_pattern_working.
11132         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
11133         gl_cv_func_remainder_ieee.
11134         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
11135         gl_cv_func_remainderf_ieee.
11136         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
11137         gl_cv_func_remainderl_ieee.
11138         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
11139         gl_cv_func_rintl_works.
11140         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
11141         gl_cv_func_rmdir_works.
11142         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
11143         gl_cv_func_round_ieee.
11144         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
11145         gl_cv_func_roundf_ieee.
11146         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
11147         gl_cv_func_roundl_ieee.
11148         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
11149         gl_cv_func_select_detects_ebadf.
11150         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
11151         gl_cv_func_setenv_works.
11152         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
11153         gl_cv_func_unsetenv_works.
11154         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
11155         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
11156         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
11157         gl_cv_func_sleep_works.
11158         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
11159         gl_cv_func_stat_file_slash.
11160         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
11161         gl_cv_func_stpncpy.
11162         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
11163         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
11164         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
11165         gl_cv_func_strcasestr_linear.
11166         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
11167         gl_cv_func_working_strerror.
11168         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
11169         gl_cv_func_strerror_0_works.
11170         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
11171         --enable-cross-guesses for gl_cv_func_strerror_r_works.
11172         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
11173         gl_cv_func_strstr_works_always.
11174         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
11175         gl_cv_func_strstr_linear.
11176         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
11177         gl_cv_func_strtod_works.
11178         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
11179         gl_cv_func_strtold_works.
11180         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
11181         gl_cv_func_symlink_works.
11182         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
11183         gl_cv_func_symlinkat_works.
11184         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
11185         gl_cv_func_trunc_ieee.
11186         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
11187         gl_cv_func_truncf_ieee.
11188         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
11189         gl_cv_func_truncl_ieee.
11190         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
11191         gl_cv_func_tzset_clobber.
11192         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
11193         gl_cv_func_ungetc_works.
11194         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
11195         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
11196         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
11197         gl_cv_func_usleep_works.
11198         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
11199         gl_cv_func_futimesat_works.
11200         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
11201         gl_cv_func_working_utimes.
11202         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
11203         gl_cv_func_wcwidth_works.
11204         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
11205         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
11206         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
11207         links for testing. Obey --enable-cross-guesses for
11208         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
11209         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
11211 2019-09-08  Bruno Haible  <bruno@clisp.org>
11213         Clarify that cross-compilation guesses are guesses.
11214         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
11215         cross-compiling.
11217 2019-09-08  Bruno Haible  <bruno@clisp.org>
11219         chown: Fix configure output (regression from 2019-03-23).
11220         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
11221         gl_cv_func_chown_follows_symlink variable.
11223 2019-09-08  Bruno Haible  <bruno@clisp.org>
11225         findprog-in: New module.
11226         Suggested by Paul Smith <psmith@gnu.org>.
11227         * lib/findprog.h (find_in_given_path): New declaration.
11228         * lib/findprog-in.c: New file, based on lib/findprog.c.
11229         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
11230         * modules/findprog-in: New file.
11232 2019-09-08  Bruno Haible  <bruno@clisp.org>
11234         findprog: Remove unused dependency.
11235         * modules/findprog (Depends-on): Remove strdup.
11237 2019-09-08  Bruno Haible  <bruno@clisp.org>
11239         findprog: Remove test that is obsolete since 2006-04-24.
11240         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
11242 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
11244         bitset: style changes
11245         * lib/bitset/vector.c (vbitset_resize): Factor computation.
11246         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
11247         xzalloc to xcalloc.
11248         Suggested by Paul Eggert.
11250 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
11252         bitset: check memory allocation
11253         Reported by 江 祖铭 (Zu-Ming Jiang).
11254         With help from Paul Eggert.
11255         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
11256         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
11257         instead of realloc.
11258         When shrinking, accept failures.
11259         * lib/bitset/vector.c (vbitset_resize): Likewise.
11261 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
11263         scratch_buffer: sync from glibc
11264         * config/srclist.txt: Add the scratch_buffer source
11265         code from glibc, since these should be in sync.
11266         Autoupdate.
11268 2019-09-07  Bruno Haible  <bruno@clisp.org>
11270         doc: Update for glibc 2.30.
11271         * doc/glibc-functions/gettid.texi: New file.
11272         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
11273         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
11274         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
11275         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
11276         * doc/glibc-functions/sem_clockwait.texi: New file.
11277         * doc/glibc-functions/tgkill.texi: New file.
11278         * doc/glibc-functions/twalk_r.texi: New file.
11279         * doc/gnulib.texi: Include them.
11280         (Glibc semaphore.h): New section.
11281         * doc/pastposix-functions/h_errno.texi: Update.
11282         * doc/posix-functions/*.texi: Likewise.
11284 2019-09-06  Bruno Haible  <bruno@clisp.org>
11286         symlink tests: Avoid test failure on Linux with Lustre file system.
11287         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
11288         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
11289         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
11291 2019-09-01  Bruno Haible  <bruno@clisp.org>
11293         gitsub.sh: Add support for shallow-cloning of subdirectories.
11294         * top/gitsub.sh (func_usage): Document allowed git options with
11295         'git pull'.
11296         (func_pull): Accept GIT_OPTIONS argument.
11297         (pull): Parse git options before complaining about too many arguments.
11298         Pass the git options to func_pull.
11300 2019-08-29  Bruno Haible  <bruno@clisp.org>
11302         lock: Fix cross-compilation guesses.
11303         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
11304         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
11305         platforms.
11307 2019-08-28  Bruno Haible  <bruno@clisp.org>
11309         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
11310         Reported by Martin Storsjö <martin@martin.st> in
11311         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
11312         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
11313         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
11314         files from GCC 6 or newer, use an override through '#define', because
11315         the inline definitions in the platform's <cmath> cannot be overridden
11316         in another way.
11318 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
11320         Revert macOS INT_MULTIPLY_WRAPV patch
11321         Problem reported by Bruno Haible in:
11322         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
11323         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
11324         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
11325         Go back to working around the Clang bug on macOS.
11327 2019-08-27  Bruno Haible  <bruno@clisp.org>
11329         libtool-next-version: Fix error output.
11330         * build-aux/libtool-next-version (func_fatal_error): Fix the program
11331         name.
11333 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
11335         Speed up INT_MULTIPLY_WRAPV on macOS
11336         Assume that __builtin_mul_overflow works OK with Clang on macOS.
11337         Mattias Engdegård says it’s safe to assume the relevant library
11338         is always available there.
11339         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
11340         New temporary internal macro.
11341         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
11342         No need to work around the Clang bug on macOS.
11344 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
11346         intprops.h, verify.h: port better to clang
11347         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
11348         with Clang.  Problem reported privately by Mattias Engdegård.
11349         Also, insulate intprops.h and verify.h better against each other’s
11350         definitions of __has_builtin on non-Clang hosts.
11351         * lib/intprops.h (__has_builtin): Define a temporary substitute
11352         if __has_builtin is not already defined.
11353         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
11354         New temporary internal macros.
11355         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
11356         Now two separate macros, replacing the old
11357         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
11358         __builtin_mul_overflow is like the rest.  All uses changed.
11359         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
11360         Adjust to above changes.
11361         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
11362         longer relevant.  All uses changed.
11363         * lib/verify.h (__has_builtin): Treat like intprops.h,
11364         so that the two .h files do not collide with each other.
11365         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
11366         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
11368 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11370         intprops: say why not Clang __builtin_add_overflow
11371         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
11372         Mention Clang in comment, responding to a query from
11373         Mattias Engdegård.
11375 2019-08-24  Bruno Haible  <bruno@clisp.org>
11377         doc: Document most of the files outside of modules.
11378         * doc/gnulib.texi (Build Infrastructure Files,
11379         Release Management Files): New chapters.
11381 2019-08-24  Bruno Haible  <bruno@clisp.org>
11383         bootstrap: Keep in sync with the 'gettext' module.
11384         Reported by Assaf Gordon in
11385         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
11386         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
11387         * build-aux/po/remove-potcdate.sin: Likewise.
11389 2019-08-24  Bruno Haible  <bruno@clisp.org>
11391         crypto/gc-sha512: Add tests.
11392         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
11393         * modules/crypto/gc-sha512-tests: New file.
11395         crypto/gc-sha256: Add tests.
11396         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
11397         * modules/crypto/gc-sha256-tests: New file.
11399         crypto/gc-sha256, crypto/gc-sha512: New modules.
11400         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
11401         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
11402         (MAX_DIGEST_SIZE): Set to 64.
11403         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
11404         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
11405         (gc_sha256, gc_sha512): New functions.
11406         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
11407         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
11408         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
11410 2019-08-24  Bruno Haible  <bruno@clisp.org>
11412         crypto/gc-sha1 tests: Improve output when the test fails.
11413         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
11414         output.
11416 2019-08-24  Bruno Haible  <bruno@clisp.org>
11418         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
11419         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
11420         LIBGCRYPT_HAS_MD_SM3.
11421         * lib/gc-libgcrypt.c: Include sm3.h.
11422         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
11423         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
11424         implementation if libgcrypt does not support SM3.
11426 2019-08-24  Bruno Haible  <bruno@clisp.org>
11428         crypto/gc-md2: Optimize and clarify code.
11429         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
11430         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
11431         is not needed.
11433 2019-08-24  Bruno Haible  <bruno@clisp.org>
11435         crypto/gc-md2: Add comment.
11436         * lib/gc-libgcrypt.c: Add comment.
11438 2019-08-24  Bruno Haible  <bruno@clisp.org>
11440         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
11441         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
11442         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
11443         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
11444         variable.
11446 2019-08-24  Bruno Haible  <bruno@clisp.org>
11448         crypto/gc: Fix link error with --with-libgcrypt.
11449         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
11450         AC_LIB_HAVE_LINKFLAGS invocation.
11452 2019-08-24  Bruno Haible  <bruno@clisp.org>
11454         crypto/gc: Access the module indicators correctly.
11455         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
11456         * lib/gc-libgcrypt.c: Likewise.
11458 2019-08-24  Bruno Haible  <bruno@clisp.org>
11460         crypto/gc: Fix configuration with --with-libgcrypt.
11461         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
11462         * modules/crypto/gc (Files): Add it.
11463         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
11465 2019-08-24  Bruno Haible  <bruno@clisp.org>
11467         Remove unused file.
11468         * m4/stat-macros.m4: Remove file.
11470 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
11472         New strip-trailing-space option for srclist-update
11473         * config/srclist-update (fixfile): Support new option.
11474         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
11475         Use it.
11477 2019-08-20  Eric Blake  <eblake@redhat.com>
11479         accept4: Support SOCK_NONBLOCK, if defined
11480         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
11482         accept4: Fix compilation when native accept4() exists.
11483         Reported by Richard W.M. Jones <rjones@redhat.com> in
11484         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
11485         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
11487 2019-08-18  Bruno Haible  <bruno@clisp.org>
11489         Defeat -flto GCC optimization in math autoconf tests.
11490         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
11491         at <https://savannah.gnu.org/bugs/?56109>.
11492         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
11493         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
11494         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
11495         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11496         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
11497         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
11498         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11499         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
11500         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
11501         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
11502         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
11503         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
11505 2019-08-17  Bruno Haible  <bruno@clisp.org>
11507         windows-spin: Implement declared functions.
11508         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
11509         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
11510         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
11511         name.
11513 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
11515         intprops: port to Oracle Developer Studio 12.6
11516         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
11517         typos that were in a section not compiled by GCC.
11519 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
11521         intprops: support uchar, ushort _WRAPV dests
11522         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
11523         when __builtin_add_overflow etc. and _Generic are not used.
11524         (_GL_INT_OP_WRAPV): Use it to support destinations that
11525         are unsigned char or unsigned short, even in compilers
11526         that lack __typeof__ and are not C11-compatible.
11528         intprops: pacify picky GCC
11529         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
11530         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
11531         possibly-incorrect result.
11532         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
11533         about (A) used as a boolean, when A is an expression like 3 * 4.
11535         intprops: support unsigned *_WRAPV results
11536         Add support for unsigned, unsigned long, and unsigned long long
11537         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
11538         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
11539         bug with unsigned inputs reported by Eli Zaretskii in:
11540         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
11541         * config/srclist.txt: Break the glibc connection for intprops.h
11542         temporarily, while more testing is done in Gnulib-using apps.
11543         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
11544         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
11545         Support unsigned results no narrower than unsigned int.  Report
11546         overflow correctly if some arguments are unsigned.
11547         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
11548         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
11549         the right thing with narrow args.
11550         (_GL_INT_OP_CALC1): Remove.  All callers removed.
11551         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
11552         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
11553         * tests/test-intprops.c: Check for bugs and test new behavior.
11555 2019-08-14  Bruno Haible  <bruno@clisp.org>
11557         get_progname_of: New module.
11558         * lib/get_progname_of.h: New file.
11559         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
11560         * lib/getprogname.c (getprogname): Tweak coding style.
11561         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
11562         * modules/get_progname_of: New file.
11564 2019-08-14  Bruno Haible  <bruno@clisp.org>
11566         get_ppid_of: New module.
11567         * lib/get_ppid_of.h: New file.
11568         * lib/get_ppid_of.c: New file.
11569         * modules/get_ppid_of: New file.
11571 2019-08-13  Bruno Haible  <bruno@clisp.org>
11573         libtextstyle-optional tests: Support the NO_COLOR environment variable.
11574         * tests/test-libtextstyle.c (main): Do not emit styling when the
11575         environment variable NO_COLOR is set.
11577 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
11579         verify: improve diagnostic quality in recent GCC
11580         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
11581         useful line number containing the top-level caller of the macro.
11582         So, bring back the older way of issuing a diagnostic containing
11583         the top-level call’s arg, so that it is easier to diagnose
11584         ‘verify’ failures with recent GCC.
11585         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
11586         Bring back DIAGNOSTIC arg.  All callers changed.
11587         (verify): Just use _GL_VERIFY.
11589 2019-08-11  Bruno Haible  <bruno@clisp.org>
11591         localcharset: Add more aliases for OS/2.
11592         Based on patch by KO Myung-Hun <komh78@gmail.com> in
11593         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
11594         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
11596 2019-08-10  Eric Blake  <eblake@redhat.com>
11598         configmake: Update advice on usage.
11599         * modules/configmake (Include): No longer necessary to include
11600         last, since configmake.h itself worries about collision avoidance.
11602 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
11604         parse-datetime: fix 'T' military timezone handling
11605         * lib/parse-datetime.y (zone):
11606         follow-up to the previous commit: the 'T' case is handled outside the
11607         conversion table (used as either military timezone UTC-7 or ISO8601
11608         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
11609         timezone letters.
11611 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
11613         parse-datetime: fix military timezone letters
11614         Problem and trivial fix reported by Neil Hoggarth in:
11615         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
11616         * lib/parse-datetime.y (military_table):
11617         Do it the right way, not the RFC 822 way.
11619 2019-08-08  Eric Blake  <eblake@redhat.com>
11621         configmake: Avoid namespace pollution issue on mingw.
11622         * modules/configmake (Makefile.am): If the project uses
11623         <winsock2.h>, include that header before defining DATADIR.
11625 2019-07-28  Bruno Haible  <bruno@clisp.org>
11627         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
11628         * tests/test-mbrtowc.c (main): Fix expected value of wc.
11630 2019-07-24  Bruno Haible  <bruno@clisp.org>
11632         pthread-h: Fix definitions of types and macros on mingw.
11633         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
11634         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
11635         not in use.
11636         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
11637         'pthread-once' is not in use.
11638         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
11639         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
11640         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
11641         in use.
11642         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
11643         Define also when module 'pthread-rwlock' is not in use.
11644         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
11645         also when module 'pthread-cond' is not in use.
11646         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
11647         'pthread-tss' is not in use.
11648         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
11649         use.
11651 2019-07-24  Simon Josefsson  <simon@josefsson.org>
11653         crypto/gc: Cope with libgcrypt without SM3.
11654         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
11656 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
11658         backupfile: fix resource leak on memory failure
11659         Problem found by Coverity (CID 1484214).
11660         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
11662 2019-07-22  Bruno Haible  <bruno@clisp.org>
11664         Avoid missing-declarations warning in various tests.
11665         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
11666         test6, test_optional, test7, test8, test9, test10, test11, test12,
11667         test13, test14, test15, test_fun): Declare static.
11668         * tests/test-cnd.c (test_cnd_wait): Likewise.
11669         * tests/test-cond.c (test_cond): Likewise.
11671 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
11673         pthread tests: Avoid missing-declarations warning.
11674         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
11676 2019-07-19  Bruno Haible  <bruno@clisp.org>
11678         parse-datetime: Avoid warnings from bison versions >= 3.3.
11679         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
11680         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
11682 2019-07-19  Bruno Haible  <bruno@clisp.org>
11684         parse-datetime: Require Bison 2.4 or newer.
11685         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
11686         Code taken from gettext's intl.m4.
11687         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
11688         of YACC.
11690 2019-07-19  Bruno Haible  <bruno@clisp.org>
11692         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
11693         * lib/areadlink-with-size.c: Include <string.h>.
11694         * lib/areadlinkat-with-size.c: Likewise.
11695         * lib/xgethostname.c: Likewise.
11696         * lib/xgetdomainname.c: Likewise.
11698 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
11700         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
11701         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
11702         "%pure-parser".  The former is available since Bison 2.3b (2008),
11703         while the latter is marked as obsolete since version 3.4 (May 2019).
11705 2019-07-16  Bruno Haible  <bruno@clisp.org>
11707         update-copyright: Make it work again (regression from 2019-06-15).
11708         Reported by Brian C. Lane <bcl@redhat.com>.
11709         * build-aux/update-copyright: Add back the -0777, -p, -i options.
11711 2019-07-14  Bruno Haible  <bruno@clisp.org>
11713         doc: Update info about <pthread.h>.
11714         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
11715         of 'pthread'.
11717 2019-07-14  Bruno Haible  <bruno@clisp.org>
11719         pthread_sigmask tests: Use new multithread modules.
11720         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
11721         glthread/thread.h.
11722         (main_thread, killer_thread): Change type to pthread_t.
11723         (main): Update accordingly.
11724         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
11725         thread.
11727 2019-07-14  Bruno Haible  <bruno@clisp.org>
11729         pthread-tss: Add tests.
11730         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
11731         tests/test-tss.c.
11732         * modules/pthread-tss-tests: New file.
11734 2019-07-14  Bruno Haible  <bruno@clisp.org>
11736         pthread-cond: Add tests.
11737         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
11738         tests/test-cnd.c.
11739         * modules/pthread-cond-tests: New file.
11741 2019-07-14  Bruno Haible  <bruno@clisp.org>
11743         pthread-rwlock: Add tests.
11744         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
11745         * modules/pthread-rwlock-tests: New file.
11747 2019-07-14  Bruno Haible  <bruno@clisp.org>
11749         pthread-mutex: Add tests.
11750         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
11751         tests/test-mtx.c.
11752         * modules/pthread-mutex-tests: New file.
11754 2019-07-14  Bruno Haible  <bruno@clisp.org>
11756         pthread-once: Add tests.
11757         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
11758         tests/test-call_once.c.
11759         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
11760         tests/test-mtx.c.
11761         * modules/pthread-once-tests: New file.
11763 2019-07-14  Bruno Haible  <bruno@clisp.org>
11765         pthread-thread: Add tests.
11766         * tests/test-pthread-thread.c: New file, based on
11767         tests/test-thread_create.c and tests/test-thrd_create.c.
11768         * modules/pthread-thread-tests: New file.
11770 2019-07-14  Bruno Haible  <bruno@clisp.org>
11772         pthread: Turn into a convenience module.
11773         * lib/pthread.in.h: Remove declarations for extern inline functions.
11774         * lib/pthread.c: Remove file.
11775         * modules/pthread (Files): Remove it.
11776         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
11777         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
11778         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
11779         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
11780         GNULIB_PTHREAD.
11781         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
11783 2019-07-14  Bruno Haible  <bruno@clisp.org>
11785         pthread-spin: New module.
11786         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
11787         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
11788         inline definitions.
11789         * lib/pthread-spin.c: New file.
11790         * m4/pthread-spin.m4: New file.
11791         * modules/pthread-spin: New file.
11792         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
11793         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
11794         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
11795         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
11796         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
11798 2019-07-14  Bruno Haible  <bruno@clisp.org>
11800         pthread-tss: New module.
11801         * lib/pthread-tss.c: New file.
11802         * m4/pthread-tss.m4: New file.
11803         * modules/pthread-tss: New file.
11804         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
11805         * doc/posix-functions/pthread_setspecific.texi: Likewise.
11806         * doc/posix-functions/pthread_getspecific.texi: Likewise.
11807         * doc/posix-functions/pthread_key_delete.texi: Likewise.
11809 2019-07-14  Bruno Haible  <bruno@clisp.org>
11811         pthread-cond: New module.
11812         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
11813         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
11814         * lib/pthread-cond.c: New file.
11815         * m4/pthread-cond.m4: New file.
11816         * modules/pthread-cond: New file.
11817         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
11818         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
11819         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
11820         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
11821         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
11822         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
11823         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
11824         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
11826 2019-07-14  Bruno Haible  <bruno@clisp.org>
11828         pthread-rwlock: New module.
11829         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
11830         * m4/pthread-rwlock.m4: New file.
11831         * modules/pthread-rwlock: New file.
11832         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
11833         and the Android problem.
11834         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
11835         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
11836         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
11837         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
11838         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
11839         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
11840         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
11841         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
11842         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
11843         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
11845 2019-07-14  Bruno Haible  <bruno@clisp.org>
11847         pthread-mutex: New module.
11848         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
11849         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
11850         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
11851         pthread_mutex_unlock): Remove inline definitions.
11852         * lib/pthread-mutex.c: New file.
11853         * m4/pthread-mutex.m4: New file.
11854         * modules/pthread-mutex: New file.
11855         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
11856         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
11857         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
11858         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
11859         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
11860         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
11861         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
11862         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
11863         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
11864         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
11865         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
11866         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
11868 2019-07-14  Bruno Haible  <bruno@clisp.org>
11870         pthread-once: New module.
11871         * lib/pthread-once.c: New file.
11872         * m4/pthread-once.m4: New file.
11873         * modules/pthread-once: New file.
11874         * doc/posix-functions/pthread_once.texi: Mention the new module.
11876 2019-07-14  Bruno Haible  <bruno@clisp.org>
11878         pthread-thread: New module.
11879         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
11880         inline definitions.
11881         * lib/pthread-thread.c: New file.
11882         * m4/pthread-thread.m4: New file.
11883         * modules/pthread-thread: New file.
11884         * doc/posix-functions/pthread_create.texi: Mention the new module.
11885         * doc/posix-functions/pthread_attr_init.texi: Likewise.
11886         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
11887         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
11888         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
11889         * doc/posix-functions/pthread_self.texi: Likewise.
11890         * doc/posix-functions/pthread_equal.texi: Likewise.
11891         * doc/posix-functions/pthread_detach.texi: Likewise.
11892         * doc/posix-functions/pthread_join.texi: Likewise.
11893         * doc/posix-functions/pthread_exit.texi: Likewise.
11895 2019-07-14  Bruno Haible  <bruno@clisp.org>
11897         pthread-h: Prepare for adding new modules.
11898         * lib/pthread.in.h: Define the types and macros for each of the
11899         facilities separately.
11900         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
11901         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
11902         HAVE_PTHREAD_PROCESS_SHARED.
11903         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
11904         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
11905         HAVE_PTHREAD_PROCESS_SHARED.
11906         * modules/pthread-h (Makefile.am): Substitute
11907         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
11908         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
11910 2019-07-14  Bruno Haible  <bruno@clisp.org>
11912         pthread-h: Add declarations of essential pthread functions.
11913         * lib/pthread.in.h: Include snippets.
11914         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
11915         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
11916         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
11917         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
11918         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
11919         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
11920         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
11921         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
11922         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
11923         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
11924         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
11925         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
11926         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
11927         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
11928         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
11929         pthread_key_create, pthread_setspecific, pthread_getspecific,
11930         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
11931         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
11932         declarations.
11933         (pthread_mutex_timedlock): Move declaration.
11934         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
11935         declared.
11936         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
11937         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
11938         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
11939         HAVE_* and REPLACE_* variables for the new functions.
11940         * modules/pthread-h (Depends-on): Add snippet/c++defs,
11941         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
11942         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
11943         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
11944         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
11945         variables for the new functions. Split the sed script, to avoid the
11946         limit of 99 commands of HP-UX sed.
11947         * tests/test-pthread-c++.cc: Check the signature of the new functions.
11949 2019-07-14  Bruno Haible  <bruno@clisp.org>
11951         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
11952         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
11953         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
11954         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
11955         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
11956         * modules/pthread-h (Depends-on): Add threadlib.
11957         (Link): Change to $(LIBTHREAD).
11958         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
11959         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
11961 2019-07-14  Bruno Haible  <bruno@clisp.org>
11963         pthread-h: Add C++ tests.
11964         * tests/test-pthread-c++.cc: New file.
11965         * modules/pthread-h-c++-tests: New file.
11967 2019-07-14  Bruno Haible  <bruno@clisp.org>
11969         pthread-h: Add tests.
11970         * tests/test-pthread.c: New file.
11971         * modules/pthread-h-tests: New file.
11973 2019-07-14  Bruno Haible  <bruno@clisp.org>
11975         pthread-h: New module.
11976         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
11977         is 1.
11978         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
11979         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
11980         <pthread.h> pollutes the namespace; instead, prepare for generating a
11981         pthread.h always. Substitute HAVE_PTHREAD_H here.
11982         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
11983         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
11984         * modules/pthread-h: New file, based on modules/pthread.
11985         * modules/pthread: Rely on 'pthread-h'.
11986         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
11987         Update.
11988         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
11989         pthread.
11991 2019-07-14  Bruno Haible  <bruno@clisp.org>
11993         sched_yield: New module.
11994         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
11995         (sched_yield): New declaration.
11996         * lib/sched_yield.c: New file.
11997         * m4/sched_yield.m4: New file.
11998         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
11999         provide a replacement sched.h always. Test whether sched_yield is
12000         declared.
12001         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
12002         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
12003         (Makefile.am): Provide a replacement sched.h always. Substitute
12004         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
12005         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
12006         * modules/sched_yield: New file.
12007         * doc/posix-functions/sched_yield.texi: Mention the new module.
12009 2019-07-14  Bruno Haible  <bruno@clisp.org>
12011         windows-spin: New module.
12012         * lib/windows-spin.h: New file.
12013         * lib/windows-spin.c: New file.
12014         * modules/windows-spin: New file.
12016 2019-07-14  Bruno Haible  <bruno@clisp.org>
12018         windows-timedrwlock: New module.
12019         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
12020         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
12021         windows-cond.c.
12022         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
12023         redefinition conflict with windows-timedrwlock.h.
12024         * modules/windows-timedrwlock: New file.
12026 2019-07-14  Bruno Haible  <bruno@clisp.org>
12028         windows-rwlock: New module.
12029         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
12030         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
12031         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
12032         windows-initguard.h.
12033         (gl_rwlock_t): Define using glwthread_rwlock_t.
12034         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
12035         (glthread_rwlock_init): Define using glwthread_rwlock_init.
12036         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
12037         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
12038         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
12039         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
12040         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
12041         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
12042         glthread_rwlock_destroy_func): Remove declarations.
12043         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
12044         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
12045         gl_waitqueue_notify_all, glthread_rwlock_init_func,
12046         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
12047         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
12048         functions.
12049         * modules/windows-rwlock: New file.
12050         * modules/lock (Depends-on): Add windows-rwlock.
12052 2019-07-14  Bruno Haible  <bruno@clisp.org>
12054         windows-thread: Add support for creating a thread in detached state.
12055         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
12056         (glwthread_thread_create): Add attr argument.
12057         * lib/windows-thread.c (glwthread_thread_create): Likewise.
12058         * lib/glthread/thread.h (glthread_create): Update.
12059         * lib/thrd.c (thrd_create): Update.
12061 2019-07-14  Bruno Haible  <bruno@clisp.org>
12063         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
12064         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
12065         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
12066         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
12067         * lib/windows-mutex.h: Update.
12068         * lib/windows-recmutex.h: Likewise.
12069         * lib/windows-timedmutex.h: Likewise.
12070         * lib/windows-timedrecmutex.h: Likewise.
12071         * lib/windows-cond.h: Likewise.
12072         * lib/glthread/lock.h: Likewise.
12073         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
12074         lib/windows-spinlock.h.
12075         * modules/windows-recmutex (Files): Likewise.
12076         * modules/windows-timedmutex (Files): Likewise.
12077         * modules/windows-timedrecmutex (Files): Likewise.
12078         * modules/windows-cond (Files): Likewise.
12079         * modules/threads-h (Files): Likewise.
12081 2019-07-14  Bruno Haible  <bruno@clisp.org>
12083         doc: Fix info about pthread API in HP-UX.
12084         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
12086 2019-07-14  Bruno Haible  <bruno@clisp.org>
12088         threads-h: Fix generation of threads.h.
12089         * modules/threads-h (Makefile.am): Insert the required header file
12090         snippets.
12092 2019-07-09  Bruno Haible  <bruno@clisp.org>
12094         striconveh test: Fix a compilation failure when iconv is not available.
12095         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12096         * tests/test-striconveh.c (main): Move iconv_close invocations inside
12097         HAVE_ICONV.
12099 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
12101         argmatch: adjust columns for help2man.
12102         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
12103         requires column 20 or more, return 20.
12105 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12107         areadlink-with-size: avoid realloc when size==0
12108         * lib/areadlink-with-size.c (areadlink_with_size):
12109         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
12110         Reallocate at the end to the actual size, to avoid memory waste,
12111         as suggested by Bruno Haible.  But when the guessed size is zero -
12112         useful when the size is unknown - do the initial small readlink
12113         into the stack, to avoid that realloc in the usual case.
12115 2019-07-06  Pádraig Brady  <P@draigBrady.com>
12117         areadlink-with-size: guess a buffer size with 0 size
12118         The size is usually taken from st_size, which can be zero,
12119         resulting in inefficient operation.
12120         Instead let zero select an initial memory allocation
12121         of 128 bytes, which most symlinks fit within.
12122         * lib/areadlink-with-size.c (areadlink_with_size):
12123         Start with a 128 byte buffer, for SIZE == 0.
12124         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
12126 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
12128         Replace manually crafted hex regexes with [:xdigit:]
12129         * build-aux/gitlog-to-changelog (parse_amend_file)
12130         (git_dir_option):
12131         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
12132         This patch is backported from Emacs (Bug#36167).
12134 2019-07-06  Bruno Haible  <bruno@clisp.org>
12136         error: Fix documentation.
12137         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
12138         module provides.
12139         * doc/glibc-functions/error_message_count.texi: Likewise.
12140         * doc/glibc-functions/error_one_per_line.texi: Likewise.
12141         * doc/glibc-functions/error_print_progname.texi: Likewise.
12143 2019-07-06  Bruno Haible  <bruno@clisp.org>
12145         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
12146         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
12147         and older is unsupported.
12148         * doc/**/*.texi: Update.
12150 2019-07-06  Bruno Haible  <bruno@clisp.org>
12152         doc: Remove documentation of Linux libc5 as a supported platform.
12153         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
12154         to Linux libc5.
12155         * doc/posix-functions/iswalpha.texi: Likewise.
12156         * doc/posix-functions/iswblank.texi: Likewise.
12157         * doc/posix-functions/iswcntrl.texi: Likewise.
12158         * doc/posix-functions/iswdigit.texi: Likewise.
12159         * doc/posix-functions/iswgraph.texi: Likewise.
12160         * doc/posix-functions/iswlower.texi: Likewise.
12161         * doc/posix-functions/iswprint.texi: Likewise.
12162         * doc/posix-functions/iswpunct.texi: Likewise.
12163         * doc/posix-functions/iswspace.texi: Likewise.
12164         * doc/posix-functions/iswupper.texi: Likewise.
12165         * doc/posix-functions/iswxdigit.texi: Likewise.
12166         * doc/posix-functions/snprintf.texi: Likewise.
12167         * doc/posix-functions/vsnprintf.texi: Likewise.
12169 2019-07-06  Bruno Haible  <bruno@clisp.org>
12171         doc: Remove documentation of Tandem/NSK as a supported platform.
12172         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
12173         Tandem/NSK.
12174         * doc/**/*.texi: Update.
12176 2019-07-06  Bruno Haible  <bruno@clisp.org>
12178         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
12179         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
12180         and older is unsupported.
12181         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
12182         Mac OS X 10.4 and older.
12183         * doc/posix-functions/asinl.texi: Likewise.
12184         * doc/posix-functions/atanl.texi: Likewise.
12185         * doc/posix-functions/cosl.texi: Likewise.
12186         * doc/posix-functions/expl.texi: Likewise.
12187         * doc/posix-functions/frexpl.texi: Likewise.
12188         * doc/posix-functions/gettimeofday.texi: Likewise.
12189         * doc/posix-functions/logl.texi: Likewise.
12190         * doc/posix-functions/mkstemp.texi: Likewise.
12191         * doc/posix-functions/sinl.texi: Likewise.
12192         * doc/posix-functions/sqrtl.texi: Likewise.
12193         * doc/posix-functions/tanl.texi: Likewise.
12194         * doc/posix-functions/wcswidth.texi: Likewise.
12195         * doc/**/*.texi: Update.
12197 2019-07-06  Bruno Haible  <bruno@clisp.org>
12199         doc: Remove documentation of AIX 4 as a supported platform.
12200         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
12201         unsupported.
12202         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
12203         workarounds.
12204         * doc/posix-functions/strnlen.texi: Likewise.
12205         * doc/posix-headers/inttypes.texi: Likewise.
12206         * doc/**/*.texi: Update.
12208 2019-07-06  Bruno Haible  <bruno@clisp.org>
12210         doc: Remove documentation of HP-UX 10 as a supported platform.
12211         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
12212         unsupported.
12213         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
12214         workarounds.
12215         * doc/posix-functions/gmtime_r.texi: Likewise.
12216         * doc/posix-functions/localtime_r.texi: Likewise.
12217         * doc/posix-functions/mkstemp.texi: Likewise.
12218         * doc/**/*.texi: Update.
12220 2019-07-06  Bruno Haible  <bruno@clisp.org>
12222         doc: Remove documentation of Interix 3.5 as a supported platform.
12223         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
12224         unsupported.
12225         * doc/posix-functions/select.texi: Don't mention Interix specific
12226         workarounds.
12227         * doc/posix-headers/signal.texi: Likewise.
12228         * doc/**/*.texi: Update.
12230 2019-07-06  Bruno Haible  <bruno@clisp.org>
12232         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
12233         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
12234         unsupported.
12235         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
12236         workarounds.
12237         * doc/posix-functions/nl_langinfo.texi: Likewise.
12238         * doc/posix-functions/remainder.texi: Likewise.
12239         * doc/posix-functions/towlower.texi: Likewise.
12240         * doc/posix-functions/towupper.texi: Likewise.
12241         * doc/posix-functions/vsnprintf.texi: Likewise.
12242         * doc/posix-functions/wcscat.texi: Likewise.
12243         * doc/posix-functions/wcschr.texi: Likewise.
12244         * doc/posix-functions/wcscmp.texi: Likewise.
12245         * doc/posix-functions/wcscpy.texi: Likewise.
12246         * doc/posix-functions/wcscspn.texi: Likewise.
12247         * doc/posix-functions/wcslen.texi: Likewise.
12248         * doc/posix-functions/wcsncat.texi: Likewise.
12249         * doc/posix-functions/wcsncmp.texi: Likewise.
12250         * doc/posix-functions/wcsncpy.texi: Likewise.
12251         * doc/posix-functions/wcspbrk.texi: Likewise.
12252         * doc/posix-functions/wcsrchr.texi: Likewise.
12253         * doc/posix-functions/wcsspn.texi: Likewise.
12254         * doc/posix-headers/langinfo.texi: Likewise.
12255         * doc/posix-headers/signal.texi: Likewise.
12256         * doc/posix-headers/wchar.texi: Likewise.
12257         * doc/posix-headers/wctype.texi: Likewise.
12258         * doc/**/*.texi: Update.
12260 2019-07-05  Bruno Haible  <bruno@clisp.org>
12262         doc: Remove documentation of OSF/1 as supported platform.
12263         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
12264         unsupported.
12265         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
12266         workarounds.
12267         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
12268         * doc/glibc-functions/ptsname_r.texi: Likewise.
12269         * doc/posix-functions/ceil.texi: Likewise.
12270         * doc/posix-functions/ceilf.texi: Likewise.
12271         * doc/posix-functions/ceill.texi: Likewise.
12272         * doc/posix-functions/fchdir.texi: Likewise.
12273         * doc/posix-functions/floor.texi: Likewise.
12274         * doc/posix-functions/floorf.texi: Likewise.
12275         * doc/posix-functions/fmod.texi: Likewise.
12276         * doc/posix-functions/fmodf.texi: Likewise.
12277         * doc/posix-functions/fmodl.texi: Likewise.
12278         * doc/posix-functions/log.texi: Likewise.
12279         * doc/posix-functions/logf.texi: Likewise.
12280         * doc/posix-functions/logl.texi: Likewise.
12281         * doc/posix-functions/log10.texi: Likewise.
12282         * doc/posix-functions/log10f.texi: Likewise.
12283         * doc/posix-functions/log10l.texi: Likewise.
12284         * doc/posix-functions/log2.texi: Likewise.
12285         * doc/posix-functions/log2f.texi: Likewise.
12286         * doc/posix-functions/log2l.texi: Likewise.
12287         * doc/posix-functions/mbrtowc.texi: Likewise.
12288         * doc/posix-functions/recv.texi: Likewise.
12289         * doc/posix-functions/recvfrom.texi: Likewise.
12290         * doc/posix-functions/remainder.texi: Likewise.
12291         * doc/posix-functions/remainderf.texi: Likewise.
12292         * doc/posix-functions/remainderl.texi: Likewise.
12293         * doc/posix-functions/round.texi: Likewise.
12294         * doc/posix-functions/roundf.texi: Likewise.
12295         * doc/posix-functions/roundl.texi: Likewise.
12296         * doc/posix-functions/send.texi: Likewise.
12297         * doc/posix-functions/sendto.texi: Likewise.
12298         * doc/posix-functions/setenv.texi: Likewise.
12299         * doc/posix-functions/snprintf.texi: Likewise.
12300         * doc/posix-functions/tcgetsid.texi: Likewise.
12301         * doc/posix-functions/trunc.texi: Likewise.
12302         * doc/posix-functions/truncf.texi: Likewise.
12303         * doc/posix-functions/truncl.texi: Likewise.
12304         * doc/posix-functions/ttyname_r.texi: Likewise.
12305         * doc/posix-functions/unsetenv.texi: Likewise.
12306         * doc/posix-functions/wcsrtombs.texi: Likewise.
12307         * doc/posix-headers/sys_select.texi: Likewise.
12308         * doc/posix-headers/wchar.texi: Likewise.
12309         * doc/posix-headers/wctype.texi: Likewise.
12310         * doc/**/*.texi: Update.
12312 2019-07-05  Bruno Haible  <bruno@clisp.org>
12314         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
12315         * doc/**/*.texi: Update.
12317 2019-07-05  Bruno Haible  <bruno@clisp.org>
12319         doc: Remove documentation of Solaris 8 and older as supported platforms.
12320         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
12321         unsupported.
12322         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
12323         workarounds.
12324         * doc/posix-functions/memcmp.texi: Likewise.
12325         * doc/posix-functions/rename.texi: Likewise.
12326         * doc/posix-functions/tzset.texi: Likewise.
12327         * doc/posix-headers/wctype.texi: Likewise.
12328         * doc/**/*.texi: Update.
12330 2019-07-05  Bruno Haible  <bruno@clisp.org>
12332         doc: Remove documentation of Interix 3.5 as a supported platform.
12333         * doc/**/*.texi: Update.
12335 2019-07-05  Bruno Haible  <bruno@clisp.org>
12337         doc: Remove documentation of BeOS as a supported platform.
12338         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
12339         unsupported.
12340         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
12341         * doc/posix-functions/getdelim.texi: Likewise.
12342         * doc/**/*.texi: Update.
12344 2019-07-05  Bruno Haible  <bruno@clisp.org>
12346         thread, lock, cond, tls: Remove support for Pth threads.
12347         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
12348         --enable-threads=pth any more.
12349         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
12350         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
12351         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
12352         threads and ISO C11 threads.
12353         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
12354         * lib/glthread/lock.h: Likewise.
12355         * lib/glthread/lock.c: Likewise.
12356         * lib/glthread/cond.h: Likewise.
12357         * lib/glthread/cond.c: Likewise.
12358         * lib/glthread/tls.h: Likewise.
12359         * lib/glthread/tls.c: Likewise.
12360         * lib/glthread/yield.h: Likewise.
12361         * lib/regex_internal.h: Likewise.
12362         * tests/test-thread_create.c: Likewise.
12363         * tests/test-lock.c: Likewise.
12364         * tests/test-cond.c: Likewise.
12365         * tests/test-tls.c: Likewise.
12366         * tests/test-rwlock1.c: Don't include glthread/yield.h.
12367         (main): Sleep without calling gl_thread_yield.
12369 2019-07-05  Bruno Haible  <bruno@clisp.org>
12371         thread, lock, cond, tls: Remove support for old Solaris threads.
12372         Solaris >= 2.5.1 has POSIX threads.
12373         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
12374         --enable-threads=solaris any more.
12375         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
12376         * lib/glthread/thread.c: Update comment.
12377         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
12378         * lib/glthread/lock.h: Likewise.
12379         * lib/glthread/lock.c: Likewise.
12380         * lib/glthread/cond.h: Likewise.
12381         * lib/glthread/cond.c: Likewise.
12382         * lib/glthread/tls.h: Likewise.
12383         * lib/glthread/tls.c: Likewise.
12384         * lib/glthread/yield.h: Likewise.
12385         * lib/regex_internal.h: Likewise.
12386         * tests/test-thread_create.c: Likewise.
12387         * tests/test-lock.c: Likewise.
12388         * tests/test-cond.c: Likewise.
12389         * tests/test-tls.c: Likewise.
12391 2019-07-05  Bruno Haible  <bruno@clisp.org>
12393         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
12394         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
12395         needed size is equal to the allocated size.
12396         * lib/getcwd.c (__getcwd): Likewise.
12398 2019-07-05  Bruno Haible  <bruno@clisp.org>
12400         xgetdomainname: Don't return an excessive memory allocation.
12401         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
12402         before returning it.
12404 2019-07-05  Bruno Haible  <bruno@clisp.org>
12406         xgethostname: Don't return an excessive memory allocation.
12407         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
12408         returning it.
12410 2019-07-05  Bruno Haible  <bruno@clisp.org>
12412         areadlinkat-with-size: Don't return an excessive memory allocation.
12413         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
12414         before returning it.
12416 2019-07-05  Bruno Haible  <bruno@clisp.org>
12418         areadlink-with-size: Don't return an excessive memory allocation.
12419         Reported by Andreas Dilger <adilger@whamcloud.com>.
12420         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
12421         before returning it.
12423 2019-07-03  Bruno Haible  <bruno@clisp.org>
12425         renameatu: Fix test failure on MSVC.
12426         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
12427         empty string.
12429 2019-07-03  Bruno Haible  <bruno@clisp.org>
12431         mbrtowc: Fix invalid use of mbtowc() on MSVC.
12432         * lib/mbrtowc.c: Include glthread/lock.h.
12433         (mbtowc_lock): New variable.
12434         (mbrtowc): Treat UTF-8 encoding without locking. For the other
12435         encodings, explicitly reset the internal state of mbtowc, and protect
12436         this through a lock.
12437         * modules/mbrtowc (Depends-on): Add lock.
12439 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
12441         argmatch: don't define _ in the header.
12442         Reported by Jim Meyering.
12443         * lib/argmatch.h (N_, _): Don't define.
12444         Use gettext instead.
12445         * lib/argmatch.h (_): Define.
12446         * tests/test-argmatch.c (N_): Define.
12448 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
12450         verify: document ‘assume’ better
12451         * lib/verify.h: Reword doc (Bug#36370).
12453 2019-07-02  Bruno Haible  <bruno@clisp.org>
12455         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
12456         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
12457         "CPutf8".
12458         * lib/nl_langinfo.c (ctype_codeset): Likewise.
12460 2019-07-02  Bruno Haible  <bruno@clisp.org>
12462         getcwd: Fix crash when invoked with size = 0 on MSVC.
12463         * lib/getcwd.c: Include msvc-inval.h.
12464         (getcwd_nothrow): New function/macro.
12465         (getcwd_system): New macro.
12466         (__getcwd): Use it instead of getcwd.
12467         * modules/getcwd (Depends-on): Add msvc-inval.
12468         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
12470 2019-07-02  Bruno Haible  <bruno@clisp.org>
12472         nonblocking-pipe tests: Fix test failure on MSVC.
12473         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
12474         native Windows.
12476 2019-07-02  Bruno Haible  <bruno@clisp.org>
12478         usleep: Implement with millisecond resolution on native Windows.
12479         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
12480         * doc/pastposix-functions/usleep.texi: Update accordingly.
12482 2019-07-02  Bruno Haible  <bruno@clisp.org>
12484         lstat tests: Fix test failure on MSVC.
12485         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
12486         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
12488 2019-07-02  Bruno Haible  <bruno@clisp.org>
12490         stat tests: Fix test failure on MSVC.
12491         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
12492         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
12494 2019-07-02  Bruno Haible  <bruno@clisp.org>
12496         getaddrinfo tests: Fix test failure on MSVC.
12497         * tests/test-getaddrinfo.c: Include sockets.h.
12498         (main): Invoke gl_sockets_startup.
12499         * modules/getaddrinfo-tests (Depends-on): Add sockets.
12501 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
12503         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
12504         * lib/poll.c: Call Windows native select() with Windows native timeval.
12506 2019-06-30  Bruno Haible  <bruno@clisp.org>
12508         argmatch: Fix compilation errors.
12509         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
12510         * tests/test-argmatch.c (main): Update after last-minute function names
12511         change.
12513 2019-06-30  Bruno Haible  <bruno@clisp.org>
12515         Include <stdlib.h> when needed.
12516         * lib/cnd.c: Include <stdlib.h>, needed for abort().
12517         * lib/fcntl.c: Likewise.
12518         * lib/mbscasestr.c: Likewise.
12519         * lib/mbssep.c: Likewise.
12520         * lib/mbsstr.c: Likewise.
12521         * lib/openat.c: Include <stdlib.h>, needed for free().
12522         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
12523         abort().
12525 2019-06-30  Bruno Haible  <bruno@clisp.org>
12527         Include <stdlib.h> when needed.
12528         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
12529         * lib/faccessat.c: Likewise.
12530         * lib/fchmodat.c: Likewise.
12531         * lib/fchownat.c: Likewise.
12532         * lib/fstatat.c: Likewise.
12533         * lib/mkfifoat.c: Likewise.
12534         * lib/mknodat.c: Likewise.
12535         * lib/readlinkat.c: Likewise.
12536         * lib/symlinkat.c: Likewise.
12537         * lib/utimensat.c: Likewise.
12538         * lib/mkdirat.c: Likewise. Include also the specification header.
12540 2019-06-30  Bruno Haible  <bruno@clisp.org>
12542         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
12543         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
12544         from gl_PREREQ_SYS_H_SOCKET.
12545         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
12546         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
12547         gl_PREREQ_SYS_H_WS2TCPIP.
12548         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
12549         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
12550         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
12552 2019-06-30  Bruno Haible  <bruno@clisp.org>
12554         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
12555         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
12556         REPLACE_INET_NTOP to 1 always.
12557         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
12558         REPLACE_INET_PTON to 1 always.
12560 2019-06-30  Bruno Haible  <bruno@clisp.org>
12562         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
12563         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
12564         not REPLACE_INET_NTOP.
12566 2019-06-30  Bruno Haible  <bruno@clisp.org>
12568         poll: Add comment.
12569         * lib/poll.c: Add comment about WSAPoll.
12571 2019-06-30  Bruno Haible  <bruno@clisp.org>
12573         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
12574         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
12575         * lib/poll.in.h: Include <winsock2.h>.
12576         (POLL*, pollfd): Override on native Windows.
12577         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12578         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
12579         (Makefile.am): Substitute HAVE_WINSOCK2_H.
12581 2019-06-28  Bruno Haible  <bruno@clisp.org>
12583         accept4: Fix compilation error on OpenIndiana.
12584         Reported by Michal Nowak <mnowak@startmail.com>
12585         via Mark H Weaver <mhw@netris.org>.
12586         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
12587         whether it exists as a function.
12589 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
12591         strverscmp: sync from glibc
12592         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
12593         comments, include libc-config.h, define __strverscmp to be
12594         strverscmp, and don’t assume types line uint8_t and int8_t that
12595         that C99 doesn’t guarantee.
12596         [!_LIBC]: Include libc-config.h; define __strverscmp.
12597         Include stdint.h.
12598         (__strverscmp): Assume C99.  Use uint_least8_t
12599         and int_least8_t instead of unsigned char and signed char.
12600         * modules/strverscmp (Depends-on): Add libc-config, stdint.
12602 2019-06-25  Bruno Haible  <bruno@clisp.org>
12604         tss tests: Add tests for destructors and races.
12605         * tests/test-tss.c (worker_thread): Fix typo in debug message.
12606         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
12607         functions.
12608         (main): Invoke them.
12609         * modules/tls-tests (Depends-on): Add mtx.
12611 2019-06-25  Bruno Haible  <bruno@clisp.org>
12613         tls tests: Add tests for destructors and races.
12614         * tests/test-tls.c: Include glthread/lock.h.
12615         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
12616         functions.
12617         (main): Invoke them.
12618         * modules/tls-tests (Depends-on): Add lock.
12620 2019-06-25  Bruno Haible  <bruno@clisp.org>
12622         windows-tls: Implement TLS key destructors for native Windows.
12623         * lib/windows-tls.h (glwthread_tls_process_destructors): New
12624         declaration.
12625         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
12626         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
12627         (dtor_table_init_once, dtor_table_lock: New variables.
12628         (struct dtor): New type.
12629         (dtor_table, dtors_count, dtors_used, dtors_allocated,
12630         dtor_processing_threads): New variables.
12631         (dtor_table_initialize, dtor_table_ensure_initialized,
12632         dtor_table_shrink_used, glwthread_tls_process_destructors): New
12633         functions.
12634         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
12635         handle non-NULL destructors.
12636         * modules/windows-tls (Depends-on): Add windows-once.
12637         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
12638         Use the functions declared in windows-tls.h.
12639         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
12640         GLWTHREAD_DESTRUCTOR_ITERATIONS.
12641         * lib/windows-thread.c: Include windows-tls.h.
12642         (wrapper_func, glwthread_thread_exit): Invoke
12643         glwthread_tls_process_destructors.
12644         * modules/windows-thread (Depends-on): Add windows-tls.
12646 2019-06-25  Bruno Haible  <bruno@clisp.org>
12648         threadlib: Avoid autoconf warning "was expanded before it was required".
12649         * modules/threadlib (configure.ac): Require gl_THREADLIB.
12651 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
12653         argmatch: remove duplicate const qualifier
12654         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
12656 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
12658         unistd: stddef.h and sys/types.h namespace cleanup
12659         * lib/unistd.in.h [__GLIBC__]:
12660         Do not include stddef.h or sys/types.h.
12661         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
12662         supposed to declare off_t and ssize_t.  Problem found when looking
12663         at why @GNULIB_PWRITE@ was different from the newly-added
12664         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
12666 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
12668         maintainer-makefile: restore portability to non-GNU awks
12669         Reported by Tim Rühsen.
12670         * top/maint.mk (AWK): New variable.  Use it.
12671         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
12673 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12675         Document setvbuf _IOLBF problem
12676         * doc/posix-functions/setvbuf.texi (setvbuf):
12677         Document MS-Windows portability problem with _IOLBF.
12679         Document lseek SEEK_DATA/SEEK_HOLE
12680         * doc/posix-functions/lseek.texi (lseek):
12681         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
12683 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
12685         argmatch: put all the docs member last.
12686         Reported by Bruno Haible.
12687         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
12688         member before the docs done.
12689         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
12691 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
12693         argmatch: add support to generate the usage message.
12694         * lib/argmatch.c: Move some #includes and gettext support to...
12695         * lib/argmatch.h: here.
12696         (ARGMATCH_DEFINE_GROUP): New macro.
12697         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
12698         (argmatch_backup_group): New.
12699         (CHECK): New.
12700         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
12701         argmatch_backup_argument and argmatch_backup_usage.
12702         * modules/argmatch: We depend on c99.
12703         * doc/argmatch.texi (Recognizing Option Arguments): New.
12704         * doc/gnulib.texi: Use it.
12706 2019-06-21  Bruno Haible  <bruno@clisp.org>
12708         thrd: Add comment.
12709         * lib/thrd.c (pthread_main_func): Add comment.
12711 2019-06-21  Bruno Haible  <bruno@clisp.org>
12713         threads-h: Define 'thread_local' if and only if it actually works.
12714         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
12715         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
12716         Oracle Solaris Studio C. Compile a simple program, to see whether
12717         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
12718         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
12719         * lib/threads.in.h (thread_local): Undefine if it does not work.
12720         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
12721         (Link): Mention LIBTHREADLOCAL.
12722         * tests/test-threads.c: Don't check that thread_local is defined.
12723         * tests/test-thread_local.c: New file.
12724         * modules/threads-h-tests (Files): Add it and macros.h.
12725         (Depends-on): Add thrd and stdint.
12726         (configure.ac): Test whether 'alarm' is declared.
12727         (Makefile.am): Arrange to build and link test-thread_local.
12728         * doc/posix-headers/threads.texi: Mention the platforms that don't
12729         support 'thread_local'.
12731 2019-06-20  Bruno Haible  <bruno@clisp.org>
12733         threads-h: Simplify link dependencies.
12734         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
12735         Don't set LTLIBSTDTHREAD.
12736         * modules/thrd (Link): Simplify accordingly.
12737         * modules/mtx (Link): Likewise.
12738         * modules/cnd (Link): Likewise.
12739         * modules/tss (Link): Likewise.
12740         * modules/threads (Link): Likewise.
12742 2019-06-20  Bruno Haible  <bruno@clisp.org>
12744         threads-h: Fix link error on FreeBSD 11.
12745         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
12746         also with -lpthread.
12748 2019-06-20  Bruno Haible  <bruno@clisp.org>
12750         threadlib: Fix typo (regression from today).
12751         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
12753 2019-06-20  Bruno Haible  <bruno@clisp.org>
12755         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
12756         * lib/windows-thread.c: Include <errno.h>.
12757         * lib/windows-tls.c: Likewise.
12759 2019-06-20  Bruno Haible  <bruno@clisp.org>
12761         tss tests: Small improvement.
12762         * tests/test-tss.c (test_tss): Pass a different id to each thread.
12764 2019-06-20  Bruno Haible  <bruno@clisp.org>
12766         threads: New module.
12767         * modules/threads: New file.
12769 2019-06-20  Bruno Haible  <bruno@clisp.org>
12771         tss: Add tests.
12772         * tests/test-tss.c: New file, based on tests/test-tls.c.
12773         * modules/tss-tests: New file.
12775 2019-06-20  Bruno Haible  <bruno@clisp.org>
12777         cnd: Add tests.
12778         * tests/test-cnd.c: New file, based on tests/test-cond.c.
12779         * modules/cnd-tests: New file.
12781 2019-06-20  Bruno Haible  <bruno@clisp.org>
12783         mtx: Add tests.
12784         * tests/test-mtx.c: New file, based on tests/test-lock.c.
12785         * tests/test-call_once.c: New file, based on tests/test-once.c.
12786         * modules/mtx-tests: New file.
12788 2019-06-20  Bruno Haible  <bruno@clisp.org>
12790         thrd: Add tests.
12791         * tests/test-thrd_create.c: New file, based on
12792         tests/test-thread_create.c.
12793         * tests/test-thrd_current.c: New file, based on
12794         tests/test-thread_self.c.
12795         * modules/thrd-tests: New file.
12797 2019-06-20  Bruno Haible  <bruno@clisp.org>
12799         tss: New module.
12800         * lib/tss.c: New file.
12801         * modules/tss: New file.
12802         * doc/posix-functions/tss_create.texi: Mention the new module.
12803         * doc/posix-functions/tss_set.texi: Likewise.
12804         * doc/posix-functions/tss_get.texi: Likewise.
12805         * doc/posix-functions/tss_delete.texi: Likewise.
12807 2019-06-20  Bruno Haible  <bruno@clisp.org>
12809         cnd: New module.
12810         * lib/cnd.c: New file.
12811         * modules/cnd: New file.
12812         * doc/posix-functions/cnd_init.texi: Mention the new module.
12813         * doc/posix-functions/cnd_wait.texi: Likewise.
12814         * doc/posix-functions/cnd_timedwait.texi: Likewise.
12815         * doc/posix-functions/cnd_signal.texi: Likewise.
12816         * doc/posix-functions/cnd_broadcast.texi: Likewise.
12817         * doc/posix-functions/cnd_destroy.texi: Likewise.
12819 2019-06-20  Bruno Haible  <bruno@clisp.org>
12821         mtx: New module.
12822         * lib/mtx.c: New file.
12823         * modules/mtx: New file.
12824         * doc/posix-functions/call_once.texi: Mention the new module.
12825         * doc/posix-functions/mtx_init.texi: Likewise.
12826         * doc/posix-functions/mtx_lock.texi: Likewise.
12827         * doc/posix-functions/mtx_trylock.texi: Likewise.
12828         * doc/posix-functions/mtx_timedlock.texi: Likewise.
12829         * doc/posix-functions/mtx_unlock.texi: Likewise.
12830         * doc/posix-functions/mtx_destroy.texi: Likewise.
12832 2019-06-20  Bruno Haible  <bruno@clisp.org>
12834         thrd: New module.
12835         * lib/thrd.c: New file.
12836         * m4/thrd.m4: New file.
12837         * modules/thrd: New file.
12838         * doc/posix-functions/thrd_current.texi: Mention the new module.
12839         * doc/posix-functions/thrd_detach.texi: Likewise.
12840         * doc/posix-functions/thrd_equal.texi: Likewise.
12841         * doc/posix-functions/thrd_exit.texi: Likewise.
12842         * doc/posix-functions/thrd_sleep.texi: Likewise.
12843         * doc/posix-functions/thrd_yield.texi: Likewise.
12844         * doc/posix-functions/thrd_create.texi: Mention the new module and the
12845         AIX bug.
12846         * doc/posix-functions/thrd_join.texi: Mention the new module and the
12847         AIX and Solaris bugs.
12849 2019-06-20  Bruno Haible  <bruno@clisp.org>
12851         threads-h: Add tests.
12852         * tests/test-threads.c: New file.
12853         * modules/threads-h-tests: New file.
12854         * tests/test-threads-c++.cc: New file.
12855         * modules/threads-h-c++-tests: New file.
12857 2019-06-20  Bruno Haible  <bruno@clisp.org>
12859         threads-h: New module.
12860         * lib/threads.in.h: New file.
12861         * m4/threads.m4: New file.
12862         * m4/yield.m4 (gl_YIELD): Update comment.
12863         * modules/threads-h: New file.
12864         * modules/yields (configure.ac): Use AC_REQUIRE.
12865         * doc/posix-headers/threads.texi: Mention the new module and the AIX
12866         bugs.
12868 2019-06-20  Bruno Haible  <bruno@clisp.org>
12870         windows-thread: New module.
12871         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
12872         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
12873         * lib/glthread/thread.h: Include windows-thread.h.
12874         (gl_thread_t): Define using glwthread_thread_t.
12875         (glthread_create): Define using glwthread_thread_create.
12876         (glthread_join): Define using glwthread_thread_join.
12877         (gl_thread_self): Define using glwthread_thread_self.
12878         (gl_thread_exit): Define using glwthread_thread_exit.
12879         (glthread_create_func, glthread_join_func, gl_thread_self_func,
12880         gl_thread_exit_func): Remove declarations.
12881         * lib/glthread/thread.c (self_key): Remove variable.
12882         (do_init_self_key, init_self_key): Remove functions.
12883         (struct gl_thread_struct): Remove type.
12884         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
12885         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
12886         functions.
12887         * modules/windows-thread: New file.
12888         * modules/thread (Depends-on): Add windows-thread.
12890 2019-06-20  Bruno Haible  <bruno@clisp.org>
12892         windows-tls: New module.
12893         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
12894         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
12895         * lib/glthread/tls.h: Include windows-tls.h.
12896         (gl_tls_key_t): Define using glwthread_tls_key_t.
12897         * modules/windows-tls: New file.
12898         * modules/tls (Depends-on): Add windows-tls.
12900 2019-06-20  Bruno Haible  <bruno@clisp.org>
12902         windows-cond: New module.
12903         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
12904         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
12905         * lib/glthread/cond.h: Include windows-cond.h.
12906         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
12907         (gl_cond_t): Define using glwthread_cond_t.
12908         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
12909         (glthread_cond_init): Define using glwthread_cond_init.
12910         (glthread_cond_wait): Define using glwthread_cond_wait.
12911         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
12912         (glthread_cond_signal): Define using glwthread_cond_signal.
12913         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
12914         (glthread_cond_destroy): Define using glwthread_cond_destroy.
12915         (glthread_cond_init_func, glthread_cond_wait_func,
12916         glthread_cond_timedwait_func, glthread_cond_signal_func,
12917         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
12918         declarations.
12919         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
12920         types.
12921         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
12922         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
12923         glthread_cond_init_func, glthread_cond_wait_func,
12924         glthread_cond_timedwait_func, glthread_cond_signal_func,
12925         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
12926         functions.
12927         * modules/windows-cond: New file.
12928         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
12930 2019-06-20  Bruno Haible  <bruno@clisp.org>
12932         windows-timedrecmutex: New module.
12933         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
12934         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
12935         * modules/windows-timedrecmutex: New file.
12937 2019-06-20  Bruno Haible  <bruno@clisp.org>
12939         windows-timedmutex: New module.
12940         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
12941         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
12942         * modules/windows-timedmutex: New file.
12944 2019-06-20  Bruno Haible  <bruno@clisp.org>
12946         windows-recmutex: New module.
12947         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
12948         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
12949         * lib/glthread/lock.h: Include windows-recmutex.h.
12950         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
12951         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
12952         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
12953         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
12954         (glthread_recursive_lock_unlock): Define using
12955         glwthread_recmutex_unlock.
12956         (glthread_recursive_lock_destroy): Define using
12957         glwthread_recmutex_destroy.
12958         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
12959         glthread_recursive_lock_unlock_func,
12960         glthread_recursive_lock_destroy_func): Remove declarations.
12961         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
12962         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
12963         glthread_recursive_lock_destroy_func): Remove functions.
12964         * modules/windows-recmutex: New file.
12965         * modules/lock (Depends-on): Add windows-recmutex.
12967 2019-06-20  Bruno Haible  <bruno@clisp.org>
12969         windows-mutex: New module.
12970         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
12971         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
12972         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
12973         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
12974         (gl_spinlock_t): Remove type.
12975         (gl_lock_t): Define using glwthread_mutex_t.
12976         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
12977         (glthread_lock_init): Define using glwthread_mutex_init.
12978         (glthread_lock_lock): Define using glwthread_mutex_lock.
12979         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
12980         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
12981         (glthread_lock_init_func, glthread_lock_lock_func,
12982         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
12983         declarations.
12984         Use glwthread_spinlock_t instead of gl_spinlock_t.
12985         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
12986         GLWTHREAD_SPINLOCK_INIT.
12987         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
12988         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
12989         functions.
12990         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
12991         gl_spinlock_t.
12992         * modules/windows-mutex: New file.
12993         * modules/lock (Depends-on): Add windows-mutex.
12995 2019-06-20  Bruno Haible  <bruno@clisp.org>
12997         windows-once: New module.
12998         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
12999         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
13000         * lib/glthread/lock.h: Include windows-once.h.
13001         (gl_once_t): Define using glwthread_once_t.
13002         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
13003         (glthread_once): Define using glwthread_once.
13004         (glthread_once_func): Remove declaration.
13005         * lib/glthread/lock.c (glthread_once_func): Remove function.
13006         * modules/windows-once: New file.
13007         * modules/lock (Depends-on): Add windows-once.
13009 2019-06-20  Bruno Haible  <bruno@clisp.org>
13011         lock, cond: Avoid possible counter wraparound on Windows.
13012         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
13013         field of the guard unchanged if it was already positive.
13014         (glthread_rwlock_rdlock_func): Likewise.
13015         (glthread_rwlock_wrlock_func): Likewise.
13016         (glthread_recursive_lock_lock_func): Likewise.
13017         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
13018         (glthread_cond_timedwait_func): Likewise.
13020 2019-06-20  Bruno Haible  <bruno@clisp.org>
13022         cond: Make glthread_cond_timedwait more reliable on Windows.
13023         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
13024         condition variable before looking at the current time.
13026 2019-06-20  Bruno Haible  <bruno@clisp.org>
13028         pthread_mutex_timedlock: New module.
13029         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
13030         new declaration.
13031         * lib/pthread_mutex_timedlock.c: New file.
13032         * m4/pthread_mutex_timedlock.m4: New file.
13033         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
13034         whether pthread_mutex_timedlock is declared.
13035         (gl_PTHREAD_MODULE_INDICATOR): New macro.
13036         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
13037         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
13038         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
13039         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
13040         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
13041         * modules/pthread_mutex_timedlock: New file.
13042         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
13043         module.
13045 2019-06-20  Bruno Haible  <bruno@clisp.org>
13047         thread, lock, cond, tls: Recognize C11 multithreaded applications.
13048         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
13049         * lib/glthread/thread.h (c11_threads_in_use): New macro.
13050         (pthread_in_use, pth_in_use, thread_in_use): Use it.
13051         * lib/glthread/lock.h (c11_threads_in_use): New macro.
13052         (pthread_in_use, pth_in_use, thread_in_use): Use it.
13053         * lib/glthread/cond.h (c11_threads_in_use): New macro.
13054         (pthread_in_use, pth_in_use, thread_in_use): Use it.
13055         * lib/glthread/tls.h (c11_threads_in_use): New macro.
13056         (pthread_in_use, pth_in_use, thread_in_use): Use it.
13058 2019-06-20  Bruno Haible  <bruno@clisp.org>
13060         tls tests: Small improvements.
13061         * tests/test-tls.c: Include <stdint.h>.
13062         (worker_thread): Avoid gcc warning on 64-bit mingw.
13063         (test_tls): Pass a different id to each thread.
13064         * modules/tls-tests (Depends-on): Add stdint.
13066 2019-06-20  Bruno Haible  <bruno@clisp.org>
13068         cond tests: Simplify.
13069         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
13071 2019-06-20  Bruno Haible  <bruno@clisp.org>
13073         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
13074         * tests/test-lock.c (test_once): Don't reference fire_signal if
13075         !ENABLE_LOCKING.
13077 2019-06-19  Bruno Haible  <bruno@clisp.org>
13079         nanosleep: Relicense under LGPLv2+.
13080         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
13081         * modules/nanosleep (License): Change to LGPLv2+.
13083 2019-06-19  Bruno Haible  <bruno@clisp.org>
13085         Reorder pieces of header in perl scripts.
13086         The desired order is
13087         - Prologue part 1 (2 lines with #!)
13088         - Program short description
13089         - Copyright and license notice
13090         - Written-by notice
13091         - Program short description (optional)
13092         - Program long description (optional)
13093         - Prologue part 2
13094         - Time stamp
13095         - Code
13096         Reported by Paul Eggert.
13097         * build-aux/announce-gen: Reorder header.
13098         * build-aux/gitlog-to-changelog: Likewise.
13099         * build-aux/useless-if-before-free: Likewise.
13100         * build-aux/prefix-gnulib-mk: Add copyright notice and short
13101         description.
13102         * build-aux/update-copyright: Likewise. Add short description. Bump
13103         time-stamp-line-limit to 200.
13105 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
13107         verify-tests: work around xlc bug
13108         Problem reported by Bruno Haible in:
13109         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
13110         * tests/test-verify.c (item): Move the arithmetic inside the
13111         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
13113 2019-06-16  Bruno Haible  <bruno@clisp.org>
13115         Restore Emacs time-stamp hook applicability.
13116         Reported by Darshit Shah <darnir@gnu.org>.
13117         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
13118         * build-aux/announce-gen: Likewise.
13119         * build-aux/gitlog-to-changelog: Likewise.
13120         * build-aux/prefix-gnulib-mk: Likewise.
13121         * build-aux/update-copyright: Likewise.
13123 2019-06-15  Bruno Haible  <bruno@clisp.org>
13125         Fix scripts to have valid executable format on Alpine Linux.
13126         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
13127         Idea by Paul Eggert.
13128         * build-aux/useless-if-before-free: Use a prologue that starts with
13129         '#!/bin/sh'.
13130         * build-aux/announce-gen: Likewise.
13131         * build-aux/gitlog-to-changelog: Likewise.
13132         * build-aux/prefix-gnulib-mk: Likewise.
13133         * build-aux/update-copyright: Likewise.
13134         * tests/test-update-copyright.sh: Update test program accordingly.
13136 2019-06-10  Bruno Haible  <bruno@clisp.org>
13138         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
13139         Reported by Nikita Ermakov <arei@altlinux.org> in
13140         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
13141         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
13142         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
13144 2019-06-10  Bruno Haible  <bruno@clisp.org>
13146         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
13147         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
13148         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
13149         a copy of the path argument.
13150         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
13151         it.
13153 2019-06-10  Bruno Haible  <bruno@clisp.org>
13155         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
13156         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
13157         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
13158         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
13159         a copy of the path argument.
13160         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
13161         it.
13163 2019-06-10  Bruno Haible  <bruno@clisp.org>
13165         posix_spawn_file_actions_addfchdir: Add tests.
13166         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
13167         * tests/test-posix_spawn5.c: New file.
13168         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
13170 2019-06-10  Bruno Haible  <bruno@clisp.org>
13172         posix_spawn_file_actions_addfchdir: New module.
13173         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
13174         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
13175         union member 'fchdir_action'.
13176         * lib/spawn_faction_addfchdir.c: New file.
13177         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
13178         * m4/posix_spawn_faction_addfchdir.m4: New file.
13179         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
13180         'posix_spawn_file_actions_addfchdir' is present and whether
13181         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
13182         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
13183         posix_spawn_file_actions_addfchdir is declared.
13184         (gl_SPAWN_H_DEFAULTS): Initialize
13185         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
13186         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
13187         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
13188         * modules/spawn (Makefile.am): Substitute
13189         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
13190         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
13191         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
13192         * modules/posix_spawn_file_actions_addfchdir: New file.
13193         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
13194         signature.
13195         * doc/posix-functions/posix_spawn.texi: Mention the new module.
13196         * doc/posix-functions/posix_spawnp.texi: Likewise.
13197         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
13198         Likewise.
13200 2019-06-10  Bruno Haible  <bruno@clisp.org>
13202         doc: Document existence of posix_spawn_file_actions_addchdir module.
13203         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
13204         the posix_spawn_file_actions_addchdir module.
13206 2019-06-10  Bruno Haible  <bruno@clisp.org>
13208         posix_spawn-internal: Fix module description.
13209         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
13210         from here...
13211         * modules/posix_spawnp (configure.ac): ... and here...
13212         * modules/posix_spawn-internal (configure.ac): ... to here.
13214 2019-06-10  Bruno Haible  <bruno@clisp.org>
13216         doc: Update and improve documentation of glibc functions.
13217         This is a series of commits that
13218         - updates the documentation to the state of glibc 2.29,
13219         - adds references to Linux man pages and glibc documentation,
13220         - marks Linux specific functions as such.
13221         These are the commits:
13222         doc: Update after removal of crypt functions from glibc 2.28.
13223         doc: Remove mention of function vm86 (does not exist on x86_64).
13224         doc: Remove mention of functions that are gone from glibc.
13225         doc: Mention that glibc no longer provides h_errno.
13226         doc: Mention the availability of specific functions in glibc versions.
13227         doc: Mention eaccess.
13228         doc: Add references to Linux man pages.
13229         doc: Add references to glibc documentation.
13230         doc: Mention inotify_* functions.
13231         doc: Mention ppoll.
13232         doc: Mention sched_getcpu.
13233         doc: Mention sync_file_range.
13234         doc: Mention epoll_pwait.
13235         doc: Mention eventfd, eventfd_read, eventfd_write.
13236         doc: Mention signalfd.
13237         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
13238         doc: Mention epoll_create1.
13239         doc: Mention getauxval.
13240         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
13241         doc: Mention nextdown, nextup.
13242         doc: Mention more ISO TS 18661-1 <math.h> functions.
13243         doc: Mention ISO TS 18661-1 <fenv.h> functions.
13244         doc: Mention getrandom, getentropy.
13245         doc: Mention strfromf, strfromd, strfroml.
13246         doc: Mention preadv2, pwritev2.
13247         doc: Mention copy_file_range.
13248         doc: Mention memfd_create.
13249         doc: Mention mlock2.
13250         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
13251         doc: Mention more ISO TS 18661-1 <math.h> functions.
13252         doc: Mention renameat2.
13253         doc: Mention statx.
13254         doc: Mention the ISO C11 multithreading header and functions.
13255         doc: Mention getcpu.
13256         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
13257         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
13258         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
13259         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
13260         doc: Some glibc functions also exist on Solaris 11.
13261         doc: Some glibc functions also exist on Solaris 11.4.
13262         doc: Some glibc functions also exist on FreeBSD.
13263         doc: Some glibc functions also exist on BeOS.
13264         doc: Some glibc functions also exist on Haiku.
13265         doc: Mark functions which exist only on Linux.
13266         doc: Mark functions which exist only on Linux and illumos.
13268 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
13270         copy-file: fix typo
13271         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
13273         copy-file-range: simplify into a stub
13274         Based on a comment by Florian Weimer in:
13275         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
13276         It turns out that Emacs (which will use this module) won’t need an
13277         emulation and I suspect other programs won’t either, because these
13278         programs will need to fall back on read+write anyway.  Perhaps I
13279         am wrong and other programs will be able to use an emulation; if
13280         so, this patch can be reverted.
13281         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
13282         Just call it copy_file_range.
13283         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
13284         Check via AC_LINK_IFELSE.
13285         * modules/copy-file-range (Depends-on): Remove modules no longer used.
13287 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
13289         copy-file: prefer copy_file_range
13290         * lib/copy-file.c: Do not include xalloc.h.
13291         (qcopy_file_preserving): Allocate a buffer only if
13292         copy_file_range does not suffice.  If the allocation fails
13293         don't give up; just use a small stack-based buffer.
13294         Prefer copy_file_range if it works.
13295         * modules/copy-file (Depends-on): Add copy-file-range.
13296         Remove xalloc.
13298         copy-file-range: new module
13299         * MODULES.html.sh: Add copy-file-range.
13300         * lib/copy-file-range.c, m4/copy-file-range.m4:
13301         * modules/copy-file-range: New files.
13302         * lib/unistd.in.h (copy_file_range): Declare.
13303         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
13304         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
13305         * modules/unistd (unistd.h): Substitute them.
13307 2019-05-28  Bruno Haible  <bruno@clisp.org>
13309         binary-io: Attempted use of O_BINARY on consoles no longer fails.
13310         Reported by KO Myung-Hun <komh78@gmail.com> in
13311         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
13312         * lib/binary-io.h (__gl_setmode_check): Remove function.
13313         (set_binary_mode): Declare as notinline on DJGPP and EMX.
13314         * lib/binary-io.c (__gl_setmode_check): Remove function.
13315         (set_binary_mode): Define here on DJGPP and EMX. Inline
13316         __gl_setmode_check. In case of a tty, don't return an error code.
13318 2019-05-28  James Youngman  <jay@gnu.org>
13320         dirent-safer: Make opendir_safer usable from C++.
13321         * lib/dirent-safer.h: use extern "C".
13323 2019-05-28  James Youngman  <jay@gnu.org>
13325         canonicalize: Make canonicalize_filename_mode usable from C++.
13326         * lib/canonicalize.h: use extern "C".
13328 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
13330         prefix-gnulib-mk: Fix CPPFLAGS migration.
13331         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
13332         _a part of the library name.
13334 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
13336         flexmember: update comments again
13337         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
13339         flexmember: update comment
13340         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
13342 2019-05-20  Bruno Haible  <bruno@clisp.org>
13344         setlocale: Improve fallback on macOS.
13345         * lib/setlocale.c (search): Optimize away a redundant strcmp()
13346         invocation.
13347         (locales_with_principal_territory): New array.
13348         (langcmp, get_main_locale_with_same_language): New functions.
13349         (locales_with_principal_language): New array.
13350         (terrcmp, get_main_locale_with_same_territory): New functions.
13351         (rpl_setlocale): When setlocale_single failed, try again with a locale
13352         that is more likely to exist. Don't warn if the environment variable
13353         SETLOCALE_VERBOSE is not set.
13355 2019-05-19  Bruno Haible  <bruno@clisp.org>
13357         localename: Fix default on macOS.
13358         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
13359         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
13360         (gl_locale_name_environ, gl_locale_name_default): Remove code for
13361         HAVE_CFLOCALECOPYCURRENT.
13362         * lib/localename.h (gl_locale_name_default): Update.
13364 2019-05-19  Karl Berry  <karl@freefriends.org>
13366         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
13367         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
13368         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
13370 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
13372         maintainer-makefile: catch uses of $< in non-implicit rules
13373         * top/maint.mk (sc_prohibit_magic_number_exit): New.
13375 2019-05-18  Bruno Haible  <bruno@clisp.org>
13377         threadlib: Provide an easy way to avoid mingw's winpthreads library.
13378         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
13379         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
13380         gl_use_threads accordingly.
13382 2019-05-18  Bruno Haible  <bruno@clisp.org>
13384         pthread_sigmask: Fix compilation error with --enable-threads=windows.
13385         Reported by Tim Rühsen in
13386         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
13387         and Michele Locati in
13388         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
13389         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
13390         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
13391         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
13392         in use and regardless which threads API is chosen.
13394 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13396         close-stream, closein, closeout: simplify
13397         I noticed this opportunity for simplification while drafting a
13398         new, related module that I haven’t had time to finish yet.
13399         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
13400         * modules/close-stream (Files): Remove m4/close-stream.m4.
13401         (configure.ac): Omit gl_CLOSE_STREAM.
13402         * modules/closein (Files): Remove m4/closein.m4
13403         (configure.ac): Omit gl_CLOSEIN.
13404         * modules/closeout (Files): Remove m4/closeout.m4.
13405         (configure.ac): Omit gl_CLOSEOUT.
13407 2019-05-12  Bruno Haible  <bruno@clisp.org>
13409         libtool-next-version: New program.
13410         * build-aux/libtool-next-version: New file.
13412 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
13413             Bruno Haible  <bruno@clisp.org>
13415         version-etc: Ease translation.
13416         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
13417         URLs and formatting newlines out of translatable string.
13419 2019-05-11  Bruno Haible  <bruno@clisp.org>
13421         gnupload: Explain how to create symlinks.
13422         * build-aux/gnupload (usage): Add an example that creates symlinks.
13424 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
13426         fpucw: port to gcc -pedantic
13427         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
13428         Use __extension__ if using ({ ... }).
13430         crypto/af_alg: port to strict C compilers
13431         * lib/af_alg.c: Include af_alg.h regardless, so that the
13432         compilation unit is nonempty.
13434 2019-05-10  Bruno Haible  <bruno@clisp.org>
13436         base64: Avoid false positive warning from Coverity.
13437         Reported by Kamil Dudka <kdudka@redhat.com>.
13438         Idea by Paul Eggert.
13439         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
13440         '& 0x3f' to the array index expressions. This convinces Coverity that
13441         there is no out-of-bounds array reference, regardless of the input.
13443 2019-05-09  Bruno Haible  <bruno@clisp.org>
13445         gettext: Update to gettext 0.20.
13446         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
13447         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
13448         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
13449         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
13450         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
13451         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
13452         (configure.ac): Request infrastructure compatible with gettext 0.20.
13453         * m4/glibc2.m4: Remove file.
13454         * m4/intdiv0.m4: Remove file.
13455         * m4/intl.m4: Remove file.
13456         * m4/intldir.m4: Remove file.
13457         * m4/intmax.m4: Remove file.
13458         * m4/printf-posix.m4: Remove file.
13459         * m4/uintmax_t.m4: Remove file.
13460         * m4/gettext.m4: Update from gettext 0.20.
13461         * m4/po.m4: Likewise.
13463 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
13465         verify: remove verify_true
13466         * NEWS: Mention this.
13467         * lib/verify.h (verify_true): Remove.
13468         * tests/test-verify.c (item): Test verify_expr, not verify_true.
13470         Support C2X and C++17 static_assert
13471         C2X and C++17 finally added support for a simple, single-argument
13472         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
13473         doing back in 2005.  Implement static_assert on older platforms.
13474         The only remaining advantage of ‘verify’ is a shorter name.
13475         * doc/posix-headers/assert.texi (assert.h):
13476         * doc/verify.texi (Compile-time Assertions):
13477         Modernize for C2X and C++17.
13478         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
13479         New macros.
13480         (_GL_HAVE__STATIC_ASSERT): Remove.
13481         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
13482         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
13483         string.  All callers changed.
13484         (_GL_VERIFY): Require 3 or more args, of which only the first 2
13485         are used.  All callers changed.
13486         (_Static_assert): Allow either 1 or 2 args, and define if
13487         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
13488         !_GL_HAVE__STATIC_ASSERT.
13489         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
13490         of defining if !_GL_HAVE_STATIC_ASSERT.
13491         (verify_expr, verify): Don’t bother trying to copy the expression
13492         into the diagnostic, since 1-argument static_assert doesn’t.
13493         (verify): Prefer 1-argument _Static_assert if it works.
13494         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
13496 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
13498         Fix _GL_HAVE__STATIC_ASSERT typo
13499         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
13500         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
13502 2019-05-05  Bruno Haible  <bruno@clisp.org>
13504         wcwidth: Ensure width 1, not 2, for ambiguous characters.
13505         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
13506         via Akim Demaille <akim.demaille@gmail.com>.
13507         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
13508         en_US.UTF-8 locale, since that is more likely to be present than an
13509         fr_FR.UTF-8 locale.
13510         * tests/test-wcwidth.c (main): Check the width of U+2202.
13511         * doc/posix-functions/wcwidth.texi: Mention the issue.
13513 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
13515         Port manywarnings to GCC 9
13516         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
13517         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
13518         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
13519         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
13520         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
13521         --help=warnings output.
13522         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
13523         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
13524         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
13526 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
13528         Sync lib/mktime-internal.h from glibc
13529         * config/srclist.txt: Add entry for lib/mktime-internal.h.
13530         * lib/mktime-internal.h: Autoupdate.
13532 2019-04-28  Bruno Haible  <bruno@clisp.org>
13534         tls tests: Prevent that the test takes too long.
13535         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
13536         (main): Let the test fail if it takes more than 10 minutes.
13537         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
13539 2019-04-27  Bruno Haible  <bruno@clisp.org>
13541         lock tests: Prevent that the test takes too long.
13542         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
13543         (main): Let the test fail if it takes more than 10 minutes.
13544         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
13546 2019-04-27  Bruno Haible  <bruno@clisp.org>
13548         localename: Fix crash on mingw (regression from 2018-11-23).
13549         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
13550         locale name that is null.
13552 2019-04-27  Bruno Haible  <bruno@clisp.org>
13554         Fix gcc warnings on 64-bit mode mingw.
13555         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
13556         * lib/gl_array_list.c: Likewise.
13557         * lib/gl_array_map.c: Likewise.
13558         * lib/gl_array_set.c: Likewise.
13559         * lib/gl_carray_list.c: Likewise.
13560         * lib/gl_sublist.c: Likewise.
13561         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
13562         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
13563         * lib/gl_hash_map.c (uintptr_t): Likewise.
13564         * lib/gl_hash_set.c (uintptr_t): Likewise.
13565         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
13566         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
13567         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
13568         * lib/iconv.c (uintptr_t): Likewise.
13569         * lib/iconv_close.c (uintptr_t): Likewise.
13570         * tests/test-lock.c: Include <stdint.h>.
13571         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
13572         'long'.
13573         * modules/clean-temp (Depends-on): Add stdint.
13574         * modules/array-list (Depends-on): Likewise.
13575         * modules/array-map (Depends-on): Likewise.
13576         * modules/array-set (Depends-on): Likewise.
13577         * modules/carray-list (Depends-on): Likewise.
13578         * modules/sublist (Depends-on): Likewise.
13579         * modules/lock-tests (Depends-on): Likewise.
13581 2019-04-27  Bruno Haible  <bruno@clisp.org>
13583         error: Tweak indentation.
13584         * lib/error.c: Correct indentation.
13586 2019-04-27  Bruno Haible  <bruno@clisp.org>
13588         term-style-control: Fix gcc warning on mingw.
13589         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
13590         of i.
13592 2019-04-26  Bruno Haible  <bruno@clisp.org>
13594         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
13595         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
13597 2019-04-26  Bruno Haible  <bruno@clisp.org>
13599         relocatable-prog: Fix gcc warning on mingw.
13600         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
13601         on EMX.
13603 2019-04-02  Bruno Haible  <bruno@clisp.org>
13605         gitsub.sh: New file.
13606         * top/gitsub.sh: New file.
13608 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
13610         argmatch: use void* for raw memory pointers
13611         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
13612         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
13613         to "values", keep char* for strings.
13615 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
13617         prefix-gnulib-mk: fix the support for gnulib-po
13618         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
13619         Don't touch HAVE_* variables.
13620         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
13622 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
13624         di-set: allow free with 'ino_map' being NULL.
13625         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
13626         is NULL.  Bug introduced in commit 3703dbbe88dd.
13627         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
13628         as a test.
13630 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
13632         * lib/str-two-way.h: Fix comment typo.
13634 2019-04-13  Bruno Haible  <bruno@clisp.org>
13636         x-to-1: Restore ability to use original calling convention.
13637         * build-aux/x-to-1.in: Add comments. Accept the original form of
13638         HELP2MAN argument as well as the form expected since 2012-12-12.
13640 2019-04-13  Bruno Haible  <bruno@clisp.org>
13642         x-to-1: Avoid failure due to missing perl modules.
13643         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
13644         needs are installed.
13646 2019-04-13  Bruno Haible  <bruno@clisp.org>
13648         openmp-init: New module.
13649         * modules/openmp-init: New file.
13650         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
13651         the changes from 2019-04-09.
13653 2019-04-12  Bruno Haible  <bruno@clisp.org>
13655         signbit: Fix compilation error when gnulib's math.h exists twice.
13656         * lib/math.in.h (GNULIB_defined_signbit): New macro.
13658 2019-04-12  Bruno Haible  <bruno@clisp.org>
13660         openmp: Fix compilation error on platforms without OpenMP.
13661         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
13663 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
13665         mountlist: make parsing /proc/self/mountinfo more robust
13666         Cater for the following issues with mountinfo parsing (the first
13667         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
13668         in <https://bugs.gnu.org/35137>).
13669         1. The fields source, target, mntroot and fstype may contain characters
13670         like '\r'; sscanf(3) fails to read such values with the %s format
13671         specifier because it would stop at such characters.
13672         Example: "mount -t tmpfs tmpfs /foo^Mbar".
13673         The only true separator in that file is the ' ' character.
13674         2. The source field may be an empty string, which happens e.g. with
13675         "mount -t tmpfs '' /target".
13676         3. The fstype field may contain mangled characters as well which need
13677         unescaping.
13678         * lib/mountlist.c (terminate_at_blank): Add utility function.
13679         (read_file_system_list): In the block trying to read the mountinfo file,
13680         avoid using sscanf(3) with %s format; instead, parse the above fields
13681         separated by spaces one by one.
13682         This also handles the case when the source field is an empty string.
13683         Unescape the fstype field.
13685 2019-04-09  Bruno Haible  <bruno@clisp.org>
13687         openmp: Add workaround for 32-bit programs on AIX.
13688         * lib/omp.in.h: New file.
13689         * lib/omp-init.c: New file, based on lib/nproc.c.
13690         * m4/omp_h.m4: New file.
13691         * modules/openmp (Files): Add them.
13692         (Depends-on): Add include_next, c-ctype, setenv.
13693         (configure.ac): Invoke gl_OMP_H.
13694         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
13695         (Include): Mention <omp.h>.
13697 2019-04-09  Bruno Haible  <bruno@clisp.org>
13699         nproc: Fix return value for privileged processes.
13700         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
13701         getpid().
13703 2019-04-07  Bruno Haible  <bruno@clisp.org>
13705         Add copyright notices in several files.
13706         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
13707         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
13708         * lib/libunistring.valgrind: Likewise.
13709         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
13710         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
13711         * lib/memchr.valgrind: Likewise.
13712         * lib/memchr2.valgrind: Likewise.
13713         * lib/rawmemchr.valgrind: Likewise.
13714         * lib/relocatable.valgrind: Likewise.
13715         * lib/strchrnul.valgrind: Likewise.
13717 2019-03-25  Bruno Haible  <bruno@clisp.org>
13719         term-style-control tests: Fix link error.
13720         Reported by Tom G. Christensen in
13721         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
13722         * modules/term-style-control-tests (Makefile.am): Link
13723         test-term-style-control-hello and test-term-style-control-yes against
13724         LIBINTL.
13726 2019-03-24  Bruno Haible  <bruno@clisp.org>
13728         term-style-control: Add tests.
13729         * tests/test-term-style-control-hello.c: New file.
13730         * tests/test-term-style-control-yes.c: New file.
13731         * modules/term-style-control-tests: New file.
13733         term-style-control: New module.
13734         * lib/term-style-control.h: New file, based on libtextstyle's
13735         term-ostream.oo.h and term-ostream.oo.c.
13736         * lib/term-style-control.c: New file, based on libtextstyle's
13737         term-ostream.oo.c.
13738         * modules/term-style-control: New file.
13740 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
13742         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
13743         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
13744         C++98 appears to be supported by Clang, but not by GCC nor ICC.
13746 2019-03-23  Bruno Haible  <bruno@clisp.org>
13748         Support cross-compilation to musl libc.
13749         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
13750         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
13751         musl libc.
13752         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
13753         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
13754         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
13755         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13756         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13757         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
13758         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
13759         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
13760         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13761         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
13762         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
13763         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
13764         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
13765         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13766         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
13767         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
13768         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
13769         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
13770         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
13771         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
13772         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13773         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
13774         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
13775         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13776         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
13777         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
13778         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
13779         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
13780         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
13781         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
13782         * m4/log.m4 (gl_FUNC_LOG): Likewise.
13783         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
13784         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
13785         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
13786         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
13787         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
13788         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
13789         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
13790         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
13791         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
13792         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
13793         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
13794         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
13795         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
13796         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
13797         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
13798         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
13799         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
13800         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
13801         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
13802         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
13803         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
13804         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
13805         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
13806         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
13807         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
13808         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
13809         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
13810         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
13811         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
13812         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13813         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13814         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13815         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
13816         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13817         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
13818         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13819         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
13820         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
13821         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
13822         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13823         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13824         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13825         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
13826         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
13827         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
13828         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
13829         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13831 2019-03-23  Bruno Haible  <bruno@clisp.org>
13833         posix_spawn_file_actions_*: Document musl libc bugs.
13834         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
13835         the bug.
13836         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
13837         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
13838         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
13839         cross-compiling to a musl system, guess no.
13840         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
13841         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
13843 2019-03-23  Bruno Haible  <bruno@clisp.org>
13845         futimens: Document musl libc bug.
13846         * doc/posix-functions/futimens.texi: Mention the bug.
13847         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
13848         cross-compiling, guess no on glibc and musl systems.
13850 2019-03-23  Bruno Haible  <bruno@clisp.org>
13852         Clarify that cross-compilation guesses are guesses.
13853         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
13854         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
13855         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
13856         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
13857         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
13858         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
13859         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
13860         gl_cv_glob_lists_symlinks.
13861         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
13862         'guessing ' to ac_cv_func_malloc_0_nonnull.
13863         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
13864         'guessing ' to ac_cv_func_realloc_0_nonnull.
13865         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
13866         'guessing ' to gl_cv_func_poll.
13867         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
13868         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
13869         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
13871 2019-03-23  Bruno Haible  <bruno@clisp.org>
13873         strtold: Fix typo.
13874         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
13876 2019-03-23  Bruno Haible  <bruno@clisp.org>
13878         noreturn: In C++ mode with clang, use _Noreturn as fallback.
13879         Reported by Akim Demaille.
13880         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
13881         [[noreturn]] would not work, use _Noreturn instead.
13883 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
13885         libtextstyle-optional: Fix compiler warnings.
13886         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
13887         as unused.
13889 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
13891         bitset: fix memory leaks
13892         Reported by Bruno Haible.
13893         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
13894         * lib/bitset/vector.c (vbitset_free): New.
13895         (vbitset_vtable): Use it.
13897 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
13899         bitset: minor changes
13900         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
13901         * lib/bitset/table.c: Formatting changes.
13902         Remove useless braces.
13903         Prefer using else in cascades of if/else-if with returns.
13904         * lib/bitset/vector.c: Reduce scopes.
13906 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
13908         bitset: expose bitset_resize
13909         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
13910         * tests/test-bitset.c (check_attributes): Check bitset_resize.
13911         (main): Use a variable bitset as reference, since fixed does not support resize.
13913 2019-03-19  Bruno Haible  <bruno@clisp.org>
13915         doc: Document the 'stdnoreturn' and 'noreturn' modules.
13916         Reported by Akim Demaille.
13917         * doc/noreturn.texi: New file.
13918         * doc/gnulib.texi: Include it.
13920 2019-03-19  Bruno Haible  <bruno@clisp.org>
13922         doc: Document how to use 'static inline'.
13923         * doc/static-inline.texi: New file.
13924         * doc/gnulib.texi: Include it.
13926 2019-03-19  Bruno Haible  <bruno@clisp.org>
13928         libtextstyle-optional: Add tests.
13929         * tests/test-libtextstyle.c: New file, based on libtextstyle's
13930         adhoc-tests/hello.c.
13931         * tests/test-libtextstyle-default.css: New file, copied from
13932         libtextstyle's adhoc-tests/hello-default.css.
13933         * modules/libtextstyle-optional-tests: New file.
13935         libtextstyle-optional: New module.
13936         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
13937         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
13938         * modules/libtextstyle-optional: New file.
13940 2019-03-19  Bruno Haible  <bruno@clisp.org>
13942         c-stack: Make signal handlers more reliable.
13943         * lib/c-stack.c (progname): New variable.
13944         (die): Use it.
13945         (c_stack_action): Initialize it.
13946         (segv_handler): Save and restore errno.
13948 2019-03-19  Bruno Haible  <bruno@clisp.org>
13950         Help making signal handlers more reliable.
13951         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
13952         _GL_ASYNC_SAFE into config.h.
13953         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
13954         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
13955         argument.
13956         * lib/fatal-signal.c (action_t, uninstall_handlers,
13957         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
13958         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
13959         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
13960         _GL_ASYNC_SAFE.
13961         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
13962         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
13964 2019-03-18  Bruno Haible  <bruno@clisp.org>
13966         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
13967         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
13968         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
13970 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
13972         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
13973         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
13974         GCC 4.8.
13976 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
13978         fts: minor simplification
13979         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
13981 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
13983         bitset, timevar: Depend on c99.
13984         Reported by Bruno Haible.
13985         * modules/bitset, modules/timevar (Depends-on): Add c99.
13987 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
13989         bitset: a bit (...) more tests
13990         * tests/test-bitset.c (check_attributes): Check zero and ones.
13992 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
13994         bitset: fix overflows.
13995         Reported by Bruno Haible.
13996         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
13997         * lib/bitset/table.c (tbitset_test): last_bit is the position of
13998         the bit in the array of bitset_word, so be sure to take its modulo
13999         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
14000         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
14002 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
14004         bitset: style changes.
14005         * lib/bitset/table.c: Use NULL, not 0, for pointers.
14006         Formatting changes.
14007         (tbitset_list): Reduce scopes.
14009 2019-03-16  Bruno Haible  <bruno@clisp.org>
14011         fatal-signal: Pass the signal number to the action.
14012         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
14013         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
14014         (fatal_signal_handler): Pass the signal number to the action.
14015         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
14016         signal number as parameter.
14017         (create_temp_dir): Update.
14018         * lib/wait-process.c (cleanup_slaves_action): New function.
14019         (register_slave_subprocess): Update at_fatal_signal invocation.
14020         * NEWS: Mention the change.
14022 2019-03-16  Bruno Haible  <bruno@clisp.org>
14024         fatal-signal: Add function that lists the fatal signals.
14025         * lib/fatal-signal.h (get_fatal_signals): New declaration.
14026         * lib/fatal-signal.c (get_fatal_signals): New function.
14028 2019-03-14  Bruno Haible  <bruno@clisp.org>
14030         isatty: Make it return true in Cygwin consoles on native Windows.
14031         * lib/isatty.c: Include <string.h>.
14032         (GetProcAddress): New macro.
14033         (GetNamedPipeClientProcessIdFuncType): New type.
14034         (GetNamedPipeClientProcessIdFunc): New variable.
14035         (QueryFullProcessImageNameFuncType): New type.
14036         (QueryFullProcessImageNameFunc): New variable.
14037         (initialized): New variable.
14038         (initialize): New function.
14039         (IsCygwinConsoleHandle): New function.
14040         (isatty): Invoke it.
14041         * doc/posix-functions/isatty.texi: Mention the issue.
14043 2019-03-14  Bruno Haible  <bruno@clisp.org>
14045         all: Update URLs to msdn.microsoft.com.
14046         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
14047         was moved to docs.microsoft.com.
14049 2019-03-13  Bruno Haible  <bruno@clisp.org>
14051         gnulib-tool: Clarify the coding style.
14052         Suggested by Pavel Raiskup <praiskup@redhat.com>.
14053         * gnulib-tool: Add comment about coding style.
14055 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
14057         strtod: fix clash with strtold
14058         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
14059         * lib/strtod.c (compute_minus_zero, minus_zero):
14060         Simplify by remving the macro / external variable,
14061         and having just a function.  User changed.  This avoids
14062         the need for an external variable that might clash.
14064 2019-03-10  Bruno Haible  <bruno@clisp.org>
14066         alloca-opt: Fix conflict mingw's new <alloca.h> file.
14067         Reported by Eli Zaretskii <eliz@gnu.org>.
14068         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
14069         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
14070         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
14072 2019-03-10  Bruno Haible  <bruno@clisp.org>
14074         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
14075         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
14076         is in use.
14077         * tests/test-printf-posix2.c: Likewise.
14079 2019-03-10  Bruno Haible  <bruno@clisp.org>
14081         uninorm tests: Free allocated memory.
14082         * tests/uninorm/test-u32-normalize-big.h
14083         (struct normalization_test_file): Remove 'const' from allocated member.
14084         (free_normalization_test_file): New declaration.
14085         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
14086         memory.
14087         (free_normalization_test_file): New function.
14088         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
14089         'struct normalization_test_file' contents.
14090         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
14091         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
14092         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
14094 2019-03-10  Bruno Haible  <bruno@clisp.org>
14096         di-set: Fix memory leak.
14097         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
14098         not free().
14100 2019-03-10  Bruno Haible  <bruno@clisp.org>
14102         tests: Free allocated memory.
14103         Reported by <deltatau@protonmail.com> via Assaf Gordon.
14104         * tests/test-astrxfrm.c (main): Free allocated memory.
14105         * tests/test-bitset.c (compare, check_attributes): Free allocated
14106         bitsets.
14107         * tests/test-filenamecat.c (main): Free allocated memory.
14108         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
14109         * tests/test-freadptr.c (main): Likewise.
14110         * tests/test-freadptr2.c (main): Free allocated memory.
14111         * tests/test-freadseek.c (main): Likewise.
14112         * tests/test-gc-arcfour.c (main): Close allocated context.
14113         * tests/test-gc-arctwo.c (main): Likewise.
14114         * tests/test-gc-des.c (main): Close all allocated contexts.
14115         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
14116         * tests/test-pipe-filter-ii1.c (main): Likewise.
14117         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
14118         allocated file actions.
14119         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
14120         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
14121         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
14122         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
14123         * tests/test-strfmon_l.c (main): Free allocated locales.
14124         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
14125         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
14126         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
14127         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
14128         * tests/unistr/test-chr.h (main): Free input32.
14129         * tests/unistr/test-strchr.h (test_strchr): Likewise.
14131 2019-03-10  Bruno Haible  <bruno@clisp.org>
14133         tests: Prepare for using valgrind.
14134         * tests/*.sh: Invoke all test programs through ${CHECKER}.
14135         * tests/*/*.sh: Likewise.
14136         * tests/test-freadptr.c (main): Update accordingly.
14137         * tests/test-freadseek.c (main): Likewise.
14139 2019-03-09  Bruno Haible  <bruno@clisp.org>
14141         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
14142         * lib/get-rusage-as.c (get_rusage_as): When compiled by
14143         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
14144         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
14145         before exiting.
14147 2019-03-09  Jim Meyering  <meyering@fb.com>
14149         test-userspec.c: don't print NULL
14150         * tests/test-userspec.c (main): A test release of gcc,
14151         9.0.1 20190310, warned that this test would attempt to
14152         print a NULL pointer via a %s printf format.  Fix that
14153         and remove the unnecessary preceding "!diag" conjunct.
14154         Also add a comment.
14156 2019-03-03  Bruno Haible  <bruno@clisp.org>
14158         getloadavg: Write NULL for the null pointer.
14159         Reported by Michal Privoznik <mprivozn@redhat.com>.
14160         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
14162 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
14164         alloca, tsearch-tests: Write NULL for the null pointer.
14165         * lib/alloca.c (i00afunc): Write NULL instead of 0.
14166         * tests/test-tsearch.c (mangle_tree): Likewise.
14168 2019-03-09  Bruno Haible  <bruno@clisp.org>
14170         strfmon_l: Fix -fsanitize=address finding.
14171         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
14172         <string.h>.
14173         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
14174         (directive_t, directives_t): New types.
14175         (fmon_parse): New function.
14176         (rpl_strfmon_l): Don't call va_arg more often than needed for the
14177         format string. Consume 'long double' arguments in places where the
14178         format string indicates so.
14179         * modules/strfmon_l (Depends-on): Add 'stdbool'.
14181 2019-03-09  Bruno Haible  <bruno@clisp.org>
14183         crypto/des: Fix undefined behaviour.
14184         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
14185         shift operations on 'int'.
14187 2019-03-09  Bruno Haible  <bruno@clisp.org>
14189         Fix undefined behaviour.
14190         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
14191         'unsigned int', to avoid shift operations on 'int'.
14192         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
14193         * tests/test-count-leading-zeros.c (main): Use a random number that has
14194         as many bits as TYPE, not only 2*15 or 2*31 bits.
14195         * tests/test-count-trailing-zeros.c (main): Likewise.
14196         * tests/test-count-one-bits.c (main): Likewise.
14197         * tests/test-memmem.c: Don't include "null-ptr.h".
14198         (main): Use zerosize_ptr() instead of null_ptr().
14199         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
14201 2019-03-08  Bruno Haible  <bruno@clisp.org>
14203         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
14204         Reported by Jeffrey Walton <noloader@gmail.com>.
14205         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
14206         invoke memset with a zero size.
14207         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
14208         Likewise.
14209         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
14210         Adjust accordingly.
14212 2019-03-08  Bruno Haible  <bruno@clisp.org>
14214         unistr/*, uniconv/*: Fix undefined behaviour.
14215         Reported by Jeffrey Walton <noloader@gmail.com>.
14216         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
14217         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
14218         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
14219         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
14221 2019-03-08  Bruno Haible  <bruno@clisp.org>
14223         unistr/u8-cmp: Fix undefined behaviour.
14224         Reported by Jeffrey Walton <noloader@gmail.com>.
14225         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
14227 2019-03-08  Bruno Haible  <bruno@clisp.org>
14229         unictype/numeric: Fix undefined behaviour.
14230         Reported by Jeffrey Walton <noloader@gmail.com>.
14231         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
14232         on shift overflow, caught by "gcc -fsanitize=undefined".
14233         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
14234         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
14235         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
14237 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
14239         git-version-gen: fix --version copyright year
14240         * build-aux/git-version-gen, build-aux/move-if-change (version):
14241         --version output copyright year is now taken from script year,
14242         so that it no longer needs to be updated by hand.
14244 2019-03-04  Bruno Haible  <bruno@clisp.org>
14246         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
14247         This approach supports relocatable installation of shared libraries
14248         which depend on other shared libraries from the same package.
14249         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
14250         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
14251         wrapper around the original LIBTOOL.
14252         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
14253         token '@loader_path' instead of '$ORIGIN'.
14254         * build-aux/libtool-reloc: New file.
14255         * modules/relocatable-prog (Files): Add it.
14256         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
14257         the recent changes. Document the need to set the *_LDFLAGS of libraries.
14258         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
14259         Makefile.am, not in configure.ac.
14261 2019-03-04  Bruno Haible  <bruno@clisp.org>
14263         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
14264         * build-aux/install-reloc: Revert change.
14265         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
14267 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14269         nstrftime: support the ‘+’ flag
14270         * lib/nstrftime.c (add, __strftime_internal):
14271         Add support for the ‘+’ flag introduced in POSIX.1-2017.
14272         (__strftime_internal): New arg ‘width’.  All uses changed.
14273         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
14275 2019-02-24  Bruno Haible  <bruno@clisp.org>
14277         relocatable-prog: Improve verbose output.
14278         * build-aux/install-reloc (func_verbose): Escape characters that would
14279         be interpreted by the shell.
14281 2019-02-24  Bruno Haible  <bruno@clisp.org>
14283         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
14284         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
14285         "sys/stat.h".
14286         * lib/lstat.c: Likewise.
14287         * lib/fstat.c: Likewise.
14288         * lib/fstatat.c: Likewise.
14290 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
14292         long-options: add parse_gnu_standard_options_only
14293         Discussed in https://bugs.gnu.org/33468 .
14295         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
14296         (parse_gnu_standard_options_only): Add function to process
14297         the GNU default options --help and --version and fail for
14298         any other unknown long or short option. See
14299         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
14300         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
14301         * modules/long-options (depends-on): Add stdbool, exitfail.
14302         * top/maint.mk (sc_prohibit_long_options_without_use): Update
14303         syntax-check rule, add new function name.
14305 2019-02-23  Bruno Haible  <bruno@clisp.org>
14307         relocatable-prog: Update documentation.
14308         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
14309         the recent changes.
14311 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
14313         nstrftime: tweak arg order
14314         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
14315         All callers changed.  Suggested by TAMUKI Shoichi in:
14316         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
14318 2019-02-23  Bruno Haible  <bruno@clisp.org>
14320         relocatable-prog: Use wrapper-free installation also on Mac OS X.
14321         Reported by Paul Smith <psmith@gnu.org>.
14322         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
14323         (func_relativize): New function, from gnulib-tool.
14324         Handle mode 'macosx' through invocations of 'otool' and
14325         'install_name_tool'.
14326         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
14327         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
14328         'install-reloc' invocation with mode 'macosx'.
14330 2019-02-23  Bruno Haible  <bruno@clisp.org>
14332         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
14333         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
14334         Hurd with glibc >= 2.27.
14336 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
14338         nstrftime: merge glibc strftime changes
14339         This incorporates:
14340         2019-02-11 Fix a few whitespace arrangement inconsistencies
14341         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
14342         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
14343         2019-01-11 strftime: use the "L_" macro with character literals
14344         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
14345         callers changed.  Default width of %Ey is now 2.  This is needed
14346         for proper handling of Japanese dates starting on 2019-05-01.
14348 2019-02-19  Bruno Haible  <bruno@clisp.org>
14350         relocatable-prog: Use $ORIGIN trick on more platforms.
14351         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
14352         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
14353         Solaris >= 10, Haiku. But don't use it on Android.
14354         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
14355         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
14357 2019-02-19  Bruno Haible  <bruno@clisp.org>
14359         progreloc: Speed up executable lookup on various platforms.
14360         * lib/progreloc.c: Include <errno.h>.
14361         (safe_read, full_read): New functions.
14362         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
14363         prefer the information from the /proc file system to a PATH search.
14365 2019-02-19  Bruno Haible  <bruno@clisp.org>
14367         progreloc: Simplify code for Android.
14368         * lib/progreloc.c (executable_fd): Don't define on Android.
14369         (maybe_executable, find_executable): Don't use executable_fd on Android.
14371 2019-02-15  Bruno Haible  <bruno@clisp.org>
14373         gnulib-tool: Support --import with just a few tests, not --with-tests.
14374         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
14375         'inctests' when generating files; use 'inctests' only for computing the
14376         transitive closure.
14378 2019-02-14  Bruno Haible  <bruno@clisp.org>
14380         gnulib-tool: Improve handling of multiple --local-dir options.
14381         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
14382         options work.
14383         * gnulib-tool (func_path_prepend): Remove function.
14384         (func_path_foreach): Make IFS handling more robust.
14385         (local_gnulib_path): Collect --local-dir values using func_path_append,
14386         not func_path_prepend.
14387         (func_determine_path_separator): Make IFS handling more robust.
14388         (func_lookup_file_cb): New function.
14389         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
14390         func_lookup_local_file. Apply the patches in the reverse order of their
14391         origin in $local_gnulib_path.
14392         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
14393         * NEWS: Mention that the first --local-dir option is the one with
14394         highest priority.
14396 2019-02-10  Bruno Haible  <bruno@clisp.org>
14398         libtextstyle: New module.
14399         * m4/libtextstyle.m4: New file.
14400         * modules/libtextstyle: New file.
14402 2019-02-05  Bruno Haible  <bruno@clisp.org>
14404         declared.sh: Fix bug with variables of pointer type.
14405         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
14406         before the symbol to be omitted if the preceding character is a '*'.
14408 2019-02-04  Bruno Haible  <bruno@clisp.org>
14410         Add script for running tests under valgrind.
14411         * build-aux/run-test: New file, from GNU libunistring.
14412         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
14413         as well.
14415 2019-02-04  Bruno Haible  <bruno@clisp.org>
14417         declared.sh: Fix --version output.
14418         * build-aux/declared.sh (func_version): Update package name.
14420 2019-02-03  Bruno Haible  <bruno@clisp.org>
14422         Add script for determining the set of symbols to export from a library.
14423         * build-aux/declared.sh: New file, from GNU libunistring.
14424         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
14425         Mention it.
14427 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
14429         vla: add commentary about VLA_ELEMS
14430         * lib/vla.h (VLA_ELEMS): Add commentary,
14431         some inspired by Bruno Haible’s proposal in:
14432         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
14434         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
14435         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
14436         assume the C99 signatures for strtod and strtold.  Programs that
14437         require stricter adherence to C99 should also use the strtod and
14438         strtold modules as needed, and we no longer need the
14439         HAVE_C99_STRTOLD macro.
14440         * NEWS: Mention this.
14441         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
14442         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
14443         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
14444         (Files): Remove m4/c-strtod.m4.
14445         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
14446         exists.
14448 2019-02-02  Bruno Haible  <bruno@clisp.org>
14450         fma: Improve code style.
14451         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
14453 2019-02-02  Colin Watson  <cjwatson@debian.org>
14455         *-map tests: Fix compilation error.
14456         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
14457         * tests/test-hash_map.c: Likewise.
14458         * tests/test-linkedhash_map.c: Likewise.
14460 2019-01-31  Bruno Haible  <bruno@clisp.org>
14462         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
14463         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
14464         GNULIB_defined_strtold_function): New macros.
14465         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
14466         (STRTOD): Ignore HAVE_C99_STRTOLD.
14467         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
14468         deemed buggy. But do use it on platforms where uselocale exists and is
14469         usable.
14470         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
14471         deemed buggy. On platforms where uselocale exists and is usable, use
14472         uselocale and strtod/strtold.
14473         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
14474         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
14475         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
14476         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
14477         (Depends-on): Add strtod.
14478         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
14479         (Depends-on): Add strtold.
14481 2019-01-31  Bruno Haible  <bruno@clisp.org>
14483         strtod, strtold: Use the locale's decimal point.
14484         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
14485         (decimal_point_char): New function, copied from lib/vasnprintf.c.
14486         (parse_number): Add a radixchar argument. Use it instead of '.'.
14487         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
14488         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
14489         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
14490         * tests/test-strtod1.c: New file.
14491         * tests/test-strtod1.sh: New file.
14492         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
14493         locale-fr.m4 and its dependencies.
14494         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
14495         (Makefile.am): Arrange to compile test-strtod1.c and run
14496         test-strtod1.sh.
14497         * tests/test-strtold1.c: New file.
14498         * tests/test-strtold1.sh: New file.
14499         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
14500         locale-fr.m4 and its dependencies.
14501         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
14502         (Makefile.am): Arrange to compile test-strtold1.c and run
14503         test-strtold1.sh.
14505 2019-01-31  Bruno Haible  <bruno@clisp.org>
14507         strtod, strtold tests: Simplify tests.
14508         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
14509         * tests/test-strtold.c (main): Likewise.
14511 2019-01-31  Bruno Haible  <bruno@clisp.org>
14513         strtod, strtold: Avoid unnecessary rounding errors.
14514         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
14515         decimal to DOUBLE conversion.
14517 2019-01-31  Bruno Haible  <bruno@clisp.org>
14519         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
14520         * lib/strtod.c (STRTOD): When there is an extra character after the
14521         exponent marker 'p', reparse the number.
14522         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
14523         * doc/posix-functions/strtold.texi: Likewise.
14525 2019-01-29  Bruno Haible  <bruno@clisp.org>
14527         strtold: Add tests.
14528         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
14529         * modules/strtold-tests: New file.
14531 2019-01-29  Bruno Haible  <bruno@clisp.org>
14533         strtold: New module.
14534         * lib/stdlib.in.h (strtold): New declaration.
14535         * lib/strtold.c: New file.
14536         * lib/strtod.c: Consider USE_LONG_DOUBLE.
14537         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
14538         USE_LDEXP): New macros.
14539         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
14540         USE_LONG_DOUBLE.
14541         (underlying_strtod): Remove function. Replace with some macros.
14542         Re-add the code for a missing underlying function that was removed on
14543         2013-02-19.
14544         * m4/strtold.m4: New file.
14545         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
14546         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
14547         REPLACE_STRTOLD.
14548         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
14549         REPLACE_STRTOLD.
14550         * modules/strtold: New file.
14551         * doc/posix-functions/strtold.texi: Document the new module.
14553 2019-01-29  Bruno Haible  <bruno@clisp.org>
14555         strtod: Fix compilation error on IRIX 6.5.
14556         * modules/strtod (Depends-on): Add 'math'.
14558 2019-01-28  Bruno Haible  <bruno@clisp.org>
14560         Fix build error when building a shared libunistring on Android.
14561         * tests/uninorm/test-nfc.c (n): Don't define on Android.
14562         (main): Add 'volatile', to defeat a GCC optimization that would
14563         eliminate the reference.
14564         * tests/uninorm/test-nfd.c (n): Don't define on Android.
14565         (main): Add 'volatile', to defeat a GCC optimization that would
14566         eliminate the reference.
14567         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
14568         (main): Add 'volatile', to defeat a GCC optimization that would
14569         eliminate the reference.
14570         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
14571         (main): Add 'volatile', to defeat a GCC optimization that would
14572         eliminate the reference.
14574 2019-01-27  Bruno Haible  <bruno@clisp.org>
14576         Avoid build errors due to wrong references between modules.
14577         * lib/uninorm/canonical-decomposition.c: Include
14578         "uninorm/decomposition-table.h", not "decomposition-table.h".
14579         * lib/uninorm/decomposition.c: Likewise.
14580         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
14581         not "decompose-internal.h".
14582         * lib/uninorm/u16-normalize.c: Likewise.
14583         * lib/uninorm/u32-normalize.c: Likewise.
14584         * lib/uninorm/uninorm-filter.c: Likewise.
14585         * lib/uninorm/nfkc.c: Likewise.
14586         * lib/uninorm/nfkd.c: Likewise.
14587         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
14588         "caseprop.h".
14589         * lib/unicase/u8-ct-totitle.c: Likewise.
14590         * lib/unicase/u8-prefix-context.c: Likewise.
14591         * lib/unicase/u8-suffix-context.c: Likewise.
14592         * lib/unicase/u16-casemap.c: Likewise.
14593         * lib/unicase/u16-ct-totitle.c: Likewise.
14594         * lib/unicase/u16-prefix-context.c: Likewise.
14595         * lib/unicase/u16-suffix-context.c: Likewise.
14596         * lib/unicase/u32-casemap.c: Likewise.
14597         * lib/unicase/u32-ct-totitle.c: Likewise.
14598         * lib/unicase/u32-prefix-context.c: Likewise.
14599         * lib/unicase/u32-suffix-context.c: Likewise.
14600         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
14601         "unicasemap.h".
14602         * lib/unicase/u8-toupper.c: Likewise.
14603         * lib/unicase/u8-ct-tolower.c: Likewise.
14604         * lib/unicase/u8-ct-toupper.c: Likewise.
14605         * lib/unicase/u16-tolower.c: Likewise.
14606         * lib/unicase/u16-toupper.c: Likewise.
14607         * lib/unicase/u16-ct-tolower.c: Likewise.
14608         * lib/unicase/u16-ct-toupper.c: Likewise.
14609         * lib/unicase/u32-tolower.c: Likewise.
14610         * lib/unicase/u32-toupper.c: Likewise.
14611         * lib/unicase/u32-ct-tolower.c: Likewise.
14612         * lib/unicase/u32-ct-toupper.c: Likewise.
14613         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
14614         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
14615         * lib/unicase/u16-ct-casefold.c: Likewise.
14616         * lib/unicase/u32-ct-casefold.c: Likewise.
14618 2019-01-27  Bruno Haible  <bruno@clisp.org>
14620         gperf: Fix error when this module is required by some test module.
14621         * modules/gperf (Applicability): Set to 'all'.
14623 2019-01-27  Bruno Haible  <bruno@clisp.org>
14625         tmpfile: Add support for Android.
14626         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
14627         works.
14628         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
14629         Android.
14630         * modules/tmpfile (Depends-on): Add 'stdbool'.
14631         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
14632         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
14634 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
14636         bitsetv: allow free on NULL.
14637         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
14639 2019-01-27  Bruno Haible  <bruno@clisp.org>
14641         test-framework-sh: Improve maintainability.
14642         * tests/init.sh: Clarify what belongs together. Reorder definitions.
14644 2019-01-27  Bruno Haible  <bruno@clisp.org>
14646         tests: Don't assume that /tmp exists.
14647         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
14648         * tests/test-copy-acl-1.sh: Likewise.
14649         * tests/test-file-has-acl-1.sh: Likewise.
14650         * tests/test-copy-file-1.sh: Likewise.
14652 2019-01-27  Bruno Haible  <bruno@clisp.org>
14654         tests: Accommodate a shell that is not in /bin/sh.
14655         * tests/init.sh (setup_): Set srcdir and builddir.
14656         (BOURNE_SHELL): New variable.
14657         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
14658         * modules/file-has-acl-tests (Depends-on): Likewise.
14659         * modules/copy-file-tests (Depends-on): Likewise.
14660         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
14661         scripts through $BOURNE_SHELL.
14662         * tests/test-set-mode-acl-2.sh: Likewise.
14663         * tests/test-copy-acl-1.sh: Likewise.
14664         * tests/test-copy-acl-2.sh: Likewise.
14665         * tests/test-file-has-acl-1.sh: Likewise.
14666         * tests/test-file-has-acl-2.sh: Likewise.
14667         * tests/test-copy-file-1.sh: Likewise.
14668         * tests/test-copy-file-2.sh: Likewise.
14669         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
14670         invoker.
14671         * tests/test-copy-acl.sh (builddir): Likewise.
14672         * tests/test-file-has-acl.sh (builddir): Likewise.
14673         * tests/test-copy-file.sh (builddir): Likewise.
14674         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
14675         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
14676         * tests/test-vc-list-files-git.sh: Likewise.
14678 2019-01-27  Bruno Haible  <bruno@clisp.org>
14680         tests: Fix some "unused variable" warnings.
14681         * tests/test-fts.c (fts_dealloc): Remove unused variable.
14682         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
14683         * tests/test-striconveh.c (main): Move some variable into the
14684         '#if HAVE_ICONV'.
14685         * tests/test-striconveha.c (main): Likewise.
14686         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
14687         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
14688         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
14689         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
14690         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
14691         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
14692         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
14693         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
14694         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
14695         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
14696         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
14697         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
14698         * tests/test-tsearch.c (main): Move some variable into the
14699         '#if HAVE_INITSTATE'.
14701 2019-01-27  Bruno Haible  <bruno@clisp.org>
14703         unigbrk/uc-grapheme-breaks: Fix build failure.
14704         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
14705         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
14707 2019-01-27  Bruno Haible  <bruno@clisp.org>
14709         mountlist: Merge two .m4 files.
14710         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
14711         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
14712         * m4/ls-mntd-fs.m4: Remove file.
14713         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
14715 2019-01-27  Bruno Haible  <bruno@clisp.org>
14717         tests: Enable Linux specific tests on Android.
14718         * tests/test-flock.c (main): Treat Android like Linux.
14719         * tests/test-openat-safer.c (main): Likewise.
14721 2019-01-27  Bruno Haible  <bruno@clisp.org>
14723         relocatable-prog: Use Linux code on Android.
14724         * lib/progreloc.c: Treat Android like Linux.
14726 2019-01-26  Bruno Haible  <bruno@clisp.org>
14728         getloadavg: Add support for Android.
14729         * lib/getloadavg.c: Treat Android like Linux.
14731 2019-01-26  Bruno Haible  <bruno@clisp.org>
14733         vma-iter: Add support for Android.
14734         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
14735         * lib/vma-iter.c: Treat Android like Linux.
14736         * lib/get-rusage-data.c (get_rusage_data): Likewise.
14738 2019-01-26  Bruno Haible  <bruno@clisp.org>
14740         fts: Optimize on Android.
14741         * lib/fts.c: Treat Android like Linux.
14743 2019-01-26  Bruno Haible  <bruno@clisp.org>
14745         fts: Add support for Android.
14746         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
14747         defined by this module and the ones in libc.
14748         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
14750 2019-01-26  Bruno Haible  <bruno@clisp.org>
14752         mountlist: Use Linux code on Android.
14753         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
14754         (unescape_tab, read_file_system_list): Enable Linux code on Android
14755         as well.
14756         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
14757         and endmntent.
14758         * modules/mountlist (Depends-on): Add 'getline'.
14760 2019-01-26  Bruno Haible  <bruno@clisp.org>
14762         localename tests: Fix test failure on Android.
14763         * modules/localename-tests (Depends-on): Add 'setlocale'.
14765 2019-01-26  Bruno Haible  <bruno@clisp.org>
14767         mountlist: Port better to Android.
14768         * lib/mountlist.c (MOUNTED): Redefine on Android.
14769         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
14770         Android.
14772 2019-01-26  Bruno Haible  <bruno@clisp.org>
14774         striconveh: Fix use of uninitialized iconv_t.
14775         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
14776         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
14777         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
14779 2019-01-26  Bruno Haible  <bruno@clisp.org>
14781         nonblocking-socket-tests: Fix test failure on Android 4.3.
14782         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
14783         also on Android.
14785 2019-01-26  Bruno Haible  <bruno@clisp.org>
14787         sh-filename: Add support for Android 4.3.
14788         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
14790 2019-01-26  Bruno Haible  <bruno@clisp.org>
14792         ptsname_r: Work around bug on Android 4.3.
14793         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
14794         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
14795         correct.
14796         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
14797         is defined, just fix the return value.
14798         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
14799         The behaviour of musl libc is nothing to be "fixed", since it is
14800         compliant with the next POSIX standard.
14802 2019-01-26  Bruno Haible  <bruno@clisp.org>
14804         ttyname_r: Work around bug on Android 4.3.
14805         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
14806         * lib/ttyname_r.c (ttyname_r): Implement for Android.
14807         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
14808         * doc/posix-functions/ttyname.texi: Likewise.
14810 2019-01-25  Bruno Haible  <bruno@clisp.org>
14812         getprogname: Port to Android 4.3.
14813         * lib/getprogname.c (getprogname): On Android, take only the last
14814         component of __progname.
14816 2019-01-25  Bruno Haible  <bruno@clisp.org>
14818         wcrtomb: Work around bug on Android 4.3.
14819         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
14820         the C locale.
14821         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
14822         which does not have the 'wctomb' function.
14823         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
14824         * tests/test-wcrtomb.c (main): Accept argument '5'.
14825         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
14827 2019-01-25  Bruno Haible  <bruno@clisp.org>
14829         setlocale: Work around bug on Android 4.3.
14830         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
14831         the "C" locale.
14832         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
14833         * doc/posix-functions/setlocale.texi: Mention the Android bug.
14835 2019-01-24  Bruno Haible  <bruno@clisp.org>
14837         memchr: Work around bug on Android <= 5.0.
14838         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
14839         * doc/posix-functions/memchr.texi: Mention the Android bug.
14841 2019-01-24  Bruno Haible  <bruno@clisp.org>
14843         random: Fix compilation error on Android 4.3.
14844         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
14845         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
14846         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
14847         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
14848         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
14849         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
14850         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
14851         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
14852         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
14853         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
14854         REPLACE_INITSTATE, REPLACE_SETSTATE.
14855         * doc/posix-functions/random.texi: Correct the description of the
14856         situation on Android.
14857         * doc/posix-functions/srandom.texi: Likewise.
14858         * doc/posix-functions/rand.texi: Likewise.
14859         * doc/posix-functions/srand.texi: Likewise.
14861 2019-01-24  Bruno Haible  <bruno@clisp.org>
14863         mbtowc: Fix compilation error on Android 4.3.
14864         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
14865         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
14866         HAVE_MBTOWC.
14867         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
14868         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
14869         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
14870         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
14871         * doc/posix-functions/mbtowc.texi: Mention the change.
14873 2019-01-24  Bruno Haible  <bruno@clisp.org>
14875         fdatasync: Fix compilation error on Android 4.3.
14876         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
14877         test whether fdatasync() exists.
14879 2019-01-24  Bruno Haible  <bruno@clisp.org>
14881         unlinkat: Fix compilation error on Android 4.3.
14882         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
14883         also on Android.
14884         * doc/posix-functions/unlinkat.texi: Mention the issue.
14886 2019-01-24  Bruno Haible  <bruno@clisp.org>
14888         renameat: Fix compilation error on Android 4.3.
14889         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
14890         * doc/posix-functions/renameat.texi: Mention the issue.
14892 2019-01-24  Bruno Haible  <bruno@clisp.org>
14894         fchownat: Fix compilation error on Android 4.3.
14895         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
14896         use.
14897         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
14898         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
14899         * doc/posix-functions/fchownat.texi: Mention the issue.
14901 2019-01-23  Bruno Haible  <bruno@clisp.org>
14903         gnulib-tool: Support running testdirs on Android.
14904         * build-aux/test-driver.diff: New file.
14905         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
14906         build-aux/test-driver after running automake.
14908 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
14910         relocatable-prog: avoid warnings from Automake
14911         * modules/relocatable-prog: Don't declare PHONY dependencies in
14912         Automake conditionals.
14914 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
14916         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
14917         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
14919 2019-01-23  Bruno Haible  <bruno@clisp.org>
14921         threadlib: Revert commit from 2018-06-25. We now have a better fix.
14922         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
14923         preceding -Wl,--as-needed option. Don't check whether the linker
14924         supports --as-needed/--no-as-needed and --push-state/--pop-state.
14926 2019-01-23  Bruno Haible  <bruno@clisp.org>
14928         thread: Force linking with -lpthread, even when --as-needed is in use.
14929         Reported by Richard W.M. Jones <rjones@redhat.com> in
14930         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
14931         * lib/glthread/thread.h (pthread_create): Don't declare weak.
14933 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
14934             Bruno Haible  <bruno@clisp.org>
14936         relocatable: avoid compiler warnings (-Wshadow)
14937         * lib/relocatable.c (compute_curr_prefix): Rename local variables
14938         to avoid name collisions with global variables.
14940 2019-01-22  Bruno Haible  <bruno@clisp.org>
14942         vasnprintf: Don't use %n on Android.
14943         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
14944         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
14945         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
14947 2019-01-22  Bruno Haible  <bruno@clisp.org>
14949         *printf: Support cross-compilation to Android.
14950         * m4/printf.m4: Add cross-compilation guesses for Android.
14952 2019-01-21  Bruno Haible  <bruno@clisp.org>
14954         diacrit: Mark deprecated.
14955         * modules/diacrit (Status, Notice): Mark as deprecated.
14956         * NEWS: Mention it.
14958 2019-01-20  Bruno Haible  <bruno@clisp.org>
14960         rintl: Override broken implementation on NetBSD.
14961         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
14962         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
14963         REPLACE_RINTL.
14964         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
14965         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
14966         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
14967         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
14969 2019-01-20  Bruno Haible  <bruno@clisp.org>
14971         log10l: Work around inaccurate implementation on NetBSD.
14972         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
14973         * lib/log10l.c: Comment out too simplistic override.
14974         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
14976 2019-01-20  Bruno Haible  <bruno@clisp.org>
14978         logl: Work around inaccurate implementation on NetBSD.
14979         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
14980         * lib/logl.c: Comment out unused code.
14981         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
14983 2019-01-20  Bruno Haible  <bruno@clisp.org>
14985         expm1l: Work around inaccurate implementation on NetBSD.
14986         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
14987         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
14988         REPLACE_EXPM1L.
14989         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
14990         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
14991         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
14992         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
14994 2019-01-20  Bruno Haible  <bruno@clisp.org>
14996         expl: Work around inaccurate implementation on NetBSD.
14997         * lib/math.in.h (expl): Test also REPLACE_EXPL.
14998         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
14999         REPLACE_EXPL.
15000         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
15001         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
15002         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
15003         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
15005 2019-01-20  Bruno Haible  <bruno@clisp.org>
15007         exp2l: Work around inaccurate implementation on NetBSD.
15008         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
15009         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
15011 2019-01-20  Bruno Haible  <bruno@clisp.org>
15013         floor, floorl: Avoid autoconf warnings.
15014         * modules/floor (configure.ac): Use AC_REQUIRE.
15015         * modules/floorl (configure.ac): Likewise.
15017 2019-01-20  Bruno Haible  <bruno@clisp.org>
15019         Defeat current GCC optimizations in math autoconf tests.
15020         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
15021         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
15022         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15023         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15024         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
15025         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
15026         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
15027         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15028         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
15029         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
15030         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
15031         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
15032         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
15033         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
15034         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
15035         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
15036         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
15037         * m4/log.m4 (gl_FUNC_LOG): Likewise.
15038         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
15039         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
15040         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
15041         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
15042         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
15043         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
15044         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
15045         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
15046         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
15047         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
15048         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
15049         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
15050         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
15051         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
15052         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15053         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15054         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15055         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15056         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15057         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15059 2019-01-19  Pádraig Brady  <P@draigBrady.com>
15061         gettext: support disabling use of VLAs
15062         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
15064 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
15066         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
15067         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
15069 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
15071         fcntl: Fix syntax error (regression from 2018-10-05).
15072         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
15074 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
15076         relocatable: improve documentation.
15077         * doc/relocatable-maint.texi (Supporting Relocation): For
15078         substitutions performed by config.status, we need more variables
15079         (for instance datarootdir defaults to '${prefix}/share' so we need
15080         prefix).
15082 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
15084         backup: update dependencies
15085         * modules/backup-rename (Depends-on): It now depends on opendirat
15086         instead of opendir.  It also uses stdint, and xalloc-oversized.
15087         But no longer dirfd.
15088         * modules/backupfile (Depends-on): Add xalloc-oversized.
15090 2019-01-13  Bruno Haible  <bruno@clisp.org>
15092         getcwd: Fix test failure when building on a Linux 9p file system.
15093         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
15094         EINVAL from mkdir like ENAMETOOLONG.
15095         * tests/test-getcwd.c (test_long_name): Likewise.
15097 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
15099         Fix typos found by codespell.
15100         * lib/*.[hc]: Fix typos in comments.
15101         * pygnulib/*.py: Fix typos in error messages and comments.
15103 2019-01-12  Bruno Haible  <bruno@clisp.org>
15105         doc: Fix documentation about container data types.
15106         Reported by Werner Lemberg <wl@gnu.org>.
15107         * doc/containers.texi (Container data types): Fix typo.
15109 2019-01-10  Bruno Haible  <bruno@clisp.org>
15111         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
15112         Reported by Reuben Thomas <rrt@sc3d.org>.
15113         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
15115 2019-01-06  Bruno Haible  <bruno@clisp.org>
15117         maintainer-makefile: Make the configure.ac section optional.
15118         * top/maint.mk (GREP, SED): Define if not defined.
15120 2019-01-06  Bruno Haible  <bruno@clisp.org>
15122         localename: Assume setlocale function.
15123         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
15124         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
15126 2019-01-06  Bruno Haible  <bruno@clisp.org>
15128         doc: Add documentation about container data types.
15129         * doc/containers.texi: New file.
15130         * doc/gnulib.texi (Particular Modules): Include it.
15132 2019-01-06  Bruno Haible  <bruno@clisp.org>
15134         doc: Update documentation about 'progname' module.
15135         * doc/progname.texi: Rename from doc/error.texi. Change node name and
15136         title. Rewrite.
15137         * doc/gnulib.texi (Particular Modules): Update.
15139 2019-01-06  Bruno Haible  <bruno@clisp.org>
15141         doc: Document the xstdopen and *-safer modules.
15142         * doc/xstdopen.texi: New file.
15143         * doc/gnulib.texi (Particular Modules): Include it.
15145 2019-01-06  Bruno Haible  <bruno@clisp.org>
15147         xstdopen: Add tests.
15148         * tests/test-xstdopen.c: New file.
15149         * tests/test-xstdopen.sh: New file.
15150         * modules/xstdopen-tests: New file.
15152         xstdopen: New module.
15153         * lib/xstdopen.h: New file.
15154         * lib/xstdopen.c: New file.
15155         * modules/xstdopen: New file.
15157 2019-01-06  Bruno Haible  <bruno@clisp.org>
15159         stdopen: Fix compilation error with IRIX cc.
15160         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
15162 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
15164         xfreopen need not include stdio--.h
15165         * lib/xfreopen.c: Do not include stdio--.h.
15167         xfreopen need not depend on freopen-safer
15168         * modules/xfreopen (Depends-on):
15169         Depend on freopen, not freopen-safer.
15171         stdopen: modernize and simplify
15172         * lib/stdopen.c: Update copyright date
15173         Do not include sys/types.h; no longer needed these days.
15174         (stdopen): Use C99-style decl in loop.  Return int errno
15175         value, rather than just a bool.  Do not worry about fd mismatches,
15176         since the caller cares only if 0, 1, 2 are occupied.
15177         * lib/stdopen.h: No need to include <stdbool.h>.
15178         * m4/stdopen.m4: Remove.
15179         * modules/stdopen: New file.
15181         stdopen: copy from last use in coreutils
15182         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
15183         New files, taken from their last commit in coreutils
15184         2007-07-23T12:35:58Z!jim@meyering.net
15185         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
15187 2019-01-05  Bruno Haible  <bruno@clisp.org>
15189         argp: Don't pass an invalid argument to dgettext().
15190         Reported by He X <xw897002528@gmail.com>.
15191         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
15192         dgettext().
15194 2019-01-05  Bruno Haible  <bruno@clisp.org>
15196         argp: Don't pass an invalid argument to dgettext().
15197         Reported by He X <xw897002528@gmail.com>.
15198         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
15199         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
15200         dgettext().
15202 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
15204         stdioext: port to newer 32-bit Android
15205         Problem reported by Tom Yan in:
15206         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
15207         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
15208         (fp_) [__ANDROID__]: Use it.
15210 2019-01-04  Bruno Haible  <bruno@clisp.org>
15212         lock: Fix link error with --enable-threads=pth.
15213         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
15214         Mark as weak.
15216 2019-01-04  Bruno Haible  <bruno@clisp.org>
15218         Fix link errors in unit tests.
15219         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15220         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
15221         * modules/array-map-tests (Makefile.am): Link test-array_map against
15222         libintl.
15223         * modules/array-set-tests (Makefile.am): Link test-array_set against
15224         libintl.
15225         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
15226         libintl.
15227         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
15228         libintl.
15229         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
15230         against libintl.
15231         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
15232         against libintl.
15234 2019-01-04  Bruno Haible  <bruno@clisp.org>
15236         Fix incorrect 'Link' sections.
15237         * modules/regex (Link): Mention the link requirement of module 'lock'.
15238         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
15240 2019-01-04  Bruno Haible  <bruno@clisp.org>
15242         Fix some 'Link' sections.
15243         * modules/c-stack (Link): Add link directive from the 'gettext-h'
15244         dependency.
15245         * modules/getaddrinfo (Link): Likewise.
15247 2019-01-04  Bruno Haible  <bruno@clisp.org>
15249         Remove redundant 'Link' sections.
15250         * modules/canon-host (Link): Remove section.
15251         * modules/timevar (Link): Likewise.
15253 2019-01-04  Bruno Haible  <bruno@clisp.org>
15255         Remove incorrect 'Link' sections.
15256         * modules/acl (Link): Remove section. Use combined 'Link' sections from
15257         the dependencies instead.
15258         * modules/crypto/md5 (Link): Likewise.
15259         * modules/crypto/sha1 (Link): Likewise.
15260         * modules/crypto/sha256 (Link): Likewise.
15261         * modules/crypto/sha512 (Link): Likewise.
15262         * modules/faccessat (Link): Likewise.
15263         * modules/fdutimensat (Link): Likewise.
15264         * modules/iconv_open-utf (Link): Likewise.
15265         * modules/propername (Link): Likewise.
15266         * modules/qacl (Link): Likewise.
15267         * modules/unicodeio (Link): Likewise.
15268         * modules/utimecmp (Link): Likewise.
15269         * modules/utimensat (Link): Likewise.
15270         * modules/xstriconv (Link): Likewise.
15271         * modules/xstriconveh (Link): Likewise.
15273 2019-01-04  Bruno Haible  <bruno@clisp.org>
15275         gnulib-tool: New option --extract-recursive-link-directive.
15276         * gnulib-tool (func_usage): Document the new options
15277         --extract-recursive-dependencies, --extract-recursive-link-directive.
15278         (func_verify_module): Document output variables.
15279         (func_get_dependencies_recursively): New function.
15280         (func_get_link_directive_recursively): New function.
15281         Use them to implement the new options
15282         --extract-recursive-dependencies, --extract-recursive-link-directive.
15283         * doc/gnulib-tool.texi (Link-time requirements): New section.
15285 2019-01-04  Bruno Haible  <bruno@clisp.org>
15287         Clarify meaning of 'Link' section in module description.
15288         * doc/gnulib.texi (Module description): Clarify the meaning of the
15289         'Link' section versus the one of the dependencies.
15290         * NEWS: Mention the change.
15292 2019-01-04  Bruno Haible  <bruno@clisp.org>
15294         pselect: Fix module description.
15295         * modules/pselect (Link): Put one link option per line.
15297 2019-01-04  Bruno Haible  <bruno@clisp.org>
15299         cosl: Fix module description.
15300         * modules/cosl (Link): Fix typo.
15301         * modules/mathl (configure.ac): Likewise.
15303 2019-01-04  Bruno Haible  <bruno@clisp.org>
15305         c-xvasprintf: Fix module dependencies.
15306         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
15308 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
15310         bootstrap: die when some submodules are not initialized
15311         * build-aux/bootstrap: Make sure all submodules are initialized.
15313 2019-01-04  Bruno Haible  <bruno@clisp.org>
15315         bitsetv: Fix module dependencies.
15316         * lib/bitsetv.c: Include xalloc.h.
15317         * modules/bitsetv (Depends-on): Add 'xalloc'.
15319 2019-01-04  Bruno Haible  <bruno@clisp.org>
15321         xmemdup0: Remove redundant code.
15322         * lib/xmemdup0.h (xalloc_die): Remove declaration.
15324 2019-01-04  Bruno Haible  <bruno@clisp.org>
15326         backupfile: Fix module dependencies.
15327         * modules/backupfile (Depends-on): Add 'xalloc'.
15329 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
15331         bitset, crypto/gc: fix conflicts with Solaris 11
15332         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
15333         avoid clash with Solaris 11 <sys/bitset.h>.
15334         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
15335         with Solaris 11 <xorg/gc.h>.
15337 2019-01-04  Bruno Haible  <bruno@clisp.org>
15339         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
15340         Reported by Andy Fiddaman <andy@omniosce.org>.
15341         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
15343 2019-01-03  Eric Blake  <eblake@redhat.com>
15345         maintainer-makefile: fix typo in previous patch
15346         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
15347         of Roman's work.
15349 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
15351         maintainer-makefile: prefer $(GREP) over grep
15352         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
15353         defined.
15354         * top/maint.mk: Use it everywhere.
15356         maintainer-makefile: split long argument lines
15357         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
15358         it would be too long for exec limits on BSD.
15360 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15362         mkfifo: bring back HAVE_MKFIFO macro
15363         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
15364         Problem reported by Andrew Janke in:
15365         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
15367 2018-12-21  Bruno Haible  <bruno@clisp.org>
15369         Assume Autoconf >= 2.63.
15370         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
15371         versions < 2.60.
15373 2018-12-21  Bruno Haible  <bruno@clisp.org>
15375         memcmp: Mention the clang bug.
15376         * tests/test-memcmp.c: Add comment about a known test failure.
15377         * doc/posix-functions/memcmp.texi: Mention the clang bug.
15379 2018-12-20  Jim Meyering  <meyering@fb.com>
15381         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
15382         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
15383           echo '123-x'|LC_ALL=C grep -E '.\bx'
15384         The goal is to revert the first, but reverting it requires to restore
15385         the function deleted in the second. I ran this to restore the deleted
15386         function:
15387           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
15388             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
15389             | patch -R -p1
15390         * lib/dfa.c (charclass_context): Restore deleted function.
15391         Reverting the primary commit removes this change:
15392         dfa: Simplify a building state
15393         * lib/dfa.c (build_state): Simplify a building state.
15395 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
15397         version-etc: allow zero authors
15398         * lib/version-etc.c (version_etc_arn): If no authors are given,
15399         omit authorship info instead of dumping core.
15401 2018-12-19  Bruno Haible  <bruno@clisp.org>
15403         lchown tests: Be more permissive regarding errno values.
15404         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
15405         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
15406         alternative to ENOSYS.
15407         * modules/lchown-tests (Depends-on): Add 'errno'.
15408         * modules/fchownat-tests (Depends-on): Likewise.
15410 2018-12-18  Bruno Haible  <bruno@clisp.org>
15412         duplocale: Avoid test failure on AIX 7.
15413         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
15414         (configure.ac): Invoke gt_FUNC_USELOCALE.
15415         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
15416         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
15417         works.
15419 2018-12-18  Bruno Haible  <bruno@clisp.org>
15421         localename: Fix test failure on AIX 7.
15422         Reported by Assaf Gordon in
15423         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
15424         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
15425         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
15426         instead of ac_cv_func_uselocale.
15427         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
15428         HAVE_USELOCALE.
15429         * lib/localename-table.h: Likewise.
15430         * lib/localename-table.c: Likewise.
15431         * tests/test-localename.c: Likewise.
15432         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
15434 2018-12-18  Bruno Haible  <bruno@clisp.org>
15436         localename: Update comments regarding Cygwin.
15437         * lib/localename.c: Update comment.
15438         * doc/posix-functions/uselocale.texi: Update platforms list.
15439         * doc/posix-functions/newlocale.texi: Likewise.
15440         * doc/posix-functions/duplocale.texi: Likewise.
15441         * doc/posix-functions/freelocale.texi: Likewise.
15443 2018-12-16  Bruno Haible  <bruno@clisp.org>
15445         c-stack: Fix for Linux/sparc.
15446         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
15447         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
15449 2018-12-16  Bruno Haible  <bruno@clisp.org>
15451         localename: Avoid test failure on some glibc systems.
15452         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
15453         Unset environment variables that might disturb the first setlocale call,
15454         and verify that this setlocale call succeeds.
15456 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
15458         random: Fix build error on native Windows (regression from 2018-06-21).
15459         * lib/random.c (__srandom, __initstate, __setstate, __random,
15460         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
15461         to the symbols without '__' prefix.
15463 2018-12-16  Bruno Haible  <bruno@clisp.org>
15465         obstack, libc-config: Support HP-UX cc in C99 mode.
15466         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
15467         compiler, even when in C99 mode.
15468         * lib/cdefs.h (__flexarr): Likewise.
15469         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
15471 2018-12-16  Bruno Haible  <bruno@clisp.org>
15473         localename: Fix test failure on OpenBSD >= 6.2.
15474         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
15475         locale system. Define HAVE_FAKE_LOCALES in this case.
15476         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
15477         HAVE_USELOCALE.
15478         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
15479         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
15480         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
15481         platforms list.
15482         * doc/posix-functions/newlocale.texi: Likewise.
15483         * doc/posix-functions/duplocale.texi: Update platforms list.
15484         * doc/posix-functions/freelocale.texi: Likewise.
15486 2018-12-16  Bruno Haible  <bruno@clisp.org>
15488         duplocale tests: Re-enable the test on platforms without <monetary.h>.
15489         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
15490         of the test, on platforms without <monetary.h>.
15492 2018-12-16  Bruno Haible  <bruno@clisp.org>
15494         localename: Update comments.
15495         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
15497 2018-12-15  Jim Meyering  <meyering@fb.com>
15499         regex: fix indentation
15500         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
15502 2018-12-15  Bruno Haible  <bruno@clisp.org>
15504         openat-safer tests: Avoid test failure on NetBSD 8.
15505         * tests/test-openat-safer.c (main): Execute a Linux specific test only
15506         on Linux.
15508 2018-12-15  Jim Meyering  <meyering@fb.com>
15510         regex: work around a bug in glibc-2.27 and prior
15511         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
15512         assertion for /0|()0|\1|0/.
15513         * tests/test-regex.c (main): Add the same test here.
15515 2018-12-15  Bruno Haible  <bruno@clisp.org>
15517         localename: Fix use of uninitialized shell variable.
15518         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
15519         gt_cv_locale_solaris114 always before use. Remove assignment without
15520         effect.
15522 2018-12-15  Bruno Haible  <bruno@clisp.org>
15524         dfa tests: Avoid test failure on Alpine Linux.
15525         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
15526         command found on Alpine Linux.
15528 2018-12-15  Jim Meyering  <meyering@fb.com>
15530         dfa: avoid new warnings from gcc
15531         These would prevent building with -Werror and a Dec snapshot of gcc.
15532         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
15533         Rename each inner instance to "p".
15534         (charclass_context): Remove unused static function.
15536 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
15538         mkdir-p: improve diagnostic for FUSE mounts
15539         Problem reported by Niklas Hambüchen in:
15540         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
15541         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
15542         errno to mkdir errno if the stat errno is likely more interesting.
15544 2018-12-14  Bruno Haible  <bruno@clisp.org>
15546         hash-map: Add tests.
15547         * tests/test-hash_map.c: New file.
15548         * modules/hash-map-tests: New file.
15550         linkedhash-map: Add tests.
15551         * tests/test-linkedhash_map.c: New file.
15552         * modules/linkedhash-map-tests: New file.
15554         array-map: Add tests.
15555         * tests/test-array_map.c: New file.
15556         * modules/array-map-tests: New file.
15558         xmap: New module.
15559         * lib/gl_xmap.h: New file.
15560         * lib/gl_xmap.c: New file.
15561         * modules/xmap: New file.
15563         hash-map: New module.
15564         * lib/gl_hash_map.h: New file.
15565         * lib/gl_hash_map.c: New file.
15566         * modules/hash-map: New file.
15568         linkedhash-map: New module.
15569         * lib/gl_linkedhash_map.h: New file.
15570         * lib/gl_linkedhash_map.c: New file.
15571         * lib/gl_anyhash1.h: Update comments.
15572         * lib/gl_anyhash2.h: Likewise.
15573         * modules/linkedhash-map: New file.
15575         array-map: New module.
15576         * lib/gl_array_map.h: New file.
15577         * lib/gl_array_map.c: New file.
15578         * modules/array-map: New file.
15580         map: New module.
15581         * lib/gl_map.h: New file.
15582         * lib/gl_map.c: New file.
15583         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
15584         conflict with gl_map.h.
15585         * modules/map: New file.
15587 2018-12-13  Bruno Haible  <bruno@clisp.org>
15589         select tests: Avoid test failure on Cygwin.
15590         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
15592 2018-12-13  Bruno Haible  <bruno@clisp.org>
15594         localtime-buffer: Avoid endless recursion in localtime and gmtime.
15595         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
15597 2018-12-13  Bruno Haible  <bruno@clisp.org>
15599         localeconv tests: Avoid test failure on Cygwin.
15600         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
15601         'mon_grouping' tests.
15603 2018-12-11  Bruno Haible  <bruno@clisp.org>
15605         omap: Don't dispose the old value when the function returns it.
15606         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
15607         here.
15608         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
15609         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
15610         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
15611         here.
15613         array-omap, avltree-omap, rbtree-omap: Tweak style.
15614         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
15615         false.
15616         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
15618         rbtree-omap: Add tests.
15619         * tests/test-rbtree_omap.c: New file.
15620         * modules/rbtree-omap-tests: New file.
15622         avltree-omap: Add tests.
15623         * tests/test-avltree_omap.c: New file.
15624         * modules/avltree-omap-tests: New file.
15626         array-omap: Add tests.
15627         * tests/test-array_omap.c: New file.
15628         * modules/array-omap-tests: New file.
15630         xomap: New module.
15631         * lib/gl_xomap.h: New file.
15632         * lib/gl_xomap.c: New file.
15633         * modules/xomap: New file.
15635         rbtree-omap: New module.
15636         * lib/gl_rbtree_omap.h: New file.
15637         * lib/gl_rbtree_omap.c: New file.
15638         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
15639         Parameterize.
15640         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
15641         * modules/rbtree-omap: New file.
15642         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
15643         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
15645         avltree-omap: New module.
15646         * lib/gl_avltree_omap.h: New file.
15647         * lib/gl_avltree_omap.c: New file.
15648         * lib/gl_avltree_ordered.h: Code moved to here from
15649         lib/gl_avltree_oset.c. Parameterize.
15650         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
15651         * lib/gl_anytree_omap.h: New file.
15652         * modules/avltree-omap: New file.
15653         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
15654         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
15656         array-omap: New module.
15657         * lib/gl_array_omap.h: New file.
15658         * lib/gl_array_omap.c: New file.
15659         * modules/array-omap: New file.
15661         omap: New module.
15662         * lib/gl_omap.h: New file.
15663         * lib/gl_omap.c: New file.
15664         * modules/omap: New file.
15666 2018-12-11  Bruno Haible  <bruno@clisp.org>
15668         hash-set, linkedhash-set: Reduce code duplication.
15669         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
15670         lib/gl_anyhash_set1.h.
15671         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
15672         lib/gl_anyhash_set2.h. Parameterize.
15673         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
15674         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
15675         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
15676         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
15677         * lib/gl_rbtreehash_list.c: Likewise.
15678         * lib/gl_linkedhash_list.c: Likewise.
15679         (hash_resize_after_add): Remove function.
15680         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
15681         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
15682         * gl_hash_set.c: Likewise.
15683         * modules/avltreehash-list (Files, Makefile.am): Update file list.
15684         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
15685         * modules/linkedhash-list (Files, Makefile.am): Likewise.
15686         * modules/linkedhash-set (Files, Makefile.am): Likewise.
15687         * modules/hash-set (Files, Makefile.am): Likewise.
15689 2018-12-11  Bruno Haible  <bruno@clisp.org>
15691         array-set: Optimize.
15692         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
15693         outside the loop, not inside the loop.
15695 2018-12-11  Bruno Haible  <bruno@clisp.org>
15697         times: Fix tests.
15698         * tests/test-times.c (doublecmp): Implement a total order.
15700 2018-12-11  Bruno Haible  <bruno@clisp.org>
15702         array-set, linkedhash-set, hash-set: Fix tests.
15703         * tests/test-array_set.c (cmp_objects_in_array): New function.
15704         (check_equals): Use it.
15705         * tests/test-hash_set.c: Likewise.
15706         * tests/test-linkedhash_set.c: Likewise.
15708 2018-12-08  Bruno Haible  <bruno@clisp.org>
15710         Fix comments.
15711         * lib/gl_list.h (gl_list_free): Clarify what it does.
15712         * lib/gl_oset.h (gl_oset_free): Likewise.
15713         * lib/gl_set.h (gl_set_free): Likewise.
15714         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
15715         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
15716         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
15717         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
15719 2018-12-03  Bruno Haible  <bruno@clisp.org>
15721         hash-set: Add tests.
15722         * tests/test-hash_set.c: New file.
15723         * modules/hash-set-tests: New file.
15725         linkedhash-set: Add tests.
15726         * tests/test-linkedhash_set.c: New file.
15727         * modules/linkedhash-set-tests: New file.
15729         array-set: Add tests.
15730         * tests/test-array_set.c: New file.
15731         * modules/array-set-tests: New file.
15733         xset: New module.
15734         * lib/gl_xset.h: New file.
15735         * lib/gl_xset.c: New file.
15736         * modules/xset: New file.
15738         hash-set: New module.
15739         * lib/gl_hash_set.h: New file.
15740         * lib/gl_hash_set.c: New file.
15741         * modules/hash-set: New file.
15743         linkedhash-set: New module.
15744         * lib/gl_linkedhash_set.h: New file.
15745         * lib/gl_linkedhash_set.c: New file.
15746         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
15747         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
15748         * lib/gl_anyhash_primes.h: New file, extracted from
15749         lib/gl_anyhash_list2.h.
15750         * lib/gl_anyhash_list2.h: Include it.
15751         (primes, next_prime): Remove definitions.
15752         * modules/linkedhash-set: New file.
15753         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
15754         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
15755         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
15756         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
15757         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
15758         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
15760         array-set: New module.
15761         * lib/gl_array_set.h: New file.
15762         * lib/gl_array_set.c: New file.
15763         * modules/array-set: New file.
15765         set: New module.
15766         * lib/gl_set.h: New file.
15767         * lib/gl_set.c: New file.
15768         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
15769         gl_set.h.
15770         * modules/set: New file.
15772 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
15774         bison: don't force the Yacc mode
15775         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
15776         errors when Bison features are used in the grammar file.  Some of
15777         these features (such as %expect) were flagged non-yacc recently.  Most
15778         of the time, -y is actually used to please Automake's ylwrap which
15779         expects the output to be y.tab.c.
15780         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
15782 2018-12-01  Bruno Haible  <bruno@clisp.org>
15784         gnupload: Document short options.
15785         * build-aux/gnupload (usage): Document the short options.
15787 2018-11-28  Ben Elliston  <bje@gnu.org>
15789         gnupload: Support option -h as alias of --help.
15790         * build-aux/gnupload: Support -h.
15792 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
15794         memrchr: port better to clang
15795         * lib/memrchr.c (__memrchr): Cast to void * instead of to
15796         longword *, to pacify clang -Wcast-align (Bug#33544).
15798 2018-11-29  Eric Blake  <eblake@redhat.com>
15800         docs: mention printf %m considerations
15801         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
15802         is not portable, and is easy enough to work around.
15803         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
15804         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
15805         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
15806         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
15807         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
15808         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
15809         * doc/posix-functions/printf.texi (printf): Likewise.
15810         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
15811         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
15812         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
15813         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15814         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15815         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
15816         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15817         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15818         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
15819         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
15820         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15821         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
15823 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
15825         bitset: rename ebitset/expandable.* as tbitset/table.*
15826         See
15827         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
15828         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
15829         * lib/bitset/table.h, lib/bitset/table.c: these.
15830         Rename all the ebitset* symbols as tbitset*.
15831         Adjust dependencies.
15833 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
15835         bitset: check the operations
15836         * tests/test-bitset.c (bitset_random): New.
15837         Use it.
15838         * lib/bitset/expandable.c (ebitset_not): Fix typo.
15840 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
15842         bitset: properly use false/true instead of 0/1 for Booleans
15843         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
15844         0/1, as Booleans.
15846 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
15848         bitset: rename BITSET_VARRAY as BITSET_VECTOR
15849         For consistency with the name of the file.
15850         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
15851         * lib/bitset/stats.c, lib/bitset/vector.c
15852         (BITSET_VARRAY): Rename as...
15853         (BITSET_VECTOR): this.
15855 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
15857         strerror_r-posix: memmove, not memcpy
15858         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
15859         since the source and destination might overlap in the call
15860         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
15861         Simplify.
15863 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
15865         bitsetv: new module
15866         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
15868 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
15870         bitset: add tests and doc
15871         First stabs at providing a documentation and test for the bitset
15872         module.
15873         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
15875 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
15877         bitset: new module
15878         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
15879         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
15880         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
15881         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
15882         * lib/bitset/vector.h, modules/bitset:
15883         New.
15885 2018-11-23  Bruno Haible  <bruno@clisp.org>
15887         localename: Fix gettext test failures on mingw.
15888         * lib/localename.c (gl_locale_name_posix): Convert the result of
15889         gl_locale_name_environ to XPG syntax.
15891 2018-11-23  Karl Berry  <karl@freefriends.org>
15893         * config/srclistvars.txt,
15894         * config/srclist.txt: remove all gettext references;
15895         the gettext maintainers will sync as needed.
15897 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
15899         mktime: add libc-config dependency
15900         I missed this when we synced from glibc.
15901         * modules/mktime (Depends-on): Add libc-config.
15903 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
15905         longlong: fix comment typo
15906         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
15908 2018-11-11  Bruno Haible  <bruno@clisp.org>
15910         havelib: Remove the need to include asm-underscore.m4.
15911         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
15912         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
15913         gl_HOST_CPU_C_ABI.
15914         * modules/havelib (Files): Add host-cpu-c-abi.m4.
15915         (Depends-on): Remove host-cpu-c-abi.
15917 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
15919         parse-datetime: simplify test for mktime failure
15920         * lib/parse-datetime.y (mktime_ok): Simplify.
15921         Remove args TZ and T; no longer needed.  Callers changed.
15923         posixtm: simplify test for mktime failure
15924         * lib/posixtm.c (posixtime): Simplify.
15926         nstrftime: simplify test for mktime failure
15927         * lib/nstrftime.c (__strftime_internal): Simplify.
15929 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15931         gnulib-common.m4: port _Noreturn to C++
15932         Problem reported by Akim Demaille in:
15933         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
15934         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
15935         Merge adjustments from _Noreturn.h and from glibc into the non-C++
15936         version.
15937         * lib/_Noreturn.h: Match gnulib-common.
15939 2018-10-30  Bruno Haible  <bruno@clisp.org>
15941         gnu-make: Fix for NetBSD 8 'make'.
15942         Reported by Reuben Thomas in
15943         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
15944         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
15945         output, ignoring exit codes.
15947 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
15949         maintainer-makefile: fix syntax-check rule for "same.h"
15950         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
15951         for 'same_nameat', too.
15953 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
15955         havelib: fix nested ‘configure’ chatter
15956         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
15957         AC_CACHE_CHECK calls, which resulted in confusing output like
15958         “checking for the common suffixes of directories in the library
15959         search path... checking for 64-bit host... no lib,lib”.
15961         backupfile: tweak for better code
15962         * lib/backupfile.c: Sort include directives, and remove
15963         unnecessary <limits.h> include.
15964         (FALLTHROUGH): New macro, copied from other modules.
15965         (backupfile_internal): Use it to avoid code duplication.
15966         This lets GCC 8.2.1 generate better code by inlining the
15967         call to check_extension.
15969 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
15971         backupfile: new dir_fd args
15972         New module opendirat with code taken from fts.
15973         Use this module to let backupfile use a directory file descriptor.
15974         * NEWS: Document the incompatible change.
15975         * lib/backup-find.c (find_backup_file_name):
15976         * lib/backup-rename.c (backup_file_rename):
15977         New arg DIR_FD.
15978         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
15979         (SIZE_MAX): Remove.
15980         Include opendirat.h rather than dirent--.h.
15981         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
15982         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
15983         (backupfile_internal): New arg DIR_FD.  All callers changed.
15984         * lib/fts.c: Include opendirat.h.
15985         (opendirat): Move to opendirat.c.
15986         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
15987         * modules/backupfile (Depends-on): Remove dirfd, opendir.
15988         Add opendirat.
15989         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
15990         Add opendirat.
15992 2018-10-23  Bruno Haible  <bruno@clisp.org>
15994         localename: Simplify support for per-thread locales on Solaris 11.4.
15995         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
15996         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
15997         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
15998         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
15999         specific code.
16000         * lib/localename-table.h: Update comments.
16001         * lib/localename-table.c: Update comments.
16002         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
16003         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
16004         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
16005         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
16006         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
16007         HAVE_NAMELESS_LOCALES here.
16008         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
16009         m4/intlsolaris.m4.
16010         * modules/gettext (Files): Likewise.
16012 2018-10-22  Bruno Haible  <bruno@clisp.org>
16014         std-gnu11: Support Autoconf versions < 2.64.
16015         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
16016         when _AC_DO_LIMIT does not exist.
16018 2018-10-22  Bruno Haible  <bruno@clisp.org>
16020         Assume Autoconf >= 2.63.
16021         * DEPENDENCIES: Mention the requirement.
16023         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
16024         (func_get_filelist): Don't list m4/onceonly.m4 any more.
16025         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
16026         * m4/onceonly.m4: Remove file.
16028         * m4/openmp.m4: Remove file.
16029         * modules/openmp (Files): Remove m4/openmp.m4.
16031         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
16032         htmldir, dvidir, pdfdir, psdir, localedir.
16033         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
16035         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
16036         Autoconf < 2.60.
16037         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
16038         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
16040         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
16041         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
16042         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
16044         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
16045         exists.
16046         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
16048         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
16049         Autoconf < 2.61.
16051         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
16052         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
16053         Autoconf >= 2.52.
16055         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
16056         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
16057         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
16059 2018-10-22  Bruno Haible  <bruno@clisp.org>
16061         Assume Automake >= 1.11.
16062         * m4/configmake.m4: Update comments.
16063         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
16064         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
16065         of 'eval'.
16066         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
16067         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
16068         requires Automake >= 1.11.
16070 2018-10-22  Bruno Haible  <bruno@clisp.org>
16072         localename: Fix typo in comment.
16073         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
16075 2018-10-22  Bruno Haible  <bruno@clisp.org>
16077         Fix failure of 'gnulib-tool --create-testdir' with all modules.
16078         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
16080 2018-10-21  Bruno Haible  <bruno@clisp.org>
16082         locale: Ease integration with GNU libintl.
16083         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
16084         GNULIB_defined_freelocale): New macros.
16086 2018-10-21  Bruno Haible  <bruno@clisp.org>
16088         localename: Fine-tune support for per-thread locales on Solaris 11.4.
16089         * lib/localename-table.h: New file, extracted from lib/localename.c.
16090         * lib/localename-table.c: Likewise.
16091         * lib/localename.c: Include localename-table.h.
16092         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
16093         locale_hash_function instead of pointer_hash.
16094         * modules/localename (Files): Add lib/localename-table.h,
16095         lib/localename-table.c.
16096         (lib_SOURCES): Add localename-table.c.
16097         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
16098         for Solaris 11.4 locale system only on Solaris. Test for it
16099         independently whether getlocalename_l exists.
16100         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
16101         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
16102         HAVE_NAMELESS_LOCALES.
16103         * modules/gettext (Files): Add m4/intlsolaris.m4.
16105 2018-10-21  Bruno Haible  <bruno@clisp.org>
16107         Small update from gettext.
16108         * m4/intl.m4: Update from gettext:
16109         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
16110         mode on AIX.
16111         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
16112         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
16114 2018-10-16  Bruno Haible  <bruno@clisp.org>
16116         mountlist: Remove support for Cray with UNICOS 9.
16117         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
16118         MOUNTED_LISTMNTENT.
16119         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
16121 2018-10-16  Bruno Haible  <bruno@clisp.org>
16123         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
16124         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
16125         STAT_STATFS2_FS_DATA.
16126         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
16127         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
16128         MOUNTED_GETMNT.
16129         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
16130         * lib/getloadavg.c (decstation): Remove definition and case.
16131         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
16132         * lib/getgroups.c: Likewise.
16133         * doc/posix-functions/getgroups.texi: Likewise.
16134         * lib/time.in.h: Update comments.
16136 2018-10-16  Bruno Haible  <bruno@clisp.org>
16138         getloadavg: Remove support for ConvexOS.
16139         * lib/getloadavg.c: Remove convex case.
16141 2018-10-16  Bruno Haible  <bruno@clisp.org>
16143         getloadavg: Remove support for Sony NEWS.
16144         * lib/getloadavg.c: Remove sony_news case.
16146 2018-10-16  Bruno Haible  <bruno@clisp.org>
16148         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
16149         * lib/fsusage.c: Remove _SEQUENT_ case.
16150         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
16151         * lib/mountlist.c: Don't test for MNTTABNAME.
16152         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
16153         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
16154         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
16155         * lib/stat-size.h: Don't mention the Sequent bug.
16156         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
16158 2018-10-16  Bruno Haible  <bruno@clisp.org>
16160         fsusage: Remove support for AIX 3.
16161         * lib/fsusage.c: Remove code for AIX 3.
16162         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
16164 2018-10-16  Bruno Haible  <bruno@clisp.org>
16166         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
16167         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
16168         * lib/fsusage.c: Remove code for AIX PS/2.
16169         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
16170         * lib/getloadavg.c: Likewise.
16172 2018-10-16  Bruno Haible  <bruno@clisp.org>
16174         getloadavg: Remove support for HP-UX on m68k.
16175         * lib/getloadavg.c: Remove hp9000s300 case.
16177 2018-10-16  Bruno Haible  <bruno@clisp.org>
16179         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
16180         * lib/fsusage.c: Remove DOLPHIN case.
16181         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
16182         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
16184 2018-10-16  Bruno Haible  <bruno@clisp.org>
16186         getloadavg: Remove support for Alliant FX/2800.
16187         * lib/getloadavg.c: Remove alliant case.
16189 2018-10-16  Bruno Haible  <bruno@clisp.org>
16191         getloadavg: Remove support for tek4300.
16192         * lib/getloadavg.c: Remove tek4300 case.
16194 2018-10-16  Bruno Haible  <bruno@clisp.org>
16196         getloadavg: Remove support for Ardent.
16197         * lib/getloadavg.c: Remove ardent case.
16199 2018-10-16  Bruno Haible  <bruno@clisp.org>
16201         mountlist: Remove support for SVR2.
16202         Reported by Andrew Borodin <aborodin@vmail.ru> in
16203         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
16204         * lib/mountlist.c: Remove MOUNTED_FREAD case.
16205         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
16206         MOUNTED_FREAD.
16208 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
16210         libc-config: merge from glibc
16211         * lib/cdefs.h (__glibc_has_attribute): New macro.
16213         regex: depend on libc-config
16214         * modules/regex (Depends-on): Add libc-config.
16215         This is needed after the recent autoupdate from glibc.
16217 2018-10-14  Bruno Haible  <bruno@clisp.org>
16219         localename: Add support for per-thread locales on Solaris 11.4.
16220         * lib/locale.in.h (newlocale, freelocale): New declarations.
16221         (duplocale): Declare also when the 'localename' module requests it.
16222         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
16223         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
16224         (struniq): Update.
16225         (struct locale_categories_names, struct locale_hash_node): New types.
16226         (LOCALE_HASH_TABLE_SIZE): New constant.
16227         (locale_hash_table, locale_lock): New variables.
16228         (pointer_hash, get_locale_t_name): New functions.
16229         (newlocale, duplocale, freelocale): New overridden functions.
16230         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
16231         * m4/intlsolaris.m4: New file.
16232         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
16233         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
16234         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
16235         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
16236         declared.
16237         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
16238         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
16239         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
16240         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
16241         * modules/localename (Files): Add intlsolaris.m4.
16242         (Depends-on): Add 'locale'.
16243         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
16244         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
16245         the signatures.
16247 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
16249         timevar: use gethrxtime to get wall clock time
16250         clock_gettime is not portable.  gethrxtime takes the best available
16251         option to get the wall clock time, including clock_gettime (monotonic
16252         clock), and gettime (non monotonic).
16253         Also, using xtime_t instead of float preserves the precision.
16254         Suggested by Bruno Haible.
16255         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
16256         * modules/timevar (Depends-on): We need gethrxtime.
16257         We no longer use times().
16258         (Link): Update.
16259         * lib/timevar.h (timevar_time_def): Use xtime_t.
16260         * lib/timevar.c (set_to_current_time): Use gethrxtime.
16261         (timevar_print): Instead of checking whether the timings themselves
16262         are large enough for the timevar to be printed, check the percentages.
16264 2018-10-14  Bruno Haible  <bruno@clisp.org>
16266         wcsnrtombs: Work around Solaris 11.4 bug.
16267         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
16268         macro.
16269         (gl_FUNC_WCSNRTOMBS): Invoke it.
16270         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
16272 2018-10-14  Bruno Haible  <bruno@clisp.org>
16274         mbsnrtowcs: Work around Solaris 11.4 bug.
16275         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
16276         macro.
16277         (gl_FUNC_MBSNRTOWCS): Invoke it.
16278         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
16280 2018-10-14  Bruno Haible  <bruno@clisp.org>
16282         doc: Update for Solaris 11.4.
16283         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
16284         mention Solaris 11.4.
16285         * m4/printf.m4: Update comments about Solaris.
16286         * m4/log.m4: Likewise.
16287         * m4/log10.m4: Likewise.
16288         * m4/logb.m4: Likewise.
16289         * m4/logbf.m4: Likewise.
16290         * m4/logbl.m4: Likewise.
16291         * m4/rename.m4: Likewise.
16292         * m4/wcrtomb.m4: Likewise.
16293         * m4/hostent.m4: Likewise.
16294         * m4/servent.m4: Likewise.
16296 2018-10-14  Bruno Haible  <bruno@clisp.org>
16298         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
16299         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
16300         pointer.
16301         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
16302         pointer.
16303         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
16304         pointer.
16305         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
16306         pointer.
16307         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
16308         pointer.
16310 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
16312         bootstrap: fix wget command for po files.
16313         * build-aux/bootstrap (po_download_command_format): Fix comment,
16314         and adjust callers.
16316 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
16318         timevar: improve the output format
16319         Suggested by Bruno Haible.
16320         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
16321         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
16322         wall, since its resolution is much higher.
16324 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
16326         timevar: expect that getrusage is available.
16327         Don't keep both times and getrusage as backend: both are guaranteed by
16328         gnulib, a single one suffices.  Using getrusage is open to possibly
16329         tracking other types of resources in the future.
16330         * modules/timevar (Depends-on): Add getrusage.
16331         (configure.ac): Remove gl_TIMEVAR.
16332         (Files): Remove m4/timevar.m4.
16333         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
16334         * lib/timevar.h (timevar_enabled): Clarify documentation.
16335         * lib/timevar.c: Remove all the code about times.
16336         Remove all the CPP guards about getrusage: expect it to be present
16337         (courtesy of gnulib).
16339 2018-10-12  Bruno Haible  <bruno@clisp.org>
16341         mountlist: Improve support for Solaris in 64-bit mode.
16342         Reported by David Wood <David.Wood@deshaw.com> in
16343         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
16344         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
16345         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
16346         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
16348 2018-10-12  Bruno Haible  <bruno@clisp.org>
16350         mountlist: Add support for Minix.
16351         Reported by Assaf Gordon in
16352         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
16353         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
16354         AC_CHECK_FUNCS to check for 'getmntinfo'.
16355         * lib/mountlist.c: Update comments.
16357 2018-10-12  Bruno Haible  <bruno@clisp.org>
16359         Make better use of Autoconf.
16360         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
16361         * m4/manywarnings.m4: Likewise.
16362         * m4/manywarnings-c++.m4: Likewise.
16363         * m4/socklen.m4: Likewise.
16364         * m4/sockpfaf.m4: Likewise.
16365         * m4/stdarg.m4: Likewise.
16366         * m4/visibility.m4: Likewise.
16367         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
16368         indentation.
16369         * m4/ls-mntd-fs.m4: Likewise.
16371 2018-10-11  Bruno Haible  <bruno@clisp.org>
16373         mountlist: Modernize platform lists.
16374         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
16375         platforms, deemphasizing the obsolete ones.
16376         * lib/mountlist.c: Likewise.
16378 2018-10-11  Bruno Haible  <bruno@clisp.org>
16380         getprogname: Add support for 32-bit programs on HP-UX.
16381         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
16382         try the similar functions 32-bit programs on 64-bit HP-UX.
16384 2018-10-11  Bruno Haible  <bruno@clisp.org>
16386         getprogname: Work around program name truncation when possible.
16387         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
16388         possibly use pst_cmd instead.
16390 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
16392         fts: cleanup after FTS_NOATIME removal
16393         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
16394         (FTS_STOP): Shrink to minimal values.  We don’t need to
16395         worry about binary compatibility in Gnulib, and the old way
16396         of doing things had a hole in the user options that caused
16397         FTS_OPTIONMASK to not work as desired.
16399 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
16401         fts: remove FTS_NOATIME
16402         This reverts commit da4d6974013c822af1498941e32db774b2031765.
16403         We cannot guarantee that O_NOATIME works: e.g. openat fails
16404         with EPERM if the effective user ID of the caller does not match
16405         the owner of the file and the caller is not privileged.
16406         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
16407         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
16408         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
16409         (FTS_OPTIONMASK): Adjust.
16410         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
16411         (fd_ring_check): Likewise.
16413 2018-10-08  Bruno Haible  <bruno@clisp.org>
16415         csharpcomp*, csharpexec*: Remove support for pnet.
16416         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
16417         HAVE_CSCC.
16418         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
16419         Don't test HAVE_CSCC.
16420         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
16421         (compile_csharp_class): Don't invoke it.
16422         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
16423         HAVE_ILRUN.
16424         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
16425         Don't test HAVE_ILRUN.
16426         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
16427         (execute_csharp_program): Don't invoke it.
16428         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
16429         any more.
16431 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
16433         renameatu: prefer renameat2 to syscall
16434         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
16435         Use renameat2 instead of syscall (Bug#32796).
16436         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
16438 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
16440         bootstrap, gnulib-tool: use https instead of insecure rsync
16441         * build-aux/bootstrap (download_po_files, po_download_command_format):
16442         Don't try using rsync; always use wget over https to fetch PO files.
16443         * gnulib-tool (func_import): Likewise.
16444         * pygnulib/GLImport.py (GLImport.execute): Likewise.
16446 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
16448         bootstrap, gnulib-tool: correct the translations wget command
16449         * build-aux/bootstrap (po_download_command_format2): Restrict
16450         recursion to a single level.
16451         * gnulib-tool (func_import): Likewise.
16452         * pygnulib/GLImport.py (GLImport.execute): Likewise.
16454 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
16456         doc: the gnulib snapshots are not maintained
16457         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
16459 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
16461         timevar: add to lib_SOURCES
16462         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
16464 2018-10-07  Bruno Haible  <bruno@clisp.org>
16466         dirent: Update documentation.
16467         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
16469 2018-10-05  Bruno Haible  <bruno@clisp.org>
16471         strpbrk: Make it possible to namespace the defined symbol.
16472         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
16474 2018-10-05  Bruno Haible  <bruno@clisp.org>
16476         strcspn: Make it possible to namespace the defined symbol.
16477         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
16479 2018-10-05  Bruno Haible  <bruno@clisp.org>
16481         raise: Make it possible to namespace the defined symbol.
16482         * lib/raise.c (raise): Undefine only after the replacement function has
16483         been defined.
16484         (raise): Renamed from rpl_raise.
16485         (raise_nothrow): Move to the end of the compilation unit.
16487 2018-10-05  Bruno Haible  <bruno@clisp.org>
16489         memcmp: Make it possible to namespace the defined symbol.
16490         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
16492 2018-10-05  Bruno Haible  <bruno@clisp.org>
16494         explicit_bzero: Make it possible to namespace the defined symbol.
16495         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
16496         glibc.
16498 2018-10-05  Bruno Haible  <bruno@clisp.org>
16500         mkdir-p: Depend on 'mkdir'.
16501         * modules/mkdir-p (Depends-on): Add 'mkdir'.
16503 2018-10-05  Bruno Haible  <bruno@clisp.org>
16505         tempname: Depend on 'mkdir'.
16506         Reported by Maarten Bosmans <mkbosmans@gmail.com>
16507         at <https://savannah.gnu.org/bugs/?33379>.
16508         * modules/tempname (Depends-on): Add 'mkdir'.
16510 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
16512         timevar: rely on gnulib modules for time portability.
16513         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
16514         * m4/timevar.m4: Don't check for clock_t and struct tms,
16515         guaranteed by gnulib.
16516         * lib/timevar.h: Use extern "C" protection.
16517         Include <stdio.h> for FILE.
16518         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
16519         they are guaranteed by gnulib.
16520         Remove uses of clock as (now useless) fallback.
16522 2018-10-04  Bruno Haible  <bruno@clisp.org>
16524         sh-filename: New module.
16525         * m4/sh-filename.m4: New file.
16526         * modules/sh-filename: New file.
16527         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
16528         "/bin/sh".
16529         * tests/test-posix_spawn1.c (main): Likewise.
16530         * tests/test-posix_spawn2.c (main): Likewise.
16531         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
16532         is_envjavac_gcj43): Likewise.
16533         * lib/javaexec.c (execute_java_class): Likewise.
16534         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
16535         * modules/posix_spawnp-tests (Depends-on): Likewise.
16536         * modules/javacomp (Depends-on): Likewise.
16537         * modules/javaexec (Depends-on): Likewise.
16539 2018-10-04  Bruno Haible  <bruno@clisp.org>
16541         spawn-pipe tests: Avoid test failure on native Windows.
16542         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
16543         that fd 2 is closed.
16545 2018-10-04  Bruno Haible  <bruno@clisp.org>
16547         fcntl: Make it possible to namespace the defined symbol.
16548         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
16549         been defined.
16550         (fcntl): Renamed from rpl_fcntl.
16551         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
16552         from fcntl.
16553         (klibc_fcntl): Move to the end of the compilation unit.
16555 2018-10-02  Bruno Haible  <bruno@clisp.org>
16557         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
16558         * tests/test-vasnprintf.c (test_function): Change the test added on
16559         2018-09-23 to check only the 18 most significant digits.
16561         vasnprintf tests: Avoid test failure on Cygwin.
16562         * tests/test-vasnprintf.c (test_function): Change the test added on
16563         2018-09-23 to check only the 42 most significant digits.
16565 2018-10-01  Bruno Haible  <bruno@clisp.org>
16567         mkostemp, mkostemps: Update documentation.
16568         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
16569         * doc/glibc-functions/mkostemps.texi: Likewise.
16571 2018-10-01  Tom Tromey  <tom@tromey.com>
16573         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
16574         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
16575         on OS X.
16577 2018-09-30  Pádraig Brady  <P@draigBrady.com>
16579         hmac-*: refactor to remove repetitive code
16580         * lib/hmac.c: A new parameterized single implementation.
16581         * lib/hmac-md5.c: Define parameters and include implementation.
16582         * lib/hmac-sha1.c: Likewise.
16583         * lib/hmac-sha256.c: Likewise.
16584         * lib/hmac-sha512.c: Likewise.
16585         * modules/crypto/hmac-md5: Reference the new implementation file.
16586         * modules/crypto/hmac-sha1: Likewise.
16587         * modules/crypto/hmac-sha256: Likewise.
16588         * modules/crypto/hmac-sha512: Likewise.
16589         * tests/test-hmac-md5.c: Refactor common code to a single function.
16590         * tests/test-hmac-sha1.c: Likewise.
16591         * tests/test-hmac-sha256.c: Likewise.
16592         * tests/test-hmac-sha512.c: Likewise.
16594 2018-09-30  Zhang Qing  <zhangqingl@126.com>
16596         hmac-sha512: fix hash for keys > blocksize (128 bytes)
16597         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
16598         key length to that output by sha512, not the blocksize.
16599         Otherwise uninitialized data from the stack
16600         is used when computing the hash.
16601         * tests/test-hmac-sha512.c: Add a shortened key test case.
16602         Reported at https://github.com/coreutils/gnulib/pull/5
16604 2018-09-30  Bruno Haible  <bruno@clisp.org>
16606         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
16607         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
16608         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
16609         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
16610         'unsigned int' before comparison with an unsigned value.
16612 2018-09-30  Bruno Haible  <bruno@clisp.org>
16614         grantpt: Remove unnecessary dependency.
16615         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
16617 2018-09-30  Bruno Haible  <bruno@clisp.org>
16619         timevar: Small tweaks.
16620         * lib/timevar.h: Fix comments. Add parameter names to function
16621         declarations.
16622         * lib/timevar.c: Include timevar.h immediately after config.h.
16623         * lib/timevar.def: Fix comments.
16624         * modules/timevar (Maintainer): List Akim Demaille.
16626 2018-09-30  Bruno Haible  <bruno@clisp.org>
16628         timevar: Include documentation in gnulib manual.
16629         * doc/timevar.texi: Change node and section name to 'Profiling of
16630         program phases'.
16631         In the code snippets, tweak the #includes and use GNU coding style.
16632         * doc/gnulib.texi: Include timevar.texi.
16634 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
16636         timevar: import from Bison.
16637         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
16638         New files.
16639         * lib/timevar.def: New file.
16640         * doc/timevar.texi: New file.
16642 2018-09-26  Bruno Haible  <bruno@clisp.org>
16644         javacomp-script, javacomp: Add preliminary support for Java 12..17.
16645         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
16646         * lib/javacomp.c (default_target_version): Likewise.
16648 2018-09-26  Bruno Haible  <bruno@clisp.org>
16650         javacomp-script, javacomp: Add support for Java 11.
16651         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
16652         target-version 11.
16653         * lib/javaversion.h: Update comments.
16654         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
16655         source_version_index, get_goodcode_snippet, get_failcode_snippet,
16656         TARGET_VERSION_BOUND, target_version_index,
16657         corresponding_classfile_version): Accept source_version 11 and
16658         target_version 11.
16659         * lib/javacomp.h: Update comments accordingly.
16661 2018-09-23  Bruno Haible  <bruno@clisp.org>
16663         vasnprintf: Fix heap memory overrun bug.
16664         Reported by Ben Pfaff <blp@cs.stanford.edu> in
16665         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
16666         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
16667         memory.
16668         * tests/test-vasnprintf.c (test_function): Add another test.
16670 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
16672         maint: mktime.c now shared with glibc
16673         * config/srclist.txt: intprops.h, timegm.c and mktime.c
16674         are now the same in Gnulib and glibc.
16676         mktime: fix _LIBC typo
16677         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
16679 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
16681         dfa: optimization for state merge
16682         * lib/dfa.c (merge2): New function.
16683         (merge_nfa_state): Use it.
16685 2018-09-18  Jim Meyering  <meyering@fb.com>
16687         dfa: trivial comment fix: s/is/if/
16688         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
16690 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
16692         dfa: use more-informative function name
16693         * lib/dfa.c (maybe_disable_superset_dfa):
16694         Rename from dfautf8noss.  Use change.
16696         dfa: tweak allocation performance
16697         * lib/dfa.c (merge_nfa_state, dfaoptimize):
16698         Prefer ptrdiff_t for indexes some more.
16699         Use char for flags, as it’s wide enough.
16700         Allocate queue and flags together, with one malloc call.
16701         No need to use xnmalloc since the multiplication and
16702         addition cannot overflow (it’s already been checked by
16703         earlier allocation).  Prefer memset to open-coding.
16705         dfa: prune states as we go
16706         * lib/dfa.c (prune): Remove.
16707         dfa: reorder enum for efficiency
16708         (merge_nfa_state): Prune as we go instead of at the end.
16709         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
16711         * lib/dfa.c (END): Now -1 again.  Reorder other elements
16712         of the enumeration to make it easier for GCC to generate
16713         efficient code by using fewer comparisons to check for
16714         ranges of values.
16715         (atom): Take advantage of the reordering.
16717 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
16719         dfa: optimize alternation in NFA
16720         Even when similar states exist in alternation, the DFA treats them
16721         as separate items, which may complicate the transition in NFA and
16722         cause slowdown.  This change assembles the states into one.  For
16723         example, ab|ac is changed into a(b|c).  This change speeds-up
16724         matching for many branched patterns.  For example, grep speeds up
16725         more than 30× in:
16727           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
16728           time -p env LC_ALL=C grep -vf in in
16730         * lib/dfa.c (prune): New function.
16731         (merge_nfa_state): New function.  It merges similar NFA states.
16732         (dfaoptimize): New function.  It seeks merged and removed nodes.
16733         (dfaanalyze): Call new function.
16734         (dfautf8noss): Change name from dfaoptimize because of addition of new
16735         function.
16736         (dfacomp): Update caller.
16738         dfa: simplify initial state
16739         Simplifying the initial state enables easier optimization of the NFA.
16740         * lib/dfa.c (enum token): Add new element BEG.
16741         (prtok): Adjust due to adding element BEG.
16742         (dfaparse): Put BEG at a head of tokens.
16743         (state_index): Adjust due to adding element BEG.
16744         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
16745         build initial state.
16746         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
16748 2018-09-18  Bruno Haible  <bruno@clisp.org>
16750         file-has-acl: Fix test failure on Cygwin 2.9.
16751         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
16752         * lib/acl-internal.h: Likewise.
16753         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
16754         * lib/acl-internal.c: Update comments regarding Cygwin.
16755         * lib/acl_entries.c: Likewise.
16756         * lib/file-has-acl.c: Likewise.
16757         (file_has_acl): For Cygwin, use a different way to determine whether
16758         the "default" ACL of a directory is nontrivial.
16759         * lib/get-permissions.c: Update comments regarding Cygwin.
16760         * lib/set-permissions.c: Likewise.
16762 2018-09-18  Bruno Haible  <bruno@clisp.org>
16764         stat-time tests: Fix test failure on Cygwin.
16765         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
16767 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
16769         doc: OS X 10.11 lacked ns time functions
16770         According to <https://github.com/zeromq/libzmq/issues/2175>,
16771         nanosecond-resolution timestamp functions were introduced
16772         in macOS 10.12, so document the last version (OS X 10.11)
16773         where they were absent.
16775         gettime: nanotime never existed
16776         Problem reported by Bruno Haible in:
16777         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
16778         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
16779         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
16781 2018-09-18  Bruno Haible  <bruno@clisp.org>
16783         doc: Update statement about target platforms.
16784         Reported by Simon Sobisch.
16785         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
16786         restrictions on MSVC versions.
16788 2018-09-18  Bruno Haible  <bruno@clisp.org>
16790         posix_spawn tests: Fix link error on 64-bit Cygwin.
16791         * tests/test-posix_spawn1.c (environ): Remove declaration.
16792         * tests/test-posix_spawn2.c (environ): Likewise.
16793         * tests/test-posix_spawn3.c (environ): Likewise.
16794         * tests/test-posix_spawn4.c (environ): Likewise.
16795         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
16796         * modules/posix_spawnp-tests (Depends-on): Likewise.
16798 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
16800         timespec: new function current_timespec
16801         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
16802         and don’t worry about it failing on a CLOCK_REALTIME arg.
16803         POSIX requires it to succeed and I don’t know of any
16804         counterexamples where the fallbacks would work.
16805         (current_timespec): New function, taken from Emacs.  It is more
16806         convenient than gettime, and can help register allocation.
16807         * lib/timespec.h: Include arg-nonnull.h.
16808         (current_timespec): New declaration.
16809         (gettime, settime): Declare args to be nonnull.
16810         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
16812 2018-09-16  Bruno Haible  <bruno@clisp.org>
16814         setlocale: Improve locale handling on macOS 10.12 or newer.
16815         * lib/setlocale.c: Include header files for CoreFoundation. Declare
16816         gl_locale_name_canonicalize.
16817         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
16818         and LC_MESSAGES.
16819         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
16821 2018-09-16  Bruno Haible  <bruno@clisp.org>
16823         Update list of locale names with scripts on macOS.
16824         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
16825         match Mac OS X 10.13 and recent glibc.
16827 2018-09-16  Bruno Haible  <bruno@clisp.org>
16829         gettext: Use newer macOS APIs when possible.
16830         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
16831         CFLocaleCopyPreferredLanguages.
16833 2018-09-16  Bruno Haible  <bruno@clisp.org>
16835         localename: Revisit macOS specific code.
16836         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
16837         Fix comments about Mac OS X versions.
16839 2018-09-15  Bruno Haible  <bruno@clisp.org>
16841         setlocale: Improve support for locales not supported by libc.
16842         Reported by Dapeng Gao <peter@dpgao.cc> at
16843         <https://savannah.gnu.org/bugs/?54479>.
16844         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
16845         (libintl_setlocale): Use a more error-tolerant strategy when the locale
16846         to be set is not supported by libc: Emit warnings instead of failing.
16848 2018-09-15  Bruno Haible  <bruno@clisp.org>
16850         strstr, strcasestr: Add workaround against glibc-2.28 bug.
16851         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
16852         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
16853         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
16854         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
16855         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
16856         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
16857         * doc/glibc-functions/strcasestr.texi: Likewise.
16859 2018-09-14  Bruno Haible  <bruno@clisp.org>
16861         doc: Fix bottom of top-level page.
16862         Reported by Akim Demaille <akim.demaille@gmail.com> in
16863         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
16864         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
16865         mode.
16866         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
16867         accordingly.
16869 2018-09-12  Bruno Haible  <bruno@clisp.org>
16871         Add test case from a recent glibc bug.
16872         * tests/test-strstr.c (main): Add test of long needle.
16873         * tests/test-strcasestr.c (main): Likewise.
16874         * tests/test-c-strstr.c (main): Likewise.
16875         * tests/test-c-strcasestr.c (main): Likewise.
16876         * tests/test-memmem.c (main): Likewise.
16878 2018-09-12  Bruno Haible  <bruno@clisp.org>
16880         Apply Eric Blake's improvements from 2011-02-25 to more tests.
16881         * tests/test-c-strstr.c (main): Add the same tests here as well.
16883 2018-09-12  Bruno Haible  <bruno@clisp.org>
16885         Apply Jim Meyering's fix from 2015-01-11 to more tests.
16886         * tests/test-memmem.c (main): Free haystack.
16887         * tests/test-strcasestr.c (main): Likewise.
16888         * tests/test-c-strcasestr.c (main): Likewise.
16890 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
16892         xstrtol: fix missing-TYPE_SIGNED typo
16893         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
16895 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
16897         timespec: fix resolution confusion
16898         In normal usage, clock resolution is given in seconds, but the
16899         code was mistakenly using inverse seconds and calling it
16900         “resolution”.  Fix this, partly by renaming two identifiers.
16901         The old names will be kept for a bit, to ease transition.
16902         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
16903         New constants, replacing TIMESPEC_RESOLUTION and
16904         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
16905         All uses changed.
16907 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
16909         mktime: simplify in prep for glibc merge
16910         * lib/mktime.c, lib/timegm.c [_LIBC]:
16911         Include mktime-internal.h (a small file just for glibc)
16912         instead of using a typedef.
16914 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
16916         intprops: minor clarification of code
16917         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
16918         Use _GL_INT_CONVERT rather than reinventing it.
16920 2018-09-07  Bruno Haible  <bruno@clisp.org>
16922         Fix a comment.
16923         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
16925 2018-09-07  Bruno Haible  <bruno@clisp.org>
16927         posix_spawn_file_actions_addchdir: Add tests.
16928         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
16929         * tests/test-posix_spawn4.c: New file.
16930         * modules/posix_spawn_file_actions_addchdir-tests: New file.
16932 2018-09-07  Bruno Haible  <bruno@clisp.org>
16934         posix_spawn_file_actions_addchdir: New module.
16935         Suggested by Eric Blake in
16936         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
16937         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
16938         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
16939         union member 'chdir_action'.
16940         * lib/spawn_faction_addchdir.c: New file.
16941         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
16942         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
16943         HAVE_WORKING_POSIX_SPAWN.
16944         * lib/spawn_faction_adddup2.c: Likewise.
16945         * lib/spawn_faction_addopen.c: Likewise.
16946         * m4/posix_spawn_faction_addchdir.m4: New file.
16947         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
16948         'posix_spawn_file_actions_addchdir' is present and whether
16949         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
16950         instead of HAVE_WORKING_POSIX_SPAWN.
16951         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
16952         posix_spawn_file_actions_addchdir is declared.
16953         (gl_SPAWN_H_DEFAULTS): Initialize
16954         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
16955         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
16956         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
16957         * modules/spawn (Makefile.am): Substitute
16958         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
16959         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
16960         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
16961         * modules/posix_spawn_file_actions_addchdir: New file.
16962         * modules/posix_spawn_file_actions_addclose (Depends-on,
16963         configure.ac): Test also REPLACE_POSIX_SPAWN.
16964         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
16965         configure.ac): Likewise.
16966         * modules/posix_spawn_file_actions_addopen (Depends-on,
16967         configure.ac): Likewise.
16968         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
16969         signature.
16970         * doc/posix-functions/posix_spawn.texi: Mention the new module.
16971         * doc/posix-functions/posix_spawnp.texi: Likewise.
16973 2018-09-06  Bruno Haible  <bruno@clisp.org>
16975         stddef: Override max_align_t on NetBSD 8.0/x86.
16976         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
16977         the value of __alignof__ (max_align_t).
16978         * doc/posix-headers/stddef.texi: Mention the issue.
16980 2018-09-06  Bruno Haible  <bruno@clisp.org>
16982         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
16983         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
16984         system fcntl.
16985         * doc/posix-functions/fcntl.texi: Document the issue.
16987 2018-09-06  Bruno Haible  <bruno@clisp.org>
16989         count-trailing-zeros tests: Rely on limits-h module.
16990         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
16991         definition.
16992         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
16994 2018-09-06  Bruno Haible  <bruno@clisp.org>
16996         count-leading-zeros tests: Rely on limits-h module.
16997         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
16998         definition.
16999         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
17001 2018-09-06  Bruno Haible  <bruno@clisp.org>
17003         count-one-bits tests: Rely on limits-h module.
17004         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
17005         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
17007 2018-09-06  Bruno Haible  <bruno@clisp.org>
17009         xstrtoll: Rely on limits-h module.
17010         * lib/xstrtol.c: Don't include intprops.h.
17011         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
17012         * modules/xstrtol (Depends-on): Remove 'intprops'.
17013         * modules/xstrtoll (Depends-on): Add 'limits-h'.
17015 2018-09-06  Bruno Haible  <bruno@clisp.org>
17017         strtoll, strtoull: Rely on limits-h module.
17018         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
17019         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
17020         * modules/strtoll (Depends-on): Add limits-h.
17021         * modules/strtoull (Depends-on): Likewise.
17023 2018-09-06  Bruno Haible  <bruno@clisp.org>
17025         intprops tests: Fix compilation error with pre-C99 compiler.
17026         * tests/test-intprops.c (verify_stmt): New macro.
17027         (VERIFY, main): Use it.
17029 2018-09-06  Bruno Haible  <bruno@clisp.org>
17031         limits-h: Provide numerical limits macros.
17032         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
17033         IRIX and for GCC.
17034         (WORD_BIT, LONG_BIT): Define.
17035         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
17036         <limits.h> does not define LLONG_MAX or WORD_BIT.
17037         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
17038         TYPE_MAXIMUM): New macros, from intprops.h.
17039         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
17040         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
17041         provides.
17043 2018-09-05  Bruno Haible  <bruno@clisp.org>
17045         fcntl: Don't access nonexistent optional argument.
17046         Reported by Frank Busse <f.busse@imperial.ac.uk> in
17047         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
17048         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
17049         don't consume an argument. For actions that take an 'int' argument,
17050         consume an 'int' argument.
17052 2018-09-05  Eric Blake  <eblake@redhat.com>
17054         doc: mention environ pitfall
17055         * doc/posix-functions/environ.texi (environ): Assigning NULL to
17056         environ is a glibc extension.
17058 2018-09-03  Bruno Haible  <bruno@clisp.org>
17060         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
17061         Reported by Antoine Luong <antoine.luong@c-s.fr> in
17062         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
17063         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
17064         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
17065         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
17067 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17069         mktime: fix unlikely race+overflow bug
17070         Problem reported by Alexandre Oliva in:
17071         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
17072         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
17073         to avoid an unlikely race if the compiler delays a load and
17074         if this cascades into a signed integer overflow.
17076 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
17078         mktime, timegm: simplify glibc time64_t
17079         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
17080         Now long int, not time_t, since long int is the longstanding type
17081         for this in glibc and there is no need to change it even if time_t
17082         becomes 64 bits - even int would do, though this would be a change
17083         to the glibc generated code.  When this change is merged into
17084         glibc, it should simplify the time_t vs time64_t situation.
17086         mktime, timegm: simplify merge to glibc
17087         Move code around to make a merge to glibc easier to audit.
17088         This should not change behavior.
17089         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
17090         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
17091         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
17092         simplify later conditionals; default the others to zero.  In uses
17093         of these conditionals, explicitly spell out how _LIBC affects
17094         things, so it’s easier to review from a glibc viewpoint.
17095         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
17096         compartmentalize tzset issues.  Move system-dependent tzsettish
17097         code here from mktime.
17098         (mktime): Move tzsettish code to my_tzset, and move
17099         localtime_offset to within mktime so that it doesn’t
17100         need a separate ifdef.
17102 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
17104         intprops: avoid evaluation of some expressions
17105         This makes EXPR_SIGNED (e) easier to use, as it no longer
17106         evaluates the expression E.  Formerly, E was required to be free
17107         of side effects.
17108         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
17109         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
17110         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
17112 2018-08-23  Bruno Haible  <bruno@clisp.org>
17114         getcwd: Add cross-compilation guesses.
17115         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
17116         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
17117         Based on a patch by Paul Eggert.
17118         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
17119         guesses for all GNU systems.
17121 2018-08-19  Bruno Haible  <bruno@clisp.org>
17123         glob-h: Formalize side effects from other modules.
17124         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
17125         * m4/glob.m4 (gl_GLOB): Invoke it.
17127         fnmatch-h: Formalize side effects from other modules.
17128         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
17129         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
17131         limits-h: Formalize side effects from other modules.
17132         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
17133         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
17135 2018-08-19  Bruno Haible  <bruno@clisp.org>
17137         getpass: Move declaration to <unistd.h>.
17138         * lib/unistd.in.h (getpass): New declaration.
17139         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
17140         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
17141         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
17142         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
17143         On glibc systems, don't set REPLACE_GETPASS to 1.
17144         * modules/getpass (Depends-on): Add 'unistd'.
17145         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
17146         (Include): Specify <unistd.h> instead of "getpass.h".
17147         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
17148         (configure.ac): Sync with the configure.ac section of modules/getpass.
17149         (Include): Specify <unistd.h> instead of "getpass.h".
17150         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
17151         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
17152         REPLACE_GETPASS.
17153         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
17154         REPLACE_GETPASS.
17155         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
17156         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
17157         and musl.
17158         * NEWS: Mention the change.
17160 2018-08-19  Bruno Haible  <bruno@clisp.org>
17162         glob: Fix over-optimization due to attribute __nonnull__.
17163         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
17165 2018-08-19  Bruno Haible  <bruno@clisp.org>
17167         glob: Fix another compilation error when glob.h is not replaced.
17168         Reported by Reuben Thomas <rrt@sc3d.org> in
17169         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
17170         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
17171         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
17173 2018-08-18  Bruno Haible  <bruno@clisp.org>
17175         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
17176         Reported by Reuben Thomas <rrt@sc3d.org> in
17177         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
17178         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
17179         in config.h.
17181 2018-08-18  Bruno Haible  <bruno@clisp.org>
17183         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
17184         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
17185         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
17186         Solution proposed by Eli Zaretskii.
17187         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
17188         * lib/gettimeofday.c (GetProcAddress): Likewise.
17189         * lib/link.c (GetProcAddress): Likewise.
17190         * lib/physmem.c (GetProcAddress): Likewise.
17191         * lib/poll.c (GetProcAddress): Likewise.
17192         * lib/select.c (GetProcAddress): Likewise.
17193         * lib/stat-w32.c (GetProcAddress): Likewise.
17195 2018-08-18  Bruno Haible  <bruno@clisp.org>
17197         glob: Fix another compilation error when glob.h is not replaced.
17198         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
17199         * lib/globfree.c: Include <libc-config.h>.
17201 2018-08-18  Bruno Haible  <bruno@clisp.org>
17203         glob: Fix compilation error when glob.h is not replaced.
17204         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
17205         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
17206         * lib/glob_pattern_p.c: Include <libc-config.h>.
17207         * modules/glob (Depends-on): Add libc-config.
17209 2018-08-18  Bruno Haible  <bruno@clisp.org>
17211         scratch_buffer: Add tests.
17212         * tests/test-scratch-buffer.c: New file.
17213         * modules/scratch_buffer-tests: New file.
17215 2018-08-18  Bruno Haible  <bruno@clisp.org>
17217         scratch_buffer: Fix include file.
17218         Reported by Reuben Thomas <rrt@sc3d.org> in
17219         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
17220         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
17221         double-inclusion guard.
17223 2018-08-18  Bruno Haible  <bruno@clisp.org>
17225         glob-h: Revert Paul Eggert's revert.
17226         * m4/glob_h.m4: Revert to previous state.
17227         * modules/glob-h: Likewise.
17229 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
17231         glob-h: always build glob.h
17232         This works around a problem reported by Reuben Thomas in:
17233         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
17234         This workaround always builds glob.h, even on platforms that
17235         do not need it; perhaps this could be improved someday.
17236         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
17237         is always created now.
17238         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
17240 2018-08-13  Bruno Haible  <bruno@clisp.org>
17242         monetary: Simplify m4 code.
17243         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
17244         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
17246 2018-08-13  Bruno Haible  <bruno@clisp.org>
17248         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
17249         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
17250         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
17251         and by Paul J. Lucas <paul@lucasmail.org> in
17252         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
17253         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
17255 2018-08-11  Bruno Haible  <bruno@clisp.org>
17257         setlocale: Trivial simplification.
17258         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
17260 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
17262         verify: port 'assume' to traditional tools
17263         * lib/verify.h (assume): Port better to Oracle Studio 12.6
17264         and other tools that use /*NOTREACHED*/ comments.
17266 2018-08-10  Bruno Haible  <bruno@clisp.org>
17268         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
17269         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
17270         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
17271         'fnmatch-gnu' is in use.
17273 2018-08-07  Bruno Haible  <bruno@clisp.org>
17275         glob-h: Add tests.
17276         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
17277         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
17278         tests/test-glob-h.c.
17279         * modules/glob-h-tests: New file.
17280         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
17281         conditions.
17282         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
17283         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
17285 2018-08-07  Bruno Haible  <bruno@clisp.org>
17287         glob-h: New module.
17288         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
17289         replacements.
17290         * lib/glob.c: Include <config.h>.
17291         * m4/glob_h.m4: New file.
17292         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
17293         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
17294         REPLACE_GLOB_PATTERN_P as appropriate.
17295         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
17296         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
17297         * modules/glob-h: New file.
17298         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
17299         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
17300         lstat, sys_stat. Change conditions.
17301         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
17302         REPLACE_GLOB_PATTERN_P. Set module indicator.
17303         (Makefile.am): Remove code that is moved to glob-h.
17304         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
17305         * modules/posixcheck (Depends-on): Add glob-h.
17307 2018-08-06  Bruno Haible  <bruno@clisp.org>
17309         Force generation of substitute .h file when C++ support is enabled.
17310         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
17311         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
17312         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
17313         FNMATCH_H to non-empty.
17314         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
17315         ICONV_H to non-empty.
17316         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
17317         MONETARY_H to non-empty.
17318         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
17319         non-empty.
17321 2018-08-06  Bruno Haible  <bruno@clisp.org>
17323         fnmatch-h: Fix test compilation error on mingw (regression from today).
17324         * lib/fnmatch.in.h: Fix conditions.
17326 2018-08-06  Bruno Haible  <bruno@clisp.org>
17328         sys_resource: Relicense under LGPLv2+.
17329         John Malmberg's approval is in
17330         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
17331         * modules/sys_resource (License): Change to LGPLv2+.
17333 2018-08-06  Bruno Haible  <bruno@clisp.org>
17335         fnmatch-h: Add tests.
17336         * tests/test-fnmatch-h.c: New file.
17337         * modules/fnmatch-h-tests: New file.
17338         * tests/test-fnmatch-h-c++.cc: New file.
17339         * modules/fnmatch-h-c++-tests: New file.
17341 2018-08-06  Bruno Haible  <bruno@clisp.org>
17343         fnmatch-h: New module.
17344         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
17345         replacements.
17346         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
17347         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
17348         'posixcheck' warning.
17349         * m4/fnmatch_h.m4: New file.
17350         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
17351         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
17352         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
17353         as appropriate.
17354         * modules/fnmatch-h: New file.
17355         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
17356         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
17357         conditions.
17358         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
17359         indicator.
17360         (Makefile.am): Remove code that is moved to fnmatch-h.
17361         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
17362         REPLACE_FNMATCH.
17363         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
17364         * modules/posixcheck (Depends-on): Add fnmatch-h.
17366 2018-08-06  Bruno Haible  <bruno@clisp.org>
17368         Enable more C++ tests.
17369         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
17370         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
17371         * modules/strings-tests (Depends-on): Add strings-c++-tests.
17372         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
17373         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
17375 2018-08-06  Bruno Haible  <bruno@clisp.org>
17377         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
17378         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
17379         getopt.h.
17380         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
17382 2018-08-05  Bruno Haible  <bruno@clisp.org>
17384         utime-h: Generate header file when module 'posixcheck' is in use.
17385         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
17386         UTIME_H to non-empty.
17388 2018-08-05  Bruno Haible  <bruno@clisp.org>
17390         monetary: Generate header file when module 'posixcheck' is in use.
17391         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
17392         use, set MONETARY_H to non-empty.
17394 2018-08-05  Bruno Haible  <bruno@clisp.org>
17396         iconv-h: Generate header file when module 'posixcheck' is in use.
17397         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
17398         set ICONV_H to non-empty.
17400 2018-08-05  Bruno Haible  <bruno@clisp.org>
17402         Optimize the "checking whether ... is declared without a macro" checks.
17403         Suggested by Paul Eggert in
17404         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
17405         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
17406         Gnulib module 'posixcheck' is not in use.
17408 2018-08-05  Bruno Haible  <bruno@clisp.org>
17410         iconv-h: Enable 'posixcheck' warnings.
17411         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
17412         iconv_open.
17413         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
17415 2018-08-05  Bruno Haible  <bruno@clisp.org>
17417         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
17418         * m4/extern-inline.m4: Add more comments.
17419         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
17420         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
17421         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
17423 2018-08-04  Bruno Haible  <bruno@clisp.org>
17425         New module 'posixcheck'.
17426         * modules/posixcheck: New file.
17427         * m4/posixcheck.m4: New file.
17428         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
17429         (Which modules?): Reference it.
17431 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
17433         dfa: fix memory leak
17434         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
17436 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
17438         ieee754-h: new module
17439         It looks like Emacs can use this for some NaN processing.
17440         Emacs uses it only on double NaNs so it should be safe.
17441         * MODULES.html.sh (func_all_modules): Add ieee754-h.
17442         * config/srclist.txt: Mention ieee754.h in a comment.
17443         * doc/glibc-headers/ieee754.texi (ieee754.h):
17444         Gnulib now has a substitute that should work
17445         except for long double and for non-IEEE platforms.
17446         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
17447         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
17449 2018-07-27  Bruno Haible  <bruno@clisp.org>
17451         iswcntrl: Mention minor problem on macOS.
17452         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
17454 2018-07-26  Colin Watson  <cjwatson@debian.org>
17456         bootstrap, gnulib-tool: fix translations rsync
17457         Previously, we created files such as $pobase/Makefile.in.in and then the
17458         subsequent rsync would immediately delete them.
17459         * build-aux/bootstrap (po_download_command_format): Avoid deleting
17460         non-.po files in target directory when rsyncing translations.
17461         * gnulib-tool (func_import): Likewise.
17462         * pygnulib/GLImport.py (GLImport.execute): Likewise.
17464 2018-07-25  Jim Meyering  <meyering@fb.com>
17466         bootstrap: reinstate definition fo gnulib_mk.
17467         That variable is used at least by cppi.
17468         * build-aux/bootstrap (gnulib_mk): Restore definition.
17469         This reverts the deletion from v0.1-1844-gc66dba9ba.
17471 2018-07-23  Bruno Haible  <bruno@clisp.org>
17473         doc: For module names, use texinfo markup @code{} or @samp{}.
17474         * doc/alloca.texi: Mark gnulib module names with @code.
17475         * doc/alloca-opt.texi: Likewise.
17476         * doc/quote.texi: Likewise.
17477         * doc/posix-functions/freopen.texi: Likewise.
17478         * doc/posix-functions/open.texi: Likewise.
17479         * doc/posix-functions/readlink.texi: Likewise.
17480         * doc/posix-functions/readlinkat.texi: Likewise.
17481         * doc/posix-functions/stdout.texi: Likewise.
17482         * doc/posix-functions/stderr.texi: Likewise.
17483         * doc/posix-functions/unlink.texi: Likewise.
17484         * doc/posix-functions/unlinkat.texi: Likewise.
17485         * doc/posix-functions/utime.texi: Likewise.
17486         * doc/posix-functions/utimensat.texi: Likewise.
17487         * doc/posix-functions/utimes.texi: Likewise.
17488         * doc/posix-headers/stdint.texi: Likewise.
17489         * doc/glibc-functions/futimesat.texi: Likewise.
17490         * doc/glibc-functions/lutimes.texi: Likewise.
17491         * doc/glibc-functions/memmem.texi: Likewise.
17493 2018-07-23  Werner LEMBERG  <wl@gnu.org>
17495         doc: Avoid some overfull lines in the TeX output.
17496         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
17497         @example.
17498         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
17499         newline before the long URL.
17500         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
17501         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
17502         Add line breaks in code snippets.
17504 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
17506         hard-locale: simplify by removing hard-locale.m4
17507         * m4/hard-locale.m4: Remove.
17508         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
17509         (configure.ac): Do not call gl_HARD_LOCALE.
17511         gnulib-tool: limit line length for git send-email
17512         * gnulib-tool (func_import): Break actioncmd log line
17513         into multiple lines.
17515 2018-07-16  Bruno Haible  <bruno@clisp.org>
17517         ffs: Ensure declaration on mingw.
17518         Reported by Daniel P. Berrangé <berrange@redhat.com>
17519         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
17520         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
17521         also declared.
17523 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
17525         regex-tests: add dependency
17526         * modules/regex-tests (Depends-on): Add gettext-h.
17527         This is needed given the recent changes to regex,
17528         which no longer depends on gettext-h.
17530 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17532         regex: now in sync with glibc
17533         * config/srclist.txt: Gnulib and glibc regex code
17534         are synchronized again.
17536 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
17538         renameatu: rename from renameat2
17539         It's looking like Glibc will add a renameat2 function
17540         that is incompatible with Gnulib renameat2; see:
17541         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
17542         To help avoid future confusion, rename renameat2 to something else.
17543         Use the name 'renameatu', as the Gnulib function is close to the
17544         Glibc function.  Perhaps someday there will also be a renameat2
17545         Gnulib module, which mimicks the future glibc renameat2, but that
17546         can wait as nobody seems to need such a module now.
17547         * NEWS: Mention this.
17548         * lib/renameatu.c: Rename from lib/renameat2.c.
17549         * lib/renameatu.h: Rename from lib/renameat2.h.
17550         * modules/renameatu: Rename from modules/renameat2.
17551         * modules/renameatu-tests: Rename from modules/renameat2-tests.
17552         All uses of "renameat2" in identifiers or file name
17553         changed to "renameatu", except for two instances in
17554         lib/renameatu.c that deal with the Linux kernel's
17555         renameat2 syscall.
17557 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
17559         gnulib-tool: minor tweaks for --gnu-make
17560         * gnulib-tool: Do not allow --gnu-make in test modes,
17561         since they all require automake.
17562         (func_emit_lib_Makefile_am): Don’t emit automake comment
17563         if --gnu-make.
17565         regex: work around conditional-dependencies glitch
17566         * modules/regex (Depends-on): Add langinfo.
17567         Without this change, I had problems building an experimental
17568         version of GNU Emacs.  The symptom of the bug was a message
17569         ‘./configure: line 12726: test: =: unary operator expected’.
17570         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
17571         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
17572         was unset.  Although gl_FUNC_NL_LANGINFO has
17573         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
17574         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
17575         --conditional-dependencies sometimes arranges for the
17576         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
17577         code.  Since the regex code includes <langinfo.h> it should be
17578         depending on the langinfo module anyway, and this happens to work
17579         around the bug, so install that as a workaround for now.  To
17580         reproduce the original problem, run the following shell script on
17581         the version of Gnulib just before this patch was installed.
17582                 rm -fr foo
17583                 mkdir foo
17584                 cat >foo/configure.ac <<'EOF'
17585                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
17586                 gl_EARLY
17587                 gl_INIT
17588                 AC_OUTPUT
17589                 EOF
17590                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
17591                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
17592                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
17593                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
17594                 cd foo
17595                 aclocal -I m4
17596                 autoconf
17597                 ./configure --with-included-regex
17599 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
17601         wchar: fix bug when checking for ‘inline’
17602         I discovered this when looking into using the regex module
17603         with Emacs.
17604         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
17605         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
17606         conftest1.c and conftest2.c but these files were not created.
17607         As far as I can see, this check never worked and nobody reported
17608         it until now, which is a bit worrisome.
17610 2018-06-30  Jim Meyering  <meyering@fb.com>
17612         bootstrap: s/--option val/--option=val/
17613         * build-aux/bootstrap (gnulib_tool_options): Change the
17614         spelling of "--option val" pairs to "--option=val", for
17615         aesthetics, and also so that this file no longer triggers
17616         a common help2man syntax-check warning when copied into
17617         projects like grep, gzip, etc.
17619 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
17621         manywarnings: omit -Wswitch-default
17622         This should make things more consistent, as we already ignore
17623         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
17624         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
17625         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
17626         Add -Wswitch-default.
17627         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
17628         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
17629         Remove -Wswitch-default.
17631         regex: revert most trimming
17632         Problems reported by Bruno Haible in:
17633         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
17634         * modules/regex (Depends-on): Add lock, memcmp, memmove,
17635         and wctype back in.  lock because regex users shouldn’t
17636         need to know that regex needs locking, and the rest because
17637         gnulib-tool should ordinarily ignore them anyway.
17639 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
17641         regex: trim module dependencies
17642         * modules/regex (Depends-on): Remove gettext-h and lock,
17643         since the regex code should work OK without these modules,
17644         and Emacs uses it that way.  Also remove memcmp, memmove,
17645         and wctype, as these modules are obsolete and should not be
17646         needed any more.
17648 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
17650         regex: glibc does not use intprops.h
17651         Maybe we can talk glibc into using intprops.h someday, but
17652         now doesn’t seem to be a good time.
17653         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
17654         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
17655         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
17657 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
17659         regex: port to recently proposed glibc regex merge
17660         This patch is inspired by Adhemerval Zanella's recent proposal
17661         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
17662         to merge glibc and Gnulib regex.  It aims to simplify the merge on
17663         the glibc side, without keeping Gnulib portable.
17664         * lib/regex.h: Fix a problem with glibc installed-header checking,
17665         as follows:
17666         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
17667         (_Restrict_arr_): Prefer __restrict_arr if defined,
17668         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
17669         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
17670         (build_wcs_upper_buffer, build_upper_buffer)
17671         (re_string_translate_buffer, re_string_context_at):
17672         Move decls here from lib/regex_internal.h, for glibc internal tests.
17673         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
17674         glibc BZ #18496.
17675         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
17676         -Wunused-value.
17677         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
17678         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
17679         (bitset_mask): Now static inline, and without any __attribute__
17680         ((unused)) decoration, for glibc internal tests.
17682 2018-06-25  Bruno Haible  <bruno@clisp.org>
17684         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
17685         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
17686         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
17687         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
17688         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
17689         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
17690         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
17691         / -lthread / -lpth does not get optimized away by a preceding
17692         --as-needed option.
17694 2018-06-25  Bruno Haible  <bruno@clisp.org>
17696         Continue to use spaces for indentation, not tabs.
17697         * MODULES.html.sh: Untabify.
17698         * doc/regex.texi: Likewise.
17699         * lib/acl-internal.c: Likewise.
17700         * lib/dfa.c: Likewise.
17701         * lib/exclude.c: Likewise.
17702         * lib/exclude.h: Likewise.
17703         * lib/get-permissions.c: Likewise.
17704         * lib/gettimeofday.c: Likewise.
17705         * lib/parse-datetime.y: Likewise.
17706         * lib/pselect.c: Likewise.
17707         * lib/set-permissions.c: Likewise.
17708         * lib/time.in.h: Likewise.
17709         * m4/canonicalize.m4: Likewise.
17710         * m4/gc.m4: Likewise.
17711         * m4/gnulib-common.m4: Likewise.
17712         * m4/pthread_sigmask.m4: Likewise.
17713         * m4/vararrays.m4: Likewise.
17714         * tests/test-digest.h: Likewise.
17715         * tests/test-fcntl-h.c: Likewise.
17716         * tests/test-timespec.c: Likewise.
17717         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
17719 2018-06-25  Bruno Haible  <bruno@clisp.org>
17721         manywarnings: Don't enable -Wjump-misses-init warnings by default.
17722         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
17723         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
17724         -Wjump-misses-init.
17726 2018-06-25  Jim Meyering  <meyering@fb.com>
17728         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
17729         * lib/acl-internal.h (free_permission_context): Remove that
17730         attribute directive.  Otherwise, it would provoke this from GCC 9:
17731         lib/acl-internal.h:300:3: error: 'const' attribute on function \
17732           returning 'void' [-Werror=attributes]
17734 2018-06-24  Jim Meyering  <meyering@fb.com>
17736         parse-datetime: accommodate gcc-4.8.5
17737         Bruno Haible reported the build failure in
17738         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
17739         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
17740         on declaration of new local.
17742 2018-06-24  Bruno Haible  <bruno@clisp.org>
17744         af_alg: Fail in continuable manner on Linux/powerpc64le.
17745         Reported by Assaf Gordon <assafgordon@gmail.com>
17746         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
17747         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
17748         byte send() as the first round.
17750 2018-06-24  Bruno Haible  <bruno@clisp.org>
17752         af_alg: Fix state of stream after sendfile() succeeds.
17753         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
17754         the stream is correctly positioned afterwards.
17755         * modules/crypto/af_alg (Depends-on): Add fflush.
17756         * tests/test-digest.h (test_digest_on_files): Verify that after the
17757         operation the stream is positioned at end of file.
17759 2018-06-24  Jim Meyering  <meyering@fb.com>
17761         canon-host: take GCC9's advice rather than ignoring warning
17762         Pádraig Brady suggested not to ignore this GCC9 advice.
17763         * lib/canon-host.c: Undo preceding change.
17764         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
17766         parse-datetime.y: avoid spurious GCC 9 warning
17767         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
17768         a function local prior to the first "goto fail".  The prior use would
17769         evoke this:
17770         parse-datetime.y: In function 'parse_datetime2':
17771         parse-datetime.y:1791:19: error: jump skips variable initialization \
17772           [-Werror=jump-misses-init]
17773         parse-datetime.y:2385:2: note: label 'fail' defined here
17774         parse-datetime.y:188:43: note: '({anonymous})' declared here
17775         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
17777         canon-host.c: avoid spurious GCC 9 warning
17778         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
17780         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
17781         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
17782         * m4/manywarnings.m4: Remove them.
17783         Otherwise, building coreutils, I would see this:
17784         cc1: error: deprecated command line option '-Wchkp' [-Werror]
17785         cc1: error: -Wabi won't warn about anything [-Werror=abi]
17786         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
17787           which is also used by default
17788         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
17790 2018-06-24  Bruno Haible  <bruno@clisp.org>
17792         af_alg tests: Add another test.
17793         * tests/test-digest.h (test_digest_on_files): Also check a large file
17794         with a skipped header.
17795         * tests/test-md5.c: Include macros.h.
17796         * tests/test-sha1.c: Likewise.
17797         * tests/test-sha256.c: Likewise.
17798         * tests/test-sha512.c: Likewise.
17799         * modules/crypto/md5-tests (Files): Add tests/macros.h.
17800         * modules/crypto/sha1-tests (Files): Likewise.
17801         * modules/crypto/sha256-tests (Files): Likewise.
17802         * modules/crypto/sha512-tests (Files): Likewise.
17804 2018-06-24  Pádraig Brady  <P@draigBrady.com>
17806         maint: clarify comments about sticky EOF
17807         * lib/af_alg.c: Be more direct that we can't
17808         assume stickiness of EOF for portability reasons.
17809         * lib/md5.c: Clarify that this isn't just a glibc issue.
17810         * lib/sha1.c: Likewise.
17811         * lib/sha256.c: Likewise.
17812         * lib/sha512.c: Likewise.
17814 2018-06-24  Bruno Haible  <bruno@clisp.org>
17816         af_alg: Comment and style improvements.
17817         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
17818         (afalg_buffer, afalg_stream): Improve comments.
17820 2018-06-24  Pádraig Brady  <P@draigBrady.com>
17822         af_alg: disable kernel hash functions by default
17823         All the kernel routines were seen to be significantly slower
17824         with these relatively recent components on an i3-2310M system:
17825           kernel-4.10.6-200.fc25.x86_64
17826           openssl-1.0.2m-1.fc25.x86_64
17827         sha1 was nearly twice as slow in the kernel for example.
17828         Further considerations why this should not be the default, at:
17829         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
17831         * m4/af_alg.m4: Require --with-linux-crypto to enable.
17832         * m4/gl-openssl.m4: Tweak accordingly.
17834 2018-06-24  Pádraig Brady  <P@draigBrady.com>
17836         af_alg: avoid hangs when reading from streams
17837         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
17838         and thus avoid doing a fread() when feof() is set.
17839         * lib/md5.c: Ensure feof() is called before fread().
17840         * lib/sha1.c: Likewise.
17841         * lib/sha256.c: Likewise.
17842         * lib/sha512.c: Likewise.
17844 2018-06-24  Pádraig Brady  <P@draigBrady.com>
17846         af_alg: fix error handling when hash not returned
17847         * lib/af_alg.c (afalg_stream): Handle the case where we've
17848         successfully written data to the kernel in the read/write loop,
17849         but the kernel doesn't respond with the hash.
17851 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
17853         libc-config: merge from glibc
17854         * lib/cdefs.h (__inline, __restrict):
17855         Copy from current glibc.  This fixes glibc bug 17721,
17856         which Gnulib had already fixed in a different way.
17857         (__nonnull): Lessen the distance from glibc by using the
17858         glibc definition inside an ‘#ifndef __nonnull’.
17859         (__attribute_nonstring__): New macro, copied from
17860         current glibc.
17861         * lib/libc-config.h (__attribute_nonstring__): New undef.
17862         (__restrict): Remove; workaround no longer needed.
17863         Keep the __inline workaround, though, as it uses HAVE___INLINE to
17864         support more compilers than the glibc __inline can.
17866 2018-06-24  Bruno Haible  <bruno@clisp.org>
17868         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
17869         * lib/mbrtowc.c (enc_t): New enum type.
17870         (locale_enc, locale_enc_cached): New functions.
17871         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
17872         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
17873         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
17874         instead.
17875         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
17876         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
17877         * modules/wcwidth (configure.ac): Invoke it.
17879 2018-06-24  Bruno Haible  <bruno@clisp.org>
17881         wchar-single: Fix test failure in wcwidth tests.
17882         * tests/test-wcwidth.c (main): If the wchar-single module is present,
17883         skip the tests in the C locale.
17885 2018-06-23  Pádraig Brady  <P@draigBrady.com>
17887         crypto: mention --without-linux-crypto in --with-openssl --help
17888         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
17889         routines take precedence in --with-openssl help output.
17891 2018-06-23  Pádraig Brady  <P@draigBrady.com>
17893         wchar-single: a new module to enable optimizations in wchar replacements
17894         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
17895         GNULIB_WCHAR_SINGLE is enabled.
17896         * lib/wcwidth.c (wcwidth): Likewise.
17898 2018-06-23  Bruno Haible  <bruno@clisp.org>
17900         libc-config: Fix conflict with FreeBSD include files.
17901         * lib/cdefs.h (__nonnull): Remove definition.
17902         * lib/libc-config.h (__nonnull): Remove undefinition.
17904 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
17906         random_r: do not crash if state is unaligned
17907         Problem reported by Bruce Korb in:
17908         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
17909         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
17910         with 'cc -O2 -xmemalign=8s'.
17911         * lib/random_r.c: Include string.h, for memcpy.
17912         (get_int32, set_int32): New functions.
17913         (__srandom_r, __initstate_r, __setstate_r, __random_r):
17914         Use them to avoid assumption that state pointer is aligned.
17915         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
17916         * tests/test-random_r.c (test_failed): New function.
17917         (main): Use it, to test for alignment bugs.
17919         random_r: omit unnecessary include
17920         * lib/random_r.c: Do not include limits.h.
17922         random, random_r: merge from glibc
17923         * lib/random.c, lib/random_r.c:
17924         Include libc-config.h if !_LIBC, not config.h unilaterally.
17925         * lib/random.c:
17926         Do not include stdint.h or time.h; not needed.
17927         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
17928         (unsafe_state): Rename from generator.  All uses changed.
17929         Use C99-style initializers.
17930         (__random, __srandom, __initstate, __setstate): Rename from
17931         non-underscored version, but define it to non-underscored version
17932         on Gnulib.  Add a lock.
17933         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
17934         Likewise.
17935         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
17936         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
17937         (__srandom_r): Use int32_t instead of long int where int32_t will do.
17938         (__random_r): Use uint32 to fix glibc bug 17343.
17939         * modules/random, modules/random_r (Depends-on): Add libc-config.
17940         Depend on stdint only if $HAVE_RANDOM = 0.
17942 2018-06-19  Jim Meyering  <meyering@fb.com>
17944         README-release: also run any check-very-expensive tests
17945         * top/README-release: Adjust instructions so they run the
17946         check-very-expensive tests when there is such a target.
17948 2018-06-18  Bruno Haible  <bruno@clisp.org>
17950         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
17951         * m4/pthread_rwlock_rdlock.m4: Add comment.
17952         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
17953         are reader-preferring in glibc.
17954         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
17955         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
17957 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
17959         crypto: use byteswap
17960         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
17961         * lib/sm3.c: Include <byteswap.h>.
17962         (SWAP): Use its macros rather than reinventing the wheel.
17963         * modules/crypto/md4, modules/crypto/md5-buffer:
17964         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
17965         * modules/crypto/sha512-buffer, modules/crypto/sm3:
17966         (Depends-on): Add byteswap.
17968 2018-06-17  Pádraig Brady  <P@draigBrady.com>
17970         gendocs.sh: fix support for legacy --texi2html
17971         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
17972         to the default makeinfo invocation.
17973         Reported by Bruce Korb
17975 2018-06-17  Bruno Haible  <bruno@clisp.org>
17977         gettext po infrastructure: Update from current gettext git.
17978         Reported by Akim Demaille <akim@lrde.epita.fr>.
17979         * build-aux/po/Makefile.in.in: Update from current gettext git.
17980         * build-aux/po/remove-potcdate.sin: Likewise.
17981         * config/srclist.txt: Temporarily disable sync for these files.
17983 2018-06-17  Bruno Haible  <bruno@clisp.org>
17985         getloadavg: Return 0 on Windows without Cygwin.
17986         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
17988 2018-06-17  Paul Smith  <psmith@gnu.org>
17990         getloadavg: Allow building on Windows without Cygwin
17991         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
17992         * m4/getloadavg.m4: Check for unistd.h.
17994 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
17996         Port crypto/af_alg to GCC 4.8.4
17997         Problem reported by Peter Simons in:
17998         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
17999         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
18001 2018-05-27  Colin Watson  <cjwatson@debian.org>
18003         bootstrap: document source fetching in --help
18004         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
18006 2018-04-09  Colin Watson  <cjwatson@debian.org>
18008         bootstrap: allow non-submodule control of gnulib
18009         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
18010         bootstrap.conf when fetching gnulib using "git clone" or via
18011         GNULIB_SRCDIR.
18013 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
18015         crypto: omit stream ops Emacs doesn’t need
18016         * lib/md5.c (md5_stream):
18017         * lib/sha1.c (sha1_stream):
18018         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
18019         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
18020         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
18021         defined.  Emacs needs this, as it does not use the stream
18022         operations and doesn’t need all the af_alg stuff we’ve recently
18023         added.  Perhaps a similar change is needed to the other crypto
18024         modules, but this patch changes only those needed for Emacs.
18025         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
18026         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
18027         New modules, used by Emacs.
18028         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
18029         * modules/crypto/sha512: Rewrite to depend on the new modules.
18031 2018-05-20  Pádraig Brady  <P@draigBrady.com>
18033         fts: avoid a memory leak edge case
18034         * lib/fts.c (fts_open): Set an appropriate fts_level
18035         so that an immediate fts_close() will free the allocation.
18036         * tests/test-fts.c (fts_dealloc): Add a test case which
18037         will trigger under valgrind or address sanitizer.
18038         Fixes https://bugs.gnu.org/31439
18040 2018-05-20  Bruno Haible  <bruno@clisp.org>
18042         wcwidth tests: Fix link error.
18043         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
18044         $(LIBUNISTRING).
18046 2018-05-20  Bruno Haible  <bruno@clisp.org>
18048         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
18049         * modules/regex (Files): Add m4/glibc21.m4.
18051 2018-05-20  Bruno Haible  <bruno@clisp.org>
18053         localcharset: Optimize.
18054         * lib/localcharset.c (alias_table): Comment out no-op mappings for
18055         platforms where these don't matter. This reduces the table size,
18056         which in turn reduces the lookup time.
18058 2018-05-19  Bruno Haible  <bruno@clisp.org>
18060         localcharset: Map the locale encodings found in newer OSes.
18061         * lib/localcharset.c (alias_table): Add mapping for locale encodings
18062         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
18063         IRIX 6.5, Minix 3.3.
18064         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
18066 2018-05-19  Bruno Haible  <bruno@clisp.org>
18068         localcharset: Move mapping tables into the code. Use a binary search.
18069         * lib/localcharset.h: Document the GNU canonical names for character
18070         encodings here.
18071         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
18072         relocatable.h, configmake.h.
18073         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
18074         macros.
18075         (charset_aliases): Remove variable.
18076         (get_charset_aliases): Remove function.
18077         (struct table_entry): New type.
18078         (alias_table, locale_table): New constants.
18079         (locale_charset): Use the alias_table or locale_table to get the
18080         canonicalized encoding name.
18081         * lib/config.charset: Remove file.
18082         * lib/ref-add.sin: Remove file.
18083         * lib/ref-del.sin: Remove file.
18084         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
18085         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
18086         * modules/localcharset (Notice): Remove.
18087         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
18088         glibc21.m4.
18089         (Depends-on): Remove configmake.
18090         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
18091         (Makefile.am): Simplify.
18092         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
18094 2018-05-19  Bruno Haible  <bruno@clisp.org>
18096         localcharset: Add a manual test.
18097         * tests/test-localcharset.c: New file.
18098         * modules/localcharset-tests: New file.
18100 2018-05-19  Bruno Haible  <bruno@clisp.org>
18102         localcharset: Remove support for obsolete platforms.
18103         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
18104         Mac OS X 10.2. Comment out dubious entry for Solaris.
18106 2018-05-19  Jim Meyering  <meyering@fb.com>
18108         gnupload: adjust comment
18109         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
18110         more likely we'll remove the just-added code in a year or two.
18112 2018-05-19  Bruno Haible  <bruno@clisp.org>
18114         gnupload: Fix "gpg-agent is not available in this session" error.
18115         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
18117 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
18119         crypto/af_alg: fix --help
18120         * m4/af_alg.m4: Avoid spurious newline in --help output.
18122 2018-05-13  Bruno Haible  <bruno@clisp.org>
18124         nl_langinfo: Fix compilation error on Android.
18125         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
18126         INT_CURR_SYMBOL, etc. only if these items are defined.
18128 2018-05-13  Bruno Haible  <bruno@clisp.org>
18130         truncate: Fix compilation error on Android.
18131         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
18132         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
18133         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
18134         HAVE_TRUNCATE.
18135         * modules/truncate: Likewise.
18136         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
18137         not HAVE_TRUNCATE.
18138         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
18139         HAVE_TRUNCATE.
18140         * doc/posix-functions/truncate.texi: Mention the issue.
18142 2018-05-13  Bruno Haible  <bruno@clisp.org>
18144         pthread: Fix compilation error on Android.
18145         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
18146         recursive inclusion of this file.
18148 2018-05-13  Bruno Haible  <bruno@clisp.org>
18150         posix_spawn: Fix compilation error on Android.
18151         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
18152         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
18153         (posix_spawn_file_actions_t): Consider also the case
18154         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
18156 2018-05-13  Bruno Haible  <bruno@clisp.org>
18158         tsearch: Move from K&R C to ANSI C.
18159         * lib/tsearch.c (tfind): Convert definition to ANSI C.
18161 2018-05-13  Bruno Haible  <bruno@clisp.org>
18163         tsearch: Fix compilation error on Android.
18164         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
18165         is 0.
18166         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
18167         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
18168         GNULIB_defined_tsearch is true.
18169         (twalk): Define only if GNULIB_defined_twalk is true.
18170         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
18171         is 0.
18172         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
18173         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
18174         * modules/search (Makefile.am): Substitute HAVE_TWALK.
18176 2018-05-13  Bruno Haible  <bruno@clisp.org>
18178         imaxdiv: Fix compilation error on Android.
18179         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
18180         is not defined.
18181         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
18182         HAVE_DECL_IMAXDIV, is 0.
18183         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
18184         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
18186 2018-05-13  Bruno Haible  <bruno@clisp.org>
18188         Support selective inclusion mechanism of recent mingw.org header files.
18189         Reported by Eli Zaretskii <eliz@gnu.org>.
18190         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
18191         __need_ssize_t, or __need_time_t is defined, just include the system's
18192         <sys/types.h>.
18193         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
18194         include the system's <locale.h>.
18196 2018-05-13  Bruno Haible  <bruno@clisp.org>
18198         Avoid compilation error due to 'mmap' on Android.
18199         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
18200         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
18201         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
18202         Undefine on Android.
18204 2018-05-13  Bruno Haible  <bruno@clisp.org>
18206         Add cross-compilation guesses for Linux systems without glibc.
18207         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
18208         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
18209         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18210         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18211         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
18212         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
18213         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18214         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
18215         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
18216         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
18217         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18218         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18219         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
18220         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18221         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18222         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
18223         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18224         * m4/utimens.m4 (gl_UTIMENS): Likewise.
18226 2018-05-13  Bruno Haible  <bruno@clisp.org>
18228         getpagesize: Fix compilation error on Android.
18229         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
18230         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
18231         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
18232         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
18233         HAVE_GETPAGESIZE accordingly.
18234         * modules/getcwd (Files): Add m4/getpagesize.m4.
18236 2018-05-13  Bruno Haible  <bruno@clisp.org>
18238         tcgetsid: Fix compilation error on Android.
18239         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
18240         AC_CHECK_FUNC.
18242 2018-05-13  Bruno Haible  <bruno@clisp.org>
18244         getpass: Fix configure test for Android.
18245         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
18246         AC_CHECK_FUNC.
18248 2018-05-13  Bruno Haible  <bruno@clisp.org>
18250         ffs: Fix compilation error on Android.
18251         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
18253 2018-05-13  Bruno Haible  <bruno@clisp.org>
18255         mkfifo: Fix compilation error on Android.
18256         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
18257         AC_CHECK_FUNC.
18259 2018-05-13  Bruno Haible  <bruno@clisp.org>
18261         c-strtod: Fix configure test for Android.
18262         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
18263         AC_CHECK_FUNC.
18265 2018-05-13  Bruno Haible  <bruno@clisp.org>
18267         random: Fix compilation error on Android.
18268         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
18269         AC_CHECK_FUNC.
18271 2018-05-13  Bruno Haible  <bruno@clisp.org>
18273         grantpt: Fix compilation error on Android.
18274         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
18275         AC_CHECK_FUNC.
18277 2018-05-13  Bruno Haible  <bruno@clisp.org>
18279         stdioext: Fix compilation errors with newer Android headers.
18280         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
18281         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
18282         fallbacks for Android.
18283         * lib/fpending.c: Update comments.
18284         * lib/fpurge.c: Likewise.
18285         * lib/freadable.h: Likewise.
18286         * lib/freadable.c: Likewise.
18287         * lib/freadahead.c: Likewise.
18288         * lib/freading.h: Likewise.
18289         * lib/freadptr.c: Likewise.
18290         * lib/fseterr.c: Likewise.
18291         * lib/fwritable.h: Likewise.
18292         * lib/fwritable.c: Likewise.
18293         * lib/fwriting.h: Likewise.
18294         * lib/fwriting.c: Likewise.
18296 2018-05-13  Bruno Haible  <bruno@clisp.org>
18298         doc: Add info about Android versions 2.0 to 8.1.
18299         * doc/**/*.texi: Add info about functions in all released versions of
18300         Bionic.
18302 2018-05-12  Bruno Haible  <bruno@clisp.org>
18304         fseeko: On mingw, don't use the hidden function _fseeki64.
18305         Reported by Eli Zaretskii <eliz@gnu.org>.
18306         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
18307         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
18309 2018-05-12  Bruno Haible  <bruno@clisp.org>
18311         glob: Choose 'dirent_type' in a way that works better on mingw.
18312         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
18313         * lib/glob.c (dirent_type): Define as uint_fast32_t.
18315 2018-05-12  Bruno Haible  <bruno@clisp.org>
18317         execute, spawn-pipe: Avoid warning about redefining 'close'.
18318         Reported by Eli Zaretskii <eliz@gnu.org>.
18319         * lib/execute.c: Undefine 'close' before redefining it.
18320         * lib/spawn-pipe.c: Likewise.
18322 2018-05-12  Bruno Haible  <bruno@clisp.org>
18324         nanosleep: Avoid test failure on mingw when it has nanosleep.
18325         Reported by Eli Zaretskii <eliz@gnu.org>.
18326         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
18327         If it does not exist, use a simpler test program that does not call
18328         alarm().
18330 2018-05-10  Bruno Haible  <bruno@clisp.org>
18332         lock, cond, thread, tls: Use a different symbol as libpthread witness.
18333         Reported by Devin Hussey <husseydevin@gmail.com>.
18334         Based on a patch by Paul Eggert.
18335         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
18336         as witness of libpthread.
18337         * lib/glthread/cond.h (pthread_in_use): Likewise.
18338         * lib/glthread/thread.h (pthread_in_use): Likewise.
18339         * lib/glthread/tls.h (pthread_in_use): Likewise.
18341 2018-05-10  Bruno Haible  <bruno@clisp.org>
18343         cond tests: Fix compilation error on Solaris.
18344         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
18345         macro.
18347 2018-05-10  Bruno Haible  <bruno@clisp.org>
18349         doc: Add partial info about Android 4.3.
18350         * doc/*-functions/*.texi: Add info about functions that were added
18351         to Bionic between Android 4.3 and Android 9.0.
18353 2018-05-10  Bruno Haible  <bruno@clisp.org>
18355         doc: Add info about Android 9.0.
18356         * doc/**/*.texi: Add info about functions and headers in Bionic from
18357         Android 9.0.
18359 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
18361         af_alg: fix my typo in afalg_buffer
18362         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
18363         (afalg_stream): Simplify and avoid the need for a runtime test
18364         at the end.
18366         af_alg: recover better from crypto failures
18367         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
18368         input stream is seekable, by repositioning the stream back to
18369         where it was, possibly by just calling sendfile with an offset
18370         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
18371         cases, which lets our callers try again with user-mode code.
18372         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
18373         instead of on fflush and lseek.
18375         af_alg: distiguish I/O errors better
18376         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
18377         not -EIO, if it’s OK for the caller to try again with user-mode code.
18378         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
18379         some other error number) if fflush fails, as the caller should not
18380         try again that case.
18382         af_alg: avoid gotos
18383         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
18384         gotos, as they were a source of unreliability and made the code a
18385         bit harder to follow.
18387         af_alg: don’t leak file descriptors into children
18388         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
18389         This code should be compiled only on recent GNU/Linux platforms
18390         so we shouldn’t have to also depend on the accept4 module.
18392         af_alg: coalesce socket creation
18393         * lib/af_alg.c (alg_socket): New function.
18394         (afalg_buffer, afalg_stream): Use it.  This avoids some
18395         code duplication and gotos.
18397         af_alg: fix file descriptor leak
18398         * lib/af_alg.c (afalg_stream): Close leak.
18400         af_alg: Pacify --enable-gcc-warnings on GCC 8
18401         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
18402         and checking to pacify gcc -Wjump-misses-init on GCC 8.
18404 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
18406         af_alg: Pacify --enable-gcc-warnings
18407         Problem reported by Assaf Gordon in:
18408         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
18409         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
18410         gcc -Wjump-misses-init.
18411         * lib/sha512.c (shaxxx_stream): Now static.
18413 2018-05-06  Bruno Haible  <bruno@clisp.org>
18415         af_alg: Add ability to use Linux kernel crypto API on data in memory.
18416         * lib/af_alg.h (afalg_buffer): New declaration.
18417         * lib/af_alg.c (afalg_buffer): New function.
18419 2018-05-06  Bruno Haible  <bruno@clisp.org>
18421         af_alg: Avoid warnings.
18422         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
18423         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
18425 2018-05-06  Bruno Haible  <bruno@clisp.org>
18427         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
18428         * tests/bench-digest.h: New file.
18429         * tests/bench-md5.c: New file.
18430         * tests/bench-sha1.c: New file.
18431         * tests/bench-sha224.c: New file.
18432         * tests/bench-sha256.c: New file.
18433         * tests/bench-sha384.c: New file.
18434         * tests/bench-sha512.c: New file.
18435         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
18436         tests/bench-digest.h.
18437         (Depends-on): Add getrusage, gettimeofday.
18438         (Makefile.am): Add variables to build bench-md5.
18439         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
18440         tests/bench-digest.h.
18441         (Depends-on): Add getrusage, gettimeofday.
18442         (Makefile.am): Add variables to build bench-sha1.
18443         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
18444         tests/bench-sha256.c, tests/bench-digest.h.
18445         (Depends-on): Add getrusage, gettimeofday.
18446         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
18447         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
18448         tests/bench-sha512.c, tests/bench-digest.h.
18449         (Depends-on): Add getrusage, gettimeofday.
18450         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
18452 2018-05-06  Bruno Haible  <bruno@clisp.org>
18454         af_alg: Fix a resource leak.
18455         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
18456         New local variable 'result'.
18458 2018-05-06  Bruno Haible  <bruno@clisp.org>
18460         af_alg: Fix bug with streams that are not at position 0.
18461         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
18462         assume that the stream is positioned at position 0.
18463         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
18464         of the stream.
18465         * lib/md5.h (md5_stream): Likewise.
18466         * lib/sha1.h (sha1_stream): Likewise.
18467         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
18468         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
18469         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
18471         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
18472         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
18473         stream that is not positioned at the beginning.
18475 2018-05-06  Bruno Haible  <bruno@clisp.org>
18477         af_alg: Add configure option to enable/disable use of Linux crypto API.
18478         Suggested by Assaf Gordon <assafgordon@gmail.com>.
18479         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
18480         USE_LINUX_CRYPTO_API.
18481         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
18482         * lib/af_alg.c: Likewise.
18484 2018-05-06  Bruno Haible  <bruno@clisp.org>
18486         Followup to 'af_alg: New module.'.
18487         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
18488         * modules/crypto/sha1 (Depends-on): Likewise.
18489         * modules/crypto/sha256 (Depends-on): Likewise.
18490         * modules/crypto/sha512 (Depends-on): Likewise.
18492 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18494         crypto/{md5,sha1,sha256,sha512}: simplify
18495         * lib/md5.c (md5_stream):
18496         * lib/sha1.c (sha1_stream):
18497         * lib/sha256.c (shaxxx_stream):
18498         Simplify, partly by assuming C99.
18499         * lib/sha256.c (shaxxx_stream):
18500         New function, which implements both sha256 and sha224.
18501         Simplify, partly by assuming C99.
18502         (sha256_stream, sha224_stream):
18503         Use it to avoid code duplication, removing a FIXME.
18504         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
18505         Likewise.
18507         af_alg: Improve comments.
18508         * lib/af_alg.h: Use imperatives and tighten up wording.
18510 2018-05-05  Bruno Haible  <bruno@clisp.org>
18512         af_alg: Improve comments.
18513         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
18515 2018-05-05  Bruno Haible  <bruno@clisp.org>
18517         af_alg: New module.
18518         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
18519         * lib/af_alg.c: Include "af_alg.h" before the other header files.
18520         * lib/md5.c: Include "af_alg.h" unconditionally.
18521         (md5_stream): Invoke afalg_stream unconditionally.
18522         * lib/sha1.c: Include "af_alg.h" unconditionally.
18523         (sha1_stream): Invoke afalg_stream unconditionally.
18524         * lib/sha256.c: Include "af_alg.h" unconditionally.
18525         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
18526         * lib/sha512.c: Include "af_alg.h" unconditionally.
18527         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
18528         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
18529         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
18530         * modules/crypto/af_alg: New file.
18531         * modules/crypto/md5 (Files): Remove files that are now in the
18532         'crypto/af_alg' module.
18533         (Depends-on): Add crypto/af_alg.
18534         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
18535         (Makefile.am): Don't mention af_alg.c here.
18536         * modules/crypto/sha1 (Files): Remove files that are now in the
18537         'crypto/af_alg' module.
18538         (Depends-on): Add crypto/af_alg.
18539         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
18540         (Makefile.am): Don't mention af_alg.c here.
18541         * modules/crypto/sha256 (Files): Remove files that are now in the
18542         'crypto/af_alg' module.
18543         (Depends-on): Add crypto/af_alg.
18544         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
18545         (Makefile.am): Don't mention af_alg.c here.
18546         * modules/crypto/sha512 (Files): Remove files that are now in the
18547         'crypto/af_alg' module.
18548         (Depends-on): Add crypto/af_alg.
18549         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
18550         (Makefile.am): Don't mention af_alg.c here.
18552 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18554         crypto tests: pacify GCC
18555         * tests/test-digest.h (test_digest_on_files):
18556         Don’t assume digest size fits in int (!).
18558         af_alg: minor style improvements
18559         * lib/af_alg.c (afalg_stream): Prefer C99 style
18560         decl-after-statement, since we’re already assuming C99.  Clarify
18561         by strengthening the bind test and omit unnecessary assignment.
18563 2018-05-05  Bruno Haible  <bruno@clisp.org>
18565         af_alg: Fix bug on empty files.
18566         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
18567         stream is empty.
18569 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18571         sys-limits.h: new file for crypto and safe I/O
18572         * lib/af_alg.c: Include sys-limits.h.
18573         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
18574         (afalg_stream): Also reject negative sizes for sendfile; they
18575         should not happen and the code is a bit cleaner and faster this way.
18576         * lib/safe-read.c: Include sys-limits.h.
18577         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
18578         * lib/sys-limits.h: New file, with values and commentary derived
18579         from the old safe-read.c and from GNU Emacs sysdep.c.
18580         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
18581         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
18582         Add lib/sys-limits.h to Files section.
18584 2018-05-05  Bruno Haible  <bruno@clisp.org>
18586         af_alg: Improve function signature.
18587         * lib/af_alg.h (afalg_stream): Swap second and third argument.
18588         * lib/af_alg.c (afalg_stream): Likewise.
18589         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
18591 2018-05-05  Bruno Haible  <bruno@clisp.org>
18593         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
18594         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
18595         * modules/crypto/sha1 (Depends-on): Likewise.
18596         * modules/crypto/sha256 (Depends-on): Likewise.
18597         * modules/crypto/sha512 (Depends-on): Likewise.
18599 2018-05-05  Bruno Haible  <bruno@clisp.org>
18601         crypto/{md5,sha1,sha256,sha512}: Fix module description.
18602         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
18603         * modules/crypto/sha1 (Depends-on): Likewise.
18604         * modules/crypto/sha256 (Depends-on): Likewise.
18605         * modules/crypto/sha512 (Depends-on): Likewise.
18607 2018-05-05  Bruno Haible  <bruno@clisp.org>
18609         af_alg: Add documentation.
18610         * lib/af_alg.h: Add comments.
18612 2018-05-05  Bruno Haible  <bruno@clisp.org>
18614         sha512: Add tests.
18615         * tests/test-sha512.c: New file.
18616         * modules/crypto/sha512-tests: New file.
18618 2018-05-05  Bruno Haible  <bruno@clisp.org>
18620         sha256: Add tests.
18621         * tests/test-sha256.c: New file.
18622         * modules/crypto/sha256-tests: New file.
18624 2018-05-05  Bruno Haible  <bruno@clisp.org>
18626         sha1 tests: Add test for sha1_stream.
18627         * tests/test-sha1.c: Include test-digest.h.
18628         (main): Invoke test_digest_on_files on 'sha1_stream'.
18629         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
18631 2018-05-05  Bruno Haible  <bruno@clisp.org>
18633         md5 tests: Add test for md5_stream.
18634         * tests/test-digest.h: New file.
18635         * tests/test-md5.c: Include test-digest.h.
18636         (main): Invoke test_digest_on_files on 'md5_stream'.
18637         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
18639 2018-04-28  Matteo Croce  <mcroce@redhat.com>
18641         md5sum: Use AF_ALG when available.
18642         * lib/md5.c: Include af_alg.h.
18643         (md5_stream): Use afalg_stream when available.
18644         * modules/crypto/md5 (Files): Add the af_alg files.
18645         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
18646         (Makefile.am): Add af_alg.c.
18648 2018-04-28  Matteo Croce  <mcroce@redhat.com>
18650         sha512sum: Use AF_ALG when available.
18651         * lib/sha512.c: Include af_alg.h.
18652         (sha512_stream, sha384_stream): Use afalg_stream when available.
18653         * modules/crypto/sha512 (Files): Add the af_alg files.
18654         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
18655         (Makefile.am): Add af_alg.c.
18657 2018-04-28  Matteo Croce  <mcroce@redhat.com>
18659         sha256sum: Use AF_ALG when available.
18660         * lib/sha256.c: Include af_alg.h.
18661         (sha256_stream, sha224_stream): Use afalg_stream when available.
18662         * modules/crypto/sha256 (Files): Add the af_alg files.
18663         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
18664         (Makefile.am): Add af_alg.c.
18666 2018-04-28  Matteo Croce  <mcroce@redhat.com>
18668         sha1sum: Use AF_ALG when available.
18669         * lib/af_alg.h: New file.
18670         * lib/af_alg.c: New file.
18671         * lib/sha1.c: Include af_alg.h.
18672         (sha1_stream): Use afalg_stream when available.
18673         * m4/linux-if-alg.m4: New file.
18674         * modules/crypto/sha1 (Files): Add the new files.
18675         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
18676         (Makefile.am): Add af_alg.c.
18678 2018-05-05  Bruno Haible  <bruno@clisp.org>
18680         all: Replace more http URLs by https URLs.
18681         * lib/localename.c: Use https: URL.
18682         * lib/timespec.h: Likewise.
18684 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
18686         maint: port more modules to GCC 8
18687         * lib/dirname.h (base_name):
18688         * lib/exclude.h (new_exclude):
18689         * lib/xstrndup.h (xstrndup):
18690         Add malloc attribute.
18691         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
18692         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
18693         This pacifies GCC 8.
18694         * m4/gnulib-common.m4 (gl_COMMON_BODY):
18695         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
18697 2018-05-03  Bruno Haible  <bruno@clisp.org>
18699         Simplify code. Drop support for Borland C++ on Windows.
18700         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
18701         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
18702         'defined _WIN32'.
18703         * lib/canonicalize-lgpl.c: Likewise.
18704         * lib/classpath.c: Likewise.
18705         * lib/clean-temp.c: Likewise.
18706         * lib/csharpexec.c: Likewise.
18707         * lib/ctime.c: Likewise.
18708         * lib/dosname.h: Likewise.
18709         * lib/dup2.c: Likewise.
18710         * lib/errno.in.h: Likewise.
18711         * lib/error.c: Likewise.
18712         * lib/euidaccess.c: Likewise.
18713         * lib/execute.c: Likewise.
18714         * lib/fcntl.in.h: Likewise.
18715         * lib/fcntl.c: Likewise.
18716         * lib/filename.h: Likewise.
18717         * lib/findprog.c: Likewise.
18718         * lib/flock.c: Likewise.
18719         * lib/fopen.c: Likewise.
18720         * lib/freopen.c: Likewise.
18721         * lib/fstat.c: Likewise.
18722         * lib/fsync.c: Likewise.
18723         * lib/gc-gnulib.c: Likewise.
18724         * lib/get-rusage-data.c: Likewise.
18725         * lib/getaddrinfo.c: Likewise.
18726         * lib/getdelim.c: Likewise.
18727         * lib/getdtablesize.c: Likewise.
18728         * lib/gethostname.c: Likewise.
18729         * lib/getlogin.c: Likewise.
18730         * lib/getlogin_r.c: Likewise.
18731         * lib/getopt.c: Likewise.
18732         * lib/getpagesize.c: Likewise.
18733         * lib/getpass.c: Likewise.
18734         * lib/getrusage.c: Likewise.
18735         * lib/gettimeofday.c: Likewise.
18736         * lib/glob.c: Likewise.
18737         * lib/inttypes.in.h: Likewise.
18738         * lib/isapipe.c: Likewise.
18739         * lib/javaexec.c: Likewise.
18740         * lib/link.c: Likewise.
18741         * lib/localcharset.c: Likewise.
18742         * lib/localename.h: Likewise.
18743         * lib/localename.c: Likewise.
18744         * lib/localtime.c: Likewise.
18745         * lib/lseek.c: Likewise.
18746         * lib/mbsinit.c: Likewise.
18747         * lib/mkdir.c: Likewise.
18748         * lib/msvc-nothrow.h: Likewise.
18749         * lib/nanosleep.c: Likewise.
18750         * lib/nl_langinfo.c: Likewise.
18751         * lib/nonblocking.c: Likewise.
18752         * lib/nproc.c: Likewise.
18753         * lib/open.c: Likewise.
18754         * lib/openpty.c: Likewise.
18755         * lib/pathmax.h: Likewise.
18756         * lib/pipe-filter-aux.c: Likewise.
18757         * lib/pipe-filter-gi.c: Likewise.
18758         * lib/pipe-filter-ii.c: Likewise.
18759         * lib/pipe.c: Likewise.
18760         * lib/pipe2.c: Likewise.
18761         * lib/poll.c: Likewise.
18762         * lib/popen.c: Likewise.
18763         * lib/posix_openpt.c: Likewise.
18764         * lib/printf-parse.c: Likewise.
18765         * lib/progreloc.c: Likewise.
18766         * lib/putenv.c: Likewise.
18767         * lib/read.c: Likewise.
18768         * lib/relocatable.c: Likewise.
18769         * lib/rename.c: Likewise.
18770         * lib/same-inode.h: Likewise.
18771         * lib/secure_getenv.c: Likewise.
18772         * lib/select.c: Likewise.
18773         * lib/sethostname.c: Likewise.
18774         * lib/setlocale.c: Likewise.
18775         * lib/sigaction.c: Likewise.
18776         * lib/sigprocmask.c: Likewise.
18777         * lib/sleep.c: Likewise.
18778         * lib/spawn-pipe.h: Likewise.
18779         * lib/spawn-pipe.c: Likewise.
18780         * lib/spawni.c: Likewise.
18781         * lib/stat-time.h: Likewise.
18782         * lib/stat-w32.c: Likewise.
18783         * lib/stat.c: Likewise.
18784         * lib/stdio.in.h: Likewise.
18785         * lib/stdio-impl.h: Likewise.
18786         * lib/stdio-read.c: Likewise.
18787         * lib/stdio-write.c: Likewise.
18788         * lib/stdlib.in.h: Likewise.
18789         * lib/strerror_r.c: Likewise.
18790         * lib/strftime-fixes.c: Likewise.
18791         * lib/sys_stat.in.h: Likewise.
18792         * lib/sys_types.in.h: Likewise.
18793         * lib/sys_wait.in.h : Likewise.
18794         * lib/system-quote.h: Likewise.
18795         * lib/system-quote.c: Likewise.
18796         * lib/tmpdir.c: Likewise.
18797         * lib/tzset.c: Likewise.
18798         * lib/uname.c: Likewise.
18799         * lib/unistd.in.h: Likewise.
18800         * lib/utime.in.h: Likewise.
18801         * lib/utime.c: Likewise.
18802         * lib/utimecmp.c: Likewise.
18803         * lib/utimens.c: Likewise.
18804         * lib/vasnprintf.c: Likewise.
18805         * lib/vma-iter.h: Likewise.
18806         * lib/vma-iter.c: Likewise.
18807         * lib/wait-process.c: Likewise.
18808         * lib/wcsftime.c: Likewise.
18809         * lib/wctype.in.h: Likewise.
18810         * lib/write.c: Likewise.
18811         * tests/nap.h: Likewise.
18812         * tests/test-cloexec.c: Likewise.
18813         * tests/test-dup-safer.c: Likewise.
18814         * tests/test-dup2.c: Likewise.
18815         * tests/test-dup3.c: Likewise.
18816         * tests/test-fcntl.c: Likewise.
18817         * tests/test-get-rusage-data.c: Likewise.
18818         * tests/test-getaddrinfo.c: Likewise.
18819         * tests/test-getlogin.h: Likewise.
18820         * tests/test-isatty.c: Likewise.
18821         * tests/test-localename.c: Likewise.
18822         * tests/test-mbrtowc-w32.c: Likewise.
18823         * tests/test-nonblocking.c: Likewise.
18824         * tests/test-nonblocking-pipe-main.c: Likewise.
18825         * tests/test-nonblocking-socket-main.c: Likewise.
18826         * tests/test-nonblocking-socket.h: Likewise.
18827         * tests/test-pipe.c: Likewise.
18828         * tests/test-pipe2.c: Likewise.
18829         * tests/test-poll.c: Likewise.
18830         * tests/test-pthread_sigmask1.c: Likewise.
18831         * tests/test-select.h: Likewise.
18832         * tests/test-sethostname2.c: Likewise.
18833         * tests/test-sigprocmask.c: Likewise.
18834         * tests/test-spawn-pipe-child.c: Likewise.
18835         * tests/test-stat-time.c: Likewise.
18836         * tests/test-system-quote-main.c: Likewise.
18837         * tests/test-utimens-common.h: Likewise.
18838         * tests/test-wcrtomb-w32.c: Likewise.
18839         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
18840         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18841         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
18842         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
18843         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
18844         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
18845         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
18846         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
18847         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18848         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
18849         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
18850         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
18851         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
18852         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
18853         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
18854         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18856 2018-05-02  Bruno Haible  <bruno@clisp.org>
18858         localename: Fix test failures on mingw.
18859         * lib/localename.c (gl_locale_name_thread): Remove code specific to
18860         native Windows.
18861         (gl_locale_name_posix): Move code specific to native Windows here.
18862         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
18863         Accept result without charset suffix, as it appears on mingw.
18865 2018-04-28  Paul Smith  <psmith@gnu.org>
18867         bootstrap: Avoid gnulib operations if not needed
18868         * build-aux/bootstrap: Remove unused variable gnulib_mk.
18869         Set $gnulib_extra_files early so it can be overridden in .conf.
18870         Remove redundant --import flag from $gnulib_tool_options.
18871         Set $use_gnulib to false if no gnulib modules or files are needed.
18872         If $use_gnulib is false, don't do anything related to gnulib.
18873         A lot of this is just whitespace (indentation) changes.
18875 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
18877         manywarnings: port to GCC 8.0
18878         * build-aux/gcc-warning.spec: Add -Wcatch-value,
18879         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
18880         fact that the GCC help message now mentions operands for
18881         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
18882         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
18883         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
18884         and -Wunused-const-variable.
18885         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
18886         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
18887         -Wmissing-attributes, -Wmultistatement-macros,
18888         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
18889         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
18891 2018-04-24  Bruno Haible  <bruno@clisp.org>
18893         sys_socket: Make SO_REUSEPORT available across platforms.
18894         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18895         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
18896         * doc/posix-headers/sys_socket.texi: Mention the issue.
18897         * tests/test-poll.c (SO_REUSEPORT): Remove.
18898         * tests/test-select.h: Include <sys/socket.h>.
18899         (SO_REUSEPORT): Remove.
18900         * modules/select-tests (Depends-on): Add 'sys_socket'.
18902 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
18904         localcharset: short-circuit the search for an alias on a Mac
18905         * lib/localcharset.c (get_charset_aliases): Add a tautological
18906         UTF-8 entry to speed up the search for this case.
18907         Most machines default to a UTF-8 locale nowadays, so begin the
18908         list of aliases with a dummy UTF-8 entry so it will be found
18909         immediately and a time-consuming search through the rest of
18910         the list is avoided.
18912 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
18914         fts: add comment
18915         * lib/fts.c (fts_build): Explain why ==, not >.
18916         See remark by Bernhard Voelker in:
18917         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
18919         fts: fix bug in find across filesystems
18920         This fixes a bug I introduced last summer.
18921         Problem reported by Kamil Dudka in:
18922         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
18923         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
18924         (leaf_optimization):
18925         New arg for file descriptor.  All callers changed.
18926         (fts_build): Check for whether inodes should be sorted
18927         before closing the directory.
18929 2018-04-07  Bruno Haible  <bruno@clisp.org>
18931         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
18932         Reported by Genki Sky <sky@genki.is>.
18933         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
18934         version 0.9.10 or newer.
18935         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
18936         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
18937         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
18938         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
18939         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
18941 2018-04-07  Bruno Haible  <bruno@clisp.org>
18943         execute: Update comment.
18944         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
18946 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
18948         fts: treat CIFS like NFS
18949         Problem reported by Kamil Dudka in:
18950         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
18951         * lib/fts.c (S_MAGIC_CIFS): New macro.
18952         (dirent_inode_sort_may_be_useful, leaf_optimization):
18953         Treat CIFS like NFS.
18955 2018-03-28  Bruno Haible  <bruno@clisp.org>
18957         c-stack: Fix possible build failure on some platforms.
18958         * lib/c-stack.c (die): Define whenever this function is referenced.
18960 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
18962         time_rz: fix workaround for Mac OS X 10.6 infloop
18963         Problems reported by Charles A. Roelli (Bug#27736#117).
18964         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
18965         Also, discard output, which clutters the 'configure' log.
18967 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
18969         havelib: port to Solaris 10 /bin/sh
18970         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
18971         instead of '! test EXPR'.
18973 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
18975         time_rz: work around Mac OS X 10.6 infloop
18976         * doc/posix-functions/localtime.texi:
18977         * doc/posix-functions/localtime_r.texi: Mention the bug.
18978         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
18979         better to fix localtime and localtime_r instead, but that would be
18980         more work and is not needed to fix the Emacs problem.
18981         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
18983 2018-03-24  Jim Meyering  <meyering@fb.com>
18985         test-version-etc.sh: don't use diff directly: use init.sh's compare
18986         We'd rather not sacrifice readable "diff -u" output even for
18987         "diff -c" output (not supported by busybox) or for even less
18988         readable ed-style "diff" output.  So use init.sh's compare function
18989         * tests/test-version-etc.sh: Source init.sh and add "." to path.
18990         Remove "./" from invocation of test-version-etc, so we use path.
18991         And s/diff/compare/.
18992         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
18993         to get init.sh.
18994         Prompted by Eric Blake's comments in
18995         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
18997 2018-03-24  Bruno Haible  <bruno@clisp.org>
18999         javacomp-script, javacomp: Add support for Java 10.
19000         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
19001         target-version 10.
19002         * lib/javaversion.h: Update comments.
19003         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
19004         source_version_index, get_goodcode_snippet, get_failcode_snippet,
19005         TARGET_VERSION_BOUND, target_version_index,
19006         corresponding_classfile_version): Accept source_version 10 and
19007         target_version 10.
19008         * lib/javacomp.h: Update comments accordingly.
19010 2018-03-24  Bruno Haible  <bruno@clisp.org>
19012         javacomp-script, javacomp: Update comments.
19013         * m4/javacomp.m4: Update comments regarding gcj.
19014         * lib/javacomp.h: Likewise.
19016 2018-03-24  Bruno Haible  <bruno@clisp.org>
19018         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
19019         * lib/javaversion.h: Update comments.
19020         * lib/javacomp.h: Likewise.
19021         * lib/javacomp.c (default_target_version, source_version_index,
19022         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
19023         "1.9".
19024         (TARGET_VERSION_BOUND): Bump to 9.
19025         (target_version_index, corresponding_classfile_version): Recognize "9"
19026         instead of "1.9".
19027         (get_source_version_for_javac): New function.
19028         (is_envjavac_nongcj_usable, is_javac_usable): Add
19029         source_version_for_javac argument.
19030         (compile_java_class): Determine and pass source_version_for_javac.
19031         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
19032         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
19033         appropriate.
19035 2018-03-23  Jim Meyering  <meyering@fb.com>
19037         test-version-etc.sh: port to diff without -c
19038         * tests/test-version-etc.sh: Don't use diff's -c option.
19039         This caused spurious test failure on Alpine Linux, which
19040         uses busybox's diff. Reported by Assaf Gordon in
19041         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
19043 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
19045         c-stack: port to recent GCC build
19046         Problem reported by The Fireplace (Bug#30913).
19047         * lib/c-stack.c (die): Define only if used.
19049 2018-03-20  Bruno Haible  <bruno@clisp.org>
19051         euidaccess: Port to native Windows.
19052         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
19053         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
19055 2018-03-19  Bruno Haible  <bruno@clisp.org>
19057         javacomp: Add support for Java 7, 8, 9.
19058         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
19059         source_version_index, get_goodcode_snippet, get_failcode_snippet,
19060         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
19061         and target_version 1,7, 1.8, 1.9.
19062         * lib/javacomp.h: Update comments accordingly.
19064 2018-03-19  Bruno Haible  <bruno@clisp.org>
19066         javacomp-script: Add support for Java 9.
19067         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
19068         target-version 1.9.
19070 2018-03-16  Bruno Haible  <bruno@clisp.org>
19072         glob: Don't compile replacements on recent glibc systems.
19073         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
19074         REPLACE_GLOB is 0, include the system's <glob.h> and use
19075         _GL_CXXALIAS_SYS.
19076         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
19077         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
19078         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
19079         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
19080         Remove snippet/warn-on-use.
19081         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
19082         (Makefile.am): Create glob.h always. Update list of substitutions in
19083         glob.h. Don't depend on $(WARN_ON_USE_H).
19085 2018-03-16  Bruno Haible  <bruno@clisp.org>
19087         glob: Fix link error on native Windows.
19088         * modules/glob (Depends-on): Add 'lstat'.
19090 2018-03-15  Bruno Haible  <bruno@clisp.org>
19092         glob: Fix compilation error in C++ mode.
19093         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
19095 2018-03-15  Bruno Haible  <bruno@clisp.org>
19097         host-cpu-c-abi: Support for RISC-V CPU.
19098         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
19099         riscv32 and riscv64 ABIs.
19100         References:
19101         https://github.com/riscv/riscv-toolchain-conventions
19102         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
19103         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
19105 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
19107         fflush: be more paranoid about libio.h change
19108         Suggested by Eli Zaretskii in:
19109         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
19110         * lib/fbufmode.c (fbufmode):
19111         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
19112         (disable_seek_optimization, rpl_fflush):
19113         * lib/fpending.c (__fpending):
19114         * lib/fpurge.c (fpurge):
19115         * lib/freadable.c (freadable):
19116         * lib/freadahead.c (freadahead):
19117         * lib/freading.c (freading):
19118         * lib/freadptr.c (freadptr):
19119         * lib/freadseek.c (freadptrinc):
19120         * lib/fseeko.c (fseeko):
19121         * lib/fseterr.c (fseterr):
19122         * lib/fwritable.c (fwritable):
19123         * lib/fwriting.c (fwriting):
19124         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
19126 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
19128         maint: write-file-hooks -> before-save-hook
19129         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
19130         it's time to use the recommended replacement.
19131         Problem reported by Glenn Morris in:
19132         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
19133         * build-aux/announce-gen, build-aux/bootstrap:
19134         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
19135         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
19136         * build-aux/gnu-web-doc-update, build-aux/gnupload:
19137         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
19138         * build-aux/update-copyright, build-aux/useless-if-before-free:
19139         * build-aux/vc-list-files:
19140         Update hook usage for files where Gnulib is the canonical source.
19142 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
19144         binary-io: pacify gcc -Wunused-parameter
19145         Problem reported by Reuben Thomas in:
19146         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
19147         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
19148         Use _GL_UNUSED where appropriate.
19150         fflush: adjust to glibc 2.28 libio.h removal
19151         Problem reported by Daniel P. Berrangé in:
19152         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
19153         * lib/fbufmode.c (fbufmode):
19154         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
19155         (disable_seek_optimization, rpl_fflush):
19156         * lib/fpending.c (__fpending):
19157         * lib/fpurge.c (fpurge):
19158         * lib/freadable.c (freadable):
19159         * lib/freadahead.c (freadahead):
19160         * lib/freading.c (freading):
19161         * lib/freadptr.c (freadptr):
19162         * lib/freadseek.c (freadptrinc):
19163         * lib/fseeko.c (fseeko):
19164         * lib/fseterr.c (fseterr):
19165         * lib/fwritable.c (fwritable):
19166         * lib/fwriting.c (fwriting):
19167         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
19168         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
19169         Define if not already defined.
19171 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
19173         environ: fix link error on 32-bit Cygwin
19174         Problem reported for GNU Emacs by Ken Brown in:
19175         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
19176         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
19178 2018-02-24  Bruno Haible  <bruno@clisp.org>
19180         mbrtowc tests: Fix regression on glibc.
19181         Reported by Bernhard Voelker.
19182         * tests/test-mbrtowc.c (main): Fix expected value of wc.
19184 2018-02-24  Bruno Haible  <bruno@clisp.org>
19186         striconveha, uniconv/*: Avoid test failures on musl libc.
19187         * tests/iconvsupport.c: New file.
19188         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
19189         does not support the ISO-2022-JP-2 encoding.
19190         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
19191         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
19192         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
19193         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
19194         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
19195         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
19196         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
19197         (Makefile.am): Link test-striconveha with iconvsupport.o.
19198         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
19199         tests/iconvsupport.c.
19200         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
19201         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
19202         tests/iconvsupport.c.
19203         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
19204         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
19205         tests/iconvsupport.c.
19206         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
19207         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
19208         tests/iconvsupport.c.
19209         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
19210         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
19211         tests/iconvsupport.c.
19212         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
19213         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
19214         tests/iconvsupport.c.
19215         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
19217 2018-02-24  Bruno Haible  <bruno@clisp.org>
19219         localename: Add support for musl libc.
19220         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
19221         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
19222         on Linux platforms which define NL_LOCALE_NAME.
19224 2018-02-24  Bruno Haible  <bruno@clisp.org>
19226         mbrtowc tests: Don't make assumptions about the charset the C locale.
19227         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
19228         particular mapping in the C locale.
19230 2018-02-24  Bruno Haible  <bruno@clisp.org>
19232         ptsname_r: Don't expect that this function sets errno.
19233         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
19234         from ptsname_r().
19235         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
19237 2018-02-23  Bruno Haible  <bruno@clisp.org>
19239         xmalloca: pacify gcc -Wbad-function-cast
19240         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
19242 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
19244         nl_langinfo: pacify gcc -Wunused-function
19245         * lib/nl_langinfo.c (ctype_codeset): Do not define if
19246         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
19247         this case.  Without this change, I got a diagnostic when building
19248         coreutils on Fedora 27 with gcc 7.3.1 20180130.
19250         same: pacify gcc -Wunused-variable
19251         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
19252         Omit unused variable.
19254         malloca: pacify gcc -Wbad-function-cast
19255         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
19256         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
19257         To pacify GCC, I had to cast alloca’s result to some type other
19258         than void * before casting that to uintptr_t.
19260 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
19262         utimecmp: new function utimecmpat
19263         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
19264         Do not include utimens.h.
19265         (utimecmpat): New function, generalizing utimecmp.
19266         (utimecmp): Now a thin layer around utimecmpat.
19267         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
19268         utimensat instead of on lstat and utimens.
19270         same: new function same_nameat
19271         * lib/same.c: Include fcntl.h.
19272         * lib/same.c (same_nameat): New function, generalizing same_name.
19273         (same_name): Now a thin layer around same_nameat.
19274         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
19275         * modules/same (Depends-on): Depend on fstatat, openat.
19277 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
19279         warnings: Add support for Objective C.
19280         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
19281         macro.
19283 2018-02-17  Bruno Haible  <bruno@clisp.org>
19285         lock: Fix test-once1 crash on FreeBSD11.
19286         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
19287         'pthread_create', not 'pthread_cancel'.
19289 2018-02-17  Bruno Haible  <bruno@clisp.org>
19291         lock: Add test of gl_once.
19292         * tests/test-once.c: New file.
19293         * modules/lock-tests (Files): Add it.
19294         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
19296 2018-02-17  Bruno Haible  <bruno@clisp.org>
19298         thread: Fix compilation error on IRIX.
19299         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
19300         needed; include it outside the C++ extern "C" {} block.
19301         * doc/posix-headers/pthread.texi: Mention the problem with
19302         pthread_atfork on IRIX.
19304 2018-02-04  Bruno Haible  <bruno@clisp.org>
19306         nl_langinfo: Override the system's nl_langinfo() when needed.
19307         Reported by Jim Meyering.
19308         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
19309         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
19311 2018-02-04  Bruno Haible  <bruno@clisp.org>
19313         signal-h, monetary, strings: Fix build failure in some cases.
19314         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19315         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
19316         as delimiter in sed command, not '|'.
19317         * modules/monetary (Makefile.am): Likewise.
19318         * modules/strings (Makefile.am): Likewise.
19320 2018-02-03  Jim Meyering  <meyering@fb.com>
19322         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
19323         * top/maint.mk (sc_file_system): Don't complain about
19324         "/proc/filesystems".
19326 2018-02-03  Bruno Haible  <bruno@clisp.org>
19328         stdlib: Fix compilation error on OpenIndiana.
19329         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
19330         <sys/time.h>.
19331         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
19332         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
19334 2018-02-03  Bruno Haible  <bruno@clisp.org>
19336         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
19337         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
19338         and use $EGREP instead of 'grep -E'.
19339         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
19340         'grep -E'.
19342 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
19344         malloca: Add a compile-time verification.
19345         * lib/malloca.c (small_t): Verify that it is wide enough.
19346         * modules/malloca (Depends-on): Add verify.
19348 2018-02-02  Bruno Haible  <bruno@clisp.org>
19350         malloca: Add an argument check.
19351         Suggested by Paul Eggert.
19352         * lib/malloca.c (freea): Check against an invalid argument.
19354 2018-02-02  Bruno Haible  <bruno@clisp.org>
19356         localename: Add support for OpenIndiana.
19357         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
19358         Solaris 11 variants with uselocale() but without getlocalename_l().
19360 2018-02-02  Bruno Haible  <bruno@clisp.org>
19362         malloca, xmalloca: Make multithread-safe.
19363         Reported by Florian Weimer <fweimer@redhat.com>.
19364         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
19365         * lib/malloca.h (malloca): In the stack allocation case, return a
19366         pointer that is a multiple of 2 * sa_alignment_max.
19367         (sa_increment): Remove enum item.
19368         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
19369         a pointer that is a multiple of 2 * sa_alignment_max.
19370         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
19371         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
19372         HASH_TABLE_SIZE, mmalloca_results): Remove.
19373         (small_t): New type.
19374         (mmalloca, free): Rewritten.
19375         * lib/malloca.valgrind: Remove file.
19376         * modules/malloca (Files): Remove it.
19377         (Depends-on): Remove verify.
19379 2018-01-31  Bruno Haible  <bruno@clisp.org>
19381         environ: Fix link error on 64-bit Cygwin.
19382         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
19383         __declspec(dllimport) attribute.
19384         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
19386 2018-01-30  Bruno Haible  <bruno@clisp.org>
19388         get-rusage-data: Add support for Minix 3.
19389         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
19391 2018-01-30  Bruno Haible  <bruno@clisp.org>
19393         vma-iter: Add support for Minix 3.
19394         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
19395         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
19397 2018-01-27  Bruno Haible  <bruno@clisp.org>
19399         Fix malfunction of socket functions on HP-UX in 64-bit mode.
19400         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
19401         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
19402         _HPUX_ALT_XOPEN_SOCKET_API.
19403         * modules/accept (Depends-on): Add 'extensions'.
19404         * modules/getpeername (Depends-on): Likewise.
19405         * modules/getsockname (Depends-on): Likewise.
19406         * modules/getsockopt (Depends-on): Likewise.
19407         * modules/recvfrom (Depends-on): Likewise.
19408         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
19409         * doc/posix-functions/getpeername.texi: Likewise.
19410         * doc/posix-functions/getsockname.texi: Likewise.
19411         * doc/posix-functions/getsockopt.texi: Likewise.
19412         * doc/posix-functions/recvfrom.texi: Likewise.
19414 2018-01-27  Bruno Haible  <bruno@clisp.org>
19416         getsockname tests: More tests.
19417         * tests/test-getsockname.c (open_server_socket): New function, mostly
19418         copied from test-poll.c.
19419         (main): Check that getsockname fills in addr.
19420         * modules/getsockname-tests (Depends-on): Add the necessary
19421         dependencies.
19422         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
19424 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
19426         manywarnings: fix maintainer comment
19427         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
19428         it does not mistakenly think that ‘-1)’ is an option.
19430 2018-01-26  Bruno Haible  <bruno@clisp.org>
19432         langinfo: Fix last commit.
19433         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19434         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
19436 2018-01-24  Bruno Haible  <bruno@clisp.org>
19438         langinfo, nl_langinfo: Add support for alternative month names.
19439         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
19440         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
19441         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
19442         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
19443         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
19444         * doc/posix-functions/nl_langinfo.texi: Likewise.
19446 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19448         Merge strftime.c changes from glibc
19449         This incorporates:
19450         2017-11-14 [BZ #10871] Implement alternative month names
19451         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
19452         2017-06-20 Use locale_t, not __locale_t, throughout glibc
19453         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
19454         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
19455         Use locale_t, not __locale_t.
19456         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
19457         (__strftime_internal): Add support for alternate months.
19459 2018-01-23  Bruno Haible  <bruno@clisp.org>
19461         doc: Mention another prerequisite for using Gnulib.
19462         Reported at <https://stackoverflow.com/questions/48378214/>.
19463         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
19464         AC_CONFIG_HEADERS.
19466 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
19468         build: GuixSD doesn't have /bin/bash
19469         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
19471 2018-01-21  Bruno Haible  <bruno@clisp.org>
19473         Avoid test failures on Microsoft Windows Subsystem for Linux.
19474         * tests/test-fcntl.c (main): Allow a different errno.
19475         * tests/test-rename.h (test_rename): Likewise.
19476         * tests/test-renameat.c (main): Likewise.
19477         * tests/test-renameat2.c (main): Likewise.
19479 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
19481         filenamecat: make base a suffix of result
19482         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
19483         (mfile_name_concat): Always make BASE a suffix of the result, as
19484         cp expects this.  To implement this, separate with '.' instead of
19485         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
19486         * tests/test-filenamecat.c (main): Adjust tests to match
19487         current behavior.  Check that BASE_IN_RESULT points to
19488         a copy of BASE and is a suffix of the resultk, and that DIR
19489         is a prefix of the result that is no longer than the prefix
19490         indicated by BASE_IN_RESULT.
19492 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
19494         update-copyright: Handle use of ©
19495         * build-aux/update-copyright ($circle_c_re): Update regex to
19496         handle use of © in headers.
19498 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
19500         Fix -Wundef warning in user-included header lib/cdefs.h.
19501         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
19503 2018-01-04  Bruno Haible  <bruno@clisp.org>
19505         pthread_sigmask: Avoid compilation error on mingw.
19506         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19507         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
19508         macro.
19510 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
19512         test-framework-sh: ‘ps -ef’, not ‘ps ef’
19513         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
19514         Suggested by Bob Proulx (Bug#29968).
19515         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
19517 2018-01-02  Eric Blake  <eblake@redhat.com>
19519         stat-time: silence -Wunused-parameter regression
19520         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
19521         Prefer attribute over cast-to-void.
19522         (stat_time_normalize): Mark st as potentially unused.
19524 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
19526         test-framework-sh: avoid netstat
19527         Problem reported by Kristýna Streitová (Bug#29947).
19528         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
19529         deprecated on SuSE and it's not that important anyway.
19531 2018-01-01  Jim Meyering  <meyering@fb.com>
19533         update-copyright: add code to handle more special cases
19534         After running "make update-copyright" this year, five files
19535         required additional manual changes.  Automate those adjustments
19536         for next year.
19537         * Makefile (_year_and_prev): Define.
19538         (update-copyright): Add perl commands to induce this year's post-
19539         update-copyright adjustments.
19541 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
19543         version-etc: new year
19544         * build-aux/gendocs.sh (version):
19545         * doc/gendocs_template:
19546         * doc/gendocs_template_min:
19547         * doc/gnulib.texi:
19548         * lib/version-etc.c (COPYRIGHT_YEAR):
19549         Update copyright dates by hand in templates and the like.
19551         maint: fix 'make update-copyright'
19552         * Makefile (update-copyright): Adjust to 2016-11-23 change
19553         to config/srclist-update, which changed the format of srclist.txt.
19555 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
19557         chdir-safer: remove this module
19558         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
19559         * NEWS: Document removal.
19560         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
19561         * modules/chdir-safer: Remove these files.
19563 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
19565         Add cross-compilation results for GNU/Hurd.
19566         * m4/calloc.m4: Add GNU/Hurd guess.
19567         * m4/cbrtl.m4: Likewise.
19568         * m4/ceil.m4: Likewise.
19569         * m4/ceilf.m4: Likewise.
19570         * m4/ceill.m4: Likewise.
19571         * m4/chown.m4: Likewise.
19572         * m4/duplocale.m4: Likewise.
19573         * m4/exp2l.m4: Likewise.
19574         * m4/expm1.m4: Likewise.
19575         * m4/fchdir.m4: Likewise.
19576         * m4/floor.m4: Likewise.
19577         * m4/floorf.m4: Likewise.
19578         * m4/fmod.m4: Likewise.
19579         * m4/fmodf.m4: Likewise.
19580         * m4/fmodl.m4: Likewise.
19581         * m4/getcwd.m4: Likewise.
19582         * m4/getgroups.m4: Likewise.
19583         * m4/gettimeofday.m4: Likewise.
19584         * m4/hypot.m4: Likewise.
19585         * m4/hypotf.m4: Likewise.
19586         * m4/hypotl.m4: Likewise.
19587         * m4/link-follow.m4: Likewise.
19588         * m4/link.m4: Likewise.
19589         * m4/linkat.m4: Likewise.
19590         * m4/log.m4: Likewise.
19591         * m4/log10.m4: Likewise.
19592         * m4/log10f.m4: Likewise.
19593         * m4/log1p.m4: Likewise.
19594         * m4/log1pf.m4: Likewise.
19595         * m4/log1pl.m4: Likewise.
19596         * m4/log2.m4: Likewise.
19597         * m4/log2f.m4: Likewise.
19598         * m4/logf.m4: Likewise.
19599         * m4/lstat.m4: Likewise.
19600         * m4/malloc.m4: Likewise.
19601         * m4/mbrlen.m4: Likewise.
19602         * m4/mbrtowc.m4: Likewise.
19603         * m4/mkdir.m4: Likewise.
19604         * m4/mkfifo.m4: Likewise.
19605         * m4/mknod.m4: Likewise.
19606         * m4/mkstemp.m4: Likewise.
19607         * m4/modf.m4: Likewise.
19608         * m4/modff.m4: Likewise.
19609         * m4/modfl.m4: Likewise.
19610         * m4/printf.m4: Likewise.
19611         * m4/pselect.m4: Likewise.
19612         * m4/ptsname.m4: Likewise.
19613         * m4/putenv.m4: Likewise.
19614         * m4/readlink.m4: Likewise.
19615         * m4/realloc.m4: Likewise.
19616         * m4/remainder.m4: Likewise.
19617         * m4/remainderf.m4: Likewise.
19618         * m4/remainderl.m4: Likewise.
19619         * m4/rmdir.m4: Likewise.
19620         * m4/round.m4: Likewise.
19621         * m4/roundf.m4: Likewise.
19622         * m4/roundl.m4: Likewise.
19623         * m4/select.m4: Likewise.
19624         * m4/setenv.m4: Likewise.
19625         * m4/signbit.m4: Likewise.
19626         * m4/sleep.m4: Likewise.
19627         * m4/stat.m4: Likewise.
19628         * m4/strerror.m4: Likewise.
19629         * m4/strtok_r.m4: Likewise.
19630         * m4/symlink.m4: Likewise.
19631         * m4/symlinkat.m4: Likewise.
19632         * m4/trunc.m4: Likewise.
19633         * m4/truncf.m4: Likewise.
19634         * m4/truncl.m4: Likewise.
19635         * m4/tzset.m4: Likewise.
19636         * m4/ungetc.m4: Likewise.
19637         * m4/usleep.m4: Likewise.
19638         * m4/wcwidth.m4: Likewise.
19640 2017-12-28  Bruno Haible  <bruno@clisp.org>
19642         gnulib-tool: Make --conditional-dependencies work better.
19643         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
19644         * gnulib-tool (Options): Don't reject the combination of
19645         --conditional-dependencies with --with-tests.
19646         (func_emit_autoconf_snippets): Add argument referenceable_modules.
19647         Don't reference $modules.
19648         (func_import, func_create_testdir): Pass it.
19650 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
19652         regex: use re_malloc etc. consistently
19653         Problem and original patch reported by Arnold Robbins in:
19654         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
19655         * lib/regcomp.c (re_comp):
19656         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
19657         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
19659 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
19660             Paul Eggert  <eggert@cs.ucla.edu>
19662         glob: Silence warning about void pointer arithmetic.
19663         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
19664         arithmetic.
19666 2017-12-15  Bruno Haible  <bruno@clisp.org>
19668         spawn-pipe: Silence a clang warning.
19669         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
19670         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
19671         in this file.
19673 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
19675         explicit_bzero: port to macOS + Clang 9.0.0
19676         Problem reported by Marcus Johnson (Bug#29658).
19677         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
19678         Don’t use asm.
19680 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
19682         doc: Improve explanation of supporting relocatable libraries.
19683         * doc/relocatable-maint.texi (Supporting Relocation): Explain
19684         properly how to build the relocatable module for
19685         libraries. (Method and example code from Bruno Haible.)
19687 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
19689         doc: Use better texinfo tags in a few cases.
19690         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
19691         instead of @samp in a few places.
19693 2017-12-11  Bruno Haible  <bruno@clisp.org>
19695         unistr/base: Update comment.
19696         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
19698 2017-12-10  Pádraig Brady  <P@draigBrady.com>
19700         test-faccessat.c: unlink temp file to avoid subsequent test failure
19701         * tests/test-faccessat.c: Remove the file to avoid failure
19702         to open the file on subsequent runs due to being created
19703         with no permissions.
19705 2017-12-10  Bruno Haible  <bruno@clisp.org>
19707         doc: New sect. "Modifying the build rules of a Gnulib import directory".
19708         * doc/gnulib-tool.texi (Modified build rules): New node.
19710 2017-12-10  Bruno Haible  <bruno@clisp.org>
19712         doc: Tweak wording.
19713         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
19714         "binaries".
19716 2017-12-05  Sam Steingold  <sds@gnu.org>
19717             Bruno Haible  <bruno@clisp.org>
19719         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
19720         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
19721         AC_EGREP_CPP pattern.
19723 2017-12-03  Bruno Haible  <bruno@clisp.org>
19725         all: Replace more http URLs by https URLs.
19726         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
19727         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
19728         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
19729         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
19731 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
19733         Port better to CentOS 5
19734         Problems reported by Tom G. Christensen in:
19735         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
19736         * doc/glibc-functions/strverscmp.texi (strverscmp):
19737         Document strverscmp bug with glibc 2.9 and earlier.
19738         * doc/posix-functions/tzset.texi (tzset):
19739         Document that TZ with angle brackets is POSIX-2001 and later.
19740         * tests/test-nstrftime.c: Include unistd.h.
19741         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
19742         (TZ): Use it to skip tests with angle brackets in TZ,
19743         for older systems.
19745         stat: add missing module dependencies
19746         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
19747         Add stat-time.
19749 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
19751         stat: fix compilation failure on macOS Sierra
19752         Reported by Marius Schamschula <mschamschula@gmail.com> in:
19753         https://savannah.gnu.org/bugs/?52546
19754         * lib/stat.c: Add missing include of stat-time.h.
19756 2017-11-28  Jim Meyering  <meyering@fb.com>
19758         test-faccessat.c: correct BASE definition to avoid parallel test failure
19759         * tests/test-faccessat.c (BASE): Define using this file's name, not
19760         that of test-lstat.c.  Using the latter caused this test to fail
19761         sometimes when run concurrently with test-lstat.
19763 2017-11-27  Daiki Ueno  <ueno@gnu.org>
19765         unicase: fix VPATH build
19766         * modules/unicase/special-casing (Makefile.am): Ensure that the
19767         base directory is created when generating
19768         unicase/special-casing.h.
19770 2017-11-27  Daiki Ueno  <ueno@gnu.org>
19772         libunistring: update to Unicode 9.0.0
19773         * lib/gen-uni-tables.c (fill_properties): Recognize
19774         Sentence_Terminal and Prepended_Concatenation_Mark.
19775         (is_property_default_ignorable_code_point): Exclude U+08E2.
19776         (fill_arabicshaping): Allow missing whitespace when parsing;
19777         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
19778         (output_blocks): Increase the element size of the level1 table to
19779         accommodate more blocks.
19780         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
19781         Update each class according to the standard.
19782         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
19783         E_Base_GAZ characters.
19784         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
19785         Glue_After_Zwj, and E_Base_GAZ characters.
19786         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
19787         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
19788         enum value.
19789         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
19790         value.
19791         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
19792         LBP_ZWJ, LBP_EB, and LBP_EM.
19793         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
19794         enum value.
19795         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
19796         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
19797         declaration.
19798         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
19799         (uniwbrk_table): Implement WB14.
19800         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
19801         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
19802         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
19803         uc-is-grapheme-break.
19804         * modules/unigbrk/uc-grapheme-breaks: New module.
19805         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
19806         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
19807         enum value.
19808         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
19809         * lib/unigbrk/u-grapheme-breaks.h: New file.
19810         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
19811         u-grapheme-breaks.h instead of uc_is_grapheme_break.
19812         * lib/unigbrk/uc-grapheme-breaks.c: New file.
19813         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
19814         29.
19815         * tests/unigbrk/test-uc-gbrk-prop.c
19816         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
19817         GBP_GAZ, and GBP_EBG.
19818         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
19819         * tests/unigbrk/test-uc-is-grapheme-break.c
19820         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
19821         GBP_GAZ, and GBP_EBG.
19822         (main): Skip unsupported rules involving 3 or more characters,
19823         namely GB10, GB12, and GB13.
19824         * lib/uniwidth/width.c (nonspacing_table_data): Update.
19825         * all generated files under lib/uni* and tests/uni*: Regenerate.
19826         * all the affected modules: Bump version.
19828 2017-11-26  Bruno Haible  <bruno@clisp.org>
19830         strfmon_l: Fix compilation error with glibc 2.5.
19831         Reported by Tom G. Christensen <tgc@jupiterrise.com>
19832         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
19833         * lib/monetary.in.h: Include also <locale.h>.
19835 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
19837         posixtm: remove PDS_LEADING_YEAR
19838         This changes the API slightly, in a hopefully-innocuous way.
19839         Without this change the code had undefined behavior when a
19840         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
19841         Problem reported by Pádraig Brady in:
19842         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
19843         * NEWS: Mention this.
19844         * lib/posixtm.c (posix_time_parse): Treat the absence of
19845         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
19846         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
19847         present, but define it as zero, for compatibility with existing
19848         source code).  All other PDS_* values moved up.
19849         * tests/test-posixtm.c (LY): New macro.
19850         (T): Use it.  Do not expect a particular numeric encoding
19851         for PDS_CENTURY etc.
19853 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
19855         stat: work around Solaris bug with tv_nsec < 0
19856         * doc/posix-functions/fstat.texi (fstat):
19857         * doc/posix-functions/fstatat.texi (fstatat):
19858         * doc/posix-functions/lstat.texi (lstat):
19859         * doc/posix-functions/stat.texi (stat):
19860         Mention Solaris 11 bug.
19861         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
19862         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
19863         * lib/lstat.c (rpl_lstat):
19864         * lib/stat.c (rpl_stat):
19865         Normalize resulting timestamps.
19866         * lib/fstatat.c (normal_fstatat): New function.
19867         (rpl_fstatat): Use it.
19868         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
19869         (stat_time_normalize): New function.
19870         * m4/fstat.m4 (gl_FUNC_FSTAT):
19871         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
19872         * m4/lstat.m4 (gl_FUNC_LSTAT):
19873         * m4/stat.m4 (gl_FUNC_STAT):
19874         Replace on Solaris.
19875         * modules/fstat (Depends-on):
19876         * modules/fstatat (Depends-on):
19877         Add stat-time.
19878         * modules/stat-time (Depends-on): Add errno, intprops.
19880 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
19882         regex: merge from glibc
19883         * lib/regcomp.c (init_word_char): Add comments.
19885 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
19887         regex: merge from glibc
19888         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
19889         * lib/regex_internal.h (internal_function): Remove.
19890         All uses removed.
19892 2017-11-20  Bruno Haible  <bruno@clisp.org>
19894         crypto/gc-sm3: Fix buffer overrun.
19895         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
19896         Reported by Coverity.
19898 2017-11-12  Jim Meyering  <meyering@fb.com>
19900         maint: shorten https://lists.gnu.org/archive/html/... links
19901         Each /archive/html/ part can be replace with /r/.
19902         Run this to induce the change:
19903         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
19904         * ChangeLog: Perform that substitution.
19905         * Makefile: Likewise.
19906         * STATUS-libposix: Likewise.
19907         * build-aux/bootstrap: Likewise.
19908         * doc/maintain.texi: Likewise.
19909         * gnulib-tool: Likewise.
19910         * lib/allocator.h: Likewise.
19911         * lib/argp-ba.c: Likewise.
19912         * lib/argp-pv.c: Likewise.
19913         * lib/canon-host.c: Likewise.
19914         * lib/canonicalize-lgpl.c: Likewise.
19915         * lib/float.in.h: Likewise.
19916         * lib/fstat.c: Likewise.
19917         * lib/getdelim.c: Likewise.
19918         * lib/getprogname.c: Likewise.
19919         * lib/glthread/thread.h: Likewise.
19920         * lib/intprops.h: Likewise.
19921         * lib/mbsrtowcs-state.c: Likewise.
19922         * lib/safe-read.c: Likewise.
19923         * lib/signal.in.h: Likewise.
19924         * lib/stat.c: Likewise.
19925         * lib/stdbool.in.h: Likewise.
19926         * lib/stdio-impl.h: Likewise.
19927         * lib/stdio.in.h: Likewise.
19928         * lib/sysexits.in.h: Likewise.
19929         * lib/timespec.h: Likewise.
19930         * lib/wcsrtombs-state.c: Likewise.
19931         * m4/alloca.m4: Likewise.
19932         * m4/extern-inline.m4: Likewise.
19933         * m4/fstatat.m4: Likewise.
19934         * m4/gnulib-common.m4: Likewise.
19935         * m4/lib-ignore.m4: Likewise.
19936         * m4/printf.m4: Likewise.
19937         * m4/regex.m4: Likewise.
19938         * m4/stat-size.m4: Likewise.
19939         * m4/std-gnu11.m4: Likewise.
19940         * m4/stdbool.m4: Likewise.
19941         * m4/sys_types_h.m4: Likewise.
19942         * m4/threadlib.m4: Likewise.
19943         * m4/vararrays.m4: Likewise.
19944         * pygnulib/GLImport.py: Likewise.
19945         * tests/test-exp.h: Likewise.
19946         * tests/test-exp2.h: Likewise.
19947         * tests/test-expm1.h: Likewise.
19948         * tests/test-fflush2.c: Likewise.
19949         * tests/test-getopt_long.h: Likewise.
19950         * tests/test-intprops.c: Likewise.
19951         * tests/test-log.h: Likewise.
19952         * tests/test-log10.h: Likewise.
19953         * tests/test-log1p.h: Likewise.
19954         * tests/test-log2.h: Likewise.
19955         * tests/test-printf-posix.h: Likewise.
19956         * tests/test-regex.c: Likewise.
19957         * tests/test-snprintf-posix.h: Likewise.
19958         * tests/test-sprintf-posix.h: Likewise.
19959         * tests/test-stdalign.c: Likewise.
19960         * tests/test-stdbool.c: Likewise.
19961         * tests/test-vasnprintf-posix.c: Likewise.
19962         * tests/test-vasprintf-posix.c: Likewise.
19963         * top/maint.mk: Likewise.
19965 2017-11-12  Bruno Haible  <bruno@clisp.org>
19967         faccessat: Make the last change more robust.
19968         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
19969         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
19971 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
19973         faccessat: port to macOS (Bug#29231)
19974         macOS faccessat has the same bug that lstat does: if the file
19975         name ends in '/' it ignores the trailing slash.
19976         Problem reported for Emacs by Vincent Zhang.
19977         * doc/posix-functions/faccessat.texi (faccessat): Document this.
19978         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
19979         around the initial includes.  Include errno.h, string.h, sys/stat.h.
19980         (orig_faccessat) [HAVE_FACCESSAT]: New function.
19981         Include "unistd.h" after defining it.
19982         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
19983         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
19984         Handle in the usual way.
19985         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
19986         lstat dereferences symlinks, since faccessat is likely to
19987         have the same problem.
19988         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
19989         * modules/faccessat (Depends-on): Add fstatat.
19990         Depend if REPLACE_FACCESSAT is 1, too.
19991         (configure.ac): Link if REPLACE_FACCESSAT is 1.
19992         * modules/faccessat-tests (Depends-on): Add symlink.
19993         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
19994         * tests/test-faccessat.c (main): Test for the bug.
19996 2017-11-11  Bruno Haible  <bruno@clisp.org>
19998         getprogname: Fix compilation error on IRIX.
19999         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
20000         'namesize'.
20002 2017-11-11  Bruno Haible  <bruno@clisp.org>
20004         year2038: Tweak last patch.
20005         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
20007 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
20009         year2038: be more insistent about 64-bit time_t
20010         Applications requiring access to arbitrary files should not be
20011         built with 32-bit time_t on hosts that have 64-bit timestamps,
20012         as this can lead to real trouble at runtime.
20013         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
20014         Check on all systems, not just MinGW.  Use a heuristic involving
20015         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
20016         output a failure or just a warning, to make it more likely that
20017         builders will select 64-bit time_t.
20019 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
20021         havelib: fix typo in previous change
20022         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
20024         Don’t use AC_EGREP_CPP if affected by CFLAGS
20025         * m4/float_h.m4 (gl_FLOAT_H):
20026         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
20027         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
20028         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
20029         * m4/year2038.m4 (gl_YEAR2038):
20030         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
20031         likely to be affected by the choice of CFLAGS, since CFLAGS are
20032         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
20033         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
20035         fstatat: pacify GCC on unusual platform
20036         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
20037         Omit, as it’s unused in this case.
20039 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
20041         timespec: prefer ‘assume’ to ‘assure’
20042         This avoids some runtime tests.  The rest of the module makes
20043         similar assumptions and there is little point to testing here.
20044         * lib/timespec.h: Include verify.h instead of assure.h.
20045         (timespec_cmp): Use ‘assume’, not ‘assure’.
20046         Also, remove an unnecessary cast to ‘int’, as lots of other
20047         code in this module now causes -Wconversion to complain, and
20048         this is a problem with -Wconversion not with the code.
20050         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
20052         Port recent gnulib-tool change to Dash
20053         * gnulib-tool (func_create_testdir): Don't assume that the shell
20054         retokenizes after expanding "$@" inside the call to
20055         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
20057 2017-10-27  Jim Meyering  <meyering@fb.com>
20059         timespec.h: use "assure" to avoid a spurious warning
20060         * lib/timespec.h: Include "assure.h" and use it to help
20061         gcc7's -Wstrict-overflow avoid a false positive warning
20062         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
20063         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
20064         * modules/timespec (Depends-on): Add assure.
20066 2017-10-29  Bruno Haible  <bruno@clisp.org>
20068         Avoid several test failures with traditional locales on Haiku.
20069         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
20070         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
20071         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
20072         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
20073         LOCALE_ZH_CN=none.
20075 2017-10-29  Bruno Haible  <bruno@clisp.org>
20077         strerror_r-posix: Fix behaviour and test failure on Haiku.
20078         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
20079         are positive. Work around return value 0 instead of ERANGE on Haiku.
20080         For unknown error numbers, use a format string consistent with perror().
20081         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
20082         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
20083         are positive.
20085 2017-10-29  Bruno Haible  <bruno@clisp.org>
20087         get-rusage-data: Avoid crash on Haiku.
20088         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
20090 2017-10-29  Bruno Haible  <bruno@clisp.org>
20092         get-rusage-as: Avoid crash on Haiku.
20093         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
20095 2017-10-29  Bruno Haible  <bruno@clisp.org>
20097         ilogbl: Ensure replacement on Haiku.
20098         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
20099         REPLACE_ILOGBL if ilogbl does not work.
20100         (gl_FUNC_ILOGBL_WORKS): New macro.
20101         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
20102         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
20103         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
20104         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
20105         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
20107 2017-10-29  Bruno Haible  <bruno@clisp.org>
20109         expl: Ensure replacement on Haiku.
20110         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
20111         zero.
20112         * doc/posix-functions/expl.texi: Mention the Haiku problem.
20114 2017-10-29  Bruno Haible  <bruno@clisp.org>
20116         math: Fix test failure on Haiku.
20117         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
20118         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
20119         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
20120         * doc/posix-headers/math.texi: Mention the Haiku problem.
20122 2017-10-29  Bruno Haible  <bruno@clisp.org>
20124         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
20125         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
20126         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
20128 2017-10-29  Bruno Haible  <bruno@clisp.org>
20130         crypto/*: Verify that the header file is self-contained.
20131         * tests/test-gc-*.c: Include the module's header file immediately after
20132         <config.h>.
20133         * tests/test-hmac-*.c: Likewise.
20134         * tests/test-arcfour.c: Likewise.
20135         * tests/test-arctwo.c: Likewise.
20136         * tests/test-des.c: Likewise.
20137         * tests/test-md2.c: Likewise.
20138         * tests/test-md4.c: Likewise.
20139         * tests/test-md5.c: Likewise.
20140         * tests/test-rijndael.c: Likewise.
20141         * tests/test-sha1.c: Likewise.
20142         * tests/test-sm3.c: Likewise.
20144 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20145             Bruno Haible  <bruno@clisp.org>
20147         crypto/gc: fix build failure with -Werror=suggest-attribute=const
20148         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
20150 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20152         New module: crypto/gc-sm3
20153         * lib/gc.h: Declare SM3-related stuffs.
20154         * lib/gc-gnulib.c: Support sm3 in internal functions.
20155         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
20156         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
20157         * modules/crypto/gc-sm3: Define gc-sm3 module.
20158         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
20159         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
20160         * MODULES.html.sh: List gc-sm3 module.
20162 2017-10-29  Bruno Haible  <bruno@clisp.org>
20164         random, random_r: Mention different prototypes on Haiku.
20165         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
20166         * doc/glibc-functions/random_r.texi: Likewise.
20167         * doc/glibc-functions/initstate_r.texi: Likewise.
20168         * doc/glibc-functions/setstate_r.texi: Likewise.
20170 2017-10-28  Bruno Haible  <bruno@clisp.org>
20172         posix_spawn: Avoid spurious message in configure output.
20173         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
20174         'cmp' command.
20176 2017-10-28  Bruno Haible  <bruno@clisp.org>
20178         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
20179         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
20180         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
20182 2017-10-28  Bruno Haible  <bruno@clisp.org>
20184         ioctl: Override non-POSIX declaration on Haiku.
20185         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
20186         * lib/sys_ioctl.in.h: Add comment about Haiku.
20187         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
20188         * doc/glibc-headers/sys_ioctl.texi: Likewise.
20190 2017-10-28  Bruno Haible  <bruno@clisp.org>
20192         crypto/sm3: Add overview documentation to the .h file.
20193         * lib/sm3.h: Add comments.
20195 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20197         New module: crypto/sm3
20198         This new module can be used to compute SM3 message digest of files or
20199         memory blocks according to the specification GM/T 004-2012
20200         Cryptographic Hash Algorithm SM3, published by State Cryptography
20201         Administration, China.
20202         The official SM3 cryptographic hash algorithm specification is
20203         available at
20204         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
20205         * lib/sm3.h: Declare the APIs of sm3 module.
20206         * lib/sm3.c: Implement SM3 hash algorithm.
20207         * m4/sm3.m4: m4 file for sm3 module.
20208         * modules/crypto/sm3: Define sm3 module.
20209         * tests/test-sm3.c: Implement SM3 test case.
20210         * modules/crypto/sm3-tests: Define sm3 test module.
20211         * MODULES.html.sh: List sm3 module.
20213 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20215         gc-libgcrypt: fix undefined enum type in switch statement
20216         Resolve the following build failure:
20217         lib/gc-libgcrypt.c: In function 'gc_hash_open':
20218         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
20219         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
20220              case 0:
20221              ^~~~
20222         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
20223         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
20225 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
20227         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
20228         Resolve the following build failure:
20229         lib/gc-libgcrypt.c: In function 'gc_hash_read':
20230         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
20231         in signedness [-Werror=pointer-sign]
20232             digest = gcry_md_read (ctx->gch, 0);
20233                    ^
20234         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
20236 2017-10-26  Bruno Haible  <bruno@clisp.org>
20238         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
20239         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
20240         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
20242 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
20244         glob: fix another heap buffer overflow
20245         Problem reported by Tim Rühsen in:
20246         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
20247         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
20249 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
20251         quotearg: pacify compiler re unsigned
20252         * lib/quotearg.c (quotearg_n_options):
20253         Rewrite to avoid diagnostic from overly-picky compiler.
20254         Problem reported by Sami Kerola in:
20255         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
20257         glob: fix heap buffer overflow
20258         * lib/glob.c (glob): Fix off-by-one error introduced into
20259         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
20260         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
20261         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
20262         Fix suggested by Bruno Haible.
20264 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
20266         glob: pacify fuzzer for mempcpy
20267         Problem reported by Tim Rühsen in:
20268         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
20269         * lib/glob.c (glob): Do not pass NULL to mempcpy.
20271 2017-10-12  Bruno Haible  <bruno@clisp.org>
20273         doc: Fix syntax error (regression from 2017-10-03).
20274         * doc/posix-functions/strncpy.texi: Fix syntax error.
20276 2017-10-12  Bruno Haible  <bruno@clisp.org>
20278         doc: Update for Solaris 11.3.
20279         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
20280         mention Solaris 11.3.
20281         * m4/log2.m4: Fix comments.
20282         * m4/log2f.m4: Likewise.
20283         * m4/printf.m4: Update comments.
20284         * m4/rename.m4: Likewise.
20285         * m4/strncat.m4: Likewise.
20287         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
20289 2017-10-10  Bruno Haible  <bruno@clisp.org>
20291         doc: Improve doc about ioctl.
20292         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
20293         prototype.
20295 2017-10-09  Bruno Haible  <bruno@clisp.org>
20297         wcwidth: Don't use obsolete syntax of 'test'.
20298         Reported by Eric Blake.
20299         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
20300         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
20302 2017-10-09  Bruno Haible  <bruno@clisp.org>
20304         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
20305         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
20306         and Daniel P. Berrange <berrange@redhat.com>.
20307         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
20308         on glibc systems. The getopt-pfx-core.h file declares exactly what
20309         unistd.h needs, nothing more.
20311 2017-10-08  Bruno Haible  <bruno@clisp.org>
20313         vma-iter: Improve support for FreeBSD.
20314         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
20315         vma_iterate.
20316         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
20318 2017-10-08  Bruno Haible  <bruno@clisp.org>
20320         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
20321         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
20323 2017-10-07  KO Myung-Hun  <komh@chollian.net>
20325         test-framework-sh: Fix 'invalid path dir' error.
20326         On OS/2, a path separator is ';' not ':'. And ':' is used as a
20327         separator between a drive letter and directory parts.
20328         As a result, an absolute path such as x:/path/to/dir on OS/2 is
20329         treated as an invalid path dir.
20330         * tests/init.sh (PATH_SEPARATOR): Set at startup.
20331         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
20332         instead of hard coded ':'.
20334 2017-10-07  Bruno Haible  <bruno@clisp.org>
20336         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
20337         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
20338         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
20339         (rof_open): On Linux, do multiple read() calls and make sure
20340         MIN_LEFTOVER bytes are left when read() returns.
20342 2017-10-07  Bruno Haible  <bruno@clisp.org>
20344         vma-iter: Improve support for GNU/Hurd.
20345         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
20346         API, not the /proc file system.
20348 2017-10-07  Bruno Haible  <bruno@clisp.org>
20350         test-framework-sh: Don't require bash on Windows and OS/2.
20351         Reported by KO Myung-Hun.
20352         * tests/test-init.sh: Use 'shopt' only when running in bash.
20354 2017-10-06  KO Myung-Hun  <komh@chollian.net>
20356         wcwidth: check a macro version of wcwidth () as well
20357         * lib/wchar.in.h: Revert commit from 2016-01-14.
20358         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
20360 2017-10-06  Bruno Haible  <bruno@clisp.org>
20362         getopt-posix: Clarify copyright header.
20363         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
20364         * lib/getopt-pfx-core.h: Likewise.
20365         * lib/getopt-pfx-ext.h: Likewise.
20366         * lib/getopt-cdefs.in.h: Likewise.
20368 2017-10-03  Bruno Haible  <bruno@clisp.org>
20370         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
20371         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
20372         gl_HOST_CPU_C_ABI.
20374 2017-10-03  Bruno Haible  <bruno@clisp.org>
20376         doc: warn about misuse of strncpy and wcsncpy.
20377         * doc/posix-functions/strcpy.texi: Describe requirements on prior
20378         memory allocation.
20379         * doc/posix-functions/wcscpy.texi: Likewise.
20380         * doc/posix-functions/strncpy.texi: Describe what this function is not
20381         useful for.
20382         * doc/posix-functions/wcsncpy.texi: Likewise.
20384 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
20386         fsuage: fix typo in previous change
20387         * lib/fsusage.c: Remove stray include of full-read.h.
20388         Problem reported by Sam Steingold for macOS (Bug#28669).
20390 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
20392         fsusage: remove SVR2 support
20393         SVR2 was obsolete by 1986 and is no longer supported by anybody,
20394         and its code was getting in the way of use of this module by
20395         Emacs, which has its own ‘read’ function anyway.
20396         * lib/fsusage.c: Do not include sys/filsys.h.
20397         (get_fs_usage): Remove SVR2-specific code.
20398         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
20399         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
20400         * modules/fsusage (Depends-on): Do not depend on full-read.
20402         Simplify autoupdate of licenses
20403         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
20404         place.
20406 2017-10-01  Bruno Haible  <bruno@clisp.org>
20408         vma-iter: Add support for GNU/Hurd.
20409         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
20410         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
20412 2017-09-30  Bruno Haible  <bruno@clisp.org>
20414         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
20415         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
20416         fail when module 'largefile' is in use.
20417         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
20418         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
20419         Don't test HAVE_SYS_PROCFS_H.
20421 2017-09-30  Bruno Haible  <bruno@clisp.org>
20423         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
20424         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
20425         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
20426         * modules/havelib (Depends-on): Add host-cpu-c-abi.
20428 2017-09-30  Bruno Haible  <bruno@clisp.org>
20430         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
20431         * lib/uniname/uniname.c (unicode_name_character): Add braces around
20432         scope of local variables.
20434 2017-09-28  Bruno Haible  <bruno@clisp.org>
20436         string: code style
20437         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
20438         substitutable variables.
20439         * modules/string (Makefile.am): Likewise.
20441 2017-09-26  Bruno Haible  <bruno@clisp.org>
20443         uniname/uniname-tests: Tighten code.
20444         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
20445         local variables into one.
20447 2017-09-26  Bruno Haible  <bruno@clisp.org>
20449         vma-iter: Improvements for Linux and BSD platforms.
20450         - Add support for DragonFly BSD.
20451         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
20452         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
20453         Read the entire file into memory in a single system call.
20454         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
20455         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
20457 2017-09-26  Bruno Haible  <bruno@clisp.org>
20459         vma-iter: Provide the protection flags on FreeBSD.
20460         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
20461         skip three fields between the addresses and the protection flags.
20463 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
20465         glob: remove bogus extern decl
20466         * lib/glob.c (__glob_pattern_type): Remove now-spurious
20467         extern declaration.  Problem reported by Adhemerval Zanella in:
20468         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
20470 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
20472         uniname/uniname-tests: integer overflow fix
20473         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
20474         Check for integer overflow.
20476         duplocale-tests: fix unlikely crash
20477         * tests/test-duplocale.c (get_locale_dependent_values):
20478         Don’t crash with absurdly long month names.
20480         maint: fix overflow checking in nap.h
20481         * modules/chown-tests:
20482         * modules/fchownat-tests, modules/fdutimensat-tests:
20483         * modules/futimens-tests, modules/lchown-tests:
20484         * modules/stat-time-tests, modules/utime-tests:
20485         * modules/utimens-tests, modules/utimensat-tests:
20486         Depend on intprops.
20487         * tests/nap.h: Include intprops.h.
20488         (diff_timespec): Handle overflow properly.
20490         sys_types: update URL
20491         * m4/sys_types_h.m4: Use https: URL.
20493         parse-datetime: fix dependency
20494         * modules/parse-datetime (Depends-on): Depend
20495         on nstrftime, not strftime.
20497         parse-datetime, posixtm: avoid uninit access
20498         * lib/parse-datetime.y (parse_datetime2):
20499         * lib/posixtm.c (posixtime):
20500         Do not access uninitialized storage, even though the resulting
20501         value is never used.
20503 2017-09-25  Bruno Haible  <bruno@clisp.org>
20505         vma-iter: Improvements for BSD platforms.
20506         - Add support for GNU/kFreeBSD.
20507         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
20508         - Speed up on OpenBSD.
20509         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
20510         (vma_iterate_bsd): New function.
20511         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
20512         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
20513         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
20514         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
20516 2017-09-23  Bruno Haible  <bruno@clisp.org>
20518         strfmon_l: New module.
20519         * modules/strfmon_l: New file.
20520         * lib/strfmon_l.c: New file.
20521         * m4/strfmon_l.m4: New file.
20522         * doc/posix-functions/strfmon_l.texi: Mention the new module.
20523         * modules/strfmon_l-tests: New file.
20524         * tests/test-strfmon_l.c: New file.
20526         monetary: New module.
20527         * modules/monetary: New file.
20528         * lib/monetary.in.h: New file.
20529         * m4/monetary_h.m4: New file.
20530         * doc/posix-headers/monetary.texi: Mention the new module.
20531         * modules/monetary-tests: New file.
20532         * tests/test-monetary.c: New file.
20533         * modules/monetary-c++-tests: New file.
20534         * tests/test-monetary-c++.cc: New file.
20535         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
20537 2017-09-23  Bruno Haible  <bruno@clisp.org>
20539         duplocale tests: Fix test crash on Linux/x86.
20540         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
20541         locale from the current thread before freeing it.
20543 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
20545         mktime: port to OpenVMS
20546         Problem reported by John E. Malmberg in:
20547         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
20548         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
20550 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
20552         manywarnings: port to GCC on 64-bit MS-Windows
20553         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
20554         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
20555         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
20557 2017-09-13  Bruno Haible  <bruno@clisp.org>
20559         all: Replace many more http URLs by https URLs. Update stale URLs.
20560         * users.txt: Remove mention of 'newts'.
20561         * lib/localename.c: Update comment about LANG_SOTHO.
20563 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20565         all: Replace many http URLs by https URLs.
20567 2017-09-12  Bruno Haible  <bruno@clisp.org>
20569         doc: Prefer https URLs where possible.
20570         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
20571         * doc/ld-output-def.texi: Remove unavailable URL.
20573 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20575         maintainer-makefile: FTP -> HTTPS
20576         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
20577         of FTP, which is planned to be decommissioned on 2017-11-01.
20579 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
20581         libc-config: Fix __GNUC_PREREQ macro.
20582         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
20583         __GNUC_MINOR.
20585 2017-09-09  Bruno Haible  <bruno@clisp.org>
20587         gnulib-tool: Simplify commit from 2015-08-20.
20588         * gnulib-tool (func_add_or_update): Remove local variable
20589         is_binary_file.
20591 2017-09-08  Bruno Haible  <bruno@clisp.org>
20593         stddef: Avoid conflict with system-defined max_align_t.
20594         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
20595         Reported by Werner Lemberg <wl@gnu.org> in
20596         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
20597         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
20598         (max_align_t): Define as a macro.
20599         (GNULIB_defined_max_align_t): New macro. Guards against multiple
20600         definitions of rpl_max_align_t in different copies of gnulib-generated
20601         <stddef.h>.
20603 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
20605         libc-config: port to MSVC
20606         Problems reported by Gisle Vanem in:
20607         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
20608         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
20609         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
20610         * m4/__inline.m4: New file.
20611         * modules/libc-config (Files): Add it.
20612         (Depends-on): Use it.
20614         glob: Use enum for __glob_pattern_type result
20615         From a patch proposed by Adhemerval Zanella in:
20616         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
20617         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
20618         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
20619         * lib/glob_internal.h (__glob_pattern_type):
20620         * lib/glob.c (glob):
20621         * lib/glob_pattern_p.c (__glob_pattern_p):
20622         Use them.
20624         glob: fix for use in glibc
20625         Problem reported by Adhemerval Zanella in:
20626         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
20627         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
20628         Do not redefine if _LIBC.
20630 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20632         glob: fix bugs with long login names
20633         Problem reported by Adhemerval Zanella in:
20634         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
20635         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
20636         (glob): Use the same scratch buffer for both getlogin_r and
20637         getpwnam_r.  Don’t require preallocation of the login name.  This
20638         simplifies storage allocation, and corrects the handling of
20639         long login names.
20641 2017-09-02  Bruno Haible  <bruno@clisp.org>
20643         dirent: Update doc.
20644         * doc/posix-headers/dirent.texi: More concrete list of platforms.
20646 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20648         glob: fix getpwnam_r errno typo
20649         * lib/glob.c (glob): Fix longstanding misuse of errno after
20650         getpwnam_r, which returns an error number rather than setting
20651         errno.
20653         glob: fix typo in recent change
20654         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
20655         Fix recently-introduced typo.
20657 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20659         glob: don't save and restore errno unnecessarily
20660         * lib/glob.c (glob): Don't save and restore errno
20661         merely because we have getpwnam_r.
20663         glob: don't assume getpwnam_r
20664         * lib/glob.c (glob): Port recent patches to platforms
20665         lacking getpwnam_r.
20667         scratch_buffer: don’t use private glibc API
20668         Suggested by Florian Weimer in:
20669         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
20670         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
20671         * lib/scratch_buffer_grow.c: Rename to
20672         lib/malloc/scratch_buffer_grow.c.
20673         * lib/scratch_buffer_grow_preserve.c: Rename to
20674         lib/malloc/scratch_buffer_grow_preserve.c.
20675         * lib/scratch_buffer_set_array_size.c: Rename to
20676         lib/malloc/scratch_buffer_set_array_size.c.
20677         * lib/scratch_buffer.h: New file.
20678         * modules/scratch_buffer (Files, Makefile.am):
20679         Adjust to source-file renaming.
20681 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20683         glob: use scratch_buffer instead of extend_alloca
20684         Much of the lib/glob.c part of this patch comes from a glibc patch
20685         proposed by Adhemerval Zanella in:
20686         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
20687         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
20688         included via glob.h, does this for us now.
20689         (__set_errno): Remove, as libc-config does this for us now.
20690         Include <scratch_buffer.h>.
20691         (GETPW_R_SIZE_MAX): Remove.
20692         (glob): Use struct scratch_buffer instead of extend_alloca.
20693         * lib/glob.in.h: Include libc-config.h rather than
20694         including <sys/cdefs.h> conditionally.
20695         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
20696         (__glibc_unlikely, __restrict, weak_alias):
20697         Remove, as libc-config does this for us now.
20698         * m4/glob.m4 (gl_PREREQ_GLOB):
20699         Remove sys/cdefs.h tests; no longer needed.
20700         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
20701         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
20703         scratch_buffer: new module
20704         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
20705         * lib/scratch_buffer_grow_preserve.c:
20706         * lib/scratch_buffer_set_array_size.c:
20707         New files, copied from glibc with very minor changes that can be
20708         copied back.
20709         * modules/scratch_buffer: New file.
20711         libc-config: new module
20712         * MODULES.html.sh: Add libc-config.
20713         * lib/cdefs.h: New file, copied from the GNU C Library with very
20714         minor changes that can be copied back.
20715         * lib/libc-config.h, modules/libc-config: New files.
20717 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
20719         glob: match dangling symlinks
20720         This fixes a bug I inadvertently introduced to Gnulib when I
20721         merged glibc glob back into gnulib on 2007-10-16.  This fix is
20722         inspired by a patch proposed for glibc by Adhemerval Zanella in:
20723         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
20724         * doc/posix-functions/glob.texi: Update list of affected platforms.
20725         * lib/glob.c (__lstat64): New macro.
20726         (is_dir): New function.
20727         (glob, glob_in_dir): Match symlinks even if they are dangling.
20728         (link_stat, link_exists_p): Remove.  All uses removed.
20729         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
20730         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
20731         * modules/glob-tests (Depends-on): Add symlink.
20732         * tests/test-glob.c: Include errno.h, unistd.h.
20733         (BASE): New macro.
20734         (main): Test dangling symlinks, if symlinks are supported.
20736         glob, backupfile: inode 0 is a valid inode number
20737         * doc/posix-functions/readdir.texi (readdir):
20738         * doc/posix-headers/dirent.texi (dirent.h):
20739         Document more readdir portability issues.
20740         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
20741         (numbered_backup): Don’t treat inode 0 any differently from
20742         other inode values.
20743         * lib/glob.c (struct readdir_result): Remove skip_entry member.
20744         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
20745         All uses removed.
20746         * modules/glob (Depends-on): Remove d-ino.
20748         glob: simplify symlink detection
20749         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
20750         uint8_t, as C99 does not require uint8_t.
20751         (struct readdir_result): Use it.  Do not define skip_entry unless
20752         it is needed; this saves a byte on platforms lacking d_ino.
20753         (readdir_result_type, readdir_result_skip_entry):
20754         New functions, replacing ...
20755         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
20756         ... these functions, which were removed.  This makes the callers
20757         easier to read.  All callers changed.
20758         (D_INO_TO_RESULT): Now empty if there is no d_ino.
20760 2017-08-30  Pádraig Brady  <P@draigBrady.com>
20762         fts-tests: tag as a longrunning-test so not included by default
20763         * modules/fts-tests: This test takes about 20s on current systems,
20764         and uses about 285M of space on ext4.
20766 2017-08-30  Pádraig Brady  <P@draigBrady.com>
20768         renameat2: fix compilation on alpine linux
20769         * m4/renameat.m4: Check for <linux/fs.h> presence.
20770         * lib/renameat2.h: Only include <linux/fs.h> if present.
20771         Reported by Assaf Gordon on Alpine Linux.
20773 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20775         glob: try to port recent changes to MS-Windows
20776         Problem reported by Bruno Haible in:
20777         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
20778         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
20779         * lib/glob.in.h (__glob_pattern_p): ... to here.
20781 2017-08-24  Eric Blake  <eblake@redhat.com>
20783         warnings: fix compilation with old autoconf
20784         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
20785         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
20786         AC_DEFUN.
20787         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
20788         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
20790 2017-08-24  Bruno Haible  <bruno@clisp.org>
20792         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
20793         * modules/glob (Depends-on): Add c99.
20795 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
20797         glob: fix typo that broke platforms lacking d_ino
20798         This typo also hurt performance on GNU/Linux and similar hosts.
20799         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
20800         in previous change.
20802 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
20804         glob: merge from glibc with Zanella glob changes
20805         Merge glob from glibc, with changes for glob proposed
20806         by Adhemerval Zanella in the thread starting here:
20807         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
20808         plus some fixes for this merge.
20809         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
20810         New files, ported from glibc.
20811         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
20812         with __restrict.
20813         (__size_t): Remove.  All uses replaced by size_t.
20814         (size_t): Define by defining __need_size_t and including <stddef.h>.
20815         This should work even in non-glibc platforms, where any name
20816         pollution is OK.
20817         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
20818         (struct stat64): Don’t worry about __GLOB_GNULIB.
20819         (glob, globfree, glob_pattern_p): Remove macros for
20820         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
20821         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
20822         but set errno.
20823         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
20824         removed since the glibc behavior works on null pointers.
20825         Do not include stdio.h; old SunOS is irrelevant now.
20826         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
20827         Include glob_internal.h.
20828         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
20829         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
20830         worked only coincidentally.
20831         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
20832         Remove macros; now done in glob.in.h.
20833         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
20834         (glob): Properly initialize glob structure with
20835         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
20836         Remove old code using SHELL since Bash no longer
20837         uses this.
20838         (glob, prefix_array): Separate MS code better.
20839         (glob, glob_in_dir): Use C99 decls before statements when glibc
20840         does.
20841         (glob_in_dir): Remove old Amiga and VMS code.
20842         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
20843         separate files.
20844         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
20845         (__glibc_unlikely):
20846         Move here from glob.c.
20847         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
20848         (weak_alias): New macro.
20849         (__size_t): Remove.  All uses replaced by size_t.
20850         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
20851         * modules/glob (Files): Add +lib/glob_internal.h,
20852         lib/glob_pattern_p.c, lib/globfree.c.
20853         (Depends-on): Remove snippet/arg-nonnull.
20855 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
20857         glob: port to clang's Undefined Sanitizer
20858         Problem reported by Tim Rühsen in:
20859         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
20860         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
20861         (glob_in_dir): Do not rely on undefined behavior in accessing
20862         struct members beyond their bounds.  Use a flexible array member
20863         instead.
20865 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
20867         vc-list-files: port to Solaris 10
20868         * build-aux/vc-list-files: Don't assume test -e works.
20870 2017-08-21  Karl Berry  <karl@freefriends.org>
20872         * doc/posix-functions/srandom.texi (srandom): typo }.
20874 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
20876         git-version-gen: port to Solaris 10
20877         Problem reported by Dagobert Michelsen in:
20878         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
20879         * build-aux/git-version-gen (v_from_git):
20880         Use expr instead of shell substitution.
20882 2017-08-19  Bruno Haible  <bruno@clisp.org>
20884         host-cpu-c-abi: Improve detection of MIPS ABI.
20885         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
20886         _MIPS_SIM.
20888 2017-08-17  Bruno Haible  <bruno@clisp.org>
20890         hypot tests: Fix test failure on FreeBSD 11.0/x86.
20891         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
20893 2017-08-17  Bruno Haible  <bruno@clisp.org>
20895         float: Fix LDBL_MIN value on FreeBSD/x86.
20896         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
20898 2017-08-17  Bruno Haible  <bruno@clisp.org>
20900         random: Fix test compilation failure on Cygwin 1.5.25.
20901         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
20902         HAVE_DECL_SETSTATE.
20903         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
20904         declared.
20905         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
20906         HAVE_DECL_SETSTATE.
20907         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
20908         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
20909         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
20910         * doc/posix-functions/random.texi: Likewise.
20911         * doc/posix-functions/setstate.texi: Likewise.
20912         * doc/posix-functions/srandom.texi: Likewise.
20914 2017-08-16  Bruno Haible  <bruno@clisp.org>
20916         stdnoreturn: Fix test compilation failure on Cygwin.
20917         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
20918         <stdnoreturn.h> replacement.
20919         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
20920         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
20922 2017-08-16  Bruno Haible  <bruno@clisp.org>
20924         thread: Fix conflict with pthread_sigmask module.
20925         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
20926         it's defined as a macro.
20927         * modules/thread (Depends-on): Add pthread_sigmask.
20929 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
20931         rename: port better to NetBSD
20932         * doc/posix-functions/rename.texi (rename): NetBSD 7
20933         does not have the link-count bug.
20934         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
20935         broken merely because rename ("a", "b") removes "a" when the two
20936         names are hard links to the same file.
20938 2017-08-16  Bruno Haible  <bruno@clisp.org>
20940         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
20941         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
20942         the target file names with '$(srcdir)/'.
20943         * modules/unicase/locale-language (Makefile.am): Likewise.
20944         * modules/unicase/special-casing (Makefile.am): Likewise.
20945         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
20946         * modules/unictype/category-byname (Makefile.am): Likewise.
20947         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
20948         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
20949         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
20950         * modules/unictype/property-byname (Makefile.am): Likewise.
20951         * modules/unictype/scripts (Makefile.am): Likewise.
20952         * modules/uninorm/composition (Makefile.am): Likewise.
20954 2017-08-16  Bruno Haible  <bruno@clisp.org>
20956         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
20957         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
20958         value for OpenBSD.
20960 2017-08-16  Bruno Haible  <bruno@clisp.org>
20962         rename, renameat: Update doc regarding NetBSD.
20963         * doc/posix-functions/rename.texi: Clarify that when using
20964         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
20965         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
20966         version.
20968 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
20970         renameat2: port better to macOS
20971         * lib/renameat2.c (renameat2): Use renameatx_np if available.
20973         futimens: don’t assume struct timespec layout
20974         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
20975         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
20976         * tests/test-fdutimensat.c (main):
20977         * tests/test-futimens.h (test_futimens):
20978         * tests/test-lutimens.h (test_lutimens):
20979         * tests/test-utimens.h (test_utimens):
20980         * tests/test-utimensat.c (main):
20981         Don’t assume that struct timespec is a two-member structure in
20982         tv_sec, tv_nsec order.  Although this is true on all platforms we
20983         know about, POSIX does not guarantee it.
20985         rename: document+test NetBSD rename
20986         Test failure reported by Bruno Haible in:
20987         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
20988         This is an area where NetBSD is better-behaved than POSIX,
20989         so allow the NetBSD behavior in tests.
20990         * doc/posix-functions/rename.texi:
20991         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
20992         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
20994 2017-08-15  Bruno Haible  <bruno@clisp.org>
20996         renameat: Ensure declaration in <stdio.h> on NetBSD.
20997         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
20998         * doc/posix-functions/renameat.texi: Mention this problem.
21000 2017-08-15  Bruno Haible  <bruno@clisp.org>
21002         duplocale: Work around NetBSD 7.0 bug.
21003         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
21004         * lib/duplocale.c: Add comment about NetBSD problem.
21005         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
21007 2017-08-15  Bruno Haible  <bruno@clisp.org>
21009         duplocale tests: Verify use with *_l functions.
21010         * modules/duplocale-tests (configure.ac): Test for uselocale and
21011         some *_l functions.
21012         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
21013         from main.
21014         (get_locale_dependent_values_from, test_with_locale_parameter): New
21015         functions.
21016         (main): Test both test_with_uselocale and test_with_locale_parameter.
21018 2017-08-15  Bruno Haible  <bruno@clisp.org>
21020         extensions: Enable NetBSD specific extensions.
21021         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
21023 2017-08-14  Bruno Haible  <bruno@clisp.org>
21025         open, openat: Update doc about O_CLOEXEC.
21026         * doc/posix-functions/open.texi: More concrete list of platforms.
21027         * doc/posix-functions/openat.texi: Likewise.
21029 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
21031         open: support O_CLOEXEC
21032         * NEWS, doc/posix-functions/open.texi:
21033         * doc/posix-functions/openat.texi: Document this.
21034         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
21035         (GNULIB_defined_O_CLOEXEC): New symbol.
21036         * lib/open.c: Include cloexec.h.
21037         (open): Support O_CLOEXEC.
21038         * lib/openat.c: Include cloexec.h.
21039         (rpl_openat): Support O_CLOEXEC.
21040         * lib/popen-safer.c: Do not include cloexec.h.
21041         (open_noinherit): Remove.
21042         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
21043         * lib/save-cwd.c: Do not include cloexec.h.
21044         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
21045         * m4/open-cloexec.m4: New file.
21046         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
21047         Replace 'open' if O_CLOEXEC is not present.
21048         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
21049         Replace 'openat' if O_CLOEXEC is not present.
21050         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
21051         * modules/open (Files): Add m4/open-cloexec.m4.
21052         (Depends-on): Depend on cloexec if replacing 'open'.
21053         * modules/openat (Files): Add m4/open-cloexec.m4.
21054         (Depends-on): Depend on cloexec if replacing openat.
21055         * modules/popen-safer (Depends-on): Remove cloexec.
21056         * modules/save-cwd (Depends-on): Remove cloexec, and add
21057         fd-safer-flag and 'open'.
21059 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
21061         reallocarray: minor fixes
21062         * doc/glibc-functions/reallocarray.texi: Update version numbers.
21063         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
21064         * modules/reallocarray (License): Change from GPL to LGPL.
21065         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
21066         Indent properly and don't use tabs.
21068 2017-08-13  Darshit Shah  <darnir@gnu.org>
21070         reallocarray: New module
21071         reallocarray is a new function in glibc 2.26 to safely allocate an array
21072         of memory locations with integer overflow protection.
21073         * MODULES.html.sh: Add reallocarray.
21074         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
21075         * lib/reallocarray.c: New file to implement module reallocarray.
21076         * lib/stdlib.in.h: Add function declarations for reallocarray.
21077         * m4/reallocarray.m4: New file.
21078         * m4/stdlib_h.m4: Declare reallocarray.
21079         * modules/reallocarray: New file.
21080         * modules/reallocarray-test: New file.
21081         * modules/stdlib: Coerce stdlib.h to export reallocarray.
21082         * tests/test-reallocarray.c: New test.
21084 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
21086         dirent-safer: fix cloexec race
21087         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
21088         (opendir_safer): Use F_DUPFD_CLOEXEC.
21089         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
21090         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
21091         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
21092         instead of dup_safer.
21094         fts: fix cloexec races
21095         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
21096         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
21097         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
21098         (fd_ring_check): Set cloexec flag on new file descriptors.
21099         (fts_build, fd_ring_check): While we’re at it, make sure the
21100         resulting file descriptor is not 0, 1, or 2, since that is easy.
21102 2017-08-11  Bruno Haible  <bruno@clisp.org>
21104         fts tests: Fix link error.
21105         Reported by Tom G. Christensen in
21106         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
21107         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
21109 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21111         fts: port recent changes to CentOS 6
21112         Problem reported by Tom G. Christensen in:
21113         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
21114         * lib/fts.c (fsword): New type.
21115         (struct dev_type, filesystem_type): Use it.
21116         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
21117         Also, check for f_type only if fstatfs and sys/vfs.h work.
21119 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
21121         tempname: do not depend on secure_getenv
21122         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
21123         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
21124         * modules/tempname (Depends-on): Remove secure_getenv.
21126 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
21128         extensions: add _OPENBSD_SOURCE
21129         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
21131 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
21132             Bruno Haible  <bruno@clisp.org>
21134         manywarnings: Add support for C++.
21135         * build-aux/g++-warning.spec: New file.
21136         * m4/manywarnings-c++.m4: New file.
21137         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
21138         redirects to manywarnings-c++.m4.
21139         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
21141 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
21143         git-version-gen: another fix for tags with "-"
21144         * build-aux/git-version-gen: Improve fix for tags containing "-".
21145         Suggested by Markus Armbruster in:
21146         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
21148 2017-08-06  Bruno Haible  <bruno@clisp.org>
21150         warnings, manywarnings: Add support for multiple languages, not just C.
21151         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
21152         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
21153         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
21154         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
21155         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
21156         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
21157         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
21158         of the current language. If C++ is the current language, modify
21159         WARN_CXXFLAGS instead of WARN_CFLAGS.
21160         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
21161         gl_MANYWARN_ALL_GCC.
21162         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
21164 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
21166         git-version-gen: Fix for tags containing '-'
21168         Really old versions of git-describe (before v1.5.0, Feb 2007)
21169         don't have the number of commits in their long format output,
21170         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
21171         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
21172         recognizes both patterns, and normalizes the old format to the new one.
21174         Unfortunately, this normalization code gets confused when the tag
21175         contains '-'.  Reproducer:
21177             $ git-tag -m test v0.2-rc1
21178             $ build-aux/git-version-gen .tarball-version; echo
21179             build-aux/git-version-gen: WARNING: git rev-list failed
21180             UNKNOWN
21182         We take exact tag "v0.2-rc1" for the old format, extract the presumed
21183         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
21184         commits since tha tag.  Fails, because tag "v0.2" does not exist.
21186         * git-version-gen: We could perhaps drop support for versions from
21187         more than a decade ago.  But tightening the pattern match is easy
21188         enough, so do that.  Still breaks when you use version tags ending in
21189         something matching -g????, but you arguably get what you deserve then.
21191 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
21193         valgrind-tests: use ls, and cache
21194         * m4/valgrind-tests.m4: Test ls, not bash.
21195         Problem reported by Reuben Thomas.
21196         Also, cache the result so that it can be overridden.
21198 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
21200         manywarnings: port to 64-bit GCC builds of Emacs
21201         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
21202         object size rather than hardwiring 2147483647.  This is needed to
21203         build GNU Emacs, which has one conditional (and used
21204         only-in-theory) call to malloc with a literal greater than
21205         2147483647.
21207 2017-08-04  Bruno Haible  <bruno@clisp.org>
21209         Relax the license of some modules with no runtime code.
21210         * modules/std-gnu11 (License): Set to 'unlimited'.
21211         * modules/c99 (License): Likewise.
21212         Reported by Reuben Thomas <rrt@sc3d.org>.
21213         * modules/d-ino (License): Set to 'LGPL'.
21214         * modules/host-os (License): Likewise.
21215         * modules/longlong (License): Likewise.
21217 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
21219         renameat2: port to RHEL 7 + NFS
21220         * lib/renameat2.c (renameat2) [SYS_renameat2]:
21221         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
21222         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
21224 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
21226         renameat2: port to non-renameat platforms
21227         Problem reported for MSVC-2015 by Gisle Vanem in:
21228         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
21229         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
21230         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
21232 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
21234         manywarnings: port to 32-bit GCC bug
21235         Problem reported by Pino Toscano in:
21236         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
21237         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
21238         not 2**63 - 1, to work around the following GCC bug:
21239         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
21241 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
21243         backupfile: new function to validate backup suffix
21244         * lib/backupfile.c (set_simple_backup_suffix): New function.
21245         (backupfile_internal): Use it.
21247         canonicalize: fix EOVERFLOW commentary
21248         Problem reported by Bruno Haible in:
21249         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
21250         * lib/canonicalize.c (canonicalize_filename_mode):
21251         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
21253         Don't interpret EOVERFLOW to mean nonexistence
21254         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
21255         may be EOVERFLOW; this is likely more useful than reporting the
21256         stat errno.
21257         * lib/glob.c (link_stat): Rename from link_exists2_p and
21258         return -1/0 instead of 0/1.  Caller changed.
21259         * lib/glob.c (link_exists_p):
21260         * lib/renameat2.c (rename_noreplace, renameat2):
21261         * lib/tempname.c (try_nocreate):
21262         If errno == EOVERFLOW then the directory entry exists, so do not
21263         act as if it does not exist.
21265         backup-rename: new module
21266         It is like backupfile, except it avoids some race conditions,
21267         and it does not output to stderr or exit.
21268         * MODULES.html.sh: Add backup-rename.
21269         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
21270         * modules/backup-rename: New files.
21271         * lib/backupfile.c: Turn this into an internals file, which
21272         contains code common to backupfile and backup_rename.  Include
21273         backupfile-internal.h instead of backupfile.h.  Do not include
21274         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
21275         renameat2.h and fcntl.h.
21276         (BACKUP_NOMEM): New constant.
21277         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
21278         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
21279         (backupfile_internal): Rename from find_backup_file_name.
21280         Support new arg RENAME.
21281         (backup_args, backup_types, get_version, xget_version):
21282         Move to lib/backup-find.c.
21283         * lib/backupfile.h (backup_file_rename): New decl.
21284         * modules/backupfile (Files): Add lib/backup-internal.h,
21285         lib/backup-find.c.
21286         (Depends-on): Add dirfd, fcntl, renameat2.
21287         (lib_SOURCES): Add backup-find.c.
21289         renameat2: port better to older Solaris
21290         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
21291         Add goto to use a label, to silence picky compilers.
21293         fts-tests: port to gcc -Wwrite-strings
21294         * tests/test-fts.c (base, base_d): New static vars.
21295         (argv, remove_tree, main): Use them.
21297 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
21299         relocatable-lib{,-lgpl}: improve documentation
21300         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
21301         Various other updates.
21303 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
21304             Bruno Haible  <bruno@clisp.org>
21306         relocatable-lib{,-lgpl}: add Valgrind suppressions
21307         * lib/relocatable.valgrind: New file.
21308         * modules/relocatable-lib (Files): Add relocatable.valgrind.
21309         * modules/relocatable-lib-lgpl: Likewise.
21311 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
21313         relocatable: Make the license on the sources the GPL.
21314         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
21315         LGPL, which was a special case so that the relocatable source files
21316         could be used without gnulib-tool, to GPL. They can still be used under
21317         the LGPL, using the --lgpl option to gnulib-tool.
21319 2017-07-30  Bruno Haible  <bruno@clisp.org>
21321         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
21322         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
21323         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
21324         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
21325         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
21327 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
21329         faccessat: document AT_SYMLINK_NOFOLLOW issue
21330         * doc/posix-functions/faccessat.texi: Modernize platform list.
21331         Document AT_SYMLINK_NOFOLLOW limitation.
21333         renameat2: port to Solaris 10
21334         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
21335         with AT_SYMLINK_NOFOLLOW (which is not portable).
21336         (renameat): Undef before using, to avoid endless recursion when
21337         the replacement renameat calls renameat2 which calls the
21338         replacement renameat.
21339         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
21340         * modules/renameat2 (Depends-on): Remove faccessat.
21341         * modules/renameat-tests (test_renameat_LDADD):
21342         * modules/renameat2-tests (test_renameat2_LDADD):
21343         Remove $(LIB_EACCESS).
21345         renameat2: new module
21346         Although the Linux syscall renameat2 is not in glibc (yet?), it is
21347         useful to have access to its RENAME_NOREPLACE flag.
21348         * MODULES.html.sh (func_all_modules): Add renameat2.
21349         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
21350         * modules/renameat2-tests, tests/test-renameat2.c: New files.
21351         * lib/renameat.c (renameat): Move most of the implementation
21352         to renameat2, and just call renameat2.
21353         * modules/renameat (Files): Remove lib/at-func2.c.
21354         (Depends-on): Depend only on renameat2.
21355         (Include): Remove <fcntl.h>.
21356         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
21357         since renameat (via renameat2) might use faccessat.
21359 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
21361         vc-list-files: Adjust the script to support git worktrees
21362         * build-aux/vc-list-files: Require existence, not directory.
21364 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
21366         doc: bring MODULES.html.sh up to date
21367         Somehow a few months ago we stopped updating MODULES.html.sh.
21368         I don’t recall explicitly deciding this, so I updated it now.
21369         Alternatively I suppose we could remove it.
21370         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
21371         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
21372         truncate, utime, utime-h, windows-stat-inodes,
21373         windows-stat-override, windows-stat-timespec, year2038.  Sort.
21375 2017-07-26  Jim Meyering  <meyering@fb.com>
21377         fprintftime: fix build-break caused by recent renaming
21378         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
21379         "strftime.c".
21380         * modules/fprintftime: Depend directly on nstrftime.
21382 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
21384         regex: work with GCC7's -Werror=implicit-fallthrough=
21385         * lib/regex_internal.h (FALLTHROUGH): New macro.
21386         * lib/regcomp.c (peek_token_bracket, parse_expression):
21387         * lib/regexec.c (check_node_accept): Use it.
21389 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
21391         fts: simplify fts_build
21392         * lib/fts.c (fts_build): Simplify, and be lazier about
21393         calling leaf_optimization.
21395         fts: three levels of leaf optimization
21396         * lib/fts.c (enum leaf_optimization): New type with three values.
21397         (S_MAGIC_AFS): New macro.  Sort them.
21398         (leaf_optimization): Rename from leaf_optimization_applies, and
21399         return enum leaf_optimization instead of bool.  All uses changed.
21400         Add cases for unknown type and for AFS.
21401         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
21403         fts: cache dirent_inode_sort_may_be_useful too
21404         * lib/fts.c (struct dev_type): New struct.
21405         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
21406         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
21407         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
21408         Now takes FTSENT const *, not int.  All uses changed.  Use
21409         filesystem_type to cache.
21410         (link_count_optimize_ok): Remove.  Caller changed to use
21411         leaf_optimization_applies, which now uses shared cache.
21413         fts: introduce MIN_DIR_NLINK
21414         * lib/fts.c (MIN_DIR_NLINK): New constant.
21415         Use it instead of 2, whenever we are talking about link counts.
21417         fts: nlink_t signedness fixups
21418         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
21419         so that root need not be a special case later.
21420         (fts_read): Remove now-redundant test for fts_level.
21421         Do not assume that nlink_t is signed.
21422         (fts_build): Remove useless decrement of nlinks.
21423         (fts_stat): Avoid unlikely signed integer overflow later, if
21424         nlink_t is signed.
21426         fts-tests: new module
21427         * modules/fts-tests, tests/test-fts.c: New files.
21429 2017-07-23  Bruno Haible  <bruno@clisp.org>
21431         Rename module 'strftime' to 'nstrftime'.
21432         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
21433         * lib/nstrftime.c: Renamed from lib/strftime.c.
21434         * modules/nstrftime: Renamed from modules/strftime.
21435         (Files, Makefile.am): Update.
21436         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
21437         Fix comment.
21438         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
21439         (Files, Makefile.am): Update.
21440         * modules/strftime: New file, an obsolete indirection.
21441         * doc/posix-functions/strftime.texi: Update reference.
21442         * config/srclist.txt: Update info.
21443         * NEWS: Mention the change.
21445 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
21447         malloca: Silence a warning from clang's memory sanitizer.
21448         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
21449         (freea): Use it.
21451 2017-07-18  Bruno Haible  <bruno@clisp.org>
21453         host-cpu-c-abi: Fix detection of MIPS ABI.
21454         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
21455         ABI, not the CPU instruction set.
21457 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
21459         explicit_bzero: new module
21460         The explicit_bzero function has been added to glibc.
21461         This module is intended to supports its use in GNU programs.
21462         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
21463         * m4/explicit_bzero.m4, modules/explicit_bzero:
21464         New files.
21465         * doc/gnulib.texi (Glibc string.h): Link to new doc.
21466         * lib/string.in.h (explicit_bzero): Declare.
21467         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
21468         * modules/string (string.h): Substitute its vars.
21470 2017-07-16  Bruno Haible  <bruno@clisp.org>
21472         threadlib: Support static linking.
21473         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
21474         set gl_cv_have_weak to 'no'.
21476 2017-07-16  Bruno Haible  <bruno@clisp.org>
21478         unicase/locale-language: Fix link dependencies.
21479         * modules/unicase/locale-language (Link): New section.
21480         * modules/unicase/locale-language-tests (Makefile.am): Link
21481         test-locale-language program with $(LIBTHREAD).
21483 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
21485         sys_socket: Add support for OpenVMS.
21486         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
21487         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
21489 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
21491         sys_resource: Add support for OpenVMS.
21492         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
21493         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
21495 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
21496             Bruno Haible  <bruno@clisp.org>
21498         math: Add support for OpenVMS.
21499         * lib/math.in.h [__VMS]: Include <fp.h>.
21500         * doc/posix-headers/math.texi: Mention OpenVMS issues.
21502 2017-07-15  Bruno Haible  <bruno@clisp.org>
21504         getdtablesize: Add minimal support for OpenVMS.
21505         Reported by John E. Malmberg <wb8tyw@qsl.net>.
21506         * modules/getdtablesize (Description): Fix.
21507         * lib/getdtablesize.c: Fix comment.
21508         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
21509         getdtablesize() function, even though the test fails.
21510         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
21511         limitation on OpenVMS.
21513 2017-07-13  Bruno Haible  <bruno@clisp.org>
21515         Revisit cross-compilation guesses.
21516         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
21518 2017-07-13  Bruno Haible  <bruno@clisp.org>
21520         Improve cross-compilation guesses for native Windows.
21521         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
21522         Windows.
21523         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
21524         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
21525         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
21526         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
21527         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
21528         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
21529         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
21530         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
21531         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
21532         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
21533         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21534         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
21535         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
21536         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
21537         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
21538         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
21539         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
21540         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
21541         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
21542         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
21543         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
21544         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
21545         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
21546         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
21547         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
21548         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
21549         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
21550         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
21551         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21552         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
21553         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21554         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
21555         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
21556         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
21557         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
21558         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
21559         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
21560         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
21561         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
21562         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21563         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21564         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21565         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
21566         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
21567         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
21568         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
21569         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
21570         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
21571         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
21572         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
21573         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
21574         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
21575         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
21576         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
21577         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
21578         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
21579         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
21580         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
21581         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
21582         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
21583         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
21584         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
21585         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
21586         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
21587         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
21588         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21589         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
21590         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
21591         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
21592         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
21593         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
21594         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
21595         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
21596         * m4/regex.m4 (gl_REGEX): Likewise.
21597         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
21598         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
21599         gl_FUNC_REMAINDERF_WORKS): Likewise.
21600         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
21601         gl_FUNC_REMAINDERL_WORKS): Likewise.
21602         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
21603         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
21604         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
21605         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
21606         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
21607         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
21608         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
21609         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
21610         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
21611         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21612         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
21613         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
21614         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
21615         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
21616         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
21617         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
21618         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21619         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21620         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
21621         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
21622         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
21623         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
21624         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
21625         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
21626         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
21627         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21628         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
21629         Likewise.
21630         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21631         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
21632         Windows. Enable also on Autoconf 2.70.
21633         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
21634         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
21635         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
21636         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
21637         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
21638         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
21639         for native Windows.
21640         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
21641         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
21643 2017-07-13  Bruno Haible  <bruno@clisp.org>
21645         Improve cross-compilation guesses for native Windows.
21646         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
21647         Windows.
21648         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
21649         memchr.m4.
21650         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
21652 2017-07-13  Bruno Haible  <bruno@clisp.org>
21654         Improve cross-compilation guesses for native Windows.
21655         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
21656         native Windows.
21657         (gl_FUNC_FFLUSH): Update accordingly.
21658         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
21659         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
21661 2017-07-11  Bruno Haible  <bruno@clisp.org>
21663         More systematic m4 quoting and indentation.
21664         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
21665         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
21666         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
21667         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21668         * m4/host-os.m4 (gl_HOST_OS): Likewise.
21669         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
21670         gl_WINSIZE_IN_PTEM): Likewise.
21671         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
21672         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
21673         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
21674         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
21675         Correct indentation.
21676         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
21677         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
21678         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
21679         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
21680         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
21681         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
21683 2017-07-10  Bruno Haible  <bruno@clisp.org>
21685         round, roundf: Avoid compiler warning in configure test.
21686         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
21687         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
21689 2017-07-10  Bruno Haible  <bruno@clisp.org>
21691         getlogin tests: Avoid #ifdefs when sharing code between modules.
21692         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
21693         * modules/getlogin-tests (Files): Likewise. Remove
21694         tests/test-getlogin_r.c.
21695         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
21696         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
21697         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
21698         getlogin().
21700 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
21702         getlogin: don’t assume one name per uid
21703         Problem reported by Wolfgang F. Muthmann (Bug#27640).
21704         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
21705         (ttyname): Remove test.
21706         * modules/getlogin_r-tests (ttyname): Remove test.
21707         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
21708         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
21709         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
21710         getlogin rather than getlogin_r.  This avoids code duplication.
21711         (main): Use isatty and fstat rather than ttyname and stat.
21712         Use getpwnam instead of getpwuid, to be portable to test platforms
21713         that have multiple login names for the same uid.
21715 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
21716             Bruno Haible  <bruno@clisp.org>
21718         glob: Fix more memory leaks.
21719         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
21720         returning.
21721         Reported by Tim Rühsen.
21723 2017-07-10  Bruno Haible  <bruno@clisp.org>
21725         Make sure $host and $host_os are defined when used.
21726         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
21727         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
21728         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
21729         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
21730         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21731         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
21732         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
21733         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
21734         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
21735         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
21736         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
21737         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
21738         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
21739         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
21740         m4_ifdef block.
21742 2017-07-09  Bruno Haible  <bruno@clisp.org>
21744         *printf: Fix cross-compilation guess for Solaris.
21745         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
21746         2010-12-21.
21748 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
21749             Bruno Haible  <bruno@clisp.org>
21751         vasnprintf: port to macOS 10.13
21752         Problem reported by comex in:
21753         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
21754         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
21756 2017-07-06  Bruno Haible  <bruno@clisp.org>
21758         imaxdiv tests: Fix logic.
21759         * tests/test-imaxdiv.c (main): Use == instead of =.
21760         Reported by Coverity.
21762 2017-07-06  Bruno Haible  <bruno@clisp.org>
21764         uninorm/filter: Fix use-after-free bug.
21765         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
21766         sortbuf == filter->sortbuf invariant.
21767         Reported by Coverity.
21769 2017-07-06  Bruno Haible  <bruno@clisp.org>
21771         glob: Fix more memory leaks.
21772         * lib/glob.c (glob): Free dirname before returning.
21773         Reported by Coverity and Tim Rühsen.
21775 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
21777         parse-datetime: fix uninit var bug
21778         Reported by Bruno Haible in:
21779         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
21780         * lib/parse-datetime.y (parse_datetime2): Do not use
21781         uninitialized.
21783 2017-07-05  Bruno Haible  <bruno@clisp.org>
21785         doc: Update for MSVC 14.
21786         * doc/posix-headers/*.texi: Add info about MSVC 14.
21787         * doc/posix-functions/*.texi: Likewise.
21788         * doc/pastposix-functions/*.texi: Likewise.
21789         * doc/glibc-headers/*.texi: Likewise.
21790         * doc/glibc-functions/*.texi: Likewise.
21792 2017-07-05  Bruno Haible  <bruno@clisp.org>
21794         sched: Fix build failure on native Windows (regression from 2017-06-19).
21795         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
21797 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
21799         stdioext: Port to OpenVMS.
21800         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
21801         * lib/fpending.c (fpending): Remove non-working VMS specific code.
21802         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
21803         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
21804         * lib/fpurge.c (fpurge): Likewise.
21805         * lib/freadable.c (freadable): Likewise.
21806         * lib/freadahead.c (freadahead): Likewise.
21807         * lib/freading.c (freading): Likewise.
21808         * lib/freadptr.c (freadptr): Likewise.
21809         * lib/freadseek.c (freadseek): Likewise.
21810         * lib/fseeko.c (fseeko): Likewise.
21811         * lib/fseterr.c (fseterr): Likewise.
21812         * lib/fwritable.c (fwriteable): Likewise.
21813         * lib/fwriting.c (fwriting): Likewise.
21815 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
21817         glob: Declare variables at the very start of their scope.
21818         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
21819         its separate scope, so the functions will compile on Haiku.
21821 2017-07-01  Bruno Haible  <bruno@clisp.org>
21823         logbl: Work around a glibc bug on PowerPC64LE.
21824         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
21825         numbers.
21826         * doc/posix-functions/logbl.texi: Update.
21828 2017-06-29  Bruno Haible  <bruno@clisp.org>
21830         stat, fstat: Compile stat-w32.c only on platforms that need it.
21831         Suggested by Paul Eggert.
21832         * modules/stat (configure.ac): Request stat-w32.o only on native
21833         Windows.
21834         * modules/fstat (configure.ac): Likewise.
21836 2017-06-25  Bruno Haible  <bruno@clisp.org>
21838         stat: Improve last change.
21839         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
21841 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
21843         stat: port to xlc 12.01
21844         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
21845         12.01 complains "Compilation unit is empty."
21847 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
21849         xalloc-oversized: port to icc
21850         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
21851         __builtin_mul_overflow if ICC is defined, as this results in
21852         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
21853         20170213.
21855 2017-06-19  Bruno Haible  <bruno@clisp.org>
21857         classpath: Avoid including config.h twice, as it produces warnings.
21858         Reported by John E. Malmberg <wb8tyw@gmail.com>.
21859         * lib/classpath.h: Conditionalize the include of config.h.
21861 2017-06-19  Bruno Haible  <bruno@clisp.org>
21862             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
21864         sched: Fix compilation failure on OpenVMS.
21865         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
21866         test whether <pthread.h> exists and defines struct sched_param.
21867         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
21869 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
21871         diffseq: port to GCC 7 with --enable-gcc-warnings
21872         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
21873         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
21874         not complain about big_snake being defined but not used.
21876 2017-06-15  Bruno Haible  <bruno@clisp.org>
21878         gettext-h: Update theoretical condition for use of variable size arrays.
21879         Reported by Paul Eggert.
21880         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
21881         to include the theoretical condition for availability of variable size
21882         arrays, if we could trust the value of __STDC_VERSION__.
21884 2017-06-12  Bruno Haible  <bruno@clisp.org>
21886         Relicense some modules under LGPLv2+.
21887         Daiki Ueno's approval is in
21888         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
21889         * modules/uniwidth/base (License): Change to LGPLv2+.
21890         * modules/uniwidth/width (License): Likewise.
21892 2017-06-11  Bruno Haible  <bruno@clisp.org>
21894         localename: Fix test failure on DragonFly BSD.
21895         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
21896         like FreeBSD.
21898 2017-06-11  Bruno Haible  <bruno@clisp.org>
21900         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
21901         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
21902         * lib/float.in.h: Likewise.
21903         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
21905 2017-06-11  Bruno Haible  <bruno@clisp.org>
21907         gnulib-tool: Clean up after autotools.
21908         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
21909         useless directory left over by the Autotools.
21911 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
21913         getopt-posix: port to glibc 2.25.90
21914         Problem reported by Daniel P. Berrange in:
21915         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
21916         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
21917         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
21918         #undef if __GETOPT_PREFIX is defined.
21920 2017-06-11  Bruno Haible  <bruno@clisp.org>
21922         strtod-obsolete: Fix license.
21923         * modules/strtod-obsolete (License): Change to LGPL.
21925 2017-06-10  Jim Meyering  <meyering@fb.com>
21927         maint: update to work with GCC7's -Werror=implicit-fallthrough=
21928         * lib/savewd.c (FALLTHROUGH): Define.
21929         (savewd_save, savewd_restore): Use this, rather than a comment,
21930         whenever one switch case falls through into the next.
21932 2017-06-08  Bruno Haible  <bruno@clisp.org>
21934         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
21935         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
21936         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
21937         case.
21939 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
21941         doc: remove robots, add prereqs
21942         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
21943         builds.  Simon's robot site does not seem to be up, so remove
21944         mentions of it for now.
21946 2017-06-08  Bruno Haible  <bruno@clisp.org>
21948         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
21949         * gnulib-tool (func_symlink_target): New function, extracted from
21950         func_symlink.
21951         (func_symlink, func_symlink_if_changed): Use it.
21953 2017-06-08  Bruno Haible  <bruno@clisp.org>
21955         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
21956         * gnulib-tool (func_ln_s): Determine cp_src correctly.
21958 2017-06-07  Bruno Haible  <bruno@clisp.org>
21960         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
21961         Reported by John E. Malmberg <wb8tyw@gmail.com> in
21962         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
21963         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
21964         override, pass 2 arguments to getcwd, not 3.
21966 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
21968         same-inode: port better to VMS 8.2 and later
21969         Problem reported by John E. Malmberg in:
21970         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
21971         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
21972         Use the usual POSIX definition.
21973         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
21975 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
21977         error: fix POSIX violation for va_end
21978         Problem reported by Bruno Haible in:
21979         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
21980         * lib/error.c (error_tail): Do not call va_end here.
21981         (error, error_at_line): Call it here instead.
21983 2017-05-28  Bruno Haible  <bruno@clisp.org>
21985         c-strtod: Make it usable in C++ mode.
21986         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
21988 2017-05-25  Jim Meyering  <meyering@fb.com>
21990         quotearg: fix compilation failure due to FALLTHROUGH misuse
21991         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
21992         macro back to /* fall through */ comment.  The macro can apply only
21993         to a following case statement.  Reported by Assaf Gordon.
21995 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
21997         intprops: port to recent icc
21998         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
21999         but does not support __builtin_add_overflow etc.
22000         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
22001         Define to 0.
22003 2017-05-23  Karl Berry  <karl@freefriends.org>
22005         * config/srclist.txt (iconv.m4): sync broken, comment out
22006         until (hopefully) the next gettext release.
22008 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
22010         Remove repeated words in comments.
22012 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
22014         fallthrough: reinstate a FALLTHROUGH instance in quotearg
22015         quotearg.c: Reinstate this instance which is significant
22016         when the if branch is not taken.
22018 2017-05-21  Bruno Haible  <bruno@clisp.org>
22020         gnulib-tool: Add options to create hard links.
22021         * gnulib-tool (func_usage): Document options --hardlink,
22022         --local-hardlink, --more-hardlinks.
22023         (func_symlink): Renamed from func_ln.
22024         (func_symlink_if_changed): Renamed from func_ln_if_changed.
22025         (func_hardlink): New function.
22026         (copymode, lcopymode): New variables.
22027         (symbolic, lsymbolic): Remove variables.
22028         (Options): Implement options --hardlink, --local-hardlink,
22029         --more-hardlinks.
22030         (func_should_link): Renamed from func_should_symlink. Set copyaction.
22031         (func_add_file, func_update_file): Update invocation of
22032         func_should_link. Invoke func_hardlink when appropriate.
22033         (func_import): Update comments.
22034         (func_create_testdir): Update invocation of func_should_link. Invoke
22035         func_hardlink when appropriate.
22036         Finally, invoke 'git update-index --refresh' to mitigate the effects of
22037         the hard links on git.
22039 2017-05-20  Bruno Haible  <bruno@clisp.org>
22041         argp: Simplify bit manipulation.
22042         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
22043         on a signed integer type.
22045 2017-05-20  Bruno Haible  <bruno@clisp.org>
22047         Avoid wrong configure results with gcc -fsanitize=address.
22048         This completes the work done on 2016-02-06 on this topic.
22049         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
22050         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
22051         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22052         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22053         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
22054         returning.
22055         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
22056         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
22057         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22058         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
22059         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
22060         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
22061         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
22062         free allocated memory before returning.
22063         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22064         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
22065         objects before returning.
22066         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
22067         returning.
22069 2017-05-20  Bruno Haible  <bruno@clisp.org>
22071         gnulib-tool: Don't create hard links between gnulib and its testdirs.
22072         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
22074 2017-05-20  Bruno Haible  <bruno@clisp.org>
22076         argp, tsearch tests: Fix file list.
22077         * modules/argp-tests (Files): Add tests/macros.h.
22078         * modules/tsearch-tests (Files): Likewise.
22080 2017-05-20  Bruno Haible  <bruno@clisp.org>
22082         getopt-posix tests: Remove redundant include.
22083         * tests/test-getopt.h: Don't include "macros.h". It's already included
22084         by tests/test-getopt-main.h.
22086 2017-05-19  Jim Meyering  <meyering@fb.com>
22088         dfa: two small simplifications
22089         * lib/dfa.c (build_state): Avoid repeating longer expressions.
22091 2017-05-18  Jim Meyering  <meyering@fb.com>
22093         fallthrough: update for GCC 7/8
22094         * lib/quotearg.c (FALLTHROUGH): New macro.
22095         Use it whenever one switch case falls through into the next,
22096         replacing "/* Fall through */" comments.  This exposed one
22097         instance of an unwarranted "fall through" comment: unwarranted
22098         because it preceded a "goto" label not a case statement.
22099         * lib/freopen-safer.c (freopen_safer): Likewise.
22100         * lib/fts.c (leaf_optimization_applies): Likewise.
22101         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
22102         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
22103         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
22104         tests/macros.h for the definition.
22105         * tests/test-argp.c (group1_parser): Likewise.
22106         * tests/test-getopt.h (getopt_loop): Likewise.
22108 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
22110         argp: fix shift bug
22111         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
22112         behavior on shift overflow, caught by gcc -fsanitize=undefined.
22114         argp: fix pointer-subtraction bug
22115         * lib/argp-help.c (hol_append): Don’t subtract pointers to
22116         different arrays, as this can run afoul of -fcheck-pointer-bounds.
22117         See the thread containing Bruno Haible’s report in:
22118         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
22120 2017-05-19  Bruno Haible  <bruno@clisp.org>
22122         printf-posix tests: Avoid test failure with "gcc --coverage".
22123         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
22124         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
22125         than 5000000.
22126         * tests/test-fprintf-posix2.c (main): Likewise.
22128 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
22130         closeout: don’t close stderr when sanitizing
22131         * NEWS: Document this.
22132         * lib/closeout.c (__has_feature): New macro, if not already defined.
22133         (SANITIZE_ADDRESS): New constant.
22134         (close_stdout): Don’t close stderr if sanitizing addresses.
22136 2017-05-19  Bruno Haible  <bruno@clisp.org>
22138         get-rusage-data tests: Avoid failure on Linux/glibc.
22139         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
22140         on glibc systems.
22142 2017-05-18  Bruno Haible  <bruno@clisp.org>
22144         localename: Include necessary header files on Cygwin.
22145         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
22146         where NL_LOCALE_NAME is defined.
22148 2017-05-18  Bruno Haible  <bruno@clisp.org>
22150         gettext: Update macros from gettext git.
22151         * m4/intldir.m4: Require Autoconf >= 2.60.
22152         * m4/progtest.m4: Fix typos in copyright notice.
22154 2017-05-18  Bruno Haible  <bruno@clisp.org>
22156         copy-file tests: Fix link error (regression from 2017-05-01).
22157         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22158         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
22159         $(LIB_CLOCK_GETTIME).
22161 2017-05-18  Bruno Haible  <bruno@clisp.org>
22163         unicase/special-casing: Fix incompatibility with gperf-3.0.4
22164         (regression from 2017-02-13).
22165         * lib/unicase/special-casing.in.h: Renamed from
22166         lib/unicase/special-casing.h.
22167         * modules/unicase/special-casing (Files): Add
22168         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
22169         (Makefile.am): Add rule for generating unicase/special-casing.h.
22170         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
22171         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
22172         not "special-casing.h".
22173         * lib/unicase/u*.c: Likewise.
22175 2017-05-17  Bruno Haible  <bruno@clisp.org>
22177         README: Don't ask people to read a TeXinfo file.
22178         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
22179         * README: Tell people how to read the HTML formatted manual.
22181 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
22183         parse-datetime: Fix memleak
22184         * lib/parse-datetime.y (parse_datetime2): Cleanup on
22185         localtime_rz() failure.
22187 2017-05-16  Bruno Haible  <bruno@clisp.org>
22189         javacomp: Fix handle leak.
22190         Found by Coverity.
22191         * lib/javacomp.c (get_classfile_version): Close fd before returning.
22193 2017-05-16  Bruno Haible  <bruno@clisp.org>
22195         relocate: Make it easier to reclaim allocated memory.
22196         * lib/relocatable.h (relocate2): New declaration/macro.
22197         * lib/relocatable.c (relocate2): New function.
22198         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
22199         relocate2 function.
22200         * lib/localcharset.c (relocate2): Define fallback.
22201         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
22202         allocated memory.
22203         * lib/javaversion.c (relocate2): Define fallback.
22204         (javaexec_version): Invoke relocate2 instead of relocate. Free the
22205         allocated memory.
22207 2017-05-16  Bruno Haible  <bruno@clisp.org>
22209         relocate: Simplify EMX specific code.
22210         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
22211         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
22213 2017-05-16  Bruno Haible  <bruno@clisp.org>
22215         sigpipe tests: Fix file list.
22216         * modules/sigpipe-tests (Files): Add tests/macros.h.
22218 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
22220         manywarnings: update for GCC 7
22221         * build-aux/gcc-warning.spec:
22222         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
22223         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
22224         requires a non-comment fallthrough attribute.  This is a bit
22225         cleaner than the comment versions.
22226         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
22227         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
22228         Use it whenever one switch case falls through into the next.
22229         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
22230         Use FALLTHROUGH macro.
22232 2017-05-15  Bruno Haible  <bruno@clisp.org>
22234         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
22235         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
22236         @ALLOCA@, not @LTALLOCA@.
22238 2017-05-15  Bruno Haible  <bruno@clisp.org>
22240         sys_select: Avoid "was expanded before it was required" warning.
22241         * modules/sys_select (configure.ac): Require, not invoke,
22242         gl_HEADER_SYS_SELECT.
22244 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
22246         gnulib-tool: improve GNU Make debugging
22247         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
22248         Report autoconf diagnostics when it fails, in the output makefile.
22250 2017-05-14  Bruno Haible  <bruno@clisp.org>
22252         stat-time tests: Improve comment.
22253         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
22255 2017-05-14  Bruno Haible  <bruno@clisp.org>
22257         same-inode: Adapt for windows-stat-inodes.
22258         * lib/same-inode.h: Include <sys/types.h>.
22259         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
22260         * modules/same-inode (Depends-on): Add sys_types.
22262 2017-05-14  Bruno Haible  <bruno@clisp.org>
22264         windows-stat-inodes: New module.
22265         * m4/windows-stat-inodes.m4: New file.
22266         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
22267         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
22268         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
22269         (_GL_WINDOWS_STAT_INODES): New macro.
22270         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
22271         (GetFileInformationByHandleExFunc): New variable.
22272         (initialize): Initialize it.
22273         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
22274         st_ino appropriately.
22275         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
22276         a fallback, because it does not provide st_dev and st_ino values.
22277         * modules/fstat (Depends-on): Add 'verify'.
22278         * modules/windows-stat-inodes: New file.
22279         * doc/windows-stat-inodes.texi: New file.
22280         * doc/gnulib.texi: Include it.
22281         * doc/posix-headers/sys_stat.texi: Mention the new module.
22283 2017-05-14  Bruno Haible  <bruno@clisp.org>
22285         stat-time tests: Workaround for native Windows.
22286         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
22287         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
22288         New variables.
22289         (initialize_filenames): New function.
22290         (main): Invoke it.
22291         (cleanup, prepare_test): Update.
22293 2017-05-14  Bruno Haible  <bruno@clisp.org>
22295         stat-time: Adapt for windows-stat-timespec.
22296         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
22297         entire st_ctim field.
22299 2017-05-13  Jim Meyering  <meyering@fb.com>
22301         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
22302         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
22303         file that uses the assume macro, claiming that verify.h is unused.
22305 2017-05-13  Bruno Haible  <bruno@clisp.org>
22307         Use symbolic values for _WIN32_WINNT.
22308         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
22309         * lib/sethostname.c (_WIN32_WINNT): Likewise.
22311 2017-05-13  Bruno Haible  <bruno@clisp.org>
22313         year2038: New module.
22314         * m4/year2038.m4: New file.
22315         * modules/year2038: New file.
22316         * doc/year2038.texi: New file.
22317         * doc/gnulib.texi: Include it.
22319 2017-05-13  Bruno Haible  <bruno@clisp.org>
22321         largefile: Simplify.
22322         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
22323         of _GL_WINDOWS_64_BIT_ST_SIZE.
22325 2017-05-13  Bruno Haible  <bruno@clisp.org>
22327         largefile: Improve and document.
22328         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
22329         the mingw headers already define 'stat' appropriately.
22330         * modules/largefile (Description): Clarify.
22331         * doc/largefile.texi: New file.
22332         * doc/gnulib.texi: Include it.
22333         * doc/posix-headers/sys_types.texi: Update.
22335 2017-05-13  Bruno Haible  <bruno@clisp.org>
22337         truncate: New module.
22338         * lib/unistd.in.h (truncate): New declaration.
22339         * lib/truncate.c: New file.
22340         * m4/truncate.m4: New file.
22341         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
22342         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
22343         REPLACE_TRUNCATE.
22344         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
22345         HAVE_TRUNCATE, REPLACE_TRUNCATE.
22346         * modules/truncate: New file.
22347         * tests/test-unistd-c++.cc (truncate): Test signature.
22348         * doc/posix-functions/truncate.texi: Mention the new module.
22350         * tests/test-truncate.c: New file.
22351         * modules/truncate-tests: New file.
22353 2017-05-13  Bruno Haible  <bruno@clisp.org>
22355         windows-stat-timespec: New module.
22356         * modules/windows-stat-timespec: New file.
22357         * m4/windows-stat-timespec.m4: New file.
22358         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
22359         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
22360         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
22361         fields st_atim, st_mtim, st_ctim.
22362         (st_atime, st_mtime, st_ctime): Define as macros.
22363         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
22364         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
22365         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
22366         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
22367         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
22368         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
22369         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
22370         FILETIME to 'struct timespec', not 'time_t'.
22371         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
22372         FILETIME to 'struct timespec', not 'time_t'.
22373         * lib/stat-time.h (STAT_TIMESPEC): Define also if
22374         _GL_WINDOWS_STAT_TIMESPEC.
22375         * doc/windows-stat-timespec.texi: New file.
22376         * doc/gnulib.texi: Include it.
22378 2017-05-13  Bruno Haible  <bruno@clisp.org>
22380         windows-stat-override: New module.
22381         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
22382         definition. Define GNULIB_defined_struct_stat.
22383         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
22384         link error if this symbol is used and the corresponding module is not
22385         in use.
22386         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
22387         GNULIB_OVERRIDES_STRUCT_STAT.
22388         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
22389         GNULIB_OVERRIDES_STRUCT_STAT.
22390         * modules/sys_stat (Makefile.am): Substitute
22391         GNULIB_OVERRIDES_STRUCT_STAT.
22392         * modules/windows-stat-override: New file.
22394 2017-05-13  Bruno Haible  <bruno@clisp.org>
22396         fstat: Fix module dependency conditions.
22397         * modules/fstat (Depends-on): Fix typo.
22399 2017-05-13  Bruno Haible  <bruno@clisp.org>
22401         stat, fstat: Complete removal of old native Windows code.
22402         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
22403         * lib/fstat.c: Likewise.
22404         * lib/stat-w32.c: Likewise.
22406 2017-05-13  Bruno Haible  <bruno@clisp.org>
22408         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
22409         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
22411 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
22413         getopt-posix: port to mingw
22414         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
22415         Problem reported by Daniel P. Berrage in:
22416         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
22418 2017-05-11  Bruno Haible  <bruno@clisp.org>
22420         gettimeofday: Increase precision on mingw.
22421         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
22422         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
22423         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
22424         GetSystemTimePreciseAsFileTime based implementation always.
22425         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
22426         mingw.
22428 2017-05-11  Bruno Haible  <bruno@clisp.org>
22430         poll: Fix confusion between SOCKETs and FDs on native Windows.
22431         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
22432         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
22434 2017-05-11  Bruno Haible  <bruno@clisp.org>
22436         doc: Clarify doc about socket functions on native Windows.
22437         This reworks doc that was added on 2008-09-29.
22438         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
22439         clearer wording.
22440         * doc/posix-functions/accept.texi: Use clearer wording.
22441         * doc/posix-functions/bind.texi: Likewise.
22442         * doc/posix-functions/connect.texi: Likewise.
22443         * doc/posix-functions/getpeername.texi: Likewise.
22444         * doc/posix-functions/getsockname.texi: Likewise.
22445         * doc/posix-functions/getsockopt.texi: Likewise.
22446         * doc/posix-functions/ioctl.texi: Likewise.
22447         * doc/posix-functions/listen.texi: Likewise.
22448         * doc/posix-functions/recv.texi: Likewise.
22449         * doc/posix-functions/recvfrom.texi: Likewise.
22450         * doc/posix-functions/send.texi: Likewise.
22451         * doc/posix-functions/sendto.texi: Likewise.
22452         * doc/posix-functions/setsockopt.texi: Likewise.
22453         * doc/posix-functions/shutdown.texi: Likewise.
22454         * doc/posix-functions/socket.texi: Likewise.
22456 2017-05-10  Bruno Haible  <bruno@clisp.org>
22458         poll: Fix link error on native Windows.
22459         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
22461 2017-05-10  Bruno Haible  <bruno@clisp.org>
22463         time: Fix missing initialization of HAVE_TIMEZONE_T.
22464         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
22465         here...
22466         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
22467         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
22468         gl_HEADER_SYS_TIME_H_DEFAULTS.
22469         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
22470         (configure.ac): Remove useless quoting.
22472 2017-05-10  Bruno Haible  <bruno@clisp.org>
22474         Implement a way to opt out from MSVC support, part 2.
22475         * modules/msvc-inval (Include): Document recommended idiom.
22476         * modules/msvc-nothrow (Include): Likewise.
22478         Implement a way to opt out from MSVC support.
22479         This is useful for Emacs.
22480         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
22481         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
22482         * lib/error.c: Likewise.
22483         * lib/fcntl.c: Likewise.
22484         * lib/flock.c: Likewise.
22485         * lib/fstat.c: Likewise.
22486         * lib/fsync.c: Likewise.
22487         * lib/ioctl.c: Likewise.
22488         * lib/isapipe.c: Likewise.
22489         * lib/lseek.c: Likewise.
22490         * lib/nonblocking.c: Likewise.
22491         * lib/poll.c: Likewise.
22492         * lib/select.c: Likewise.
22493         * lib/sockets.h: Likewise.
22494         * lib/sockets.c: Likewise.
22495         * lib/stdio-read.c: Likewise.
22496         * lib/stdio-write.c: Likewise.
22497         * lib/utimens.c: Likewise.
22498         * lib/w32sock.h: Likewise.
22499         * lib/w32spawn.h: Likewise.
22500         * tests/test-cloexec.c: Likewise.
22501         * tests/test-dup-safer.c: Likewise.
22502         * tests/test-dup2.c: Likewise.
22503         * tests/test-dup3.c: Likewise.
22504         * tests/test-fcntl.c: Likewise.
22505         * tests/test-pipe.c: Likewise.
22506         * tests/test-pipe2.c: Likewise.
22507         * lib/ftruncate.c: Likewise.
22508         (chsize_nothrow): Renamed from chsize.
22509         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
22510         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
22511         * lib/close.c: Likewise.
22512         * lib/dup.c: Likewise.
22513         * lib/fclose.c: Likewise.
22514         * lib/raise.c: Likewise.
22515         * tests/test-fgetc.c: Likewise.
22516         * tests/test-fputc.c: Likewise.
22517         * tests/test-fread.c: Likewise.
22518         * tests/test-fwrite.c: Likewise.
22519         * lib/getdtablesize.c: Likewise.
22520         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
22521         * lib/isatty.c: Don't include msvc-inval.h if
22522         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
22523         Include <io.h> as an alternative to msvc-nothrow.h.
22524         * lib/read.c: Likewise.
22525         * lib/write.c: Likewise.
22526         * lib/dup2.c: Likewise.
22527         (dup2_nothrow): New function.
22528         (ms_windows_dup2): Use it.
22529         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
22530         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
22531         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
22532         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
22533         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
22534         * m4/read.m4 (gl_FUNC_READ): Likewise.
22535         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
22536         * doc/windows-without-msvc.texi: New file.
22537         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
22538         section.
22540 2017-05-10  Bruno Haible  <bruno@clisp.org>
22542         wait-process: Adjust native Windows support.
22543         * lib/wait-process.c: Use the usual condition for recognizing a native
22544         Windows platform.
22546 2017-05-10  Bruno Haible  <bruno@clisp.org>
22548         doc: New chapter "Native Windows Support".
22549         * doc/gnulib.texi (Native Windows Support): New chapter.
22550         * doc/windows-libtool.texi: Small wording changes.
22551         * doc/windows-sockets.texi: Small wording and formatting changes.
22553 2017-05-10  Bruno Haible  <bruno@clisp.org>
22555         doc: Move section "Library version handling".
22556         * doc/gnulib.texi: Move section "Library version handling"
22557         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
22559 2017-05-10  Bruno Haible  <bruno@clisp.org>
22561         doc: Move section "Running self-tests under valgrind".
22562         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
22563         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
22565 2017-05-10  Bruno Haible  <bruno@clisp.org>
22567         doc: New chapter "Build Infrastructure Modules".
22568         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
22570 2017-05-10  Bruno Haible  <bruno@clisp.org>
22572         Prepare for reordering sections in the manual.
22573         * doc/gnulib.texi: Move several sections to separate files. Include
22574         these files.
22575         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
22576         * doc/obsolete.texi: Likewise.
22577         * doc/extra-tests.texi: Likewise.
22578         * doc/transversal.texi: Likewise.
22579         * doc/namespace.texi: Likewise.
22580         * doc/check-version.texi: Likewise.
22581         * doc/windows-sockets.texi: Likewise.
22582         * doc/windows-libtool.texi: Likewise.
22583         * doc/licenses-texi.texi: Likewise.
22584         * doc/build-automation.texi: Likewise.
22585         * doc/c-locale.texi: Likewise.
22587 2017-05-10  Bruno Haible  <bruno@clisp.org>
22589         Fix instructions how to update manual on www.gnu.org.
22590         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
22592 2017-05-09  Bruno Haible  <bruno@clisp.org>
22594         tzset: Expand comment about TZ problem on native Windows.
22595         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
22596         Paul Eggert.
22597         * lib/ctime.c (rpl_ctime): Likewise.
22598         * lib/localtime.c (rpl_localtime): Likewise.
22599         * lib/mktime.c (mktime): Likewise.
22600         * lib/strftime-fixes.c (rpl_strftime): Likewise.
22601         * lib/wcsftime.c (rpl_wcsftime): Likewise.
22603 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
22605         intprops: don’t depend on ‘verify’
22606         Problem reported by Ævar Arnfjörð Bjarmason in:
22607         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
22608         * lib/intprops.h: Do not include verify.h, and move compile-time
22609         checks from here ...
22610         * tests/test-intprops.c (main): ... to here, if they’re not here
22611         already.  Check widths of other standard integer types.
22612         * modules/intprops (Depends-on): Remove ‘verify’.
22614 2017-05-07  Bruno Haible  <bruno@clisp.org>
22616         utimens: On native Windows, support 100ns resolution also if fd < 0.
22617         * lib/utime.in.h: Include <time.h>.
22618         (_gl_utimens_windows): New declaration.
22619         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
22620         (utime): Invoke it.
22621         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
22622         instead of utime.
22623         * modules/utime (Depends-on): Add 'time'.
22625 2017-05-07  Bruno Haible  <bruno@clisp.org>
22627         utimens: Improve error code on native Windows.
22628         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
22629         error code EACCES, not EINVAL.
22631 2017-05-07  Bruno Haible  <bruno@clisp.org>
22633         utime: Handle more Windows error codes.
22634         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
22635         Based on explanations by Billy O'Neal.
22637 2017-05-05  Bruno Haible  <bruno@clisp.org>
22639         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
22640         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
22641         union.
22642         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
22643         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
22644         value of cipher->IV.
22646 2017-05-05  Bruno Haible  <bruno@clisp.org>
22648         wctype-h-c++-tests: Update.
22649         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
22651 2017-05-05  Bruno Haible  <bruno@clisp.org>
22653         wchar-c++-tests: Update.
22654         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
22656 2017-05-05  Bruno Haible  <bruno@clisp.org>
22658         utime-h-c++-tests: New module.
22659         * tests/test-utime-h-c++.cc: New file.
22660         (utime): Declare, missing since 2017-04-30.
22661         * modules/utime-h-c++-tests: New file.
22663 2017-05-05  Bruno Haible  <bruno@clisp.org>
22665         unistd-c++-tests: Update.
22666         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
22667         (read): Declare, missing since 2011-04-15.
22668         (sethostname): Declare, missing since 2011-12-03.
22670 2017-05-05  Bruno Haible  <bruno@clisp.org>
22672         time-c++-tests: Update.
22673         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
22674         (localtime, gmtime): Declare, missing since 2017-04-30.
22675         (ctime): Declare, missing since 2017-04-30.
22676         (strftime): Declare, missing since 2017-04-30.
22677         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
22678         2015-07-24.
22680 2017-05-05  Bruno Haible  <bruno@clisp.org>
22682         sys_resource-c++-tests: New module.
22683         * tests/test-sys_resource-c++.cc: New file.
22684         (getrusage): Declare, missing since 2012-04-13.
22685         * modules/sys_resource-c++-tests: New file.
22687 2017-05-05  Bruno Haible  <bruno@clisp.org>
22689         strings-c++-tests: New module.
22690         * tests/test-strings-c++.cc: New file.
22691         (ffs): Declare, missing since 2011-07-12.
22692         * modules/strings-c++-tests: New file.
22694 2017-05-05  Bruno Haible  <bruno@clisp.org>
22696         string-c++-tests: Update.
22697         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
22698         (ffsll): Declare, missing since 2011-07-15.
22700 2017-05-05  Bruno Haible  <bruno@clisp.org>
22702         stdlib-c++-tests: Update.
22703         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
22704         2011-10-18.
22705         (ptsname_r): Declare, missing since 2011-11-07.
22706         (qsort_r): Declare, missing since 2014-08-29.
22707         (random, srandom, initstate, setstate): Declare, missing since
22708         2012-01-14.
22709         (secure_getenv): Declare, missing since 2013-02-05.
22711 2017-05-05  Bruno Haible  <bruno@clisp.org>
22713         stdio-c++-tests: Update.
22714         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
22716 2017-05-05  Bruno Haible  <bruno@clisp.org>
22718         signal-h-c++-tests: Update.
22719         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
22721 2017-05-05  Bruno Haible  <bruno@clisp.org>
22723         math-c++-tests: Update.
22724         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
22725         (fma): Declare, missing since 2011-10-17.
22726         (fmal): Declare, missing since 2011-10-17.
22728 2017-05-05  Bruno Haible  <bruno@clisp.org>
22730         locale-c++-tests: Update.
22731         * tests/test-locale-c++.cc (localeconv): Declare, missing since
22732         2012-03-25.
22734 2017-05-05  Bruno Haible  <bruno@clisp.org>
22736         inttypes-c++-tests: New module.
22737         * tests/test-inttypes-c++.cc: New file.
22738         (strtoimax): Declare, missing since 2012-01-05.
22739         (strtoumax): Declare, missing since 2012-01-05.
22740         * modules/inttypes-c++-tests: New file.
22742 2017-05-05  Bruno Haible  <bruno@clisp.org>
22744         dirent-c++-tests: Update.
22745         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
22746         (rewinddir): Declare, missing since 2011-09-13.
22747         (dirfd): Declare, missing since 2010-03-08.
22749 2017-05-04  Bruno Haible  <bruno@clisp.org>
22751         argp: Fix mistake in 2017-04-23 commit.
22752         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
22753         assume that strerror_r returns 'int', not 'char *'.
22755 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
22757         argp: Fix typo.
22758         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
22760 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
22762         utimens: port to Emacs + MS-Windows
22763         Skip the new MS-Windows-specific code if Emacs.
22764         * lib/utimens.c [EMACS_CONFIGUATION]:
22765         Avoid new MS-Windows-specific code.
22766         (USE_SETFILETIME): New macro.
22767         (fdutimens): Use it.
22769 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
22771         tzset: update doc for TZ problems on MS-Windows
22772         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
22773         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
22774         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
22775         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
22776         * doc/posix-functions/wcsftime.texi:
22777         Mention some issues with TZ under MS-Windows.
22779 2017-05-01  Bruno Haible  <bruno@clisp.org>
22781         copy-file: Fix build error on mingw.
22782         * modules/copy-file (Depends-on): Add 'close'.
22784 2017-05-01  Bruno Haible  <bruno@clisp.org>
22786         tzset: Work around TZ problem on native Windows.
22787         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
22788         Windows, set REPLACE_TZSET to 1.
22789         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
22790         invoke '_tzset' instead of 'tzset'.
22791         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
22793         * modules/time_rz (Depends-on): Add tzset.
22794         * lib/time_rz.c (tzset): Remove fallback definition.
22795         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
22797 2017-05-01  Bruno Haible  <bruno@clisp.org>
22799         mktime: Fix dependencies.
22800         * modules/mktime (Depends-on): Add 'time'.
22802 2017-05-01  Bruno Haible  <bruno@clisp.org>
22804         New module 'localtime-buffer', split off from module 'gettimeofday'.
22805         * lib/localtime-buffer.h: New file.
22806         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
22807         * lib/time.in.h (tzset): New declaration.
22808         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
22809         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
22810         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
22811         moved to lib/localtime-buffer.c or lib/tzset.c.
22812         * m4/localtime-buffer.m4: New file.
22813         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
22814         HAVE_TZSET, REPLACE_TZSET.
22815         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
22816         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
22817         gl_LOCALTIME_BUFFER_NEEDED.
22818         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
22819         since 2007-01-18.
22820         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
22821         tzset.
22822         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
22823         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
22824         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
22825         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
22826         * modules/localtime-buffer: New file.
22827         * modules/time (Depends-on): Remove 'gettimeofday'.
22828         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
22829         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
22830         * modules/tzset (Description): Enable hyperlink to POSIX spec.
22831         (Files): Add lib/tzset.c.
22832         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
22833         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
22834         gl_TIME_MODULE_INDICATOR.
22835         * modules/gettimeofday (Depends-on): Add localtime-buffer.
22837 2017-05-01  Bruno Haible  <bruno@clisp.org>
22839         copy-file: Preserve sub-second time stamps.
22840         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
22841         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
22842         transport the time stamps from the original file to the destination
22843         file.
22844         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
22845         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
22846         utime-h.
22848 2017-05-01  Bruno Haible  <bruno@clisp.org>
22850         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
22851         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
22852         also on MSVC.
22853         Reported by Eli Zaretskii <eliz@gnu.org>.
22855 2017-05-01  Bruno Haible  <bruno@clisp.org>
22857         wchar: Fix compilation error with the original mingw.org mingw.
22858         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
22859         <stddef.h> instead.
22860         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
22861         gl_WCTYPE_H.
22862         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
22863         gl_TYPE_WINT_T_PREREQ instead.
22864         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
22865         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
22866         Reported by Eli Zaretskii <eliz@gnu.org>.
22868 2017-04-30  Bruno Haible  <bruno@clisp.org>
22870         utimecmp: Add support for native Windows.
22871         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
22873 2017-04-30  Bruno Haible  <bruno@clisp.org>
22875         utimens: Add support for native Windows.
22876         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
22877         (fdutimens): Provide a native Windows implementation, like utime.c with
22878         added tv_nsec support.
22879         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
22880         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
22882 2017-04-30  Bruno Haible  <bruno@clisp.org>
22884         wcsftime: New module.
22885         * lib/wchar.in.h (wcsftime): New declaration.
22886         * lib/wcsftime.c: New file.
22887         * m4/wcsftime.m4: New file.
22888         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
22889         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
22890         HAVE_WCSFTIME, REPLACE_WCSFTIME.
22891         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
22892         HAVE_WCSFTIME, REPLACE_WCSFTIME.
22893         * modules/wcsftime: New file.
22894         * doc/posix-functions/wcsftime.texi: Mention the new module.
22896 2017-04-30  Bruno Haible  <bruno@clisp.org>
22898         strftime-fixes: New module.
22899         * lib/time.in.h (strftime): New declaration.
22900         * lib/strftime-fixes.c: New file.
22901         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
22902         (gl_FUNC_STRFTIME): Remove macro.
22903         * m4/strftime-fixes.m4: New file.
22904         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
22905         REPLACE_STRFTIME.
22906         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
22907         REPLACE_STRFTIME.
22908         * modules/strftime-fixes: New file.
22909         * doc/posix-functions/strftime.texi: Mention the new module.
22911 2017-04-30  Bruno Haible  <bruno@clisp.org>
22913         mktime: Work around TZ problem on native Windows.
22914         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
22915         from the native Windows workaround.
22916         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
22917         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
22918         'guessing no'.
22919         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
22920         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
22921         NEED_MKTIME_WINDOWS.
22922         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
22923         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
22924         NEED_MKTIME_INTERNAL.
22925         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
22926         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
22927         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
22928         not REPLACE_MKTIME.
22929         * doc/posix-functions/mktime.texi: Mention the native Windows
22930         workaround.
22932 2017-04-30  Bruno Haible  <bruno@clisp.org>
22934         localtime: New module.
22935         * lib/time.in.h (localtime): Declare also if requested by module
22936         'localtime'.
22937         * lib/localtime.c: New file.
22938         * m4/localtime.m4: New file.
22939         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
22940         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
22941         * modules/localtime: New file.
22942         * doc/posix-functions/localtime.texi: Mention the new module.
22944 2017-04-30  Bruno Haible  <bruno@clisp.org>
22946         ctime: New module.
22947         * lib/time.in.h (ctime): New declaration.
22948         * lib/ctime.c: New file.
22949         * m4/ctime.m4: New file.
22950         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
22951         REPLACE_CTIME.
22952         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
22953         * modules/ctime: New file.
22954         * doc/posix-functions/ctime.texi: Mention the new module.
22956 2017-04-30  Bruno Haible  <bruno@clisp.org>
22958         gettimeofday: Provide higher resolution on native Windows.
22959         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
22960         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
22961         (initialize): Initialize it.
22962         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
22963         'struct timeval'. Don't use _ftime().
22964         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
22965         <sys/timeb.h> and _ftime.
22967 2017-04-30  Bruno Haible  <bruno@clisp.org>
22969         Document the problem with the Cygwin environment variable TZ.
22970         * doc/posix-functions/tzset.texi: Add note about TZ.
22971         * doc/posix-functions/ctime.texi: Likewise.
22972         * doc/posix-functions/localtime.texi: Likewise.
22973         * doc/posix-functions/mktime.texi: Likewise.
22974         * doc/posix-functions/strftime.texi: Likewise.
22975         * doc/posix-functions/wcsftime.texi: Likewise.
22976         * doc/pastposix-functions/ftime.texi: Likewise.
22978 2017-04-30  Bruno Haible  <bruno@clisp.org>
22980         utime-tests: New module.
22981         * tests/test-utime.c: New file, based on tests/test-utimens.h.
22982         * tests/test-utimens-common.h: Include <sys/stat.h>.
22983         * modules/utime-tests: New file.
22985 2017-04-29  Bruno Haible  <bruno@clisp.org>
22987         utime: New module.
22988         * lib/utime.in.h: Add comment for snippets.
22989         (utime): New declaration.
22990         * lib/utime.c: New file.
22991         * m4/utime.m4: New file.
22992         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
22993         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
22994         REPLACE_UTIME.
22995         * modules/utime-h (Depends-on): Add snippets.
22996         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
22997         Insert snippets.
22998         * modules/utime: New file.
22999         * doc/posix-functions/utime.texi: Mention the new module.
23001 2017-04-29  Bruno Haible  <bruno@clisp.org>
23003         utime-h: Modernize handling of 'struct utimbuf'.
23004         * lib/utime.in.h: Include next <utime.h> if it exists.
23005         (utimbuf): Define to _utimbuf on native Windows.
23006         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
23007         Set UTIME_H on native Windows.
23008         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
23009         * modules/utime-h (Depends-on): Add include_next.
23010         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
23011         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
23013         * lib/utimens.c (utimbuf): Remove fallback definition.
23014         * m4/utimens.m4 (gl_UTIMENS): Don't require
23015         gl_CHECK_TYPE_STRUCT_UTIMBUF.
23016         * m4/utimbuf.m4: Remove file.
23017         * modules/utimens (Files): Remove m4/utimbuf.m4.
23019 2017-04-29  Bruno Haible  <bruno@clisp.org>
23021         Make use of module 'utime-h'.
23022         * modules/copy-file (Depends-on): Add utime-h.
23023         * lib/copy-file.c: Assume that <utime.h> exists.
23024         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
23026         * modules/utimens (Depends-on): Add utime-h.
23027         * lib/utimens.c: Assume that <utime.h> exists.
23029 2017-04-29  Bruno Haible  <bruno@clisp.org>
23031         utime-h: New module.
23032         * m4/utime_h.m4: New file.
23033         * lib/utime.in.h: New file.
23034         * modules/utime-h: New file.
23035         * doc/posix-headers/utime.texi: Mention the new module.
23037         * tests/test-utime-h.c: New file.
23038         * modules/utime-h-tests: New file.
23040 2017-04-30  Bruno Haible  <bruno@clisp.org>
23042         Fix a few typos.
23043         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
23044         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
23045         * doc/posix-functions/fstat.texi: Fix a plural typo.
23046         * doc/posix-functions/stat.texi: Likewise.
23047         * m4/include_next.m4: Update comments.
23049 2017-04-29  Bruno Haible  <bruno@clisp.org>
23051         error: Fix mistake in 2017-04-23 commit.
23052         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
23053         assume that strerror_r returns 'int', not 'char *'.
23055 2017-04-29  Bruno Haible  <bruno@clisp.org>
23057         stat: Fix time_t values and other problems on native Windows platforms.
23058         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
23059         implementations of stat().
23060         * lib/stat.c: Include filename.h instead of dosname.h. Include
23061         malloca.h, stat-w32.h.
23062         (is_unc_root): New function.
23063         (rpl_stat): New implementation for native Windows. Remove
23064         REPLACE_FUNC_STAT_DIR code.
23065         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
23066         Don't define REPLACE_FUNC_STAT_DIR.
23067         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
23068         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
23069         (Depends-on): Remove dosname. Add filename, malloca.
23070         (configure.ac): Also compile lib/stat-w32.c.
23072 2017-04-29  Bruno Haible  <bruno@clisp.org>
23074         fstat: Fix time_t values on native Windows platforms.
23075         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
23076         * lib/stat-w32.h: New file.
23077         * lib/stat-w32.c: New file.
23078         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
23079         stat-w32.h instead.
23080         (fstat_nothrow): Remove function.
23081         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
23082         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
23083         always.
23084         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
23085         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
23086         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
23087         (configure.ac): Also compile lib/stat-w32.c.
23089 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
23091         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
23092         Problem reported by Assaf Gordon and Gavin Smith in:
23093         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
23094         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
23095         #define this, too.
23097 2017-04-29  Bruno Haible  <bruno@clisp.org>
23099         strerror_r-posix: Fixes for MSVC 14.
23100         * lib/strerror_r.c: Include <stdarg.h>.
23101         (strerror_r): Provide error messages for errno values 100...140.
23102         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
23104 2017-04-28  Bruno Haible  <bruno@clisp.org>
23106         noreturn: New module.
23107         * lib/noreturn.h: New file.
23108         * modules/noreturn: New file.
23109         * tests/test-noreturn.c: New file.
23110         * modules/noreturn-tests: New file.
23111         * tests/test-noreturn-c++.cc: New file.
23112         * modules/noreturn-c++-tests: New file.
23114 2017-04-27  Bruno Haible  <bruno@clisp.org>
23116         wctype-h: Fix compilation error with the original mingw.org mingw.
23117         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
23118         HAVE_CRTDEFS_H.
23119         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
23120         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
23121         <stddef.h> instead.
23122         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
23124 2017-04-26  Pádraig Brady  <P@draigBrady.com>
23126         nap.h: Fix compilation on non windows platforms
23127         * tests/nap.h: Move misplaced endif.
23129 2017-04-26  Pádraig Brady  <P@draigBrady.com>
23130         and Paul Eggert  <eggert@cs.ucla.edu>
23132         time_rz: fix heap buffer overflow vulnerability
23133         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
23134         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
23135         whether there is enough buffer space available, thus avoiding
23136         the problematic promotion of signed to unsigned causing an invalid
23137         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
23138         the start of the buffer.
23139         * tests/test-parse-datetime.c (main): Add a test case written by
23140         Paul Eggert, which overwrites enough of the heap so that
23141         standard glibc will fail with "free(): invalid pointer"
23142         without the patch applied.
23144 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
23146         xalloc: add missing integer overflow check
23147         * lib/xalloc.h (x2nrealloc): Also check for multiplication
23148         overflow when P is null.
23150 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
23152         parse-datetime: make it standalone
23153         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
23154         (_GL_ATTRIBUTE_FORMAT): New macro.
23155         These are needed to get './gnulib-tool --test parse-datetime' to work.
23157 2017-04-23  Bruno Haible  <bruno@clisp.org>
23159         nap.h: Port to native Windows.
23160         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
23161         use nap_fd instead. On native Windows, close and reopen nap_fd.
23162         (nap_works): Don't compare the ctimes, because on native Windows, these
23163         are the creation times.
23164         (nap): Update.
23166 2017-04-23  Bruno Haible  <bruno@clisp.org>
23168         nap.h: Fix logic.
23169         * tests/nap.h (nap): Avoid signed integer overflow in loop.
23171 2017-04-23  Bruno Haible  <bruno@clisp.org>
23173         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
23174         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
23175         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
23176         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
23177         * lib/argp-help.c (__argp_failure): Likewise.
23179 2017-04-23  Bruno Haible  <bruno@clisp.org>
23181         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
23182         * m4/strerror_r.m4: Revert changes since 2016-10-16.
23183         * lib/strerror_r.c: Likewise.
23185 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
23187         Target a C99 subset, not a C89 subset
23188         For many years Gnulib has targeted C89 and has resisted using C99
23189         features, as some Gnulib-using programs still wanted to target
23190         C89.  As this no longer seems to be the case, relax the porting
23191         requirements to allow some C99 features.  This is merely a change
23192         to the documentation, to give other Gnulib developers a chance to
23193         weigh in on the topic.
23194         * doc/extern-inline.texi (extern inline):
23195         * doc/gnulib-readme.texi (Portability guidelines):
23196         * doc/gnulib-tool.texi (Initial import):
23197         * doc/gnulib.texi (Header files):
23198         Modernize to talk about C99 and C11 instead of C89 and C99.
23199         * doc/gnulib-readme.texi (Portability guidelines):
23200         Now a section, not merely a subsection, so that it
23201         can be split up.  Modernize a bit.
23202         (C language versions, C99 features assumed)
23203         (C99 features avoided):
23204         New sections.
23206 2017-04-23  Bruno Haible  <bruno@clisp.org>
23208         doc: New section "Modules that modify the way other modules work".
23209         * doc/gnulib.texi (Modules that modify the way other modules work): New
23210         section.
23212 2017-04-23  Bruno Haible  <bruno@clisp.org>
23214         stat-time: Update comments.
23215         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
23216         * tests/test-utimens-common.h: Add reference regarding st_ctime on
23217         Windows.
23219 2017-04-01  Bruno Haible  <bruno@clisp.org>
23221         glob: Fix more memory leaks.
23222         * lib/glob.c (glob): Free allocated memory before returning.
23223         Reported by Coverity via Tim Rühsen.
23225 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23227         poll: improve fast check for out-of-range NFD
23228         * lib/poll.c: Do not include intprops.h.
23229         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
23230         * modules/poll (Depends-on): Remove intprops.
23232         ftoastr: cite a newer paper
23233         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
23234         instead of Loitsch 2010.
23236 2017-04-22  Bruno Haible  <bruno@clisp.org>
23238         poll: Enable argument check also in the Windows implementation.
23239         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
23240         Reported by Paul Eggert.
23242 2017-04-22  Bruno Haible  <bruno@clisp.org>
23244         getlogin_r: Work around bug in Mac OS X 10.12.
23245         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
23246         bug.
23247         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
23248         given size minus 1, call getlogin_r a second time, on a larger buffer.
23249         * modules/getlogin_r (Depends-on): Add malloca.
23250         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
23252 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23254         parse-datetime: fix %z and prefer signed int
23255         %z problem reported by Pádraig Brady in:
23256         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
23257         While fixing it, I decided to prefer signed ints to size_t, as
23258         they are less error-prone (e.g., ubsan catches overflow).
23259         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
23260         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
23261         counts, since signed integers make for better debugging.
23262         (date): Don’t assume %z works in printf formats.
23263         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
23264         sizes of buffers known to be small, e.g., because we’re using snprintf.
23265         (parse_datetime2): Simplify call to debug_mktime_not_ok.
23267 2017-04-22  Bruno Haible  <bruno@clisp.org>
23269         *printf: Work around rounding bug on Mac OS X.
23270         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
23271         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
23272         Mac OS X and FreeBSD.
23273         * doc/glibc-functions/*printf.texi: Likewise.
23275 2017-04-22  Bruno Haible  <bruno@clisp.org>
23277         vasnprintf tests: Avoid warnings.
23278         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
23279         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
23280         test.
23282 2017-04-22  Bruno Haible  <bruno@clisp.org>
23284         sys_file tests: Avoid warning.
23285         * tests/test-sys_file.c (main): Add a default clause to the switch
23286         statement.
23288 2017-04-22  Bruno Haible  <bruno@clisp.org>
23290         sethostname: Update doc.
23291         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
23292         Mac OS X.
23294 2017-04-22  Bruno Haible  <bruno@clisp.org>
23296         quotearg tests: Avoid warnings.
23297         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
23298         false.
23300 2017-04-22  Bruno Haible  <bruno@clisp.org>
23302         poll: Enable argument check.
23303         * lib/poll.c: Include intprops.h.
23304         (poll): Check value of nfd correctly.
23305         * modules/poll (Depends-on): Add intprops.
23307 2017-04-22  Bruno Haible  <bruno@clisp.org>
23309         get-rusage-data: Avoid warnings on Mac OS X.
23310         * lib/get-rusage-data.c: On Mac OS X, don't define
23311         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
23312         (get_rusage_data) [Mac OS X]: Just return 0.
23314 2017-04-22  Bruno Haible  <bruno@clisp.org>
23316         xbinary-io: Fix build error.
23317         * modules/xbinary-io (Depends-on): Add gettext-h.
23318         * lib/xbinary-io.c: Include gettext.h and define _().
23319         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
23320         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
23322 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23324         parse-datetime: overflow and debug cleanups
23325         This long patch was triggered by this bug report from Ruediger Meier:
23326         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
23327         I fixed the bug he noted, then found some others nearby, and then
23328         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
23329         up some of the code to follow GNU standards while I was at it.
23330         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
23331         use c_isdigit.
23332         (EPOCH_YEAR): Remove; unused.
23333         (TM_YEAR_BASE): Now an enum rather than a macro.
23334         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
23335         time zone offset, since timezones now are in terms of seconds and
23336         not minutes.
23337         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
23338         appropriate.  Verify that intmax_t is wide enough.
23339         (time_overflow, time_zone_str): New functions, used to deal
23340         more reliably with overflow.
23341         (dbg_printf): Add printf attribute, to help catch integer width errors.
23342         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
23343         (%union, to_hour, yylex, parse_datetime2):
23344         Use intmax_t instead of long int and/or long_time_t.
23345         All uses changed.
23346         (DBGBUFSIZE): Move earlier.
23347         (relative_time, set_hhmmss, parser_control):
23348         Just use int for nanoseconds and for time zones; that’s wide enough.
23349         (parser_control): Use bool for members like year_seen that can
23350         be booleans instead of counters.  All uses changed.
23351         Remove debug_default_input_timezone; no longer needed.
23352         All uses removed.
23353         (apply_relative_time): Return a bool overflow flag.
23354         All uses changed to check for overflow.
23355         (apply_relative_time, zone, date, relunit, relunit_snumber)
23356         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
23357         Check for integer overflow portably.
23358         (str_days): Use just int for N, as it’s wide enough.
23359         Prefer 2D char arrays to arrays of char * when it looks like
23360         2D is a win on typical platforms.
23361         Prefer snprintf to strncpy/strncat, for simplicity;
23362         all buffers are smaller than INT_MAX so this is safe.
23363         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
23364         (debug_print_current_time): Don’t assume tv_nsec is of type long,
23365         as this is not true on x32.  Output "." before any nanoseconds.
23366         (debug_print_current_time, parse_datetime2):
23367         Output local zones using a more-consistent format.
23368         (debug_print_current_time, date, parse_datetime2):
23369         (main) [TEST]:
23370         Don’t assume time_t is the same width as long.
23371         (print_rel_part): New function, replacing ...
23372         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
23373         (debug_print_relative_time): Use bool for boolean.
23374         (local_zone): dsts_seen now counts only tDST instances.
23375         (date): Fix printf of size_t to use %z.  Do not assume numeric
23376         tokens have negative values merely because the context suggests
23377         a syntax with "-" separating tokens.
23378         (time_zone_hhmm): Return bool success indicator, which checks for
23379         overflow.  Store result into PC->time_zone instead.  All callers
23380         changed.
23381         (tm_year_str): New function.  Return a bool success indicator and
23382         store the result into a buffer.  All callers changed.  Output the
23383         numerically correct string even if adding 1900 to the year would
23384         overflow.
23385         (to_tm_year): New function, replacing the old to_year.  All
23386         callers changed.
23387         (tm_diff): Sync with glibc.
23388         (lookup_word): Use to_uchar instead of doing it by hand.
23389         (TZBUFSIZE): Now local to the only function that needs it.
23390         (debug_strfdatetime): Simplify now that time zones are int seconds.
23391         (debug_strfdate): Work even if tm_year + 1900 would overflow.
23392         (get_effective_timezone): Remove.  All uses removed.
23393         (parse_datetime2): Use fprintf in pieces instead of snprintfing
23394         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
23395         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
23396         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
23397         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
23398         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
23399         * modules/parse-datetime (Depends-on): Add inttypes.
23401 2017-04-21  Bruno Haible  <bruno@clisp.org>
23403         gettext-h: Avoid -Wundef warning.
23404         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
23405         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
23406         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
23408 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
23410         error: Avoid "function declaration isn't a prototype" warning.
23411         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
23413 2017-04-21  Bruno Haible  <bruno@clisp.org>
23415         vasnprintf: Fix for MSVC 14.
23416         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
23417         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
23418         of !HAVE_SNPRINTF_RETVAL_C99.
23420 2017-04-21  Bruno Haible  <bruno@clisp.org>
23422         mbrtowc tests: Fix test failures on MSVC 14.
23423         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
23424         behaviour for invalid input.
23426 2017-04-21  Bruno Haible  <bruno@clisp.org>
23428         mbsinit: Fix for MSVC 14.
23429         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
23430         implementation that is in sync with mbrtowc.c. On other platforms, use
23431         an adequate ad-hoc implementation.
23433 2017-04-21  Bruno Haible  <bruno@clisp.org>
23435         Fix test-mbrtowc5.sh failure on native Windows.
23436         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
23437         "C".
23439 2017-04-21  Bruno Haible  <bruno@clisp.org>
23441         Avoid accidental use of native Windows APIs on Cygwin.
23442         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
23443         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
23444         * lib/localename.c (WINDOWS_NATIVE): Likewise.
23446 2017-04-20  Bruno Haible  <bruno@clisp.org>
23448         Remove red warnings from the generated MODULES.html.
23449         * modules/fcntl (Description): Disambiguate function references.
23450         * modules/getcwd-lgpl (Description): Likewise.
23451         * modules/hostent (Description): Likewise.
23452         * modules/servent (Description): Likewise.
23453         * modules/tempname (Description): Likewise.
23455 2017-04-20  Bruno Haible  <bruno@clisp.org>
23457         verify tests: Fix spurious failure with parallel make.
23458         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
23459         EXTRA_PROGRAMS.
23460         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
23461         * tests/test-verify-try.c: New file.
23462         * modules/verify-tests (Files): Add it.
23463         (EXTRA_PROGRAMS): Add test-verify-try.
23464         (MOSTLYCLEANFILES): Update accordingly.
23465         Reported by Adam James Stewart <ajstewart@anl.gov>.
23467 2017-04-18  Bruno Haible  <bruno@clisp.org>
23469         vma-iter: Fix compilation error on Solaris 7.
23470         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
23471         like on IRIX, OSF/1.
23472         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23474 2017-04-18  Bruno Haible  <bruno@clisp.org>
23476         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
23477         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
23478         included.
23479         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
23480         <sys/procfs.h>.
23481         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
23482         <sys/procfs.h> cannot be included.
23483         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23485 2017-04-18  Bruno Haible  <bruno@clisp.org>
23487         getopt-gnu: Add comments.
23488         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
23489         * modules/getopt-gnu (configure.ac): Likewise.
23491 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
23493         regex: port better to Solaris 10
23494         Solaris 10 <locale.h> includes <libintl.h>, which #defines
23495         gettext, and this causes a double #define.
23496         Problem reported by Gavin Smith in:
23497         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
23498         * lib/regex_internal.h (gettext): #undef before #defining.
23500 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
23502         intprops: improve comments
23503         * lib/intprops.h: Improve and shorten commentary.
23504         For the record, if we ever run into a pedantic compiler that
23505         behaves differently from GCC when converting an out-of-range value
23506         to a signed integer, we can work around the problem with something
23507         like the following code, where UCT is the signed counterpart of T
23508         (UCT is sometimes narrower than UT) and all callers are changed
23509         accordingly:
23510         #if __SUNPRO_C <= 0x5120
23511         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
23512            ((t) ((ut) (a) op (ut) (b)))
23513         #else
23514         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
23515            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
23516             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
23517                + TYPE_MINIMUM (t)) \
23518             : (t) (uct) ((ut) (a) op (ut) (b)))
23519         #endif
23521 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
23523         intprops: try to avoid tickling similar bugs
23524         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
23525         needs to be the same width as T; it can be wider.
23526         Change callers so that UT is at least as wide as unsigned int,
23527         as I suspect that this is less likely to run into compiler bugs.
23529         intprops: port to Oracle Studio 12.3 x86
23530         Problem reported by Gavin Smith in:
23531         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
23532         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
23533         Convert unsigned to signed via the usual rather than the standard way,
23534         to avoid a compiler bug in Oracle Studio 12.3 x86.
23536 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
23538         getopt: prefer - to _ in new file names
23539         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
23540         * lib/getopt-core.h: Rename from lib/getopt_core.h.
23541         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
23542         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
23543         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
23544         All uses changed.
23546         getopt: port recent getopt changes to macOS
23547         Problem reported by Harald Maier (Bug#26398).
23548         The macOS C compiler uses __nonnull for its own purposes and that
23549         clashes with glibc's __nonnull.
23550         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
23551         * lib/getopt_cdefs.in.h (__nonnull): Remove.
23552         * lib/getopt_core.h (getopt):
23553         * lib/getopt_ext.h (getopt_long, getopt_long_only):
23554         Use _GL_ARG_NONNULL, not __nonnull.
23555         * lib/unistd.in.h: Move snippet hooks to before where the getopt
23556         .h files are included, so that _GL_ARG_NONNULL is defined in time.
23557         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
23558         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
23560 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
23562         getopt-gnu: omit some duplicate code
23563         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
23564         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
23565         gnulib-tool already does this.
23566         * modules/getopt-gnu (configure.ac): Omit code duplicated from
23567         getopt-posix, which we depend on.
23569         getopt-posix: use angle-bracket include
23570         * lib/getopt1.c: Include <config.h>, not "config.h".
23572 2017-04-06  Zack Weinberg  <zackw@panix.com>
23574         getopt: annotate files with relationship to glibc
23576         As the final act in this patchset, adjust the message at the top of
23577         each file to indicate which files are synced with glibc.  (This has
23578         already been done for most of the headers.)
23580         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
23581         Mention in top-of-file boilerplate that these files are shared
23582         between glibc and gnulib.
23585         getopt: split up getopt.in.h and eliminate __need_getopt
23587         Over in glibc, all of the __need macros are being phased out in favor
23588         of small headers that declare only the necessary components, as this
23589         is much simpler and less prone to bugs.  As getopt is shared with
23590         glibc, gnulib needs to do the same for __need_getopt.
23592         __need_getopt is misnamed; what it really means is "we want only the
23593         getopt features specified in POSIX, not the GNU extensions".  glibc
23594         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
23595         these files can be shared verbatim with gnulib.  The portability
23596         wrapper, on the other hand, they have renounced altogether; glibc's
23597         getopt.h will no longer be shared with gnulib at all.  In exchange,
23598         certain glibc-specific quirks (having to do with __posix_getopt) no
23599         longer need appear in gnulib's headers at all.
23601         This patch merges getopt_core.h and getopt_ext.h from glibc, and
23602         splits up the current gnulib-side portability wrapper into three
23603         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
23604         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
23605         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
23606         unistd.in.h just use them.  All new files are clearly marked with
23607         whether they are shared with glibc.
23609         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
23610         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
23611         with glibc, and ...
23612         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
23613         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
23614         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
23615         instead of defining __need_getopt and including the full getopt.h.
23617         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
23618         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
23619         * modules/getopt-posix (Files): Add new headers and sort list.
23620         (Depends-on): No longer need snippet/arg-nonnull.
23621         (Makefile.am): Generate getopt_cdefs.h.
23624         getopt: better handling of ambiguous options
23626         glibc's getopt uses alloca to construct a linked list of possibilities
23627         for an "ambiguous" long option.  In gnulib, malloc should be used
23628         instead.  Providing for both cases complicates things a fair bit.
23630         This patch rewrites ambiguous-option handling to use a boolean vector
23631         instead of a linked list.  There is then only one allocation that
23632         might need freeing; in glibc it can honor __libc_use_alloca as usual,
23633         and in gnulib we define __libc_use_alloca to always be false, so we
23634         don't need ifdefs in the middle of the function.  This should also be
23635         slightly more efficient in the normal case of long options being fully
23636         spelled out -- I think most people aren't even aware they _can_
23637         sometimes abbreviate long options.
23639         One interesting consequence is that the list of possibilities is now
23640         printed in exactly the order they appear in the list of long options,
23641         instead of the first possibility being shuffled to the end.
23643         (The patch looks bigger than it really is because there's a fair bit
23644         of reindentation and code rearrangement.)
23646         * lib/getopt.c: When used standalone, define __libc_use_alloca
23647         as always false and alloca to abort if called.
23648         (process_long_option): Rewrite handling of ambiguous long options
23649         to use a single boolean vector, not a linked list; use
23650         __libc_use_alloca to decide whether to allocate this using alloca.
23653         getopt: refactor long-option handling
23655         There were two copies of the bulk of the code to handle long options.
23656         Now there is only one.
23658         This change temporarily removes the logic to avoid using alloca when
23659         standalone; the next patch in the series will restore it.
23661         * lib/getopt.c (process_long_option): New function split out
23662         from _getopt_internal_r.
23663         (_getopt_internal_r): Replace both copies of the long-option
23664         processing code with calls to process_long_option.
23667         getopt: tidy up _getopt_initialize a bit
23669         _getopt_data.__posixly_correct is completely redundant to
23670         _getopt_data.__ordering, and some work that logically belongs in
23671         _getopt_initialize was being done by _getopt_internal_r, making the
23672         code harder to understand.
23674         As a side effect, getenv will no longer be called if the first
23675         character of the options string is '+' or '-', which is probably a
23676         Good Thing.  (Perhaps we should have a flag character that
23677         specifically asks for the permutation behavior?)
23679         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
23680         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
23681         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
23684         getopt: merge from glibc: repetition reduction
23686         The definitions of the entry point functions 'getopt' and
23687         '__posix_getopt' can be made substantially less repetitive with a
23688         helper macro.
23690         While I was merging the const-correctness changes from gnulib into
23691         glibc I noticed there are still some unnecessary casts in
23692         _getopt_internal_r.
23694         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
23695         a macro.  Consistently cast 'argv' to 'char **' when calling
23696         _getopt_internal.
23697         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
23700         getopt: clean up error reporting
23702         getopt can print a whole bunch of error messages, and when used
23703         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
23704         cancellation point and getopt isn't, and also applying fprintf to a
23705         stream in wide-character mode is not allowed.  So every single error
23706         reporting case has an #ifdef _LIBC block in which it calls internal
23707         libc functions instead.  The counterpart patch series in glibc makes
23708         it possible to simplify all of that down to a set of #defines at the
23709         top of the file; core code is written as if it is safe to just call
23710         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
23711         call any *other* stdio functions.)
23713         * lib/getopt.c: When _LIBC is defined, define fprintf to
23714         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
23715         to _IO_funlockfile.  When neither _LIBC nor
23716         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
23717         funlockfile as no-ops.
23718         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
23719         standalone error-printing code can now be used for libc as well.
23720         Add an flockfile/funlockfile pair around one case where the error
23721         message is printed in several chunks.  Don't use fputc.
23724         getopt: fix fencepost error in ambiguous-W-option handling
23726         getopt_long contains an undocumented (AFAICT) feature in which, if you
23727         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
23728         treated as equivalent to '--foo'.  This is implemented with a partial
23729         second copy of the code for handling long options, and that code
23730         increments optind one too many times when recovering from an ambiguous
23731         abbreviated option, which can cause the main loop to walk past the end
23732         of argv and crash.
23734         I discovered this while writing a test case that tries to exercise all
23735         of getopt's error reporting paths; I wouldn't be surprised to learn
23736         that this feature is never used by real applications.
23738         * lib/getopt.c (_getopt_internal_r): Don't increment
23739         d->optind a second time when reporting ambiguous -W options.
23742         getopt: clean up getopt.c and getopt1.c file headers
23744         In getopt.c, there is no need to include wchar.h at all, and it is
23745         safe nowadays to assume that stdlib.h does declare getenv (several
23746         other gnulib modules make this assumption).
23748         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
23749         by using "" inclusions consistently, and there is no actual need to
23750         include stdlib.h (except in the #ifdef TEST block, where it should be
23751         unconditional), nor to provide a backup definition of NULL at all.
23753         * lib/getopt1.c: Simplify #ifdeffage at top of file.
23754         Move inclusion of stdlib.h to #ifdef TEST block and make
23755         unconditional.  Do not define NULL.
23756         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
23757         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
23758         * modules/getopt-gnu, modules/getopt-posix: Don't call
23759         gl_PREREQ_GETENV.
23762         getopt: harmonize comments with glibc
23764         The comments explaining how the behavior of 'getopt' varies depending
23765         on whether it's the standalone version and whether there are special
23766         characters at the beginning of the options string were inconsistent
23767         between gnulib and glibc, and also out of sync with the code.
23769         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
23772         getopt: remove USE_NONOPTION_FLAGS
23774         getopt includes code to parse an environment variable named
23775         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
23776         in decimal); but all of it has been #ifdefed out since 2001, with no
23777         official way to turn it back on.
23779         According to commentary in glibc's config.h.in, bash version 2.0
23780         set this environment variable to indicate argv elements that were
23781         the result of glob expansion and therefore should not be treated
23782         as options, but the feature was "disabled later" because "it
23783         caused problems".  According to bash's CHANGES file, "later" was
23784         release 2.01; it gives no more detail about what the problems
23785         were.
23787         Version 2.0 of bash was released on the last day of 1996, and version
23788         2.01 in June of 1997.  Twenty years later, I think it is safe to
23789         assume that this environment variable isn't coming back.
23791         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
23792         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
23793         __libc_argc and __libc_argv externs, which were only used by
23794         #ifdef USE_NONOPTION_FLAGS blocks.
23797         getopt: tabify, in preparation for merge with glibc
23799         glibc sticks to the GNU default of indenting with a mix of
23800         8-column tabs and spaces; make the gnulib copy match.
23802         getopt.h is not included because it is *not* going to be merged in its
23803         present form.
23805         * getopt.c, getopt1.c, getopt_int.h: Tabify.
23807 2017-04-02  Bruno Haible  <bruno@clisp.org>
23809         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
23810         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
23811         like it was done in modules/relocatable-lib on 2011-05-21 and in
23812         modules/relocatable-prog on 2011-08-15.
23813         Reported by Reuben Thomas <rrt@sc3d.org>.
23815 2017-03-31  Bruno Haible  <bruno@clisp.org>
23817         glob: Fix invalid free() call.
23818         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
23819         static storage to home_dir.
23820         Reported by Coverity via Tim Rühsen.
23822 2017-03-31  Bruno Haible  <bruno@clisp.org>
23824         glob: Fix memory leaks.
23825         * lib/glob.c (glob): Free allocated memory before returning.
23826         Reported by Coverity via Tim Rühsen.
23828 2017-03-31  Bruno Haible  <bruno@clisp.org>
23830         md5, sha1, sha256, sha512: Add comments regarding correctness.
23831         * lib/md5.h (buflen): Add comments regarding range.
23832         * lib/sha1.h (buflen): Likewise.
23833         * lib/sha256.h (buflen): Likewise.
23834         * lib/sha512.h (buflen): Likewise.
23835         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
23836         * lib/sha1.c (sha1_process_bytes): Likewise.
23837         * lib/sha256.c (sha256_process_bytes): Likewise.
23838         * lib/sha512.c (sha512_process_bytes): Likewise.
23839         Reported by Coverity via Tim Rühsen.
23841 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
23843         getopt: merge from glibc
23844         This does not change anything substantial; it merely simplifies
23845         hypothetical merges back to glibc.
23846         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
23847         Change copyright notice to match what is in glibc.
23848         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
23849         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
23850         __open_memstream rather than open_memstream and __glibc_likely
23851         instead of __builtin_expect.
23852         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
23854 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
23856         dfa: make [0-9] faster in non-C locales
23857         Problem reported by John P. Linderman (Bug#26193).
23858         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
23859         If both ends of the range are ASCII digits, do not worry about
23860         multi-character collating sequences and the like.  Be consistent
23861         about using isalpha as a precondition for setbit_case_fold_c.
23863 2017-03-19  Bruno Haible  <bruno@clisp.org>
23865         lock: Fix compilation error with HP-UX IA64 cc.
23866         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
23867         weak on non-glibc platforms.
23869 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
23871         stdalign: tweak version# and test for HP-UX IA64
23872         Problems reported by Bruno Haible in:
23873         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
23874         * lib/stdalign.in.h (_Alignas):
23875         * m4/stdalign.m4 (gl_STDALIGN_H):
23876         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
23877         used octal (as that is how they document it), but it is decimal in
23878         practice now and the ancient implementations no longer matter.
23879         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
23881 2017-03-19  Bruno Haible  <bruno@clisp.org>
23883         vma-iter: Add support for Solaris.
23884         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
23885         approach.
23886         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
23887         * lib/get-rusage-as.c: Update comment about Solaris.
23888         * lib/get-rusage-data.c: Likewise.
23890 2017-03-19  Bruno Haible  <bruno@clisp.org>
23892         vma-iter: Prefer HP-UX specific API on HP-UX.
23893         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
23894         * lib/vma-iter.h: Update.
23895         Just in case HP-UX ever implements mquery().
23897 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
23899         stdalign: restore previous behavior for HP-UX IA64
23900         See Bruno Haible's email in:
23901         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
23902         which cites p 150 of a manual saying that 'aligned' works on Itanium.
23903         * lib/stdalign.in.h (_Alignas):
23904         Assume the '061200' applies to Itanium, not to PA-RISC.
23905         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
23907 2017-03-17  Bruno Haible  <bruno@clisp.org>
23909         stat-time, timespec: Support use of the header files in C++ mode.
23910         * lib/stat-time.h: Add "C" linkage declaration.
23911         * lib/timespec.h: Likewise.
23913 2017-03-17  Bruno Haible  <bruno@clisp.org>
23915         stdalign: Make it work with HP-UX cc.
23916         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
23917         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
23918         for HP-UX cc.
23920 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
23922         flexmember: try to detect HP-UX 11.31 cc bug
23923         Problem reported by Bruno Haible in:
23924         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
23925         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
23926         Attempt to detect bug in HP-UX 11.31 cc.
23928 2017-03-16  Bruno Haible  <bruno@clisp.org>
23930         stdint: Fix test compilation failure with HP-UX 11 cc.
23931         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
23932         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
23933         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
23934         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
23936 2017-03-14  Bruno Haible  <bruno@clisp.org>
23938         gnulib-tool: Don't produce a tests directory with only snippet .h files.
23939         * gnulib-tool (func_modules_transitive_closure_separately): If
23940         testsrelated_modules ends up with no "real" modules, aside from
23941         modules with applicability 'all', set it to empty.
23943 2017-03-14  Bruno Haible  <bruno@clisp.org>
23945         vma-iter: Add support for HP-UX.
23946         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
23947         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
23948         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
23949         * lib/get-rusage-as.c: Update comment about HP-UX.
23950         * lib/get-rusage-data.c: Likewise.
23951         (get_rusage_data): Use get_rusage_data_via_setrlimit.
23953 2017-03-14  Bruno Haible  <bruno@clisp.org>
23955         limits-h: Make it work with HP-UX cc.
23956         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
23957         defined.
23959 2017-03-14  Bruno Haible  <bruno@clisp.org>
23961         Fix test failures on DragonFlyBSD.
23962         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
23963         * tests/test-select.h (test_bad_fd): Likewise.
23964         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
23966 2017-03-14  Bruno Haible  <bruno@clisp.org>
23968         freadahead: Silence warning on DragonFlyBSD.
23969         * lib/freadahead.c (__sreadahead): Declare ourselves.
23971 2017-03-14  Bruno Haible  <bruno@clisp.org>
23973         vma-iter: Add comment about AIX.
23974         * lib/vma-iter.c: Add comment about why this module is not implemented
23975         on AIX.
23977 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
23979         snippets: move unadjusted snippet sources to lib
23980         Problem reported by Michal Privoznik in:
23981         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
23982         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
23983         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
23984         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
23985         * lib/unused-parameter.h: Rename from
23986         build-aux/snippet/unused-parameter.h.
23987         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
23988         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
23989         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
23990         * modules/snippet/c++defs (Files:, CXXDEFS_H):
23991         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
23992         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
23993         Adjust to file renamings.
23995 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
23997         gnulib-tool: don't automatically distribute files from top/
23998         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
23999         not distribute top/README-release by default, don't distribute files
24000         from top/ unconditionally.
24001         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
24002         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
24004 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
24006         gnulib-tool: fix typo in comment output
24007         * gnulib-tool (func_import): Fix typo with previous change.
24009         snippets: work around GNU Make 3.82 VPATH
24010         When using 'gnulib-tool --gnu-make' on Emacs, and building
24011         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
24012         an out-of-source (VPATH) build failed because the sans-copyright
24013         snippet file was not built before the file that used it.
24014         Presumably this is some sort of VPATH thing.  Work around the
24015         problem by using the original snippet, i.e., don’t bother to
24016         remove its copyright notice.
24017         * modules/snippet/_Noreturn, modules/snippet/link-warning:
24018         Don’t assume Automake in comments.  Omit long-incorrect comment.
24019         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
24020         (MOSTLYCLEANFILES):
24021         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
24022         (MOSTLYCLEANFILES):
24023         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
24024         (MOSTLYCLEANFILES):
24025         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
24026         (MOSTLYCLEANFILES):
24027         Remove.
24028         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
24029         * modules/snippet/c++defs (CXXDEFS_H):
24030         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
24031         * modules/snippet/warn-on-use (WARN_ON_USE_H):
24032         Don’t bother to remove the copyright notice; just use the
24033         original snippet as-is.
24035 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
24037         gnulib-tool: minor --gnu-make fixups
24038         * gnulib-tool (func_emit_lib_Makefile_am):
24039         Remove useless code that was a blind alley during implementation.
24040         Problem reported by Thien-Thi Nguyen in:
24041         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
24042         (func_import): Note the "--gnu-make" option in the output comment.
24044 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
24046         gnulib-tool: new option --gnu-make
24047         This is for applications like GNU Emacs that use GNU Make
24048         features instead of Automake.
24049         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
24050         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
24051         Do not assume Automake.
24052         * gnulib-tool (func_determine_path_separator)
24053         (func_modules_transitive_closure, func_update_file)
24054         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
24055         (func_import): Add support for --gnu-make.
24057 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
24059         gnulib-common.m4: avoid aclocal.m4 bloat
24060         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
24061         Hide AM_PROG_AR from aclocal, so that aclocal does not
24062         install irrelevant macro definitions into aclocal.m4.
24064 2017-03-10  Bruno Haible  <bruno@clisp.org>
24066         vma-iter: Let callers know about error.
24067         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
24068         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
24070 2017-03-05  Bruno Haible  <bruno@clisp.org>
24072         Fix value of LD for 64-bit compilers on AIX.
24073         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
24074         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
24076 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
24078         dtotimespec: simplify
24079         * lib/dtotimespec.c (dtotimespec): Simplify.
24081 2017-03-04  Bruno Haible  <bruno@clisp.org>
24083         test-calloc-gnu: Reenable test also for GCC 7.
24084         * tests/test-calloc-gnu.c (eight): New function.
24085         (main): Don't skip test; use eight() instead.
24087 2017-03-04  Jim Meyering  <meyering@fb.com>
24089         test-calloc-gnu: port to GCC7
24090         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
24091         that attempts to calloc more than SIZE_MAX bytes, because GCC7
24092         and newer would detect that at compilation time.
24094 2017-03-04  Bruno Haible  <bruno@clisp.org>
24096         tests: Avoid compiler warning about uses of null_ptr.
24097         * tests/null-ptr.h: New file.
24098         * tests/test-canonicalize.c: Include null-ptr.h.
24099         (null_ptr): Remove function.
24100         * tests/test-canonicalize-lgpl.c: Likewise.
24101         * tests/test-memmem.c: Likewise.
24102         * tests/test-ptsname_r.c: Likewise.
24103         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
24104         * modules/canonicalize-lgpl-tests: Likewise.
24105         * modules/memmem-tests: Likewise.
24106         * modules/ptsname_r-tests: Likewise.
24107         Reported by Jim Meyering.
24109 2017-03-03  Bruno Haible  <bruno@clisp.org>
24111         doc: Mention Mac OS X deficiencies regarding semaphores.
24112         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
24113         * doc/posix-functions/sem_destroy.texi: Likewise.
24114         * doc/posix-functions/sem_getvalue.texi: Likewise.
24116 2017-03-03  Bruno Haible  <bruno@clisp.org>
24118         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
24119         Reported by Assaf Gordon <assafgordon@gmail.com> via
24120         Pádraig Brady <P@draigBrady.com>.
24121         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
24122         semaphores.
24123         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
24124         (atomic_int_semaphore): New macro.
24126 2017-02-28  Bruno Haible  <bruno@clisp.org>
24128         perror tests: Tweak for z/OS.
24129         Reported by Daniel Richard G. <skunk@iskunk.org>.
24130         * tests/test-perror.sh: Don't fail z/OS style perror output.
24132 2017-02-26  Bruno Haible  <bruno@clisp.org>
24134         nproc: Refactor large function.
24135         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
24136         from num_processors.
24137         (num_processors): In this function, only deal with OMP.
24139 2017-02-26  Pádraig Brady  <P@draigBrady.com>
24141         nproc: adjust handling of OpenMP environment variables
24142         to match the return value from omp_get_num_threads(), i.e.:
24143          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
24144          - Treat 0 as an invalid value and ignore
24145         Also remove the call to omp_get_num_threads() because
24146         it's ineffective without the omp pragmas in place.
24147         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
24148         so that it can be ignored.
24149         (num_processors): Honor OMP_THREAD_LIMIT even without
24150         OMP_NUM_THREADS being set.  Also fix a typo in the environment
24151         variable being checked, from the previous recent commit.
24153 2017-02-26  Pádraig Brady  <P@draigBrady.com>
24155         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
24156         * lib/nproc.c (parse_omp_threads): A new function refactored
24157         from num_processors() to support parsing both of the
24158         above environment variables.
24159         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
24160         to accurately reflect the current OpenMP nesting level.
24161         Also support the OMP_THREAD_LIMIT environment variable
24162         to limit the max value determined from OMP_NUM_THREADS.
24163         * modules/nproc: Depend on minmax header.
24164         Suggested by Oliver Heimlich.
24166 2017-02-25  Bruno Haible  <bruno@clisp.org>
24168         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
24169         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
24171 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24173         ftoastr: port to -Wdouble-promotion
24174         Work around -Wdouble-promotion false alarm in recent GCCs.
24175         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
24176         (ftoastr_snprintf, FTOASTR): Use it.
24178 2017-02-21  Bruno Haible  <bruno@clisp.org>
24180         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
24181         Reported by Rene Saavedra <rennes@openmailbox.org> in
24182         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
24183         * lib/glthread/lock.h: On glibc systems without
24184         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
24185         implementation of rwlocks.
24186         * lib/glthread/lock.c: Likewise.
24188 2017-02-20  Bruno Haible  <bruno@clisp.org>
24190         lock tests: Fix build failure on z/OS.
24191         Reported by Daniel Richard G. <skunk@iskunk.org>.
24192         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
24193         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
24194         exist.
24196 2017-02-19  Bruno Haible  <bruno@clisp.org>
24198         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
24199         This helps when CC=clang.
24200         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
24201         of /usr/bin/gcc.
24203         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
24204         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
24206 2017-02-19  Bruno Haible  <bruno@clisp.org>
24208         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
24209         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
24210         --with-tests --single-configure is specified.
24212 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
24214         users.txt: Update links, use HTTPS where possible
24215         * users.txt: Updated to HTTPS where possible,
24216         fixed some links to new locations.
24218 2017-02-16  Bruno Haible  <bruno@clisp.org>
24220         xbinary-io: Fix inlining.
24221         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
24223 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
24225         xbinary-io: rename from xsetmode
24226         This patch is taken from suggestions by Bruno Haible in:
24227         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
24228         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
24229         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
24230         not ENOTTY, when it is an inappropriate device.
24231         * lib/binary-io.h (SET_BINARY): Resurrect.
24232         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
24233         (xset_binary_mode_error): Rename from xsetmode_error.
24234         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
24235         (xset_binary_mode): Rename from xsetmode.
24236         All uses changed.
24237         * modules/xbinary-io: Rename from modules/xsetmode.
24238         Update file names.
24239         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
24240         * NEWS: Update to match revised behavior.
24242 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
24244         tests: Adjust to recent SET_BINARY change
24245         * tests/test-binary-io.c (main):
24246         * tests/test-binary-io.sh: Remove test for SET_BINARY.
24247         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
24248         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
24249         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
24251         xsetmode: new module
24252         This is to fix a problem noted by Eric Blake.
24253         Code was using xfreopen to change files to binary mode, but this
24254         fails for stdout when in append mode.  Such code should use
24255         xsetmode instead.
24256         * NEWS: Document incompatible changes to binary-io module.
24257         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
24258         New function.
24259         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
24260         (set_binary_mode): New function, which also checks for tty.
24261         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
24263 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
24265         headers: fix begin-end typos
24266         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
24267         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
24269         selinux-h: port to PGI 16.10
24270         * lib/se-selinux.in.h: Don't assume that include_next skips over
24271         duplicate -I DIR options.
24273         argp: port to PGI 16.10
24274         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
24276 2017-02-13  Darshit Shah  <darnir@gnu.org>
24278         unicase: Update function protoype to match definition.
24279         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
24280         uses 'size_t' as the datatype for the 'len' parameter in the functions
24281         it generates. Update the prototype specified here to match the newly
24282         generated function.
24284 2017-02-12  Bruno Haible  <bruno@clisp.org>
24286         times test: Avoid gcc warnings on Linux/x32.
24287         * tests/test-times.c (main): Really cast printf arguments from clock_t
24288         to 'long int'.
24290 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
24292         glob: port better to emscripten
24293         Problem reported by Bruno Haible in:
24294         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
24295         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
24297 2017-02-11  Bruno Haible  <bruno@clisp.org>
24299         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
24300         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
24301         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
24302         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
24303         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
24304         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
24305         Distinguish hppa64 from hppa.
24307 2017-02-10  Bruno Haible  <bruno@clisp.org>
24309         search: Don't assume that tsearch() exists if 'VISIT' is defined.
24310         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
24311         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
24312         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
24314 2017-02-09  Bruno Haible  <bruno@clisp.org>
24316         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
24317         * doc/gnulib.texi (Libtool and Windows): Recommend
24318         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
24319         Reported by Reuben Thomas <rrt@sc3d.org>.
24321 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
24323         stddef-tests: port to SIZE_MAX <= INT_MAX
24324         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
24325         Do not assume that INT_MAX < SIZE_MAX.
24327 2017-02-01  Bruno Haible  <bruno@clisp.org>
24329         lock tests: Fix link error.
24330         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
24331         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24333 2017-01-31  Bruno Haible  <bruno@clisp.org>
24335         lock: Fix link error (regression from 2017-01-05).
24336         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
24337         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
24338         pthread_rwlockattr_destroy weak.
24339         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24341 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
24343         Port to PGI 16.10 x86-64
24344         This patch fixes one real bug in gl_anylinked_list2.h, along with
24345         some minor glitches that are not bugs.  It does not silence PGI’s
24346         thousands of bogus warnings when compiling test-intprops.c.
24347         Fortunately, the warnings do not cause a failure.
24348         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
24349         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
24350         My goodness, PGI goes back a long ways - this predates C89!
24351         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
24352         For example, ASYNCSAFE (const void *) should expand to
24353         ‘const void *volatile’, not to ‘volatile const void *’.
24354         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
24355         * lib/verify.h (verify) [!__GNUC__]:
24356         Use shorter albeit meaningless string to bypass silly compiler limits.
24357         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
24358         * tests/nan.h (NaNf, NaNd, NaNl):
24359         Use static functions to avoid misguided compiler diagnostics.
24360         Is there some reason we don’t use static functions on all platforms?
24362 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
24364         parse-datetime: handle timezones reentrantly
24365         This API change was prompted by a report by Pádraig Brady in:
24366         https://bug.debian.org/851934#10
24367         To help fix the bug, make parse_datetime2 more reentrant.
24368         * NEWS: Document this incompatible change.
24369         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
24370         Add two arguments, the timezone and the timezone name.
24371         All callers changed.  If TZ="..." is specified, use it for
24372         calculating defaults.
24373         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
24374         this code should be usable in a library.
24375         (mktime_ok, get_effective_timezone):
24376         Accept timezone arg too.  All callers changed.
24377         (get_tz): Remove.
24378         (get_effective_timezone): Check for failures.
24380 2017-01-20  Eric Blake  <eblake@redhat.com>
24382         localename: port to cygwin 2.6
24383         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
24384         Cygwin.
24385         * modules/localename (Depends-on): Add extensions, since
24386         NL_LOCALE_NAME() is not visible without it.
24388 2017-01-17  Pádraig Brady  <P@draigBrady.com>
24390         parse-datetime: fix dependence on AC_PROG_SED
24391         * modules/parse-datetime: Use `sed` directly like all other modules.
24392         Reported by J William Piggott
24394 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
24396         intprops: update doc URLs
24397         * doc/intprops.texi (Integer Range Overflow): Update URLs.
24399 2017-01-16  Bruno Haible  <bruno@clisp.org>
24401         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
24402         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
24403         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
24404         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
24405         distinguish s390 and s390x.
24406         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
24407         * NEWS: Mention the change regarding 'armel'.
24409 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
24411         localeinfo: case_folded_counterparts and WEOF
24412         * NEWS: Document this.
24413         * lib/localeinfo.c (case_folded_counterparts):
24414         First arg is now wint_t, not wchar_t.  This generalizes the
24415         function to also work on WEOF, where it returns 0.
24417         dfa: port to gcc -fsanitize=undefined
24418         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
24419         as this runs afoul of gcc -fsanitize=undefined.
24421 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
24423         strftime: %z is -00 if unknown
24424         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
24425         the caller's responsibility to set 'negative_number'.  All uses changed.
24426         (__strftime_internal): Put '-' before a zero UTC offset if the time
24427         zone abbreviation starts with "-", which is the recently-introduced
24428         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
24429         * tests/test-strftime.c: Test for this.
24431 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
24433         dfa: port to older GCC
24434         Problem reported by Assaf Gordon in:
24435         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
24436         * modules/c99: New module.  This merely attempts to use the latest
24437         C version, which should be enough to solve this particular problem.
24438         The idea is to document which Gnulib modules assume C99 or later.
24439         * modules/dfa (Depends-on): Add it.
24441 2017-01-10  Bruno Haible  <bruno@clisp.org>
24443         Update DEPENDENCIES.
24444         * DEPENDENCIES: List only https URLs. Update recommended version for
24445         autoconf, automake, gperf.
24447 2017-01-10  Jim Meyering  <meyering@fb.com>
24449         maint.mk: enforce spelling of "timestamp" (i.e., no space)
24450         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
24451         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
24453 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
24455         dfa: minor simplification with emptyset
24456         * lib/dfa.c (build_state): Simplify by using emptyset.
24458 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24460         dfa: shrink constraints from 4 bits to 3
24461         * lib/dfa.c (newline_constraint, letter_constraint)
24462         (other_constraint, prev_newline_dependent)
24463         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
24464         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
24465         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
24466         Constraints need only 3 bits, not 4.  Using smaller integers
24467         shrinks the code a bit and makes grep a tad faster on x86-64.
24469         dfa: omit unnecessary ptrdiff_t check
24470         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
24471         overflow, since xnmalloc does that now.
24473         dfa: omit unnecessary allocation
24474         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
24475         an all-zero follow set works just fine.
24477         dfa: omit unused local
24478         * lib/dfa.c (build_state): Fix up recent change.
24480         maint: remove stray .texi files
24481         Although these were superseded by other files like
24482         doc/posix-functions/ctime.texi, the old files were not removed.
24483         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
24485 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
24487         getprogname: fix port to IRIX
24488         * lib/getprogname.c (getprogname) [__sgi]:
24489         Don't dump core if malloc returns NULL.
24491         dfa: fix reallocation bug when matching newlines
24492         Problem reported for sed by S. Gilles (Bug#25390).
24493         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
24494         (dfastate): Reallocate before moving any newline transition ...
24495         (build_state): ... instead of reallocating here, where it is too late.
24497 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
24499         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
24500         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
24502 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
24504         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
24505         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
24507 2017-01-07  Bruno Haible  <bruno@clisp.org>
24509         stdioext: Port to Minix 3.2 and newer.
24510         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
24511         * lib/fseeko.c (fseeko): Likewise.
24512         Reported by Nelson Beebe via Paul Eggert.
24514 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
24516         getprogname: port to IRIX
24517         * lib/getprogname.c (getprogname): Port to IRIX.
24518         Based on an idea by Bastien Roucariès at:
24519         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
24520         via code from Bruno Haible at:
24521         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
24523         localename-tests: port to NetBSD 7
24524         Problem reported by Nelson H. F. Beebe.
24525         * tests/test-localename.c:
24526         Test newlocale and uselocale only if both exist.
24528         glob, intprops, xalloc: work around Clang bug
24529         Work around LLVM bug 16404, which is still not fixed.
24530         https://llvm.org/bugs/show_bug.cgi?id=16404
24531         Problem reported by Nelson H. F. Beebe.
24532         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
24533         Remove.
24534         * lib/glob.c (size_add_wrapv):
24535         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
24536         * lib/xalloc-oversized.h (xalloc_oversized):
24537         Do not use overflow builtins if Clang.
24539         dfa: fix 'return' typo
24540         Problem reported by Nelson H. F. Beebe.
24541         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
24543 2017-01-05  Pádraig Brady  <P@draigBrady.com>
24545         parse-datetime: fix generated paths for coverage files
24546         * modules/parse-datetime: Adjust the paths for parse-datetime.y
24547         within parse-datetime.c, so that gcc generates appropriate .gcno
24548         files, allowing lcov to proceed without error.  Previously it
24549         would error trying to find "lib/lib/parse-datetime.y".
24551 2017-01-05  Pádraig Brady  <P@draigBrady.com>
24553         maint.mk: support parallel execution of coverage
24554         * top/maint.mk (coverage): Run dependencies serially,
24555         thus supporting parallel processing of each one,
24556         particularly build-coverage, which builds and runs tests.
24558 2017-01-05  Bruno Haible  <bruno@clisp.org>
24560         lock tests: Prefer semaphore over mutex.
24561         * tests/test-lock.c (USE_SEMAPHORE): New constant.
24562         (struct atomic_int, init_atomic_int, get_atomic_int_value,
24563         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
24564         Suggested by Torvald Riegel <triegel@redhat.com>.
24566 2017-01-05  Bruno Haible  <bruno@clisp.org>
24568         lock: Provide guarantee to avoid writer starvation for rwlocks.
24569         The rationale is: 1) Read-preferring read-write locks are prone to
24570         writer starvation if the number of reader threads multiplied by the
24571         percentage of time they have the lock held is too high. 2) Write-
24572         preferring read-write locks are the only reliable way to avoid this.
24573         3) There have been reports of 'test-lock' hanging on glibc systems
24574         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
24575         and glibc indeed implements read-preferring rwlocks by default, see
24576         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
24577         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
24578         * m4/pthread_rwlock_rdlock.m4: New file.
24579         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
24580         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
24581         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
24582         of rwlock initialization on glibc systems without
24583         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
24584         of rwlocks altogether on non-glibc systems without
24585         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
24586         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
24587         * lib/glthread/lock.c [USE_POSIX_THREADS]
24588         (glthread_rwlock_init_for_glibc): New function.
24589         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
24590         comment.
24591         [USE_PTH_THREADS]: New implementation of rwlocks.
24592         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
24593         readers.
24594         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
24595         (Depends-on): Add 'extensions'.
24596         * tests/test-rwlock1.c: New file.
24597         * lock-tests (Files): Add it.
24598         (Depends-on): Add usleep.
24599         (Makefile.am): Add test-rwlock1 to the tests.
24601 2017-01-05  Bruno Haible  <bruno@clisp.org>
24603         thread: Fix pth port.
24604         * lib/glthread/thread.h (pth_init): Declare weak.
24605         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
24606         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
24607         function.
24609 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
24611         parse-datetime: fix debug message on lone year number
24612         Input dates such as
24613           date -d "Apr 11 22:59:00 2011"
24614         are parsed as date (Apr 11, with default year 2016), then time, then a
24615         number (2011). Based on the combination of previously seen tokens,
24616         'digits_to_date_time' determines 2011 to be a year value.
24617         This fixes the debug messages to correctly show the updated year.
24618         Before:
24619             $ date --debug -d 'Apr 11 22:59:00 2011'
24620             date: parsed date part: (Y-M-D) 2016-04-11
24621             date: parsed time part: 22:59:00
24622             date: parsed number part: today/this/now
24623         After:
24624             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
24625             date: parsed date part: (Y-M-D) 2016-04-11
24626             date: parsed time part: 22:59:00
24627             date: parsed number part: year: 2011
24628         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
24629         'debug_year_seen' member fields.
24630         (digits_to_date_time): Update 'year_seen' as needed.
24631         (debug_print_current_time): Inform about year updates.
24632         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
24634         parse-datetime: fix local timezone debug messages
24635         "Local timezones" are strings that affect only DST relative to the
24636         default timezone. The debug messages in parse-datetime.y printed
24637         wrong information when encountering local timezones.
24638         Examples:
24639         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
24640              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
24641              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
24642         When the default timezone relates to the zone strings, EET/EEST are
24643         parsed as local timezones (tLOCAL_ZONE), and only change the DST
24644         value (0/1, respectively):
24645              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
24646              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
24647         * lib/parse-datetime.y (debug_print_current_time): If local timezone
24648         was seen, inform about DST change, don't print actual timezone.
24649         (debug_strfdatetime): If local timezone was seen, use default timezone
24650         (and adjust as needed) instead of using incorrect timezone.
24651         (parse_datetime2): Use correct time-zone source string, and adjust
24652         default timezone as needed.
24654         parse-datetime: add debug warning about DST changes
24655         Incorrect date arithmetic due to daylight saving time (DST) are a
24656         common (false) bug report in coreutils.
24657         Detect two such cases and print a warning:
24658         1. year/month/day adjustments (performed on 'struct tm'),
24659            where 'mktime' returns a different isdst value.
24660         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
24661            where the result of 'localtime(3)' on the value will return a
24662            different isdst value.
24663         Note: DST changes could be harmless or unnoticeable.
24664         Examples (with 'TZ=America/New_York'):
24665         Unnoticeable: result is 2016-Dec-14
24666            $ date -d '2016-06-15 EDT + 6 months' +%b
24667            Dec
24668         Unnoticeable: result is 2016-Dec-15 11:00:00
24669            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
24670            2016-12-15
24671         This is unexpected:
24672            $ date -d '2016-06-01 EDT + 6 months' +%F
24673            2016-11-30
24674         The new debug warnings will show:
24675            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
24676            ...
24677            date: warning: daylight saving time changed after date adjustment
24678            ...
24679         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
24680         print an appropriate warning message.
24682         parse-datetime: add debug warning about date arithmetic
24683         Date arithmetic are done directly on the fields of 'struct tm',
24684         which can result in invalid dates. Normalization with 'mktime(3)'
24685         will then produce a different date - which might cause unexpected
24686         results.
24687         Examples:
24688           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
24689           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
24690         Note that date normalization is not inherently wrong and not rejected,
24691         as it has legitimate uses:
24692           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
24693         If the user asked to adjust months but 'mday' changed,
24694         or user asked to adjust years but 'month' changed - warn about it.
24695             $ ./src/date --debug -d '2016-10-31 - 1 month'
24696             ...
24697             date: warning: when adding relative months/years, \
24698                            it is recommended to specify the 15th of the month
24699             ...
24700             date: warning: month/year adjustment resulted in shifted dates:
24701             date:      adjusted Y M D: 2016 09 31
24702             date:    normalized Y M D: 2010 10 01
24703             ...
24704         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
24705         a warning message. Improve recommendation of when to use 15 of the
24706         month or noon for date arithmetic.
24708         parse-datetime: fix debug message of relative part after timezone
24709         Relative part (e.g '+8 days') after a timezone string was not
24710         reported (was only reported after a timezone number). Due to the
24711         parser's structure, timezone strings with numbers were handled
24712         separately.
24713         before:
24714              # Timezone number + relative part: OK
24715              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
24716              ...
24717              date: parsed relative part: -8 day(s)
24718              # Timezone string + relative part: missing
24719              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
24720              [ missing message ]
24721         After: messages are printed in both cases.
24722         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
24724         parse-datetime: fix incorrect debug message on lone number
24725         A lone number is an absolute value, not a relative time part.
24726         before:
24727            $ date --debug -d '20130101'
24728            date: parsed number part: today/this/now
24729         After:
24730            $ ./src/date --debug -d '20130101'
24731            date: parsed number part: (Y-M-D) 2013-01-01
24732         * lib/parse-datetime.y ('item'/'number' tokens): Call
24733         'debug_print_current_time' instead of 'debug_print_relative_time'.
24735 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
24737         doc: modernize for C11 etc.
24738         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
24739         for C11, MinGW, etc.  This responds to Paul Smith's question in:
24740         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
24742         dfa: prefer functions to FETCH_WC macro
24743         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
24744         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
24745         wint_t result into DFA->lex.wctok instead of to a separate arg.
24746         All callers changed.  Move more local decls closer to where
24747         they're used.
24749         dfa: narrow more local var scopes
24750         * lib/dfa.c: Move more local decls to be more local.
24752         dfa: remove duplicate assignment
24753         Problem reported by Bruno Haible in:
24754         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
24755         * lib/dfa.c (parse_bracket_exp): Simplify.
24757 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
24759         dfa: simplify constraint-dependency checking
24760         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
24761         (prev_other_constraint): Remove.
24762         (prev_newline_dependent, prev_letter_dependent):
24763         Simplify, to avoid an unnecessary bitwise AND operation.
24765         dfa: prefer functions and constants to macros
24766         * lib/dfa.c: Prefer constants to macros where either will do.
24767         (streq, isasciidigit, newline_constraint)
24768         (letter_constraint, other_constraint, succeeds_in_context)
24769         (prev_newline_constraint, prev_letter_constraint)
24770         (prev_other_constraint, prev_newline_dependent)
24771         (prev_letter_dependent, accepting, accepts_in_context):
24772         Now static functions instead of function-like macros.
24773         Use lower-case names accordingly.  All uses changed.
24775         dfa: narrow more local var scopes
24776         * lib/dfa.c: Move some more local decls down to nearer where
24777         they're needed.
24779 2016-12-31  Jim Meyering  <meyering@fb.com>
24781         dfa: narrow the scope of many local variables
24782         * lib/dfa.c: Now that we are no longer constrained to c89, move
24783         declarations of many variables (often indices) "down" into the
24784         scope(s) where used or to the point of definition.  This is a
24785         no-semantic-change diff.
24787 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
24789         version-etc: new year
24790         * build-aux/gendocs.sh (version):
24791         * doc/gendocs_template:
24792         * doc/gendocs_template_min:
24793         * doc/gnulib.texi:
24794         * lib/version-etc.c (COPYRIGHT_YEAR):
24795         Update copyright dates by hand in templates and the like.
24796         * all files: Run 'make update-copyright'.
24798 2016-12-31  Eric Blake  <eblake@redhat.com>
24800         do-release-commit-and-tag: avoid shell syntax error
24801         * build-aux/do-release-commit-and-tag (curr_br): $branch can
24802         contain spaces when rebasing.
24804         maint.mk: hoist gnulib_dir definition earlier
24805         * top/maint.mk (gnulib_dir): Move near top of file.
24807 2016-12-31  Jim Meyering  <meyering@fb.com>
24809         maint.mk: do not always evaluate intprops-related shell
24810         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
24811         using gnulib_dir undefined (gnulib_dir is defined later in the
24812         file, which will be fixed separately), and besides, there is no
24813         need to incur the cost of this shell invocation for every single
24814         use of this .mk file.  Reported by Eric Blake in
24815         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
24817 2016-12-30  Jim Meyering  <meyering@fb.com>
24819         maint.mk: improve sc_prohibit_intprops_without_use
24820         * top/maint.mk (_intprops_names): Don't hard-code the list of
24821         symbol names.  Instead, derive it on the fly.
24823 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
24825         dfa: shorten sbit, success
24826         * lib/dfa.c (struct regex_syntax.sbit):
24827         (struct dfa.success): Use char, not int, for array elements, since
24828         they are all in the range 0..7.
24830         dfa: simplify multibyte_prop etc.
24831         This follows up on a change made when dfa.c was in grep, namely grep
24832         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
24833         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
24834         That earlier simplification allows for some more simplification
24835         and trimming down here.
24836         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
24837         (struct lexer_state): New mamber brack.
24838         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
24839         since they must be in the range 0..3 now.
24840         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
24841         the brack member now supersedes them.
24842         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
24843         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
24844         (dfaparse): Remove unnecessary initializations of already-0 storage.
24845         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
24846         (dfassbuild): No need to clear sup->mbcsets.
24848         dfa: minor performance tweak
24849         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
24851         dfa: wrap charclass inside a struct
24852         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
24853         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
24854         about 5% faster, where list.txt is generated by 'aspell dump
24855         master | head -n 100000 >list.txt'.  See Bug#22239.
24856         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
24857         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
24858         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
24859         Adjust to this, e.g., by using charclass * rather than charclass.
24860         All callers changed as needed.
24861         (copyset): Remove.  All uses changed to simple assignment.
24862         (parse_bracket_exp): Use zeroset instead of memset.
24864 2016-12-30  Jim Meyering  <meyering@fb.com>
24866         maint.mk: update list of intprops.h symbol names
24867         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
24868         This avoids a false failure of the sc_prohibit_intprops_without_use
24869         rule in grep.
24871 2016-12-29  Eric Blake  <eblake@redhat.com>
24873         getopt: fix parallel test failure
24874         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
24875         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
24876         * tests/test-getopt-main.h (main): Use different file names
24877         in case test-getopt-gnu and test-getopt-posix run in parallel.
24879 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
24881         xalloc: x2nrealloc check for ptrdiff_t overflow
24882         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
24883         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
24885 2016-12-24  Bruno Haible  <bruno@clisp.org>
24887         lock test: Fix performance problem on multi-core machines.
24888         * tests/test-lock.c (USE_VOLATILE): New macro.
24889         (struct atomic_int): New type.
24890         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
24891         functions.
24892         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
24893         as 'struct atomic_int'.
24894         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
24895         reclock_checker_thread, test_recursive_lock): Use the new functions.
24896         Reported by Eric Blake in
24897         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
24898         and by Pádraig Brady in
24899         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
24901 2016-12-19  Bruno Haible  <bruno@clisp.org>
24903         vma-iter: Fix endless loop on 64-bit Windows.
24904         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
24905         'unsigned long'.
24907 2016-12-19  Bruno Haible  <bruno@clisp.org>
24909         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
24910         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
24911         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
24912         Invoke gt_TYPE_WINT_T instead.
24913         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
24914         * modules/stdint (Files): Add m4/wint_t.m4.
24915         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
24916         * modules/wctype-h (Makefile.am): Likewise.
24917         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
24918         not only on MSVC.
24919         * lib/wctype.in.h (wint_t): Likewise.
24921 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
24923         getopt-posix-tests: fix Makefile typo
24924         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
24925         Fix typo: the last ‘_’ was missing in the name.
24926         I suspect that the typo explains this build failure:
24927         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
24928         although I can’t reproduce the problem on Solaris 10 sparc.
24930 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
24932         dfa: improve worst-case 'replace' performance
24933         See my note in Bug#22357#71.
24934         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
24935         (merge_constrained): New function, which is like
24936         the old 'merge' function, except with a new argument C2.
24937         Simplify the body by avoiding the need for different sections
24938         of code depending on whether one input is exhausted.
24939         (merge): Use the new function.
24940         (delete): Return the constraint of the deleted position,
24941         not the entire position.  Caller changed.
24942         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
24944 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
24946         dfa: performance improvement for removal of epsilon closure
24947         See Bug#22357#32.
24948         * lib/dfa.c (delete): Use binary search to find deleted index.
24949         (replace): New function.  It replaces a position with the followed set.
24950         (epsclosure): Replace it with a new algorithm.  Update caller.
24952 2016-12-18  Bruno Haible  <bruno@clisp.org>
24954         Split tests for getopt-posix and getopt-gnu.
24955         * tests/test-getopt-posix.c: New file.
24956         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
24957         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
24958         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
24959         GNULIB_TEST_GETOPT_GNU.
24960         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
24961         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
24962         (Makefile.am): Test test-getopt-posix instead of test-getopt.
24963         * modules/getopt-gnu-tests: New file.
24964         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
24966 2016-12-18  Bruno Haible  <bruno@clisp.org>
24968         posix-modules: Add options for specific platforms.
24969         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
24970         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
24971         Invoke func_tmpdir. Filter out the excludes.
24973 2016-12-18  Bruno Haible  <bruno@clisp.org>
24975         getopt: Fix link error for users of getopt() in <unistd.h>.
24976         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
24977         __need_getopt is defined. Undefine all macros before defining them.
24978         * modules/getopt (Include): Clarify that including <unistd.h> is also
24979         OK.
24980         * tests/test-getopt.c: Add comment.
24982 2016-12-17  Bruno Haible  <bruno@clisp.org>
24984         getaddrinfo tests: Avoid compilation error on MSVC.
24985         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
24986         getaddrinfo on native Windows.
24988 2016-12-17  Bruno Haible  <bruno@clisp.org>
24990         getlogin, getlogin_r: Fix link errors on MSVC.
24991         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
24992         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
24993         (Link): New section.
24994         * modules/getlogin_r (Files): Add m4/getlogin.m4.
24995         (configure.ac): Require gl_LIB_GETLOGIN.
24996         (Link): New section.
24997         * NEWS: Mention the new link requirements.
24998         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
24999         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
25001 2016-12-17  Bruno Haible  <bruno@clisp.org>
25003         Un-deprecate the 'progname' module.
25004         * NEWS: Describe the appropriate use-cases of 'progname' versus
25005         'getprogname'. Based on discussion summary at
25006         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
25008 2016-12-17  Bruno Haible  <bruno@clisp.org>
25010         Reorganize NEWS a bit.
25011         * NEWS: Move some not so important changes away from section
25012         "Important Notes".
25014 2016-12-17  Bruno Haible  <bruno@clisp.org>
25016         tanhf: Avoid redefinition error on MSVC.
25017         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
25018         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
25019         may be defined as an inline function.
25020         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
25021         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
25023 2016-12-17  Bruno Haible  <bruno@clisp.org>
25025         tanf: Avoid redefinition error on MSVC.
25026         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
25027         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
25028         may be defined as an inline function.
25029         * modules/math (Makefile.am): Substitute REPLACE_TANF.
25030         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
25032 2016-12-17  Bruno Haible  <bruno@clisp.org>
25034         sqrtf: Avoid redefinition error on MSVC.
25035         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
25036         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
25037         may be defined as an inline function.
25038         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
25039         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
25041 2016-12-17  Bruno Haible  <bruno@clisp.org>
25043         sinhf: Avoid redefinition error on MSVC.
25044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
25045         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
25046         may be defined as an inline function.
25047         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
25048         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
25050 2016-12-17  Bruno Haible  <bruno@clisp.org>
25052         sinf: Avoid redefinition error on MSVC.
25053         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
25054         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
25055         may be defined as an inline function.
25056         * modules/math (Makefile.am): Substitute REPLACE_SINF.
25057         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
25059 2016-12-17  Bruno Haible  <bruno@clisp.org>
25061         logf: Avoid redefinition error on MSVC.
25062         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
25063         may be defined as an inline function.
25065 2016-12-17  Bruno Haible  <bruno@clisp.org>
25067         log10l: Avoid redefinition error on MSVC.
25068         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
25069         may be defined as an inline function.
25071 2016-12-17  Bruno Haible  <bruno@clisp.org>
25073         log10f: Avoid redefinition error on MSVC.
25074         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
25075         may be defined as an inline function.
25077 2016-12-17  Bruno Haible  <bruno@clisp.org>
25079         hypotl: Avoid redefinition error on MSVC.
25080         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
25081         may be defined as an inline function.
25083 2016-12-17  Bruno Haible  <bruno@clisp.org>
25085         hypotf: Avoid redefinition error on MSVC.
25086         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
25087         may be defined as an inline function.
25089 2016-12-17  Bruno Haible  <bruno@clisp.org>
25091         fmodl: Avoid redefinition error on MSVC.
25092         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
25093         may be defined as an inline function.
25095 2016-12-17  Bruno Haible  <bruno@clisp.org>
25097         fmodf: Avoid redefinition error on MSVC.
25098         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
25099         may be defined as an inline function.
25101 2016-12-17  Bruno Haible  <bruno@clisp.org>
25103         expf: Avoid redefinition error on MSVC.
25104         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
25105         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
25106         may be defined as an inline function.
25107         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
25108         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
25110 2016-12-17  Bruno Haible  <bruno@clisp.org>
25112         coshf: Avoid redefinition error on MSVC.
25113         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
25114         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
25115         may be defined as an inline function.
25116         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
25117         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
25119 2016-12-17  Bruno Haible  <bruno@clisp.org>
25121         cosf: Avoid redefinition error on MSVC.
25122         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
25123         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
25124         may be defined as an inline function.
25125         * modules/math (Makefile.am): Substitute REPLACE_COSF.
25126         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
25128 2016-12-17  Bruno Haible  <bruno@clisp.org>
25130         atan2f: Avoid redefinition error on MSVC.
25131         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
25132         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
25133         may be defined as an inline function.
25134         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
25135         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
25137 2016-12-17  Bruno Haible  <bruno@clisp.org>
25139         atanf: Avoid redefinition error on MSVC.
25140         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
25141         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
25142         may be defined as an inline function.
25143         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
25144         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
25146 2016-12-17  Bruno Haible  <bruno@clisp.org>
25148         asinf: Avoid redefinition error on MSVC.
25149         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
25150         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
25151         may be defined as an inline function.
25152         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
25153         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
25155 2016-12-17  Bruno Haible  <bruno@clisp.org>
25157         acosf: Avoid redefinition error on MSVC.
25158         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
25159         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
25160         may be defined as an inline function.
25161         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
25162         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
25164 2016-12-17  Bruno Haible  <bruno@clisp.org>
25166         Avoid redefinition errors on MSVC.
25167         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
25168         the function may be defined as an inline function.
25169         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
25170         the function may be defined as an inline function.
25172 2016-12-17  Bruno Haible  <bruno@clisp.org>
25174         Avoid redefinition errors on MSVC.
25175         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
25176         * lib/unistd.in.h: Include <stdio.h> when necessary.
25178 2016-12-17  Bruno Haible  <bruno@clisp.org>
25180         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
25181         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
25182         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
25183         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
25184         WINT_MAX.
25186 2016-12-17  Bruno Haible  <bruno@clisp.org>
25188         Avoid autoconf warning.
25189         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
25190         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
25192 2016-12-17  Bruno Haible  <bruno@clisp.org>
25194         fpending: Revert workaround against Emacs bug.
25195         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
25196         The Emacs bug is fixed by Eli Zaretskii in
25197         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
25199 2016-12-17  Bruno Haible  <bruno@clisp.org>
25201         getlogin_r tests: Port to mingw.
25202         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
25203         regression introduced on 2014-05-19.
25205 2016-12-17  Bruno Haible  <bruno@clisp.org>
25207         getlogin: Port to newer mingw.
25208         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
25209         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
25210         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
25211         HAVE_GETLOGIN.
25212         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
25213         HAVE_GETLOGIN.
25214         * doc/posix-functions/getlogin.texi: Mention the issue.
25215         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
25216         regression introduced on 2014-05-14.
25218 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
25220         builtin-expect: improve port to IBM XL C
25221         Problem reported for z/OS by Daniel Richard G. in:
25222         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
25223         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
25224         Test for <builtins.h> directly.
25226         builtin-expect: port to IBM XL C
25227         Problem reported for z/OS by Daniel Richard G. in:
25228         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
25229         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
25230         Also allow __builtin_expect defined via a standard include file.
25232         regex: fix dependency
25233         Problem reported by Bruno Haible in:
25234         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
25235         * modules/regex: Depend on builtin-expect.
25237         builtin-expect: new module
25238         Fix fnmatch to use it.
25239         Problem reported for z/OS by Daniel Richard G.
25240         * lib/fnmatch.c (__builtin_expect):
25241         * lib/glob.c (__builtin_expect):
25242         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
25243         * lib/memmem.c (__builtin_expect) [!_LIBC]:
25244         * lib/scandir.c (__builtin_expect):
25245         * lib/strstr.c (__builtin_expect) [!_LIBC]:
25246         Remove macro; config.h now does this.
25247         * lib/gl_anytreehash_list1.h (add_to_bucket):
25248         * lib/regex_internal.h (BE):
25249         Assume __builtin_expect.
25250         * m4/builtin-expect.m4, modules/builtin-expect: New files.
25251         * modules/avltreehash-list, modules/fnmatch, modules/glob:
25252         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
25253         * modules/scandir, modules/strstr-simple:
25254         Depend on builtin-expect.
25256 2016-12-15  Bruno Haible  <bruno@clisp.org>
25258         init.sh: Add possibility to not delete temporary files.
25259         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
25260         to yes, don't erase the temporary directory.
25262 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
25264         regex: fix integer-overflow bug in never-used code
25265         Problem reported by Clément Pit–Claudel in:
25266         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
25267         * lib/regex_internal.h: Include intprops.h.
25268         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
25269         behavior on integer overflow.
25270         * modules/regex (Depends-on): Add intprops.
25272         fpending: fix port to MinGW on Emacs
25273         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
25274         Problem reported by Eli Zaretskii in:
25275         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
25276         Is Plan 9 still a valid porting target, anyway?
25278 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
25280         safe-alloc: use xalloc-oversized
25281         * lib/safe-alloc.c: Include xalloc-oversized.h.
25282         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
25283         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
25285         xalloc: do not exceed PTRDIFF_MAX
25286         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
25287         xalloc_oversized check, since objects larger than PTRDIFF_MAX
25288         bytes have pointer-subtraction problems.
25290         malloca: do not exceed PTRDIFF_MAX
25291         * lib/malloca.h: Include xalloc-oversized.
25292         (nmalloca): Use xalloc_oversized instead of rolling our own.
25293         * modules/malloca (Depends-on):
25294         * modules/relocatable-prog-wrapper (Depends-on):
25295         Add xalloc-oversized.
25297         quotearg: pacify GCC better
25298         * modules/quotearg (Depends-on): Add minmax, stdint.
25299         * lib/quotearg.c: Include minmax.h, stdint.h.
25300         (nslots): Now int, as there seems little point to going to extra
25301         work merely to support the INT_MAX slot, which nobody ever uses.
25302         (quotearg_n_options): Redo size-overflow checks to pacify GCC
25303         and to catch (mostly-theoretical) ptrdiff_t problems too.
25304         This can be done via one comparison.
25306 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
25308         xalloc-oversized: check for PTRDIFF_MAX too
25309         This avoids undefined behavior when subtracting pointers to
25310         objects containing more than PTRDIFF_MAX bytes.
25311         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
25312         Also return 1 if the result would exceed PTRDIFF_MAX>
25313         * modules/xalloc-oversized (Depends-on):
25314         Add stdint.
25316         dfa: fix glitches in previous commit
25317         Sorry, I don't know how I managed to commit the wrong version.
25318         * lib/dfa.c (MIN): Move up.
25319         (xpalloc): Now static.
25321         dfa: fix some unlikely integer overflows
25322         I found these while reviewing the recent Coverity-related fix.
25323         This patch changes part of dfa.c to prefer ptrdiff_t instead of
25324         size_t for object counts.  Using ptrdiff_t is the style typically
25325         used in Emacs; although it wastes a sign bit as sizes can never be
25326         negative, it makes -fsanitize=undefined more likely to catch
25327         integer overflows in index calculation, and nowadays the upside is
25328         typically more important than the downside.  Although perhaps the
25329         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
25330         of dfa.c already does, since it uses state_num which is signed),
25331         that is a bigger change and is not needed to fix the bugs I found.
25332         * lib/dfa.c: Include stdint.h and intprops.h.
25333         (TOKEN_MAX): New macro.
25334         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
25335         (charclass_index, parse_bracket_exp, addtok, insert, merge)
25336         (realloc_trans_if_necessary, free_mbdata):
25337         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
25338         This is safe because xpalloc checks that the sizes do not exceed
25339         either SIZE_MAX or PTRDIFF_MAX.
25340         (xpalloc): New function, mostly taken from Emacs.
25341         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
25342         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
25343         (charclass_index): Check for integer overflow in computing
25344         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
25345         added to it later.
25346         (alloc_position_set): Check for integer overflow.  On typical
25347         platforms this check has zero overhead, since the constant
25348         expression is false.
25349         (realloc_trans_if_necessary):
25350         Remove assertion, which I hope Coverity no longer needs.
25352         * modules/dfa (Depends-on): Add intprops, stdint.
25354 2016-12-12  Jim Meyering  <meyering@fb.com>
25356         dfa: add an assertion to avoid coverity false positive
25357         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
25358         warned that "newalloc1 - 2" could overflow.
25360 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
25362         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
25363         * dfa.h (DFA_CASE_FOLD): Remove.
25364         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
25366 2016-12-13  John W. Eaton  <gnu@jweaton.org>
25368         link: fix test to declare use of rename()
25369         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
25370         -Werror=implicit-function-declaration
25372 2016-12-12  Bruno Haible  <bruno@clisp.org>
25374         fpending: Port to native Windows with MSVC.
25375         * lib/fpending.c: Include stdio-impl.h.
25376         (__fpending): Include all known implementations. Err out if it's not
25377         ported.
25378         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
25379         * modules/fpending (Files): Add lib/stdio-impl.h.
25380         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
25382 2016-12-12  Bruno Haible  <bruno@clisp.org>
25384         stdioext: Port to native Windows with MSVC.
25385         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
25386         (struct _gl_real_FILE): New type.
25387         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
25388         Windows.
25389         * lib/fbufmode.c (fbufmode): Add code for native Windows.
25390         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
25391         other SystemV derived implementations.
25392         * lib/fpurge.c (fpurge): Likewise.
25393         * lib/freadable.c (freadable): Likewise.
25394         * lib/freadahead.c (freadahead): Likewise.
25395         * lib/freading.c (freading): Likewise.
25396         * lib/freadptr.c (freadptr): Likewise.
25397         * lib/freadseek.c (freadptrinc): Likewise.
25398         * lib/fseeko.c (fseeko): Likewise.
25399         * lib/fseterr.c (fseterr): Likewise.
25400         * lib/fwritable.c (fwritable): Likewise.
25401         * lib/fwriting.c (fwriting): Likewise.
25402         Reported by Gisle Vanem <gvanem@yahoo.no>.
25404 2016-12-11  Jim Meyering  <meyering@fb.com>
25406         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
25407         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
25408         to work with most shells, but not with the one provided by many
25409         Solaris 10 systems, so running configure with such a /bin/sh evokes
25410         e.g., "./configure: syntax error at line 33602: `(' unexpected".
25411         Reported by Assaf Gordon in
25412         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
25414 2016-12-10  Bruno Haible  <bruno@clisp.org>
25416         threadlib: Optimize out runtime test on Solaris >= 10.
25417         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
25418         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
25419         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
25421 2016-12-10  Bruno Haible  <bruno@clisp.org>
25423         stdint: Update doc about Solaris 9.
25424         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
25426 2016-12-09  Bruno Haible  <bruno@clisp.org>
25428         c-ctype tests: Fix link error on Solaris 9.
25429         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
25430         Reported at <https://savannah.gnu.org/bugs/?46827>.
25432 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
25434         dfa: fix performance bug that recomputes trans
25435         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
25436         25 on-demand changes.  The bug caused build_state to reset all
25437         d->trans elements to -2 even when d->trans was already non-null.
25438         Use C99 style decls after statements in this function.
25440         same-inode: port to MinGW
25441         Here st_ino is always 0, so change the definition of SAME_INODE so
25442         that 1 means the two files are the same, 0 with st_ino != 0 means
25443         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
25444         reported by Bruno Haible (Bug#25146).
25445         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
25446         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
25448 2016-12-04  Bruno Haible  <bruno@clisp.org>
25450         javacomp-script: Support Java 7 and 8.
25451         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
25452         target-version 1.7, 1.8.
25454 2016-12-02  Daiki Ueno  <ueno@gnu.org>
25456         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
25457         GPLv2" rewriting.
25459 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
25461         * gnulib-tool (func_import): Adhere to the license guideline when
25462         rewriting the license text to "LGPLv3+ or GPLv2":
25463         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
25465 2016-12-02  Bruno Haible  <bruno@clisp.org>
25467         localcharset: Avoid theoretical buffer overrun.
25468         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
25469         return value from setlocale if it would lead to a buffer overrun.
25471 2016-12-01  Bruno Haible  <bruno@clisp.org>
25473         Relicense some modules under LGPLv2+.
25474         Kevin Cernekee's approval is in
25475         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
25476         * modules/fseterr (License): Change to LGPLv2+.
25477         * modules/mbchar (License): Likewise.
25478         * modules/mbiter (License): Likewise.
25479         * modules/mbsnlen (License): Likewise.
25480         * modules/wcwidth (License): Likewise.
25482 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
25484         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
25485         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
25486         OS/2 kLIBC.
25488 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
25490         alphasort, scandir: Port to OS/2 kLIBC
25491         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
25492         declaration.
25493         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
25495 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
25497         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
25498         * lib/relocatable.c (relocate): Do not touch pathname if it is started
25499         with '/@unixroot'.
25501 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
25503         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
25504         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
25505         OS/2 kLIBC unless TCPV40HDRS is defined.
25507 2016-11-29  Jim Meyering  <meyering@fb.com>
25509         dfa: avoid new infinite loop
25510         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
25511         * lib/dfa.c (dfastate): When constructing a new state table, we could
25512         initially declare that we had found a match, and later find that
25513         constraints eliminate that possibility, yet continue to use the
25514         now stale "matched" indicator.  That would lead to an infinite loop.
25515         The solution is to update "matched" when necessary.
25516         Introduced by commit v0.1-983-g403adf1.
25518 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
25520         dfa: avoid match middle in multibyte character
25521         * lib/dfa.c (transit_state): If fails in matching single byte characters
25522         on a state including period expression in non-UTF8 multibyte locales,
25523         skip trailing bytes.
25524         (dfa_supported): Revert previous change.
25526 2016-11-27  Jim Meyering  <meyering@fb.com>
25528         dfa: avoid false match in non-UTF8 multibyte locales
25529         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
25530         as "not supported" so that callers will resort to using regex-based
25531         matcher.  This will surely hurt performance, but correctness trumps
25532         performance here, and the affected locales are less and less relevant,
25533         these days.  See grep's bug report https://bugs.gnu.org/24975.
25535 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
25537         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
25538         * lib/ptsname_r.c: Include the appropriate headers.
25539         [__sun]: Delete sys/sysmacros.h include.
25540         [_AIX || __osf__]: Likewise.
25541         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
25543 2016-11-27  Pádraig Brady  <P@draigBrady.com>
25545         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
25546         * lib/md4.c (md4_process_bytes): The existing define is made internal
25547         in recent versions of glibc, so also use this new public define.
25548         * lib/md5.c (md5_process_bytes): Likewise.
25549         * lib/sha1.c (sha1_process_bytes): Likewise.
25550         * lib/sha256.c (sha256_process_bytes): Likewise.
25551         * lib/sha512.c (sha512_process_bytes): Likewise.
25553 2016-11-27  Pádraig Brady  <P@draigBrady.com>
25555         maint: use a more standard return from mbrtowc test
25556         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
25557         from the test program as this often indicates an
25558         unhandled case in the test program.
25559         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
25560         (gl_MBRTOWC_SANITYCHECK): Likewise.
25561         (gl_MBRTOWC_NULL_ARG2): Likewise.
25562         (gl_MBRTOWC_NUL_RETVAL): Likewise.
25564 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
25566         freopen: work around glibc bug with closed fd
25567         Work around glibc bug#15589, where freopen mishandles the case
25568         where stdin etc. are already closed.
25569         * doc/posix-functions/freopen.texi (freopen): Document the bug.
25570         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
25571         instead of __need_FILE, as the latter does not work with glibc.
25572         Include <fcntl.h>, for open flags.
25573         (rpl_freopen): Work around glibc bug.
25574         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
25575         * modules/freopen (Depends-on): Add fcntl-h.
25576         * tests/test-freopen.c (main): Test for bug.
25578 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
25580         fnmatch: fix typo introduced on 2016-08-17
25581         This fixes the port to non-GCC compilers that lack __builtin_expect.
25582         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
25584         dfa: simplify with new function fillset
25585         * lib/dfa.c (fillset): New function.
25586         Use it for clarity when applicable.
25588         dfa: fix glitches with on-demand states
25589         Also, adjust commentary to better match new code.
25590         Some of these glitches predate the recent change.
25591         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
25592         only non-initial states.
25593         (dfastate): Rename locals to better match new roles.
25594         Move them into nested scopes if this is easy.
25595         Omit unnecessary calls to zeroset.
25596         Simplify test for whether to throw in the positions of state 0.
25597         Omit C99-ism (decl after statement) since Gawk still wants C89.
25598         (build_state): Omit unnecessary test and assignment.
25599         Fix some confusion that counted transition tables inaccurately
25600         and could cause a memory leak.
25601         (dfaexec_main): Redo to make it clearer to the compiler that
25602         -1 and -2 are the only negative state numbers here.
25604 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
25606         dfa: addition of new state on demand
25607         * src/dfa.c (dfastate): Add argument UC, the current input character.
25608         Fill only a group including the character in transition table.
25609         (realloc_trans_if_necessary): Add the dummy state which means that a
25610         transition table is assigned but the next state is not assigned.
25611         (build_state): Return the next state.  All callers updated.
25612         (transit_state_singlebyte): If we get the dummy state,
25613         fill the transition table.
25614         (dfaexec_main): Handle the dummy state.
25615         (free_mbdata, dfafree): Consider the dummy state.
25617 2016-11-24  Daiki Ueno  <ueno@gnu.org>
25619         srclist: sync with released gettext
25620         * config/srclist.txt: Set "release" option to the files under
25621         $GETTEXT.
25623 2016-11-24  Daiki Ueno  <ueno@gnu.org>
25625         srclist: add "release" option
25626         * config/srclist.txt: Change the format so that the first column
25627         of each line points to the top-level directory of the source
25628         archive.
25629         * config/srclist-update: Accept "release" option that checks files
25630         from the most recently tagged revision in the source archive.
25632 2016-11-21  Bruno Haible  <bruno@clisp.org>
25634         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
25635         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
25636         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
25637         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
25638         Inline and remove member function 'rpl ()' of the wrapper struct.
25640 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
25642         dfa: fix logic typo
25643         Problem reported by Stephane Chazelas (Bug#24973).
25644         * lib/dfa.c (using_simple_locale): Fix typo that caused some
25645         non-simple locales like fr_FR to be treated as simple.
25647 2016-11-20  Jim Meyering  <meyering@fb.com>
25649         fix test driver leaks: exclude, malloc, realloc
25650         * tests/test-exclude.c (main): Fix trivial leak.
25651         * tests/test-malloc-gnu.c (main): Likewise.
25652         * tests/test-realloc-gnu.c (main): Likewise.
25653         With these changes, grep's tests are now leak free.
25654         I.e., running them with ASAN elicits no failure:
25655           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
25656             AM_LDFLAGS='-fsanitize=address -static-libasan' check
25658 2016-11-11  Bruno Haible  <bruno@clisp.org>
25660         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
25661         * modules/libunistring: (License): Change from LGPL to
25662         "LGPLv3+ or GPLv2".
25663         * modules/libunistring-optional: Likewise.
25664         * modules/unicase/*: Likewise.
25665         * modules/uniconv/*: Likewise.
25666         * modules/unictype/*: Likewise.
25667         * modules/unigbrk/*: Likewise.
25668         * modules/unilbrk/*: Likewise.
25669         * modules/uniname/*: Likewise.
25670         * modules/uninorm/*: Likewise.
25671         * modules/unistdio/*: Likewise.
25672         * modules/unistr/*: Likewise.
25673         * modules/uniwbrk/*: Likewise.
25674         * modules/uniwidth/*: Likewise.
25676 2016-11-12  Bruno Haible  <bruno@clisp.org>
25678         Relicense some modules under LGPLv2+.
25679         Paul Eggert's approval is in
25680         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
25681         Eric Blake's approval is in
25682         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
25683         Ludovic Courtès's approval is in
25684         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
25685         * modules/isnand-nolibm (License): Change to LGPLv2+.
25686         * modules/isnanf-nolibm (License): Likewise.
25687         * modules/isnanl-nolibm (License): Likewise.
25689 2016-11-19  Bruno Haible  <bruno@clisp.org>
25691         Relicense some modules under LGPLv2+.
25692         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
25693         modules/vasnprintf.
25694         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
25695         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
25696         All other significant changes to the files in lib/ of these modules
25697         are from me.
25698         * modules/memcmp2 (License): Change to LGPLv2+.
25699         * modules/amemxfrm (License): Likewise.
25700         * modules/fpieee (License): Likewise.
25701         * modules/fpucw (License): Likewise.
25702         * modules/frexp-nolibm (License): Likewise.
25703         * modules/frexpl-nolibm (License): Likewise.
25704         * modules/printf-frexp (License): Likewise.
25705         * modules/printf-frexpl (License): Likewise.
25706         * modules/printf-safe (License): Likewise.
25707         * modules/signbit (License): Likewise.
25709 2016-11-17  Bruno Haible  <bruno@clisp.org>
25711         Enable Unicode decoder safety unconditionally.
25712         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
25713         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
25714         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
25715         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
25716         * lib/unistr/u8-prev.c (u8_prev): Likewise.
25717         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
25718         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
25719         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
25720         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
25721         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
25722         * lib/unistr/u16-prev.c (u16_prev): Likewise.
25723         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
25724         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
25725         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
25726         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
25727         * lib/unistr/u32-prev.c (u32_prev): Likewise.
25728         * lib/unistr/u32-next.c (u32_next): Likewise.
25729         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
25730         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
25731         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
25732         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
25733         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
25734         CONFIG_UNICODE_SAFETY tests unconditionally.
25735         * tests/unistr/test-u32-mblen.c (main): Likewise.
25736         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
25737         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
25738         * tests/unistr/test-u32-next.c (main): Likewise.
25739         * tests/unistr/test-u32-strmblen.c (main): Likewise.
25740         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
25741         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
25742         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
25743         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
25744         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
25745         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
25746         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
25747         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
25748         * lib/unistr/u16-check.c (u16_check): Update comment.
25749         * NEWS: Mention the changes that callers should be aware of.
25751 2016-11-19  Bruno Haible  <bruno@clisp.org>
25753         relocatable-prog-wrapper: Fix breakage on Cygwin.
25754         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
25755         (Depends-on): Remove intprops.
25756         * lib/relocwrapper.c: Update dependency tree.
25757         (strerror): Undefine.
25758         * build-aux/install-reloc (func_create_wrapper): Do not compile
25759         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
25761 2016-11-19  Bruno Haible  <bruno@clisp.org>
25763         strerror: Make it compile in C++ mode.
25764         * lib/strerror.c (strerror): Ignore the return value of memcpy().
25766 2016-11-15  Pedro Alves  <palves@redhat.com>
25768         sys_time: add gnulib::timeval for C++
25769         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
25770         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
25771         timeval macro.
25773 2016-11-14  Pedro Alves  <palves@redhat.com>
25775         snippet/c++defs: fix real-floating arg functions in C++ mode
25776         Also, define isfinite, isinf, isnan, signbit in the gnulib
25777         namespace instead of in the global namespace.
25778         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
25779         (_GL_END_NAMESPACE): New.
25780         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
25781         (isfinite, isinf, isnan, signbit) [__cplusplus &&
25782         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
25783         instead of in the global namespace.
25784         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
25785         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
25786         of in the global namespace.
25788 2016-11-13  Jim Meyering  <meyering@fb.com>
25790         strftime: don't use __THROW
25791         Each use of __THROW would provoke this from gcc-7-to-be:
25793           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
25794             on unit local functions [-Wattributes]
25795           static int iso_week_days (int, int) __THROW;
25796           ^~~~~~
25797         * lib/strftime.c (__THROW): Don't define.
25798         Remove each use of __THROW.
25799         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
25800         (tm_diff, iso_week_days, __strftime_internal): Likewise.
25802 2016-11-14  Paul Eggert  <eggert@union>
25804         obstack: port to gcc -fcheck-pointer-bounds
25805         Problem found by 'make check' failure on bleeding-edge coreutils
25806         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
25807         6.2.0-5ubuntu12), configured via "./configure
25808         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
25809         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
25810         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
25811         New macro, copied from fts_.h.
25812         (struct _obstack_chunk.contents): Use it.
25814 2016-11-14  Eric Blake  <eblake@redhat.com>
25816         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
25817         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
25818         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
25820 2016-11-14  Pádraig Brady  <P@draigBrady.com>
25822         strptime: fix compile error in recent change
25823         * lib/strptime.c (__strptime_internal): Fix ported code.
25825 2016-11-11  Bruno Haible  <bruno@clisp.org>
25827         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
25828         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
25829         (func_import): Extend determination of license_incompatibilities.
25830         (func_create_testdir): Extend table of license compatibility. Handle
25831         also the licenses GPLv3+, GPL, LGPLv3+.
25833 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
25835         strftime: tune %q
25836         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
25838         Merge strftime.c changes from glibc
25839         This incorporates:
25840         2007-10-16 [BZ #5184] Add tzset_called argument
25841         2008-06-13 [BZ #6612] pass reference to tzset_called around
25842         2009-10-30 Implement Burmese language locale for Myanmar
25843         2010-01-09 Add support for XPG7 testing
25844         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
25845         2015-10-20 Convert miscellaneous function definitions to prototype style
25846         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
25847         it anyway and this lessens the difference between gnulib and glibc.
25848         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
25849         (__THROW): Define if standard headers do not.
25850         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
25851         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
25852         Declare with __THROW.
25853         (__strftime_internal): Rename from strftime_case_. Add arg for
25854         whether tzset is called.  All uses changed.  Call tzset at most
25855         once.  Allow %OC, for Burmese.
25856         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
25857         Don't assume values are in range.
25859 2016-11-12  Eric Blake  <eblake@redhat.com>
25861         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
25862         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
25863         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
25864         different value.
25866 2006-11-12  Pedro Alves  <palves@redhat.com>
25868         Fix gnulib C++ namespace support and std::frexp
25869         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
25870         _GL_CXXALIASWARN.
25872 2006-11-12  Pedro Alves  <palves@redhat.com>
25874         GNULIB_NAMESPACE::func need not pull in rpl_func
25875         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
25876         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
25877         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
25878         struct instead of a function pointer.
25880 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
25882         manywarnings: fix -Wno-missing-field-initializers detection
25883         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
25884         to be independent of -Wunused-variable.  I.E. ensure the latter
25885         warning doesn't occur so that detection of the former is accurate.
25887 2016-11-05  Pádraig Brady  <pbrady@fb.com>
25889         strftime,strptime: support %q to represent the quarter
25890         * lib/strftime.c (strftime_case_): Add %q case.
25891         * lib/strptime.c (__strptime_internal): Likewise.
25892         * tests/test-strftime.c (quarter_test): A new test case.
25894 2016-11-03  Eric Blake  <eblake@redhat.com>
25896         bootstrap: Fix get_version() for AIX 5.3
25897         * build-aux/bootstrap (get_version): Factor out sed script, since
25898         indented comments choke AIX 5.3 sed.
25899         Reported-by: Michael Felt <aixtools@gmail.com>
25901 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
25903         intprops: port to older XL C
25904         Problem reported by Alexander Samoilov in:
25905         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
25906         http://savannah.nongnu.org/bugs/?49448
25907         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
25908         Define to 1 only for XL C 12.1 or later, since this bug
25909         occurs in XL C for AIX 6.0 but not in 12.1.
25911 2016-11-02  Pádraig Brady  <P@draigBrady.com>
25913         backupfile: initialize default suffix within the implementation
25914         * lib/backupfile.c (find_backup_file_name): Initialize the
25915         global variable here, to simplify usage, and to only call
25916         getenv() when needed.
25918 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
25920         futimens: remove FIXME for old Linux kernels
25921         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
25922         this in 2012" FIXME, like that for utimensat.
25924         utimensat: remove FIXME for old Linux kernels
25925         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
25926         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
25927         this in 2012" FIXME, by assuming the file system bug is absent
25928         unless demonstrated to be present.  We no longer need to worry
25929         about Linux kernel 2.6.32 when building with newer kernels.
25931 2016-10-16  Bruno Haible  <bruno@clisp.org>
25933         qsort_r: Fix macrology for platforms that lack the function.
25934         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
25935         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
25936         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
25937         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
25938         not exist.
25939         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
25940         the function exists.
25941         * modules/qsort_r: Add comments.
25943 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
25945         sys_types: fix Texinfo typos
25946         * doc/glibc-functions/gnu_dev_major.texi:
25947         * doc/glibc-functions/gnu_dev_makedev.texi:
25948         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
25950 2016-10-26  John David Anglin  <dave.anglin@bell.net>
25952         getprogname: port to HP-UX
25953         See Bug#24805.
25954         * lib/getprogname.c (getprogname) [__hpux]: Port.
25955         * tests/test-getprogname.c (STREQ) [__hpux]:
25956         Special-case for HP-UX limitations on program name length.
25958 2016-10-20  Bruno Haible  <bruno@clisp.org>
25960         Update doc about target platforms.
25961         * doc/gnulib-intro.texi (Target Platforms): Update list.
25963 2016-10-15  Bruno Haible  <bruno@clisp.org>
25965         opendir, readdir, closedir: Relicense under LGPLv2+.
25966         * modules/opendir (License): Change to LGPLv2+.
25967         * modules/readdir (License): Likewise.
25968         * modules/closedir (License): Likewise.
25970 2016-10-16  Bruno Haible  <bruno@clisp.org>
25972         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
25973         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
25974         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
25975         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
25976         HAVE_DECL_STRERROR_R.
25978 2016-10-16  Bruno Haible  <bruno@clisp.org>
25980         Make the 'argp' module work without the 'error' module.
25981         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
25983 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
25985         diffseq: restore TOO_EXPENSIVE heuristic
25986         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
25987         (Bug#24715).  The simplest solution is to restore the
25988         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
25989         using a higher threshold to avoid Bug#16848 on smaller files.
25990         * lib/diffseq.h (struct context): Restore member too_expensive.
25991         (struct partition): Restore members lo_minimal, hi_minimal.
25992         (diag, compareseq): Restore arg find_minimal.  All uses changed.
25993         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
25994         1993 to make 'diff' run faster (but not as well) on large inputs,
25995         but use a threshold of 4096 instead of the old 256.
25996         * lib/fstrcmp.c (strcmp_bounded):
25997         * lib/git-merge-changelog.c (compute_differences):
25998         Adjust to diffseq.h changes.
26000 2016-10-22  Bruno Haible  <bruno@clisp.org>
26002         iconv: Avoid compilation error when bootstrapping GNU libiconv.
26003         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
26004         declaration yet, define ICONV_CONST to empty.
26006 2016-10-15  Bruno Haible  <bruno@clisp.org>
26008         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
26009         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
26010         module.
26012 2016-10-16  Bruno Haible  <bruno@clisp.org>
26014         system-quote tests: Avoid compiler warning on AIX.
26015         * tests/test-system-quote-child.c (fopen): Redefine like the system's
26016         <stdio.h> does.
26018 2016-10-16  Bruno Haible  <bruno@clisp.org>
26020         Fix some "gcc -Wall" warnings.
26021         * tests/test-ffsl.c (main): Use variable x, not i.
26022         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
26023         freopen.
26024         * tests/test-sethostname1.c (main): Explicitly ignore the return value
26025         of sethostname.
26027 2016-10-16  Bruno Haible  <bruno@clisp.org>
26029         gnulib-tool: Make --create-testdir on all modules work again.
26030         * gnulib-tool (func_create_testdir): Don't include the
26031         non-recursive-gnulib-prefix-hack module.
26033 2016-10-21  Daiki Ueno  <ueno@gnu.org>
26035         libunistring: change the maintainer to 'all'
26036         * modules/gen-uni-tables, modules/libunistring:
26037         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
26038         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
26039         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
26040         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
26041         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
26042         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
26043         * modules/uniwidth/*: Change the maintainer to 'all'.
26045 2016-10-16  Bruno Haible  <bruno@clisp.org>
26047         Simplify "configure: checking ..." messages.
26048         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
26049         AC_MSG_NOTICE.
26050         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
26052 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
26054         quotearg-tests: pacify gcc -Wall
26055         Problem reported by Bruno Haible in:
26056         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
26057         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
26058         * tests/test-quotearg.h: ... from here.
26060 2016-10-20  Pádraig Brady  <P@draigBrady.com>
26062         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
26063         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
26064         Needed on Centos <= 4.
26066 2016-10-20  Jim Meyering  <meyering@fb.com>
26068         printf.m4: fix a bug in detecting printf %j support
26069         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
26070         uintmax_t is defined in neither stdint.h nor inttypes.h.
26071         Before, this macro might have mistakenly set
26072         gl_cv_func_printf_sizes_c99=yes on such a system.
26073         Spotted by Zev Weiss.
26075 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
26077         sched: substitute HAVE_SYS_CDEFS_H too
26078         Problem reported by Tom G. Christensen in:
26079         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
26080         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
26081         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
26083 2016-10-19  Pádraig Brady  <P@draigBrady.com>
26085         quotearg: never write beyond the returned length
26086         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
26087         scan of the string when we initially encounter a single quote when
26088         shell quoting, so that if we then switch to a more concise quoting method
26089         we will not have written beyond that returned length.
26090         This is significant for sh-quote, which has separate routines
26091         to determine the length and do the actual quoting.
26092         * tests/test-quotearg.h: Reinstate the buffer bounds checking
26093         now that we never write more than the returned length.
26095 2016-10-18  Bruno Haible  <bruno@clisp.org>
26097         getprogname tests: Avoid failure in packages that use libtool.
26098         * tests/test-getprogname.c (main): Strip "lt-" prefix.
26099         Based on a patch by Jim Meyering.
26101 2016-10-16  Bruno Haible  <bruno@clisp.org>
26103         getprogname: Fix test failure on Cygwin. Comments.
26104         * lib/getprogname.h: Add comments.
26105         * lib/getprogname.c: Add comments. Fix #elif indentation.
26106         * tests/test-getprogname.c (main): On Cygwin, expect a result without
26107         ".exe" suffix.
26109 2016-10-16  Bruno Haible  <bruno@clisp.org>
26111         Make sure the libunistring detection rejects older versions with a
26112         known bug.
26113         * modules/unistr/u8-strtok (configure.ac): Bump required version.
26114         * modules/unistr/u16-strtok (configure.ac): Likewise.
26115         * modules/unistr/u32-strtok (configure.ac): Likewise.
26117 2016-10-18  Bruno Haible  <bruno@clisp.org>
26119         sh-quote, system-quote: revert regression of unit test.
26120         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
26121         * tests/test-system-quote-main.c (check_one): Likewise.
26123 2016-10-16  Pádraig Brady  <P@draigBrady.com>
26125         quotearg: fix stale tests
26126         * tests/test-quotearg.c [locale_results]: Add the missing str7
26127         entries to the expected results.
26128         * tests/test-system-quote-main.c (check_one): Don't enforce that we
26129         don't write beyond the returned length, since that's no longer the
26130         case if we switch to a more concise quoting style.
26131         * tests/test-sh-quote.c (check_one): Likewise.
26132         (main): Adjust for the new more concise quoting style.
26133         Reported by Bruno Haible.
26135 2016-10-16  Jim Meyering  <meyering@fb.com>
26137         non-recursive-gnulib-prefix-hack: fix inconsequential typo
26138         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
26139         to "$1".  This macro is always invoked with $1 == lib.
26140         Spotted by Bruno Haible
26142 2016-10-16  Bruno Haible  <bruno@clisp.org>
26144         Fix a test crash.
26145         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
26146         fails.
26148 2016-10-16  Pádraig Brady  <P@draigBrady.com>
26150         test-limits-h: suppress -Woverlength-strings
26151         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
26153 2016-10-15  Bruno Haible  <bruno@clisp.org>
26155         gettime, timespec, utimens: Relicense under LGPL.
26156         * modules/gettime (License): Change to LGPL.
26157         * modules/timespec (License): Likewise.
26158         * modules/utimens (License): Likewise.
26160 2016-10-14  Bruno Haible  <bruno@clisp.org>
26161             Pádraig Brady  <P@draigBrady.com>
26163         canonicalize-lgpl: Support the case path_max > INT_MAX.
26164         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
26165         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
26167 2016-10-13  Jim Meyering  <meyering@fb.com>
26169         getprogname: IBM z/OS: avoid NULL-dereference
26170         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
26171         upon strdup failure.
26173 2016-10-12  Jim Meyering  <meyering@fb.com>
26175         test-stdint: use _GL_VERIFY rather than "verify" for some tests
26176         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
26177         and an abbreviated diagnostic rather than verify with the full one,
26178         because the full-length strings would evoke warnings from gcc with
26179         -Woverlength-strings.
26181 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
26183         stdint: port SIZE_MAX to glibc s390
26184         Problem reported by Eric Blake in:
26185         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
26186         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
26187         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
26188         correct type, if possible.
26190 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
26192         getprogname: port to IBM z/OS
26193         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
26195 2016-10-11  Jim Meyering  <meyering@fb.com>
26197         maint: remove stray space after "." in AC_DEFINE comment.
26198         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
26199         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
26201 2016-10-05  Jim Meyering  <meyering@fb.com>
26203         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
26204         * lib/long-options.c (parse_long_options): Add a break statement
26205         to avoid this new warning/failure:
26206         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
26207           --create-testdir --dir=/t/x --with-tests --test long-options
26208         ../../gllib/long-options.c: In function 'parse_long_options':
26209         ../../gllib/long-options.c:66:12: error: this statement may \
26210           fall through [-Werror=implicit-fallthrough]
26211                    (*usage_func) (EXIT_SUCCESS);
26212                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
26214 2016-10-05  Jim Meyering  <meyering@fb.com>
26216         utimecmp: avoid new GCC 7 warning from -Wbool-operation
26217         Testing this module would fail when using GCC 7 like this:
26218         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
26219           --dir=/tmp/x --with-tests --test utimecmp
26220         ../../gllib/utimecmp.c: In function ‘utimecmp’:
26221         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
26222           [-Werror=bool-operation]
26223                          time_t s = src_s & ~ (res == 2 * BILLION);
26224                                             ^
26225         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
26226           [-Werror=bool-operation]
26227                src_s &= ~ (res == 2 * BILLION);
26228                         ^
26229         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
26230         Instead, make it explicit that we intend to apply it to 0 or 1.
26232 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
26234         dfa: save memory for states
26235         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
26236         states if dfa has a lot of caches.
26238 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
26240         wchar, wctype-h: fix for MinGW 3.22.2
26241         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
26242         special invocation, to fix issues with MinGW 3.22.2 wchar.h
26243         when included from <string.h>.
26244         * lib/wctype.in.h [__MINGW32__]: Add special invocation
26245         convention for MinGW 3.22.2, to solve issues with their
26246         wctype.h when included from <ctype.h>.
26248 2016-10-05  Jim Meyering  <meyering@fb.com>
26250         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
26251         * lib/long-options.c (parse_long_options): Add a break statement
26252         to avoid this new warning/failure:
26253         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
26254           --create-testdir --dir=/t/x --with-tests --test long-options
26255         ../../gllib/long-options.c: In function ‘parse_long_options’:
26256         ../../gllib/long-options.c:66:12: error: this statement may \
26257           fall through [-Werror=implicit-fallthrough]
26258                    (*usage_func) (EXIT_SUCCESS);
26259                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
26261         utimecmp: avoid new GCC 7 warning from -Wbool-operation
26262         Testing this module would fail when using GCC 7 like this:
26263         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
26264           --dir=/tmp/x --with-tests --test utimecmp
26265         ../../gllib/utimecmp.c: In function ‘utimecmp’:
26266         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
26267           [-Werror=bool-operation]
26268                          time_t s = src_s & ~ (res == 2 * BILLION);
26269                                             ^
26270         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
26271           [-Werror=bool-operation]
26272                src_s &= ~ (res == 2 * BILLION);
26273                         ^
26274         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
26275         Instead, make it explicit that we intend to apply it to 0 or 1.
26277 2016-10-03  Pádraig Brady  <P@draigBrady.com>
26279         quotearg: minimize shell quoting using double quotes
26280         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
26281         quote in encountered then use double quotes (c style quoting)
26282         when possible, as it simplifies the quoting.
26283         * tests/test-quotearg-simple.c: Add test cases.
26284         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
26285         for the fact we now may write beyond the returned length.
26287 2016-10-02  Jim Meyering  <meyering@fb.com>
26289         vasnprintf.c: avoid spurious warning from GCC 7
26290         The presence of cpp directives renders this "FALLTHROUGH" comment
26291         ineffective, so does not suppress the -Wimplicit-fallthrough warning
26292         from GCC 7 built from git on 2016-10-02.
26293         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
26294         directives, so that it takes effect once again.  This is clearly
26295         not a proper change, and I will revert it once this bug is fixed:
26296         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
26298 2016-10-01  Jim Meyering  <meyering@fb.com>
26300         getprogname: correct the test for a __progname variable
26301         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
26302         and AC_LINK_IFELSE to check for a global __progname.  If found,
26303         define HAVE_VAR___PROGNAME.
26304         * lib/getprogname.c (getprogname): Reflect the new name of the
26305         feature- checked preprocessor symbol:
26306         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
26308 2016-09-28  Jim Meyering  <meyering@fb.com>
26310         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
26311         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
26312         fall-through case with a /* fallthrough */ comment.
26314         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
26315         * lib/dfa.c (dfassbuild): Mark the end of this case with a
26316         /* fallthrough */ comment.
26318         getprogname: avoid __progname vs program_invocation_short_name pitfall
26319         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
26320         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
26321         not with Fedora 24's glibc-2.23.1-10.
26322         * lib/getprogname.c (__progname): Move this declaration down...
26323         (getprogname): ... into the #elif block where used, and make it
26324         explicitly "extern".
26326         getprogname: port to OpenBSD 5.1
26327         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
26328         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
26329         * modules/getprogname (configure.ac): Move most of this code...
26330         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
26331         increment serial number, and add a test for __progname.
26332         https://bugs.gnu.org/24562
26333         Reported by Nelson H. F. Beebe.
26335 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
26337         sched: port to GCC 6.2.1 on macOS Sierra
26338         Problem reported by Denis Davydov in:
26339         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
26340         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
26341         Include <sys/cdefs.h> before <sched.h>.
26342         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
26343         so that we needn’t worry about the sched.h include bug here.
26344         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
26345         and include it before <sched.h> if it exists, when
26346         checking for <sched.h>.
26348         tests/init.sh: port Alpine fix to AIX 7.1
26349         * tests/init.sh (compare_): When attempting to use diff -U3,
26350         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
26351         diff -u not outputting a space after leading '+', as the users
26352         of 'compare' should not be that picky about its output format.
26353         In the AIX 7.1 case, return with diff exit status (or with 2 if
26354         trouble), instead of some random nonzero exit status.
26355         * tests/test-init.sh (test_compare): Remove space after leading
26356         '+', so that AIX 7.1 'diff' passes the test.
26358 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26360         nl_langinfo: pacify GCC
26361         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
26362         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
26364         stdint: also set GL_GENERATE_LIMITS_H
26365         Problem reported by Jim Meyering in:
26366         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
26367         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
26369         limits-h, stdint: Don't assume extensions, fix typo
26370         * m4/limits-h.m4 (gl_LIMITS_H):
26371         * m4/stdint.m4 (gl_STDINT_H):
26372         Don't assume AC_USE_SYSTEM_EXTENSIONS.
26373         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
26374         reported by Jim Meyering in:
26375         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
26377 2016-09-21  Jim Meyering  <meyering@fb.com>
26379         getprogname: port to AIX
26380         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
26381         and strdup to obtain a short program name string.  Using code from
26382         Bruno Haible and an idea from Bastien ROUCARIÈS, in
26383         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
26384         Assaf Gordon reported that this new file would fail to compile on
26385         AIX-7.1 32bit.
26387 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
26389         extensions: fix typo in comment
26390         * m4/extensions.m4: Sync from Autoconf master.
26392         stdint: support new _WIDTH macros
26393         * doc/posix-headers/stdint.texi: Document this.
26394         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
26395         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
26396         support for INTMAX_WIDTH, etc. as well as for support for just C99.
26397         * modules/stdint (Depends-on): Add limits-h.
26398         (Makefile.am): Substitute HAVE_C99_STDINT_H.
26399         * modules/stdint-tests (Depends-on): Add extensions, so that
26400         INTMAX_MAX etc. are defined.
26401         * tests/test-stdint.c: Verify the new macros.
26403         limits-h: new module
26404         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
26405         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
26406         * doc/posix-headers/limits.texi: Document new module.
26407         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
26408         * modules/limit-h-tests, tests/test-limits-h.c: New files.
26410         stdio: don't redefine __USE_MINGW_ANSI_STDIO
26411         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
26412         if it is already defined.  Apparently GNU Emacs relies on this.  See:
26413         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
26415 2016-09-15  Eric Blake  <eblake@redhat.com>
26417         sys_types: avoid glibc 2.25 warnings about major()
26418         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
26419         older autoconf.
26420         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
26421         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
26422         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
26423         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
26425         mountlist: include sysmacros.h for glibc
26426         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
26427         AC_HEADER_MAJOR.
26428         * lib/mountlist.c (includes): Use correct headers.
26430 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
26432         extensions: port to more ISO C TSes
26433         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
26434         master, to add support for more recent ISO C TRs and TSes.
26436 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26438         intprops: new macro TYPE_WIDTH
26439         * lib/intprops.h (TYPE_WIDTH): New macro.
26440         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
26441         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
26442         * lib/parse-datetime.y (parse_datetime2):
26443         Use it.
26445         extensions: port to recent ISO C TRs
26446         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
26447         Sync from Autoconf master, to add support for recent ISO C TRs.
26448         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
26449         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
26450         the MinGW option is not an extension.
26452 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
26454         dfa: port to Solaris 9
26455         Problems reported by Tom G. Christensen in:
26456         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
26457         * modules/dfa (Depends-on): Add isblank.
26458         * modules/dfa-tests (dfa_match_aux_LDADD):
26459         Rename from test_stat_LDADD, to fix typo.
26460         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
26462 2016-09-10  Jim Meyering  <meyering@fb.com>
26464         strverscmp: avoid link failure on OS X
26465         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
26466         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
26468 2016-08-16  Jim Meyering  <meyering@fb.com>
26470         dfa: new module, importing grep's DFA matcher
26471         Since grep's DFA matcher is now being used by two gnulib-enabled
26472         projects, grep and sed, it makes sense to version-control its
26473         sources and unit tests in one place: here.
26474         * modules/dfa: New module.
26475         * modules/dfa-tests: New file.
26476         * lib/dfa.c: New file, from grep.
26477         * lib/dfa.h: Likewise.
26478         * lib/localeinfo.c: Likewise.
26479         * lib/localeinfo.h: Likewise.
26480         * tests/dfa-match-aux.c: Likewise.
26481         * tests/dfa-invalid-char-class.sh: Likewise.
26482         * tests/dfa-match.sh: Likewise, with minor changes.
26483         * MODULES.html.sh (Misc): Add "dfa" to this list.
26485 2016-09-09  Jim Meyering  <meyering@fb.com>
26487         getprogname-tests: don't depend on assert-h
26488         * modules/getprogname-tests (Depends-on): Remove assert-h.
26489         It was not needed, and in fact would cause build failure for
26490         coreutils on some systems.  Reported by Assaf Gordon in https:
26491         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
26493 2016-09-07  Jim Meyering  <meyering@fb.com>
26495         getprogname-tests: work also when EXEEXT is nonempty
26496         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
26497         * tests/test-getprogname.c (main): Use it.
26498         Suggested by Gisle Vanem.
26500 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
26502         getprogname: fix errors in previous change
26503         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
26504         s/program_invocation_name/base/
26505         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
26507 2016-09-08  Pádraig Brady  <P@draigBrady.com>
26509         parse-datetime: restrict debug output to input string
26510         * lib/parse-datetime.y (parse_datetime2): If we parse
26511         all of the input but determine it's invalid, ensure
26512         we don't output the now invalid input pointer.
26513         This issue was seen with `date -d 'now +1'`.
26515 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
26517         flexmember: new macro FLEXALIGNOF
26518         * lib/flexmember.h: Include <stddef.h>, for offsetof.
26519         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
26520         this macro.  Update comments.
26522 2016-09-07  Jim Meyering  <meyering@fb.com>
26524         getprogname: port to systems with __argv (mingw, msvc)
26525         * lib/getprogname.c (getprogname): Include "dirname.h" and use
26526         last_component: more general than open coding it with hard-coded "/".
26527         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
26528         * modules/getprogname (Depends-on): Add dirname-lgpl.
26529         (configure.ac): Check for __argv in <stdlib.h>.
26530         * modules/getprogname-tests: New file.
26531         * tests/test-getprogname.c: New file.
26532         Suggested by Gisle Vanem in
26533         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
26535 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
26537         flexmember: port better to GCC + valgrind
26538         With a char[] flexible array member in a struct with nontrivial
26539         alignment, GCC-generated code can access past the end of the
26540         array, because GCC assumes there are padding bytes to get the
26541         struct aligned.  So the common idiom of malloc (offsetof (struct
26542         s, m), n) does not properly allocate an n-byte trailing member, as
26543         malloc’s argument should be the next multiple of alignof (struct s).
26544         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
26545         Although C11 apparently permits this GCC optimization (i.e., there
26546         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
26547         See the thread containing:
26548         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
26549         * lib/flexmember.h: New file.
26550         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
26551         * lib/localename.c, lib/time_rz.c:
26552         Include flexmember.h.
26553         * lib/fnmatch_loop.c (struct patternlist):
26554         * lib/localename.c (struct hash_node):
26555         Use FLEXIBLE_ARRAY_MEMBER.
26556         * lib/fnmatch_loop.c (EXT):
26557         * lib/fts.c (fts_alloc):
26558         * lib/glob.c (glob_in_dir):
26559         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
26560         * lib/localename.c (gl_lock_define_initialized):
26561         * lib/time_rz.c (tzalloc):
26562         Use FLEXSIZEOF instead of offsetof.
26563         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
26564         Check that the size of the struct can be taken.
26565         * modules/flexmember (Files): Add lib/flexmember.h.
26566         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
26567         Add flexmember.
26569 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
26571         getprogname: port to Solaris 10
26572         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
26573         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
26574         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
26576         stdalign: correct mistake in alignof doc
26577         Problem reported by Joseph Myers in:
26578         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
26579         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
26580         alignof(S) where S is a structure containing a flexible array
26581         member.  The Gnulib substitute does not support this, but C11 does.
26583 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
26585         main.mk: remove sc_program_name, since there is no more need to
26586         use set_program_name in tools (getprogname is enough for most
26587         of the cases).
26588         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
26589         * top/maint.mk (sc_program_name): Remove.
26591 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
26593         Port tests away from progname, since modules that need the
26594         program name already depend on getprogname.
26595         * modules/acl-tests (Depends-on): Remove progname.
26596         * modules/argmatch (Depends-on): Likewise.
26597         * modules/argmatch-tests (Depends-on): Likewise.
26598         * modules/argp-tests (Depends-on): Likewise.
26599         * modules/argp-version-etc-tests (Depends-on): Likewise.
26600         * modules/array-list-tests (Depends-on): Likewise.
26601         * modules/array-oset-tests (Depends-on): Likewise.
26602         * modules/avltree-list-tests (Depends-on): Likewise.
26603         * modules/avltree-oset-tests (Depends-on): Likewise.
26604         * modules/avltreehash-list-tests (Depends-on): Likewise.
26605         * modules/carray-list-tests (Depends-on): Likewise.
26606         * modules/copy-file-tests (Depends-on): Likewise.
26607         * modules/exclude-tests (Depends-on): Likewise.
26608         * modules/fchownat-tests (Depends-on): Likewise.
26609         * modules/fdopendir-tests (Depends-on): Likewise.
26610         * modules/filenamecat-tests (Depends-on): Likewise.
26611         * modules/fstatat-tests (Depends-on): Likewise.
26612         * modules/fstrcmp-tests (Depends-on): Likewise.
26613         * modules/linked-list-tests (Depends-on): Likewise.
26614         * modules/linkedhash-list-tests (Depends-on): Likewise.
26615         * modules/mkdirat-tests (Depends-on): Likewise.
26616         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
26617         * modules/nonblocking-socket-tests (Depends-on): Likewise.
26618         * modules/obstack-printf-tests (Depends-on): Likewise.
26619         * modules/openat-tests (Depends-on): Likewise.
26620         * modules/parse-datetime-tests (Depends-on): Likewise.
26621         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
26622         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
26623         * modules/quotearg-simple-tests (Depends-on): Likewise.
26624         * modules/quotearg-tests (Depends-on): Likewise.
26625         * modules/rbtree-list-tests (Depends-on): Likewise.
26626         * modules/rbtree-oset-tests (Depends-on): Likewise.
26627         * modules/rbtreehash-list-tests (Depends-on): Likewise.
26628         * modules/spawn-pipe-tests (Depends-on): Likewise.
26629         * modules/system-quote-tests (Depends-on): Likewise.
26630         * modules/uniname/uniname-tests (Depends-on): Likewise.
26631         * modules/uninorm/nfc-tests (Depends-on): Likewise.
26632         * modules/uninorm/nfd-tests (Depends-on): Likewise.
26633         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
26634         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
26635         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
26636         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
26637         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
26638         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
26639         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
26640         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
26641         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
26642         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
26643         * modules/unlinkat-tests (Depends-on): Likewise.
26644         * modules/version-etc-tests (Depends-on): Likewise.
26645         * modules/xalloc-die-tests (Depends-on): Likewise.
26646         * modules/xmemdup0-tests (Depends-on): Likewise.
26647         * modules/xprintf-posix-tests (Depends-on): Likewise.
26648         * modules/xvasprintf-tests (Depends-on): Likewise.
26649         * tests/test-argmatch.c: Do not include progname.h.
26650         (main) Stop calling set_program_name.
26651         * tests/test-argp-version-etc.c: Likewise.
26652         * tests/test-argp.c: Likewise.
26653         * tests/test-argv-iter.c: Likewise.
26654         * tests/test-array_list.c: Likewise.
26655         * tests/test-array_oset.c: Likewise.
26656         * tests/test-avltree_list.c: Likewise.
26657         * tests/test-avltree_oset.c: Likewise.
26658         * tests/test-avltreehash_list.c: Likewise.
26659         * tests/test-carray_list.c: Likewise.
26660         * tests/test-copy-acl.c: Likewise.
26661         * tests/test-copy-file.c: Likewise.
26662         * tests/test-exclude.c: Likewise.
26663         * tests/test-fchownat.c: Likewise.
26664         * tests/test-fdopendir.c: Likewise.
26665         * tests/test-filenamecat.c: Likewise.
26666         * tests/test-fstatat.c: Likewise.
26667         * tests/test-fstrcmp.c: Likewise.
26668         * tests/test-linked_list.c: Likewise.
26669         * tests/test-linkedhash_list.c: Likewise.
26670         * tests/test-mkdirat.c: Likewise.
26671         * tests/test-nonblocking-pipe-main.c: Likewise.
26672         * tests/test-nonblocking-socket-main.c: Likewise.
26673         * tests/test-obstack-printf.c: Likewise.
26674         * tests/test-openat.c: Likewise.
26675         * tests/test-parse-datetime.c: Likewise.
26676         * tests/test-pipe-filter-gi1.c: Likewise.
26677         * tests/test-pipe-filter-gi2-main.c: Likewise.
26678         * tests/test-pipe-filter-ii1.c: Likewise.
26679         * tests/test-pipe-filter-ii2-main.c: Likewise.
26680         * tests/test-quotearg-simple.c: Likewise.
26681         * tests/test-quotearg.c: Likewise.
26682         * tests/test-rbtree_list.c: Likewise.
26683         * tests/test-rbtree_oset.c: Likewise.
26684         * tests/test-rbtreehash_list.c: Likewise.
26685         * tests/test-sameacls.c: Likewise.
26686         * tests/test-set-mode-acl.c: Likewise.
26687         * tests/test-spawn-pipe-main.c: Likewise.
26688         * tests/test-system-quote-main.c: Likewise.
26689         * tests/test-unlinkat.c: Likewise.
26690         * tests/test-version-etc.c: Likewise.
26691         * tests/test-xalloc-die.c: Likewise.
26692         * tests/test-xfprintf-posix.c: Likewise.
26693         * tests/test-xmemdup0.c: Likewise.
26694         * tests/test-xprintf-posix.c: Likewise.
26695         * tests/test-xvasprintf.c: Likewise.
26696         * tests/uniname/test-uninames.c: Likewise.
26697         * tests/uninorm/test-u32-nfc-big.c: Likewise.
26698         * tests/uninorm/test-u32-nfd-big.c: Likewise.
26699         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
26700         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
26701         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
26702         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
26703         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
26704         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
26705         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
26706         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
26707         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
26708         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
26709         * tests/test-c-stack.c: (program_name): Do not define.
26710         (main): Do not set program_name.
26711         * tests/test-closein.c: Likewise.
26712         * tests/test-xstrtol.c: Likewise.
26713         * tests/test-yesno.c: Likewise.
26715 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
26717         Port modules to use getprogname explicitly, instead of requiring
26718         progname to be used (or program_name to be provided).
26719         * lib/argmatch.c: Do not include progname.h.
26720         [TEST] (program_name): Do not define.
26721         [TEST] (main): Call getprogname instead of using program_name.
26722         * lib/c-stack.c: Do not include progname.h.
26723         (program_name): Do not define.
26724         (die): Call getprogname instead of using program_name.
26725         * lib/chdir-long.c: Do not include progname.h.
26726         [TEST_CHDIR] (main): Do not set program_name.
26727         * lib/error.c [!_LIBC]: Include progname.h.
26728         [!_LIBC] (program_name): Define using getprogname.
26729         * lib/euidaccess.c: Do not include progname.h.
26730         [TEST] (main): Do not set program_name.
26731         * lib/git-merge-changelog.c: Include getprogname.h instead of
26732         progname.h.
26733         (usage): Call getprogname instead of using program_name.
26734         (main): Likewise.  Stop calling set_program_name.
26735         * lib/group-member.c: Do not include progname.h.
26736         [TEST] (main): Do not set program_name.
26737         * modules/argmatch (Depends-on): Add getprogname.
26738         * modules/c-stack (Depends-on): Likewise.
26739         * modules/error (Depends-on): Likewise.
26740         * modules/git-merge-changelog (Depends-on): Likewise.
26741         Also remove progname.
26743 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
26745         * NEWS: Document the deprecation of the 'progname' module.
26747 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
26749         getprogname: new module
26750         This provides a LGPL module for getting the name of the current
26751         program, using the same API found on *BSD systems.
26752         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
26753         * modules/getprogname: New files.
26754         * MODULES.html.sh (Misc): Add getprogname.
26756 2016-09-02  Jim Meyering  <meyering@fb.com>
26758         manywarnings: add -fno-common
26759         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
26760         to the list.  Quoting the manual, "Compiling with -fno-common is
26761         useful on targets for which it provides better performance, or if
26762         you wish to verify that the program will work on other systems that
26763         always treat uninitialized variable declarations this way [putting
26764         it in the data section]."  If diffutils had been using this sooner,
26765         it would have prevented this duplicate declaration issue:
26766         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
26768 2016-08-31  Simon Josefsson  <simon@josefsson.org>
26770         parse-datetime: Fix typo.
26771         * lib/parse-datetime.y (parse_datetime2): Fix typo.
26773 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
26775         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
26776         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
26777         GCC 5 and 6 that have __builtin_sub_overflow but not
26778         __builtin_sub_overflow_p.  With the recent changes, these
26779         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
26780         implementation than with INT_SUBTRACT_OVERFLOW implementation,
26781         since the former needs just one runtime comparison whereas the
26782         latter needs two.
26784         strverscmp: sync with glibc
26785         Although this doesn't exactly synchronize with glibc
26786         byte-for-byte, it makes the code behave the same as glibc.
26787         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
26788         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
26789         difference shouldn't matter in practical use.  All uses changed
26790         back to isdigit.
26791         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
26792         (next_state): Now unsigned char array; redo elements.
26793         (result_type): Now signed char array; redo elements.
26794         (__strverscmp): Fix glibc bug 9913 by using new states.
26795         * tests/test-strverscmp.c (main): Test glibc bug 9913.
26797 2016-08-29  Jim Meyering  <meyering@fb.com>
26799         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
26800         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
26801         similarly to how it was done to intprops.h.
26803 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
26805         intprops.h: port recent changes to GCC 6.2.0
26806         * lib/intprops.h (__has_builtin): Move earlier.
26807         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
26808         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
26809         the last argument can be null.  All uses changed.
26810         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
26811         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
26812         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
26813         and it's not clear which GCC versions it works for.
26814         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
26815         its definiens.
26817         intprops.h: use __typeof__ with GCC 7
26818         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
26819         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
26820         This avoids computing the expression's value (which might overflow!).
26822 2016-08-29  Jim Meyering  <meyering@fb.com>
26824         intprops.h, xalloc-oversized.h: work with gcc 7
26825         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
26826         __builtin_mul_overflow each accept a NULL pointer as the third
26827         argument.  However in gcc 7, that is no longer accepted.
26828         Instead, one must use the "_p"-suffixed names, with which, the
26829         third parameter is no longer a pointer.
26830         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
26831         the definition: not true for gcc 7 and subsequent.
26832         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
26833         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
26834         Provide new definitions for gcc 7 and subsequent.
26835         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
26836         that works with gcc-7.
26838         intprops.h: fix missing-backslash problems
26839         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
26840         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
26842 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26844         intprops: fix paren typo on old platforms
26845         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
26846         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
26847         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
26848         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
26849         && !defined LLONG_MAX]:
26850         Remove stray paren.
26852         intprops: port to OpenVMS
26853         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
26854         * doc/posix-headers/limits.texi: Document the problem.
26855         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
26856         Define if not already defined.
26858 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
26860         parse-datetime: improve debug implementation
26861         Follow-up to commit 12ad79069 ("add optional debug printing").
26862         Improve parse-datetime's debug implementation: remove macros,
26863         replace global debug flag variable with a function parameter,
26864         use nstrftime for formatting.
26865         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
26866         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
26867         (parse_datetime2): New function, accepts 'flags' parameter, supporting
26868         debug flag. Existing interface 'parse_datetime' left unmodified.
26869         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
26870         (struct parser_control): add 'parse_datetime_debug' member variable.
26871         (parse_datetime): Call new function 'parse_datetime2' without debug.
26872         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
26873         pc.parse_datetime_debug variable as needed.
26874         (to_year): Accept new flags parameter, instead of using global variable.
26875         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
26876         use struct 'debug' variable instead of global variable.
26877         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
26878         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
26879         correspnding functions directly instead of using macros.
26880         * modules/parse-datetime: Add gnulib's strftime module.
26882 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
26884         c-strcase-tests: port to EBCDIC
26885         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
26886         which assume ASCII encoding semantics to run only in ASCII
26887         mode, as they fail in EBCDIC.
26889         sigpipe-tests: fix typo
26890         * tests/test-sigpipe.sh: C, not B.
26892 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
26894         canonicalize-lgpl: fix errno after malloca fails
26895         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
26896         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
26897         * lib/canonicalize-lgpl.c (__realpath):
26898         Don't assume malloca sets errno on failure.
26900 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
26902         strtod: port errno handling to z/OS
26903         * lib/strtod.c (strtod): Save and restore errno more reliably.
26905 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
26907         strtod: port to z/OS
26908         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
26909         implementation.
26911 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
26913         strtod: port to z/OS
26914         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
26915         implementation.
26917         regex, string: rename to avoid '__string'
26918         * lib/regex.h, lib/string.in.h: Do not use the identifier
26919         '__string', as it is effectively reserved by string.h on z/OS.
26921         c-strcase-tests, wcwidth-tests: depend on c-ctype
26922         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
26923         Add c-ctype.
26925 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
26927         thread: port to z/OS
26928         * lib/glthread/thread.c, lib/glthread/thread.h:
26929         Rudimentary gl_thread support for z/OS.
26931         maint: port tests to z/OS errno behavior
26932         * tests/test-nonblocking-reader.h:
26933         * tests/test-nonblocking-writer.h:
26934         Accommodate z/OS errno code preferences. (I believe this should
26935         still be within spec; IBM is good at following the letter if not
26936         the spirit of such things.)
26938         maint: preprocessor changes to support z/OS
26939         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
26940         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
26941         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
26942         * tests/test-nonblocking-pipe.h:
26944         fclose, strstr-simple, wchar: port to z/OS
26945         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
26946         Changes to the Autoconf M4 code to support z/OS.  Note that
26947         fclose() is broken in a different way on z/OS than it is on other
26948         systems, thus the special-case in fclose.m4.
26950         iconv_open-utf-tests, iconv-tests: port to EBCDIC
26951         * tests/test-iconv-utf.c, tests/test-iconv.c:
26952         Added appropriately conditional #pragmas so that the test strings
26953         in test-iconv-utf.c are correctly interpreted in ASCII instead of
26954         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
26955         addressed in a more portable way by simply rewriting all the ASCII
26956         literal characters as octal escapes, but then you would lose the
26957         partial readability that the strings have now. Also, iconv_open()
26958         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
26960         c-strcase-tests, wcwidth-tests: port to EBCDIC
26961         * tests/test-c-strcasecmp.c: Include c-ctype.h.
26962         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
26963         * tests/test-wcwidth.c: Likewise.
26965 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
26967         stdbool: don't require _Bool for C++
26968         Problem reported by David Seifert in:
26969         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
26970         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
26971         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
26972         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
26973         stricter about checking that bool and _Bool are compatible in C.
26975 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
26977         getdelim: remove dependency on realloc-posix
26978         * lib/canonicalize-lgpl.c (alloc_failed)
26979         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
26980         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
26981         Use __set_errno where needed, for consistency.
26982         * lib/getdelim.c (alloc_failed): New function.
26983         (getdelim): Use it.
26985 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
26987         parse-datetime: add optional debug printing
26988         Print parsing information, warnings, and errors to stderr.
26989         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
26990         * lib/parse-datetime.y:
26991         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
26992         (PROGRESS*): Same as DEBUG, for progress reporting.
26993         (dbg_printf): Print message to stderr, with 'date' prefix.
26994         (struct parser_control): Add 'debug_*_seen' variables.
26995         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
26996         (debug_print_current_time, debug_print_relateive_time): Prints the
26997         current/relative date/time value of parser_control.
26998         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
26999         (to_year): Warn about 2-digit year parsing.
27000         (yylex):   Warn about unrecognized words.
27001         (get_effective_timezone): Returns current timezone in minutes.
27002         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
27003         clearly and unambigiously as possible.
27004         (debug_mktime_not_ok): Print detailed information about failed
27005         date/time values.
27006         (parse_datetime): Add DEBUG messages for failures, warnings. Add
27007         PROGRESS messages for status messages.
27008         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
27010 2016-08-06  Jim Meyering  <meyering@fb.com>
27012         tests/init.sh: exclude dash with bad "local" semantics
27013         * tests/init.sh (gl_shell_test_script_): Add a function to
27014         eliminate a shell like "dash" (unlike bash, zsh) that has
27015         surprising/risky "local var='...'" semantics.  Inspired by
27016         the problem and discussion in https://bugs.gnu.org/24116#11.
27018 2016-08-02  Ján Tomko  <jtomko@redhat.com>
27020         maint.mk: expand the prohibit_doubled_word regex
27021         This check has a static list of words that are checked for
27022         repetitions.  Expand it before running the perl script to
27023         avoid using expensive captures.  This decreases the cost
27024         for libvirt from 1.66s to 0.66s.
27025         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
27026         (sc_prohibit_doubled_word): Use it.
27028 2016-07-26  Ján Tomko  <jtomko@redhat.com>
27030         useless-if-before-free: skip non-matching lines early
27031         * build-aux/useless-if-before-free: First match each line with the
27032         simple/quick /\bif\b/ and reject if there is no match. This often
27033         saves the cost of the much more involved regular expression.
27034         For libvirt, this decreases the cost from 1.44s to 1.02s.
27036 2016-07-26  Ján Tomko  <jtomko@redhat.com>
27038         maint.mk: speed up sc_po_check
27039         sc_po_check would skip files based on their names, or on the
27040         existence of files with derived names. Rewrite it to use perl
27041         instead of shell to make the check faster.
27042         * top/maint.mk (perl_translatable_files_list_): Define.
27043         (sc_po_check): Use it.
27045 2016-07-30  Ján Tomko  <jtomko@redhat.com>
27047         maint.mk: speed up require_config_h_first
27048         Instead of spawning three processes per file,
27049         rewrite the check in perl and run it once for all the files.
27050         * top/maint.mk (perl_config_h_first_): Define.
27051         (sc_require_config_h_first): Use it in place of shell code.
27053 2016-07-26  Ján Tomko  <jtomko@redhat.com>
27055         maint.mk: speed up sc_po_check
27056         sc_po_check would skip files based on their names, or on the
27057         existence of files with derived names. Rewrite it to use perl
27058         instead of shell to make the check faster.
27059         * top/maint.mk (perl_translatable_files_list_): Define.
27060         (sc_po_check): Use it.
27062 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
27064         obstack: pacify GCC 6 with -Wnull-dereference
27065         Problem reported by Assaf Gordon in:
27066         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
27067         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
27068         Declare with __attribute_noreturn__.
27069         * lib/obstack.h (__attribute_noreturn__): New macro.
27071 2016-07-13  Eric Blake  <eblake@redhat.com>
27073         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
27074         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
27075         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
27077 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
27079         doc: mention glibc SSIZE_MAX buglet
27080         * doc/posix-headers/limits.texi (limits.h): Document the bug.
27082 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
27084         printf-posix: Fix mingw build
27085         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
27086         expression for detecting C symbol prefixes but forgot to qoute square
27087         brackets in the command line arguments for grep.  That way when
27088         building with mingw the condition was false although it ought to be
27089         true instead.  In particular scenarios this led to the following
27090         compile error:
27092             Cannot export rpl_printf: symbol not found
27093             Cannot export rpl_scanf: symbol not found
27094             collect2: error: ld returned 1 exit status
27096         Fix this by properly quoting square brackets.
27098 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
27100         mktime: call tzset as per POSIX
27101         Problem reported by Ludovic Courtès in:
27102         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
27103         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
27104         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
27106 2016-06-26  Pádraig Brady  <P@draigBrady.com>
27108         fts: handle readdir() errors
27109         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
27110         but also upon error when it will also set errno.  Therefore
27111         flag the error case from readdir().  We treat the case where
27112         no items are read the same as if the dir can't be accessed,
27113         i.e. by setting fts_errno to FTS_DNR.
27115 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
27117         intprops: port better to GCC 7
27118         GCC 7 __builtin_add_overflow supports a new usage form, where the
27119         last argument is a null pointer, and which merely returns 1 if an
27120         overflow would occur.  This is a constant expression if all
27121         arguments are constants, and should generate faster code when code
27122         needs to be generated.
27123         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
27124         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
27125         Use builtin operations if available.
27126         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
27127         operations are available, as it's almost surely faster.
27129 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
27131         intprops-test: port to GCC 6
27132         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
27133         since the bug is not fixed in GCC 6.1.
27135 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
27137         xalloc-oversized: port to GCC 7; fewer warnings
27138         GCC 7 will have a better way to deal with integer overflow.
27139         Plus, fix a warnings problem reported by Tim Ruehsen in:
27140         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
27141         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
27142         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
27143         For GCC 5, use __xalloc_oversized if both args are constants,
27144         or if pedantic.
27146 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
27148         regex: port to Sun C
27149         Reported by Daiki Ueno.
27150         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
27151         __restrict, in prototype.  This fixes a problem I introduced in
27152         the 2016-02-19 merge from glibc.
27154 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
27156         stdbool: Restore __bool_true_false_are_defined check
27157         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
27158         __bool_true_false_are_defined is still defined, even with C++11.
27160 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
27162         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
27163         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
27165 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
27167         Use GCC_LINT, not lint
27168         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
27169         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
27170         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
27171         Document problem with lint and _Noreturn.
27172         * lib/diffseq.h (IF_LINT, IF_LINT2):
27173         * lib/fts.c (sccsid):
27174         * lib/getndelim2.c (IF_LINT):
27175         * lib/gl_anylinked_list2.h (gl_linked_iterator)
27176         (gl_linked_iterator_from_to):
27177         * lib/gl_anytree_list2.h (gl_tree_iterator)
27178         (gl_tree_iterator_from_to):
27179         * lib/gl_anytree_oset.h (gl_tree_iterator):
27180         * lib/gl_array_list.c (gl_array_iterator)
27181         (gl_array_iterator_from_to):
27182         * lib/gl_array_oset.c (gl_array_iterator):
27183         * lib/gl_carray_list.c (gl_carray_iterator)
27184         (gl_carray_iterator_from_to):
27185         * lib/idcache.c:
27186         * lib/inet_ntop.c (IF_LINT):
27187         * lib/regcomp.c (build_charclass_op, create_tree):
27188         * lib/regex_internal.c (re_acquire_state)
27189         (re_acquire_state_context):
27190         * lib/trigl.c (rcsid):
27191         * lib/trim.c (IF_LINT):
27192         * lib/vasnprintf.c (IF_LINT):
27193         * lib/verify.h (assume):
27194         Treat GCC_LINT like lint.
27196 2016-05-29  Bruno Haible  <bruno@clisp.org>
27198         secure_getenv: Port to many more platforms.
27199         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
27200         functions.
27201         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
27202         for non-BSD Unix platforms and for native Windows.
27203         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
27204         Prompted by a request from Nikos Mavrogiannopoulos.
27206 2016-05-27  Eric Blake  <eblake@redhat.com>
27208         canonicalize: Fix broken probe for realpath.
27209         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
27210         in logic introduced in 54615b95.
27212 2016-05-26  Eric Blake  <eblake@redhat.com>
27214         unsetenv: relax to LGPLv2+
27215         * modules/unsetenv (License): Match setenv license.
27217 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
27219         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
27220         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
27221         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
27222         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
27223         (commonarg, dirargs, dirs, infoarg, generate_ascii)
27224         (generate_html, generate_info, generate_tex, outdir)
27225         (source_extra, split, srcfile, texarg): Move above 'version'.
27226         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
27228 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
27230         manywarnings: update for GCC 6.1
27231         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
27232         Add GCC 6.1 options that apply to C.
27233         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
27234         do not apply to C, are obsolescent, etc.
27236 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
27238         glob: size_t overflow checks
27239         * lib/glob.c (__has_builtin): New macro.
27240         (size_add_wrapv, glob_use_alloca): New static functions.
27241         (glob, glob_in_dir): Check for size_t overflow in several places,
27242         and fix some size_t checks that were not quite right.
27244         glob: don't assume INT_MAX < SIZE_MAX
27245         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
27246         latter is not portable to (probably theoretical) hosts where
27247         SIZE_MAX <= INT_MAX.
27249 2016-05-09  Bruno Haible  <bruno@clisp.org>
27251         Fix undefined behaviour in gettext.h.
27252         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
27253         pointer's value after the storage it points to has been freed.
27254         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
27255         Spotted by Coverity.
27257 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
27259         git-version-gen: avoid undefined shift
27260         Problem reported by Mosè Giordano in:
27261         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
27262         * build-aux/git-version-gen: Avoid undefined behavior if invoked
27263         with --prefix or --fallback but without a later argument.  While
27264         we're at it, omit unnecessary quotes.
27266 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
27268         glob: merge glibc changes into lib/glob.c
27269         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
27270         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
27271         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
27272           struct dirent [BZ #19779]
27273         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
27274           callback gl_readdir
27275         2015-10-20 Convert miscellaneous function definitions to prototype style
27276         2015-10-20 Convert 113 more function definitions to prototype style
27277           (files with assertions)
27278         2015-06-12 Fix getlogin_r namespace (bug 18527).
27279         2014-02-10 Use glibc_likely instead __builtin_expect.
27280         2013-10-20 When glob pattern contains a trailing slash match only
27281           directories. Fixes bug 10278.
27282         2013-09-04 glob: silence -Wattribute warnings
27283         2013-06-07 Avoid use of "register" as optimization hint.
27284         2012-09-25 Use size_t instead of int for internal variables in glob
27285           (bug 14621)
27286         2011-07-20 Check for overflows in expressions
27287         2011-05-28 Remove unused variable
27288         2011-05-22 Add a few more alloca size checks
27289         2010-03-27 Whitespace fixes
27290         2010-03-27 Fix one more issue with the glob patch
27291         2010-03-24 Fix glob with empty pattern
27292         2008-05-27 Remove useless more "if" tests before "free"
27293         * modules/glob (Depends-on): Add stdint.
27295 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
27297         mktime: port to stricter signed overflow checking
27298         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
27299         (long_int): Require width for INT_MAX * 3 * (seconds per year),
27300         instead of merely for INT_MAX * 2.  In practice platforms that
27301         do the latter also do the former.
27302         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
27303         (shr): New static function, replacing SHR.  All uses changed.
27304         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
27305         and TIME_T_MAX.  All uses changed.
27306         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
27307         Use long_int, not time_t.
27308         (long_int_avg): New static function, replacing time_t_avg.
27309         All uses changed.  Round toward positive infinity, as that
27310         generates slightly better code.
27311         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
27312         by INT_ADD_WRAPV.
27313         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
27314         (convert_time): New static function.
27315         (ranged_convert): Use it
27316         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
27317         Use simpler test for loop exit.
27318         (__mktime_internal): Store negative of guessed offset, to simplify
27319         overflow checking.  Remove no-longer-needed test for small time_t
27320         overflows.
27322         mktime: speed up DEBUG_MKTIME benchmarks
27323         Call tzset just once, at the start, rather than for every test
27324         case.  This lets us measure the CPU cost of mktime as opposed to
27325         that of tzset.  This is relevant when TZ is not set and glibc is
27326         being used.  This speeds up tests by a factor of 40 on my Fedora
27327         23 x86-64 platform.
27328         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
27329         to call tzset and as a sanity check.  Later on, use localtime_r
27330         instead of localtime.
27332         mktime: resurrect DEBUG_MKTIME testing
27333         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
27334         Include <string.h>, for strcmp.
27336         mktime: simplify DEBUG_MKTIME
27337         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
27338         Simplify later usage accordingly.
27340         Port mktime_internal offset to unsigned time_t
27341         This avoids some assumptions about wraparound arithmetic on
27342         signed integer overflow.
27343         * lib/mktime-internal.h (mktime_offset_t): New type.
27344         (mktime_internal): Use it in decl.
27345         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
27347         * lib/mktime.c (__mktime_internal, localtime_offset):
27348         * lib/timegm.c (timegm): Use it.
27349         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
27350         (gl_FUNC_MKTIME): Require it.
27352 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
27354         xstrtol: prohibit monstrosities like "1bB"
27355         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
27356         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
27357         "B" only if the first suffix needs a base.
27358         * tests/test-xstrtol.sh: Test this.
27360 2016-04-21  Pádraig Brady  <P@draigBrady.com>
27362         xstrtod: reinstate setting of *result upon ERANGE
27363         * lib/xstrtod.c (XSTRTOD): The user may decide to use
27364         the returned limits upon ERANGE, so allow and document that.
27366 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
27368         xstrtod: modify *result only if no errors
27369         * lib/xstrtod.c (XSTRTOD).
27371 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
27373         btowc: document problems in C locale
27374         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
27375         with mbrtowc.  See: http://bugs.gnu.org/23269#32
27377 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
27379         mktime: improve integer overflow checking
27380         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
27381         (WRAPV): Remove; no longer needed.
27382         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
27383         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
27384         Remove.  Use intprops.h defns instead.
27385         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
27386         Use bool for Boolean, for clarity.
27387         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
27388         detect integer overflow.
27389         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
27391         intprops: check two's complement assumption
27392         Suggested by Eric Blake in:
27393         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
27394         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
27395         short, int, long, and (if available) long long are two's complement.
27396         * modules/intprops (Depends-on): Add 'verify'.
27398         intprops, mktime, strtol: assume two's complement
27399         These macros were not portable to every conforming C11 ones'
27400         complement platform.  It's not worth the hassle of porting to some
27401         platforms that use ones' complement or signed magnitude, as such
27402         platforms are almost purely theoretical nowadays and porting even
27403         to some of them makes the code harder to review for little
27404         practical benefit.  Problem reported by Florian Weimer in:
27405         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
27406         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
27407         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
27408         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
27409         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
27410         (TYPE_SIGNED_MAGNITUDE):
27411         Remove.  All uses rewritten to assume two's complement, which is
27412         all we can reasonably test nowadays anyway.
27413         * top/maint.mk (_intprops_names): Remove the removed macros.
27415 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
27417         stdint: port to strict C11 left shift
27418         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
27419         Pacify clang -Wshift-negative-value, which should be an issue only
27420         on clang setups where stdint.h does not conform to C11 or to C++11.
27421         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
27423 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
27425         mbrtowc: work around glibc bug#19932
27426         Fix mbrtowc so that it never returns -1 in the C locale,
27427         as this conflicts with a future version of POSIX
27428         http://austingroupbugs.net/view.php?id=663#c2738
27429         and causes problems with GNU grep: http://bugs.gnu.org/23234
27430         See glibc bug 19932:
27431         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
27432         * doc/posix-functions/mbrlen.texi (mbrlen):
27433         * doc/posix-functions/mbrtowc.texi (mbrtowc):
27434         Document the glibc bug.
27435         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
27436         Include hard-locale.h, locale.h.
27437         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
27438         if the bug is possible.
27439         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
27440         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
27441         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
27442         * modules/mbrtowc (Depends-on): Add hard-locale.
27443         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
27444         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
27445         * tests/test-mbrtowc5.sh: New file.
27447 2016-04-03  Pedro Alves  <palves@redhat.com>
27449         stdint: detect good enough pre-C++11 stdint.h in C++ mode
27450         When gnulib is configured in C++ mode for a system with a working C99
27451         implementation of stdint.h that predates C++11, gnulib ends up
27452         substituting stdint.h anyway.  This works on most targets, but on e.g.,
27453         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
27454         MinGW is LLP64.  Instead of trying to detect the right types, detect
27455         good-enough-pre-C++11 stdint.h and in such case define
27456         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
27457         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
27458         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
27459         conforms to C99.  If it does, check whether it hides symbols
27460         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
27461         does, define those macros in config.h.
27463 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
27465         argp: merge changes from glibc
27466         Among other things, this should fix problems found by a Coverity
27467         scan and reported by Andrei Borzenkov:
27468         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
27469         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
27470         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
27471         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
27472         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
27473         * lib/argp.h:
27474         Merge changes from glibc.
27475         * tests/test-argp-2.sh: Adjust to match new behavior.
27477 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
27479         stddef: support configuring with g++
27480         Problem reported by Ángel González in:
27481         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
27482         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
27483         Do not define if _GCC_MAX_ALIGN_T is defined.
27485 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
27487         test-framework-sh: minor cleanups
27488         * tests/init.sh (testdir_prefix_): Output a trailing newline,
27489         since strictly speaking POSIX requires this.
27490         (setup_): Do not use the variable 'fail', as that makes the
27491         trace output harder to read ('fail' is typically used by
27492         tests to mean the test failed).  Treat // portably.
27493         Check that new directory is not merely a sibling of the tmp dir.
27494         Avoid unnecessary invocation of tr.
27496         test-framework-sh: revert port to NetBSD 7.0
27497         It was a false alarm; I misinterpreted Assaf Gordon's report.
27498         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
27499         Restore.
27500         (test_dir_): Adjust to mktempd_ change.
27501         (mktempd_): Restore 2nd arg.  Use -t again.
27502         (base_template_, template_, nx_): Resurrect old code.
27504         Port better to Alpine Linux
27505         Its diff implementation does not support -c, but does support -U3.
27506         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
27507         * tests/init.sh (diff_opt_): New var.
27508         (compare_): Prefer diff -U3 to diff -c to plain diff.
27510 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
27512         test-framework-sh: port to NetBSD 7.0
27513         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
27514         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
27515         Remove.  All uses removed.
27516         (test_dir_): Adjust to mktempd_ change.
27517         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
27518         (base_template_, template_, nx_): Simplify by hardcoding.
27520 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
27522         gitlog-to-changelog: suppress ignored chatter
27523         * build-aux/gitlog-to-changelog: Do not warn about skipping
27524         an SHA if it would have been ignored anyway.
27526 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
27528         setlocale: add "sv" to Windows language table
27529         * lib/setlocale.c (language_table) [W32]: Add "sv".
27530         Reported in <https://savannah.gnu.org/bugs/?44588>.
27532 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
27534         sys_select: port to new Cygwin
27535         Problem reported by Ken Brown in:
27536         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
27537         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
27538         diagnostics.
27540 2016-03-17  Jim Meyering  <meyering@fb.com>
27542         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
27543         * tests/test-userspec.c (main): Remove unnecessary braces and fix
27544         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
27545           test-userspec.c:176:9: error: statement is indented as if it were \
27546             guarded by... [-Werror=misleading-indentation]
27547                    {
27548                    ^
27549           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
27550                  if (!diag && !T[i].result)
27551                  ^~
27553 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
27555         time_rz: port to clang -Wunused-const-variable
27556         * lib/time_rz.c (TZ): Remove.  All uses removed.
27558         std-gnu11: improve clang support
27559         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
27560         2016-03-15 Also try clang
27561         2016-03-15 Port C11 and C++11 testing to clang
27563         select: port more to Intel 2016.1.150 compiler
27564         Problem reported by Balázs Hajgató in:
27565         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
27566         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
27568 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
27570         select: try to port to 2016.1.150 compiler
27571         Problem reported by Balázs Hajgató in:
27572         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
27573         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
27574         POSIX specifies 'restrict'.
27576 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
27578         localename-tests: memory allocation fixes
27579         * tests/test-localename.c (test_locale_name)
27580         (test_locale_name_thread): Don't call freelocale on a locale
27581         that was the base of a successful newlocale, as that
27582         results in a double free.  Problem reported by Assaf Gordon.
27583         (test_locale_name_thread): Free saved names after use, to pacify
27584         gcc -fsanitize=address.
27586 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
27588         intprops: make .h file license match module
27589         * lib/intprops.h: Change the license wording to match glibc format.
27590         This is what is in modules/intprops anyway.  See:
27591         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
27593 2016-03-08  Eric Blake  <eblake@redhat.com>
27595         acl: fix missing return on Cygwin
27596         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
27597         fall off end of function. Fixes http://bugs.gnu.org/22949
27599 2016-03-05  Bruno Haible  <bruno@clisp.org>
27601         extern-inline: port to PGI CC
27602         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
27603         keyword 'inline'.
27604         Reported by Adam James Stewart in:
27605         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
27607 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27609         signbit: port back to pre-C++11 GCC
27610         * lib/math.in.h (signbit): Do previous change only if
27611         __cplusplus < 201103.  See Jonathan Wakely in:
27612         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
27614 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
27616         mountlist: recognize autofs-mounted remote file systems, too
27617         Originally reported at: https://bugzilla.redhat.com/1309247
27618         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
27619         "-hosts" because it is used by autofs to mount remote file systems.
27621 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
27623         signbit: port to C++ with GCC 6
27624         * lib/math.in.h (signbit) [__cplusplus]:
27625         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
27626         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
27628         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
27630         regex: make it closer to libc
27631         Make Idx a signed type, rather than possibly unsigned.
27632         The unsignedness was not really buying us anything, since the code
27633         overflows for other reasons before getting to PTRDIFF_MAX.  Making
27634         it signed allows us to use -1 and -2 with abandon, like libc does,
27635         thus lessening the number of differences between gnulib and libc.
27636         Also, it should help avoid gratuitous warnings like the one
27637         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
27638         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
27641         regex: merge patches from libc
27643         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
27644         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
27645         Convert miscellaneous function definitions to prototype style.
27646         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
27647         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
27648         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
27649         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
27650         (re_search_internal):
27651         Convert to prototype-style function definition.
27652         Use internal_function for internal functions.
27654 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
27656         stdalign: port to older HP and IBM cc
27657         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
27658         C compilers, by checking their version numbers.  These version
27659         numbers appear in MariaDB and in Qt code that dates way back and
27660         that conditiionally uses the 'aligned' attribute.
27662 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
27664         stdalign: port to clang 3.7.0
27665         Problem reported by Herbert J. Skuhra in:
27666         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
27667         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
27668         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
27669         https://llvm.org/bugs/show_bug.cgi?id=26547
27671 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
27673         readdir_r: now obsolescent
27674         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
27675         * lib/mountlist.c (read_file_system_list): Add a FIXME.
27677 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
27679         misc: port better to gcc -fsanitize=address
27680         Without these patches, ./configure CFLAGS='-fsanitize=address'
27681         would compute incorrect values.  This patch fixes some (but not all)
27682         test failures with recent glibc, with this configuration.
27683         * m4/acl.m4 (gl_ACL_GET_FILE):
27684         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
27685         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
27686         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
27687         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
27688         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
27689         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
27690         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
27691         * m4/getline.m4 (gl_FUNC_GETLINE):
27692         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
27693         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
27694         * m4/regex.m4 (gl_REGEX):
27695         * m4/strndup.m4 (gl_FUNC_STRNDUP):
27696         * tests/test-calloc-gnu.c (main):
27697         * tests/test-duplocale.c (main):
27698         * tests/test-getgroups.c (main):
27699         * tests/test-getline.c (main):
27700         * tests/test-inttostr.c (main):
27701         * tests/test-localename.c (test_locale_name)
27702         (test_locale_name_thread, test_locale_name_environ)
27703         (test_locale_name_default):
27704         * tests/test-regex.c (main):
27705         * tests/test-setlocale1.c (main):
27706         * tests/test-stat.h (test_stat_func):
27707         Free heap-allocated storage before exiting.
27708         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
27709         Don't match *_foo symbols inserted by AddressSanitizer.
27710         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
27712 2016-02-02  Jim Meyering  <meyering@fb.com>
27714         verify-tests: also remove stray test-verify.Tpo
27715         * modules/verify-tests (Makefile.am): Arrange for "make clean"
27716         to remove the test-verify.Tpo file that is left behind by
27717         the automake-generated rule upon compilation failure.
27718         Otherwise, that .Tpo file would cause a failed "make distcheck"
27719         at least for grep.
27721 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
27723         std-gnu11: new module
27724         This makes it easier for applications to prefer C11 and C++11
27725         to older variants, when compiling C and C++ code.
27726         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
27727         a nontrivial chunk of GPLed Autoconf source code.
27728         * COPYING: Mention the m4/*.m4 copyright situation.
27729         * MODULES.html.sh (std-gnu11): New module.
27730         * m4/std-gnu11.m4, modules/std-gnu11: New files.
27732 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27734         get-permissions, strftime: fix grammar in comments
27735         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
27736         some grammar fixes Alan Mackenzie made to GNU Emacs.
27738 2016-01-25  Daiki Ueno  <ueno@gnu.org>
27740         gettext: mark as obsolete
27741         Suggested by Paul Eggert in:
27742         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
27743         * modules/gettext (Status): Mark as obsolete.
27744         (Notice): Suggest to use 'gettext-h' instead.
27745         * modules/gettext-h (Description): Suggest GNU gettext, instead of
27746         the 'gettext' module.
27748 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
27750         gnulib-tool: don't give up on ln -s so easily
27751         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
27752         because an earlier one failed.  The targets could be on different
27753         file systems.  Problem reported by KO Myung-Hun in:
27754         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
27756         closedir: fix OS/2-related typos
27757         Problem reported by KO Myung-Hun in:
27758         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
27759         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
27760         in the last couple of changes.
27762 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
27764         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
27765         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
27766         copying a directory.
27768 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
27770         regex: treat [x] as x if x is a unibyte encoding error
27771         Problem reported by Aharon Robbins in:
27772         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
27773         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
27774         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
27776         closedir, dirfd, opendir: port to OpenSolaris 5.10
27777         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
27778         * m4/dirfd.m4 (gl_FUNC_DIRFD):
27779         * m4/opendir.m4 (gl_FUNC_OPENDIR):
27780         Don't use ${word##pat} substitution, as it doesn't work in
27781         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
27782         http://bugs.gnu.org/22443#11
27784 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27786         bootstrap: use American spelling
27787         * build-aux/bootstrap: Honor American spelling.
27789 2016-01-22  Karl Berry  <karl@freefriends.org>
27791         * doc/posix-functions/localtime.texi,
27792         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
27794 2016-01-21  Bruno Haible  <bruno@clisp.org>
27796         hash-pjw-bare: fix comment
27797         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
27799         wcwidth: Replace also on OpenBSD 5.8
27800         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
27801         * doc/posix-functions/wcwidth.texi: Update.
27803 2016-01-20  Pádraig Brady  <P@draigBrady.com>
27805         gnu-web-doc-update: fix addition of new files
27806         If there were already added (emnpty) dirs,
27807         then cvs aborts the add with the message:
27808           cvs [add aborted]: there is a version in <./dirname> already
27809         * build-aux/gnu-web-doc-update: Add directories separately
27810         to the addition of files, to avoid the above issue
27811         impacting the addition of files.
27813 2016-01-19  Daiki Ueno  <ueno@gnu.org>
27815         utimens-tests: avoid pulling gettext .m4 files
27816         Although this is not the right fix to the original problem:
27817         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
27818         it makes it possible again for consumer projects to use arbitrary
27819         version of gettext, through the steps described at:
27820         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
27821         See here for details:
27822         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
27823         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
27824         'gettext'.
27825         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
27826         'gettext'.
27828 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
27830         regex: pacify static checkers
27831         Problem and draft fix reported by Aharon Robbins in:
27832         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
27833         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
27834         Clear memory to pacify static checkers.
27836         regex: fix [ diagnostic
27837         Problem and fix reported by Aharon Robbins in:
27838         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
27839         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
27841         regex: fix memory leaks
27842         Problem and draft fix reported by Aharon Robbins in:
27843         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
27844         * lib/regcomp.c (build_range_exp, build_charclass_op)
27845         * lib/regex_internal.c (re_dfa_add_node):
27846         Fix memory leak on failure.
27848 2016-01-18  Pádraig Brady  <P@draigBrady.com>
27850         fts: don't unconditionally use leaf optimization for NFS
27851         NFS st_nlink are not accurate on all implementations,
27852         leading to aborts() if that assumption is made.
27853         See <https://bugzilla.redhat.com/1299169>
27854         * lib/fts.c (leaf_optimization_applies): Remove NFS from
27855         the white list, and document the issue.
27857 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27858             KO Myung-Hun  <komh@chollian.net>
27860         gnulib-tool: don't assume ln -s works
27861         * gnulib-tool (func_ln_s): New function.
27862         (func_ln): Use it.
27864 2016-01-15  KO Myung-Hun  <komh@chollian.net>
27866         utimes: detect utimes() correctly on OS/2 kLIBC
27867         utimes() of OS/2 kLIBC has some limitations.
27868         1. OS/2 itself supports a file date since 1980 year in local time.
27869         2. OS/2 itself supports only even seconds for a file time.
27870         3. utimes() of OS/2 kLIBC does not work on an opened file.
27871         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
27872         * doc/posix-functions/utimes.texi: Document the above limitations of
27873         utimes() on OS/2 kLIBC.
27875 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
27876             KO Myung-Hun  <komh@chollian.net>
27878         openat_proc_name: port to OS/2 kLIBC
27879         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
27880         instead of /proc/self/fd.
27881         * lib/openat-proc.c (openat_proc_name):
27882         Don't assume file name length is less than INT_MAX.
27883         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
27885 2016-01-14  KO Myung-Hun  <komh@chollian.net>
27887         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
27888         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
27889         definitions of intptr_t and uintptr_t (which use int and unsigned)
27890         to avoid clashes with declarations of system functions like sbrk.
27891         * lib/stdint.in.h (intptr_t, uintptr_t): Check
27892         _INTPTR_T_DECLARED before defining them.
27894         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
27895         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
27896         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
27897         Declare on kLIBC.
27898         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
27899         fd associated with dirp.
27900         (_gl_register_dirp_fd): New. Register fd associated with dirp to
27901         dirp_fd_list.
27902         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
27903         (dirfd): Implemented for kLIBC.
27904         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
27905         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
27906         succeeds.
27907         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
27908         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27909         (REPLACE_DIRFD): Define to 1 if replaced.
27910         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
27911         * modules/closedir (Depends-on): Add dirfd.
27912         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
27913         condition.
27914         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
27915         * modules/opendir (Depends-on): Add dirfd.
27917         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
27918         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
27919         * lib/dup.c (dup_nothrow): New.
27920         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
27921         (klibc_dup2): New.
27922         * lib/fcntl.c (klibc_fcntl): New.
27923         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
27924         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
27925         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
27926         fd.
27928         pipe_filter_ii_execute: port to OS/2 kLIBC
27929         Pipes on kLIBC do not support O_NONBLOCK like Win32.
27930         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
27931         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
27932         Reuse Win32 code on OS/2 kLIBC.
27933         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
27934         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
27936         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
27937         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
27938         static inline function.  The implementation of wcwidth in wcwidth.c
27939         causes a "conflicting types" error.
27940         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
27942         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
27943         spawn() on OS/2 kLIBC is not silly like one on Windows
27944         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
27945         empty string on OS/2 kLIBC.
27947         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
27948         On OS/2 kLIBC, select() works only on sockets.
27949         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
27951         binary-io: don't put fd in binary mode if it is a console on EMX
27952         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
27953         a console on EMX.
27955 2016-01-15  Pádraig Brady  <P@draigBrady.com>
27957         doc: mention unfixed issues with unsupported localtime() values
27958         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
27959         returns nonsense for localtime(2^56).
27960         * doc/posix-functions/localtime_r.texi: Likewise.
27962 2016-01-14  Pádraig Brady  <P@draigBrady.com>
27964         doc: mention setlocale() issues on OpenBSD
27965         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
27966         never fails, and the need to check categories individually.
27968 2016-01-14  Pádraig Brady  <P@draigBrady.com>
27970         sig2str: list all signals on FreeBSD >= 7
27971         FreeBSD >= 7 is contravening POSIX by not defining NSIG
27972         to the maximal statically defined signal value.
27973         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
27974         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
27975         where available, even when NSIG is defined.
27977 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
27979         acl-permissions: port to USE_ACL==0 platforms
27980         I ran into this problem when building bleeding-edge GNU Emacs
27981         with gcc -fsanitize=address on Fedora 23.  On this platform
27982         the ACL library does not pass the 'configure' test and Emacs
27983         then does not build due in part to what appear to be typos in the
27984         ACL part of Gnulib.
27985         * lib/acl-internal.c (free_permission_context):
27986         * lib/acl-internal.h (struct permission_context):
27987         Test whether USE_ACL is nonzero, not whether it is defined.
27989 2016-01-12  Martin Sebor  <msebor@redhat.com>
27991         mktime: rename macro to avoid glibc clash
27992         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
27993         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
27995 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
27997         Port "$@" to OpenIndiana ksh93
27998         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
27999         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
28000         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
28001         bug long-dead shells, so remove the workaround.
28002         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
28003         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
28004         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
28005         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
28006         Use "$@" instead of ${1+"$@"}.
28008         Port Universal Time settings to strict POSIX
28009         * build-aux/announce-gen, build-aux/bootstrap:
28010         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
28011         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
28012         * build-aux/gnupload, build-aux/mkinstalldirs:
28013         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
28014         * build-aux/update-copyright, build-aux/useless-if-before-free:
28015         * build-aux/vc-list-files, tests/test-strftime.c:
28016         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
28017         but POSIX says the behavior of TZ="UTC" is undefined.
28019 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
28021         msvc-inval: fix problem with unset shell var
28022         Problem reported by Karl Berry in:
28023         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
28024         * modules/msvc-inval (Depends-on):
28025         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
28026         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
28028 2016-01-01  Pádraig Brady  <P@draigBrady.com>
28030         tests: for compare_(), use cmp -s where available
28031         * tests/init.sh (compare_): Only fall back to cmp without
28032         the POSIX defined -s option, where this is not available.
28034 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
28036         version-etc: new year
28037         * build-aux/gendocs.sh (version):
28038         * doc/gendocs_template:
28039         * doc/gendocs_template_min:
28040         * doc/gnulib.texi:
28041         * lib/version-etc.c (COPYRIGHT_YEAR):
28042         Update copyright dates by hand in templates and the like.
28043         * all files: Run 'make update-copyright'.
28045 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
28047         human: fix output buffer overrun by 1
28048         * lib/human.c (human_readable): Fix off-by-one typo in buffer
28049         calculation that could lead to a one-byte buffer overrun.
28051 2015-12-28  Daiki Ueno  <ueno@gnu.org>
28053         maint: fix operator precedence in mbrtowc test
28054         This is a fix for test breakage introduced by commit 45228d96; the
28055         equality expression must be parenthesized when negated with '!',
28056         otherwise we always get:
28058           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
28060         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
28061         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
28063 2015-12-23  James Youngman  <jay@gnu.org>
28065         regexprops-generic: update from regex.h
28066         * doc/regexprops-generic.texi: update by running the regexprops binary
28067         from findutils (the command line is 'regexprops "Regular Expressions"
28068         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
28069         gnulib with GNU grep had made this document out-of-date.
28071 2015-12-23  Pádraig Brady  <P@draigBrady.com>
28073         strftime-tests: avoid false failure on OS X
28074         * tests/test-strftime.c (struct localtime_rz_test): Add an
28075         ahistorical member which is used to warn rather than fail
28076         when tm_isdst isn't set for such entries.  This is the case for
28077         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
28079 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
28081         fts: ensure leaf optimization is used for NFS
28082         NFS provides usable dirent.d_type but not necessarily for all entries
28083         of large directories.  See <https://bugzilla.redhat.com/1252549>
28084         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
28086 2015-12-20  Pádraig Brady  <P@draigBrady.com>
28088         fts: enable leaf optimization for XFS
28089         XFS provides usable dirent.d_type only for DT_DIR,
28090         but the noleaf optimization still applies.
28091         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
28093 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
28095         intprops: comment fix
28096         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
28097         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
28099         intprops-test: work around GCC bug 68971
28100         Problem reported by Pádraig Brady in:
28101         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
28102         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
28103         (main): Add a case that better tests 64-bit long in this area.
28105 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
28107         gnulib-tool: allow multiple --local-dir usage
28108         * gnulib-tool: Use --local-dir to construct compound
28109         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
28110         PATH_SEPARATOR early.
28111         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
28112         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
28113         func_determine_path_separator because that needs to be detected
28114         earlier now.
28115         (func_determine_path_separator): New function.
28116         (func_path_foreach, func_path_foreach_inner): New functions.
28117         (func_path_prepend, func_path_append): Likewise.
28118         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
28119         (func_lookup_file, func_all_modules): Use new functions to work
28120         with local_gnulib_path.
28121         (func_modules_in_dir, func_exists_module): New callbacks for
28122         func_path_foreach.
28123         (func_exists_module, func_get_tests_module): Likewise.
28124         (func_is_local_file, func_should_symlink): New helper methods.
28125         (func_add_file, func_update_file): Use new func_should_symlink
28126         instead, DRY.
28127         (func_reconstruct_cached_local_gnulib_path): New helper.
28128         (func_reconstruct_cached_dir): New callback.
28129         (func_import): The cached_local_gnulib_dir renamed to
28130         cached_local_gnulib_path similarly to local_gnulib_dir.
28131         Use new func_reconstruct_cached_local_gnulib_path.
28132         (func_count_relative_local_gnulib_path): New sub-method.
28133         (func_create_testdir): Use func_should_symlink, DRY.
28134         (func_create_megatestdir): Use new functions to work with
28135         local_gnulib_path correctly.
28136         (func_append_local_dir): New helper.
28138 2015-12-08  Pádraig Brady  <P@draigBrady.com>
28140         fix freadptr to work with ungetc on all uClibc configs
28141         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
28142         where GNU coreutils cut(1) generates invalid output on uClibc
28143         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
28144         * lib/freadptr.c (freadptr): Return NULL if there are
28145         ungotten chars.  In this case freadseek() will iterate
28146         again to process the ungotten character.
28148 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
28150         xalloc-oversized: improve performance with GCC 5
28151         * lib/xalloc-oversized.h (xalloc_oversized):
28152         Improve performance with GCC 5 by using __builtin_mul_overflow.
28154 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
28156         intprops: new public macro EXPR_SIGNED
28157         Emacs can use this macro, so make it public.
28158         * doc/intprops.texi (Arithmetic Type Properties): Rename from
28159         'Integer Type Determination', since some of these macros apply
28160         to non-integer types.  Clarify what kinds of constant expressions
28161         these macros return.  Say when the arguments can be non-integers.
28162         Mention newly published macro EXPR_SIGNED.
28163         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
28164         make it public.  All uses changed.
28166         intprops: fix typo in clang port
28167         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
28168         '__builtin_add_overflow' that is not caught by compiler.
28170 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
28172         test-timespec: fix typo in previous change
28173         * tests/test-timespec.c (main): Fix typo that reduced test quality.
28175         timespec-sub: fix overflow bug; add tests
28176         * lib/timespec-add.c (timespec_add):
28177         * lib/timespec-sub.c (timespec_sub):
28178         Work even if time_t is narrower than int (a theoretical
28179         possibility).  Redo code for a bit more clarity.
28180         * lib/timespec-sub.c (timespec_sub):
28181         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
28182         * modules/timespec-tests, tests/test-timespec.c: New files.
28184         intprops-test: suppress -Woverlength-strings
28185         Problem reported by Pádraig Brady in:
28186         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
28187         It is not worth the hassle to port this test to compilers that
28188         cannot handle long strings in diagnostics.
28189         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
28191 2015-11-03  Pádraig Brady  <P@draigBrady.com>
28193         quotearg: add quotearg_n_style_colon()
28194         This quotes with default options of the specified style,
28195         but with quoting enabled for instances of ':'.
28196         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
28197         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
28199 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
28201         intprops: revise _WRAPV macros, revert _OVERFLOW
28202         The incompatible changes to the _OVERFLOW macros were too much of
28203         a hassle in practice, so revert them.  Instead, change the new
28204         _WRAPV macros to make them closer in behavior to GCC 5's new
28205         builtin_add_overflow etc. functions.  No other software was using
28206         these newly-added macros yet, so this should be OK.
28207         * NEWS: Revert previous change, since the incompatible change
28208         has been reverted, and nobody used the incompatible version.
28209         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
28210         Document revised behavior.
28211         (Integer Range Overflow): Adjust example to match above revisions.
28212         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
28213         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
28214         these can be used in integer constant expressions again.
28215         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
28216         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
28217         needed.
28218         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
28219         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
28220         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
28221         Remove, as they did not seem that useful.
28222         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
28223         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
28224         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
28225         Support new semantics.
28226         (__has_builtin): New macro, if not alreay defined.
28227         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
28228         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
28229         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
28230         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
28231         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
28232         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
28233         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
28234         New macros.
28235         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
28237 2015-11-03  Jim Meyering  <meyering@fb.com>
28239         intprops: add parentheses for when OP has precedence lower than "-"
28240         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
28241         "a OP b" must be parenthesized for when OP is like "<<", which has
28242         lower precedence than the following "-". Reported by Pádraig Brady.
28244 2015-11-03  Pádraig Brady  <P@draigBrady.com>
28246         quotearg: constify get_quoting_style parameters
28247         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
28248         * lib/quotearg.c (get_quoting_style): Likewise.
28250 2015-11-02  Pádraig Brady  <P@draigBrady.com>
28252         quotearg: add support for $'' shell escaping
28253         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
28254         items and descriptions.
28255         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
28256         above types by quoting like "shell", but using $'...' syntax
28257         for non printable characters, which should provide unambiguous
28258         printable output for any input.
28259         * tests/test-quotearg-simple.c: Update accordingly.
28261 2015-11-02  Pádraig Brady  <P@draigBrady.com>
28263         maint: use a more standard return from mbrtowc test
28264         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
28265         from the test program as this is non standard and often
28266         indicates an unhandled case in the test program.
28267         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
28269 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
28271         intprops: add WRAPV and const flavors for GCC 5
28272         If available, use GCC 5's builtin functions for efficient integer
28273         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
28274         and safely compute the low-order bits of the correct answer.
28275         A downside of these efficient functions is that they cannot be
28276         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
28277         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
28278         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
28279         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
28280         Document the changes.
28281         (Wraparound Arithmetic): New section.
28282         (Integer Range Overflow):
28283         Put this subsection last, since it's least useful.
28284         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
28285         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
28286         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
28287         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
28288         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
28289         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
28290         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
28291         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
28292         New macros.
28293         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
28294         Generate calls to GCC builtins if available, for speed.
28295         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
28296         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
28297         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
28298         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
28299         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
28300         (CHECK_QUOTIENT, CHECK_REMAINDER):
28301         Test WRAPV and CONST flavors (when available) too.
28303 2015-10-30  Pádraig Brady  <P@draigBrady.com>
28305         doc: use extended timezone format in iso-8601 example
28306         * doc/parse-datetime.texi: The standard states that extended format
28307         is to be used consistently throughout.
28308         Note that lib/parse-datetime.y can handle either tz format.
28310 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
28312         stdalign: port to Sun C 5.9
28313         * doc/posix-headers/stdalign.texi: Document this.
28314         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
28315         __attribute__ ((__aligned__ (...))).
28317 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
28319         time_rz: fix comment about tzalloc
28320         * lib/time_rz.c (tzalloc): Fix comment.
28322 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
28324         stdalign: work around pre-4.9 GCC x86 bug
28325         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
28326         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
28327         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
28329 2015-10-18  Pádraig Brady  <P@draigBrady.com>
28331         maint.mk: sc_tight_scope: remove extraneous expressions
28332         * top/maint.mk (tight_scope): This is not really required since
28333         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
28334         that matches all nm entries.  But it does remove extraneous entries
28335         that may be confusing or cause issue in future maintenance.
28337 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
28339         time_rz: return NULL if localtime_r fails
28340         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
28341         while still attempting to pacify bleeding-edge GCC.
28343         fts: port to C11 alignof
28344         * doc/posix-headers/stdalign.texi (stdalign.h):
28345         Document the C11 restriction.
28346         * lib/fts.c: Include stddef.h, for max_align_t.
28347         (fts_alloc): Align using max_align_t, not FTSENT.
28348         * modules/fts (Depends-on): Add stddef.
28350 2015-10-18  Jim Meyering  <meyering@fb.com>
28352         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
28353         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
28354         would see this:
28356         lib/time_rz.c: In function 'localtime_rz':
28357         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
28358           [-Werror=nonnull]
28359                    if (tm && !save_abbr (tz, tm))
28360                        ^
28362         That was complaining about "tm" because it is a parameter that was
28363         declared with the __nonnull__ attribute.
28364         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
28365         result of localtime_r.
28367 2015-10-17  Jim Meyering  <meyering@fb.com>
28369         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
28370         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
28371         name-extraction regexp mistakenly used \S+, and would mistakenly
28372         extract "*F" from "extern int *F()" rather than the desired "F".
28373         Use \w+ instead.
28375 2015-10-17  Jim Meyering  <meyering@fb.com>
28377         maint.mk: sc_tight_scope: factor and support OS X
28378         * top/maint.mk (_gl_tight_scope): Address three issues:
28379         - factor out four instances of code that wraps a string in "^...$"
28380         - allow nm-reported symbol names to have an optional leading "_"
28381         - add "main" to the list of ignored variable names, because on os x,
28382         "main" has nm-reported type "S" in the variable-checking section.
28384 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
28386         safe-alloc-tests: fix typo in license header
28387         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
28389 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
28391         copy-file: fix mem leak in error case
28392         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
28393         upon error opening or performing I/O to the src and dest files.
28395 2015-10-15  Mike Frysinger  <vapier@chromium.org>
28397         localename: control langinfo.h inclusion
28398         This header is only used to work around buggy behavior in old
28399         versions of glibc, so do not include it all the time.  Otherwise
28400         we get build failures on systems that do not provide langinfo.h.
28401         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
28402         in the source later on.
28403         The patch was originally submitted to gettext as:
28404         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
28406 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
28408         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
28409         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
28410         * lib/u64.c, lib/unistd.c:
28411         Append 'typedef int dummy;', to pacify compilers that are picky
28412         about empty translation units.
28414 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
28416         accept4-tests: fix to avoid non portable flags
28417         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
28418         as they are the only documented ones, and passing others may trigger
28419         EINVAL (seen on FreeBSD 10.1-RELEASE).
28420         * doc/glibc-functions/accept4.texi: Mention that we don't provide
28421         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
28423 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
28425         gnulib-tool: fix tests of 'extensions' module
28426         This complements f8fe25fab60e3c687a124 commit.
28427         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
28428         emitting of initial gl_EARLY macros.
28429         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
28430         replaced with func_emit_pre_early_macros call.
28432 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
28434         unicase/locale-language: fix typo in utf-8 cookie
28435         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
28436         Problem reported by Zbigniew Jędrzejewski-Szmek.
28438 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
28440         xalloc: do not worry about GCC 5 warning on 32 bit
28441         * lib/xalloc.h: Revert previous change.
28442         I found a better way to fix this in coreutils.
28444 2015-10-02  Pádraig Brady  <P@draigBrady.com>
28446         xalloc: avoid GCC 5.1 warning on 32 bit
28447         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
28448         xalloc_oversized(), which was seen to give this warning
28449         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
28450         when simplifying conditional".
28452 2015-10-02  Daiki Ueno  <ueno@gnu.org>
28454         uniname/uniname-tests: avoid compiler warnings
28455         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
28456         unused local variables.
28457         (test_alias_lookup): Fix alias name display in failure cases.
28459 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
28461         c-ctype: do not worry about EBCDIC + char signed
28462         Drop support for EBCDIC with char being signed, as this breaks too
28463         many programs.  Problem reported by Ben Pfaff in:
28464         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
28465         * lib/c-ctype.h: Verify that we are not using EBCDIC with
28466         char being signed.
28467         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
28468         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
28469         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
28470         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
28471         * tests/test-c-ctype.c (test_all):
28472         Simplify by assuming standard char values cannot be negative.
28473         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
28475 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
28477         c-ctype: port better to z/OS EBCDIC
28478         Problems reported by Daniel Richard G. in:
28479         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
28480         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
28481         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
28482         (_C_CTYPE_OTHER_CNTRL): New macro.
28483         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
28484         from SCHAR_MIN, as the functions are defined only from values
28485         promoted from char or from unsigned char, not necessarily from
28486         signed char.
28488 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
28490         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
28492         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
28493         and ARFLAGS variables.  Doing this unconditionally could break
28494         later Automake's AM_PROG_AR invocation (at least it's
28495         AC_CHECK_TOOLS call to detect correct 'ar' binary).
28497         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
28498         Amsterdam Compiler Kit, so make the previous code to have effects
28499         only on ACK, and rather automatically call the Automake's
28500         AM_PROG_AR as soon as possible to decide other cases.
28502         References:
28503         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
28505         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
28506         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
28507         is possible, keep setting AR/ARFLAGS to reasonable defaults.
28508         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
28509         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
28510         'extensions' module is used.
28511         * modules/extensions (configure.ac-early): Remove as this snippet
28512         is added to gnulib-comp.m4 earlier anyway.
28514 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
28516         sockets: MS Windows initalization fixes
28517         Problem reported by Test User in:
28518         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
28519         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
28520         Correct the endianness.
28521         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
28522         number mismatch, not just on <.  Cleanup before any such failure.
28524 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
28526         gc: fix detection of installed libgcrypt version
28527         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
28528         at least as recent as 1.4.4.  The previously used macro is not
28529         available now, since modules were removed in version 1.6.0.
28531 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
28533         c-ctype: rewrite to use inline functions
28534         This simplifies maintenance, since it makes for just one
28535         implementation of each function, letting the compiler have the fun
28536         of optimization.  In practice this works well nowadays with GCC.
28537         E.g., c_isascii might need only three instructions even though the
28538         source code lists every ASCII character individually in a large
28539         switch statement.
28540         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
28541         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
28542         * NEWS: Document the API change.
28543         * lib/c-ctype.c: Drastically simplify, since this now just expands
28544         inline functions.
28545         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
28546         (C_CTYPE_INLINE): New macro.
28547         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
28548         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
28549         Verify that either ASCII or EBCDIC is being used.
28550         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
28551         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
28552         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
28553         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
28554         New private macros.
28555         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
28556         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
28557         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
28558         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
28559         (c_tolower, c_toupper): When converting, return the unsigned char,
28560         as that is what z/OS does.
28561         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
28562         of some c-ctype.h macros.
28563         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
28564         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
28565         c_tolower promotion to be compatible with z/OS.
28567 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
28569         gitlog-to-changelog: trim only trailing whitespaces
28570         This is fix for --format regression introduced by commit
28571         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
28572         doubled %n string) had no effect anymore.  This format
28573         specification has been used e.g. by GNU paxuitils (commit
28574         edfd8bcc3).
28576         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
28577         newlines in commmit messages.
28579 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
28581         Test that c_iscntrl agrees with iscntrl, etc.
28582         Suggested by Daniel Richard G. in:
28583         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
28584         * modules/c-ctype-tests (Depends-on): Add ctype.
28585         * tests/test-c-ctype.c: Include <ctype.h>.
28586         (NCHARS): New constant.
28587         (test_agree_with_C_locale): New function.
28588         (main): Use it.
28589         (test_all): Use named constants.
28591         c-ctype: improve c_isascii testing
28592         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
28593         Add a test to count the number of ASCII characters.
28595 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28597         savewd: remove SAVEWD_CHDIR_READABLE
28598         It was problematic in the light of file systems that ignore umask.
28599         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
28600         * NEWS: Document this.
28601         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
28602         successful, -1 (setting errno) on failure, rather than something
28603         more complicated than that.
28604         * lib/mkdir-p.c (make_dir_parents):
28605         Do not use SAVEWD_CHDIR_READABLE.
28606         * lib/savewd.c (savewd_chdir):
28607         Remove support for SAVEWD_CHDIR_READABLE.
28608         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
28610         c-ctype: port better to EBCDIC
28611         Problems reported by Daniel Richard G. in
28612         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
28613         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
28614         Include "verify.h".
28615         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
28616         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
28617         Define as enum constants with value false, if not defined, so that
28618         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
28619         code more portable, as both branches of the 'if' are compiled on
28620         all platforms.
28621         (C_CTYPE_EBCDIC): New constant.
28622         Verify that the character set is either ASCII or EBCDIC.
28623         (to_char): New static function.
28624         (c_isascii, c_iscntrl):
28625         Assume standard control-character assignments for EBCDIC.
28626         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
28627         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
28628         Rewrite to use 'if' instead of 'ifdef'.
28629         Use to_char if non-ASCII.  Prefer <= to >=.
28630         Prefer true and false to 1 and 0, for booleans.
28631         (c_iscntrl): Use 'if', not 'ifdef'.
28632         * modules/c-ctype (Depends-on): Add verify.
28633         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
28634         (to_char): New function.
28635         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
28637 2015-09-21  Pádraig Brady  <P@draigBrady.com>
28639         nanosleep: fix return code for interrupted replacement
28640         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
28641         that we return -1 in the case the call is interrupted by a signal,
28642         rather than the current value of 1.
28643         Diagnosed and tested by Daniel Richard G.
28645 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
28647         Diagnose ERE '()|\1'
28648         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
28649         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
28650         track of the set of previously-completed subexpressions available
28651         before the first alternative, and restore this set just before
28652         parsing each subsequent alternative.  This lets us diagnose the
28653         invalid back-reference in the ERE '()|\1'.
28655         regex: merge patches from libc
28657         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
28658         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
28659         * lib/regex_internal.h:
28660         Include <libc-lock.h> instead of <bits/libc-lock.h>.
28662         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
28663         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
28664         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
28665         wcscoll.
28666         * lib/regexec.c (check_node_accept_bytes): Likewise.
28668         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
28669         Fix regex wcrtomb namespace (bug 18496).
28670         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
28671         instead of wcrtomb.
28673         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
28674         Fix regex wctype namespace (bug 18495).
28675         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
28676         instead of towlower.
28677         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
28678         instead of iswlower.  Call __towupper instead of towupper.
28679         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
28680         instead of iswalnum.
28682         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
28683         * lib/regcomp.c (parse_bracket_exp): Initialize type to
28684         COLL_SYM in a couple of places to avoid uninitialized variable
28685         wanings on tilegx gcc 4.8.2.
28687         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
28688         * lib/regex_internal.h: Remove NOT_IN_libc.
28690         2014-11-17  Andreas Schwab  <schwab@suse.de>
28691         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
28693         2014-09-11  Roland McGrath  <roland@hack.frob.com>
28694         Move findidx nested functions to top-level.
28695         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
28696         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
28697         Pass new arguments to findidx.
28698         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
28699         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
28700         Don't #include it inside the function.  Pass new arguments to findidx.
28701         * lib/regex_internal.h:
28702         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
28703         (re_string_elem_size_at): Don't #include it inside the function.
28704         Pass new arguments to findidx.
28706         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
28707         Check if DEBUG is defined in regex_internal.c
28708         * lib/regex_internal.c: Check if DEBUG is defined and is set.
28710 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
28712         ceill: detect buggy OpenBSD implementation
28713         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
28714         which returns zero for small values.  Discussed here:
28715         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
28717 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
28719         mountlist: add me_mntroot field on Linux machines
28720         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
28721         mount_entry so Linux machines based on /proc/self/mountinfo can
28722         distinguish between bind mounts and original mounts.  In reality bind
28723         mounts aren't treated differently than mountroot=/ mounts by the
28724         kernel, but the user often wants these bind mounts distinguished.
28725         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
28726         More details at https://pad.lv/1432871
28728 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
28730         doc: Describe to use multiple instances of gnulib
28731         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
28732         instances of gnulib with different modules can be used, for example one
28733         for a lib and another one for associated tools.
28735 2015-09-01  Pádraig Brady  <P@draigBrady.com>
28737         base32: mark function as __attribute__ const
28738         * lib/base32.h (isbase32): Mark __attribute__ const as
28739         suggested by GCC, and consistent with the base64 module.
28741 2015-08-20  Daiki Ueno  <ueno@gnu.org>
28743         gnulib-tool: don't transform binary files with sed
28744         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
28745         .mo and .class files.
28746         Reported by Denis Denisov.
28748 2015-08-10  Daiki Ueno  <ueno@gnu.org>
28750         gperf: respect silent rules
28751         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
28752         V_GPERF_0 for silent rules.
28753         * modules/iconv_open (Makefile.am): Use V_GPERF.
28754         * modules/unicase/locale-language (Makefile.am): Likewise.
28755         * modules/unicase/special-casing (Makefile.am): Likewise.
28756         * modules/unictype/category-byname (Makefile.am): Likewise.
28757         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
28758         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
28759         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
28760         * modules/unictype/property-byname (Makefile.am): Likewise.
28761         * modules/unictype/scripts (Makefile.am): Likewise.
28762         * modules/uninorm/composition (Makefile.am): Likewise.
28764 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
28766         Improve port of stdalign to C++11
28767         Problem reported by Sundaram in:
28768         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
28769         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
28770         (__alignas_is_defined): Define if C++11 or newer.
28772 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
28774         pmccabe2html: fix gawk regex escaping
28775         * build-aux/pmccabe2html: Add one more backslash to properly
28776         escape the gsub replacement value.  Fixes this error:
28777         gawk: ./build-aux/pmccabe2html:425: \
28778         warning: escape sequence `\&' treated as plain `&'
28780 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
28782         time_rz: port to pedantic memcpy
28783         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
28784         that reject memcpy (..., NULL, 0).
28786 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
28788         time_rz: port better to MinGW
28789         Don't change tzname, as this makes MinGW dump core (Bug#21020).
28790         Instead, store the tzname copy in the struct tm_zone object.
28791         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
28792         * lib/strftime.c [!_LIBC]:
28793         * lib/time_rz.c: Include time-internal.h.
28794         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
28795         name from *TZ rather than from TZNAME, doable because *TZ now has
28796         a tzname_copy member.
28797         * lib/time-internal.h: New file, with contents taken from
28798         lib/time_rz.c.  It's separate because strftime.c now accesses
28799         struct tm_zone members.
28800         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
28801         New member tzname_copy.
28802         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
28803         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
28804         Initialize tzname_copy member.
28805         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
28806         in tzname_copy member.
28807         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
28808         (restore_tzname): Remove; no longer needed.  All calls removed.
28809         * modules/time_rz (Files): Add lib/time-internal.h.
28811         time: port __need_time_t to MinGW
28812         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
28813         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
28815 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
28817         strftime: fix newly-introduced bug on Solaris
28818         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
28819         consistently at the start, rather than doing some of the setup at
28820         the start and some in the %Z format spec.  This is cleaner, and
28821         works better with time_rz on platforms like Solaris where struct
28822         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
28823         mktime_z and localtime_rz can mess up the tzname cache.
28825         test-strftime: test for Solaris bug
28826         * modules/strftime-tests (Depends-on): Add strerror.
28827         * tests/test-strftime.c: Include <errno.h>.
28828         (posixtm_test): New function, containing the old 'main'.
28829         (struct tzalloc_test, struct localtime_rz_test): New types.
28830         (TZ, LT): New static vars.
28831         (tzalloc_test): New function.
28832         (main): Rewrite in terms of posixtm_test and tzalloc_test.
28834         time_rz: port to Solaris etc.
28835         Works around a tzname problem on platforms like Solaris that have
28836         tzname but not tm_zone, by setting tzname at the appropriate time
28837         and restoring it later.
28838         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
28839         New static vars.
28840         (save_abbr) [HAVE_TZNAME]: Set them.
28841         (revert_tz) [HAVE_TZNAME]: Clear or use them.
28842         (restore_tzname): New function.
28843         (localtime_rz, mktime_z): Use it.
28845         time_rz: now LGPL
28846         * modules/time_rz (License): Now LGPL, because strftime depends on it.
28848         time_rz: make a constant 'const'
28849         * lib/time_rz.c (local_tz): Now const.
28851         time_rz: fix off-by-one typo
28852         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
28854 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
28856         fprintftime, strftime: use timezone_t args
28857         * NEWS: Document the change.
28858         * lib/fprintftime.h (fprintftime):
28859         * lib/strftime.c (extra_args) [my_strftime]:
28860         * lib/strftime.h (nstrftime):
28861         Time zone arg is now of type timezone_t, not int.
28862         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
28863         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
28864         (my_strftime) [emacs && !my_strftime]:
28865         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
28866         Remove; Emacs doesn't need this any more.
28867         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
28868         fprintftime and nstrftime to call tzset.
28869         (ut) [!my_strftime]: Remove, replacing with ...
28870         (tz) [!my_stftime]: ... this new macro.  All uses changed.
28871         (strftime_case_): Use localtime_rz and mktime_z instead
28872         of localtime_r and mktime.
28873         * modules/fprintftime (Depends-on): Add time_rz.
28874         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
28875         * tests/test-strftime.c (main): Adjust to new nstrftime API.
28877         time_rz: new module
28878         * MODULES.html.sh: Add time_rz.
28879         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
28880         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
28881         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
28882         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
28883         New var HAVE_TIMEZONE_T (default 0).
28884         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
28885         New var GNULIB_TIME_RZ (default 0).
28886         * modules/time (time.h): Substitute the new vars.
28888         flexmember: license is now unlimited
28889         * modules/flexmember (License): Change to unlimited,
28890         since its only source file gives an unlimited license.
28892 2015-07-15  Eric Blake  <eblake@redhat.com>
28894         maint: update copyright paper procedures
28895         * config/srclist.txt: Drop outdated files.
28896         * doc/Copyright/conditions.txt: Update to latest.
28897         * doc/Copyright/assign.changes.manual: Delete.
28898         * doc/Copyright/assign.future.manual: Likewise.
28899         * doc/Copyright/assign.manual: Likewise.
28900         * doc/Copyright/assign.translation.manual: Likewise.
28901         * doc/Copyright/disclaim.changes.manual: Likewise.
28902         * doc/Copyright/disclaim.manual: Likewise.
28903         * doc/Copyright/disclaim.program: Likewise.
28905 2015-07-07  Daiki Ueno  <ueno@gnu.org>
28907         localename: fix link error on Illumos
28908         Illumos defines __sun, but does not have getlocalename_l nor the
28909         equivalent.  This partially reverts commit 387c214.
28910         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
28911         available, as well as uselocale.
28912         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
28913         use getlocalename_l if it is not available.
28915 2015-07-07  Daiki Ueno  <ueno@gnu.org>
28917         unistr/uN-strtok-tests: avoid a trivial leak
28918         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
28919         input and delim after the multibyte delimiter tests.
28921 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
28923         file-has-acl, acl-permissions: fix HP-UX typos
28924         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
28925         * lib/file-has-acl.c (file_has_acl):
28926         * lib/set-permissions.c (context_acl_from_mode)
28927         (context_aclv_from_mode, set_acls):
28928         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
28929         They were introduced by the recent ACL changes.
28931         regex: match current GNU grep behavior
28932         These symbols have not matched GNU grep behavior for quite some time.
28933         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
28934         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
28935         Change to match current GNU behavior.
28936         Simplify by expressing it as differences from POSIX BREs and EREs.
28937         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
28939 2015-07-03  Jim Meyering  <meyering@fb.com>
28941         set-permissions.c: adjust acl_from_mode's cpp guard
28942         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
28943         directives identical to those guarding the sole use.
28944         Otherwise, on some systems, we'd get a warning about
28945         the function being defined but not used.
28946         Also, filter through cppi to correct misleading indentation
28947         of cpp directives.
28949 2015-07-03  Pádraig Brady  <P@draigBrady.com>
28951         tests: restrict shells to those that support 'local'
28952         The local keyword is very widely supported and used
28953         in tests in coreutils and grep at least.  Therefore
28954         restrict to testing with shells that support it.
28955         This mainly excludes /bin/sh on Solaris.
28956         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
28958 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
28959         and Daiki Ueno  <ueno@gnu.org>
28961         unistr/uN-strtok: handle multibyte delimiters
28962         Previously, uN_strtok moved PTR to the next unit to the token end.
28963         When DELIM contained a multibyte character, the new position could
28964         be a middle of a multibyte character.
28965         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
28966         after the token.
28967         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
28968         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
28969         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
28970         * modules/unistr/u8-strtok (Depends-on): Depend on
28971         unistr/u8-strmblen.
28972         * modules/unistr/u16-strtok (Depends-on): Depend on
28973         unistr/u16-strmblen.
28974         * modules/unistr/u32-strtok (Depends-on): Depend on
28975         unistr/u32-strmblen.
28976         * tests/unistr/test-u-strtok.h: New file.
28977         * tests/unistr/test-u8-strtok.c: New file.
28978         * tests/unistr/test-u16-strtok.c: New file.
28979         * tests/unistr/test-u32-strtok.c: New file.
28980         * modules/unistr/u8-strtok-tests: New file.
28981         * modules/unistr/u32-strtok-tests: New file.
28982         * modules/unistr/u16-strtok-tests: New file.
28984 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
28986         update-copyright: fix test failure with perl >= 5.22 (trivial)
28987         * build-aux/update-copyright: Escape a literal left curly bracket,
28988         required with perl >= 5.22
28990 2015-07-02  Daiki Ueno  <ueno@gnu.org>
28992         u{16,32}-strstr-tests: relax timeout condition
28993         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
28994         tests can take longer than 5 seconds to complete.
28995         Reported by Dagobert Michelsen in:
28996         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
28997         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
28998         seconds to 10 seconds.
28999         * tests/unistr/test-u32-strstr.c (main): Likewise.
29001 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
29003         gnulib-common.m4: change the ARFLAGS default to 'cr'
29004         In some GNU/Linux distributions people started to compile 'ar'
29005         binary with --enable-deterministic-archives (binutils project).
29006         That, however, in combination with previous autotools long time
29007         working default AR{_,}FLAGS=cru causes warnings on such
29008         installations:
29009         ar: `u' modifier ignored since `D' is the default (see `U')
29010         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
29011         set already.
29013 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
29015         selinux-h: avoid double free after *getfilecon()
29016         Originally reported by Ben Shelton on bug-tar:
29017         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
29018         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
29019         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
29020         param should be freed by freecon(3) (regardless the return value).
29022 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
29024         fix pty related tests issues on Windows (trivial)
29025         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
29026         however it's still present in tests/ subdirectory of the final project.
29027         Therefore avoid it to pass `make check`.
29028         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
29029         will just return -ENOSYS, so avoid this non applicable test allowing
29030         the build to proceed.
29032 2015-07-01  Pádraig Brady  <P@draigBrady.com>
29034         acl: fix definition of acl_from_mode on FreeBSD
29035         This was causing basic coreutils copy operations to fail
29036         with ENOTSUP or ENOENT error messages.
29037         * lib/acl-internal.h (acl_from_mode): Only define when
29038         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
29039         of acl_from_mode() defined in lib/set-permissions.c to
29040         be used on FreeBSD at least.
29041         * lib/set-permissions.c: Fix up comment spelling,
29042         and a redundant variable assignment; noticed in passing.
29044 2015-06-30  Pádraig Brady  <P@draigBrady.com>
29046         readutmp: port to FreeBSD >= 9
29047         * lib/readutmp.h: Map utmpxname() to setutxdb().
29048         With that coreutils who(1) and pinky(1) tests pass.
29050 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
29052         mgetgroups: port to strict OS X
29053         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
29054         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
29055         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
29056         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
29058 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
29060         mgetgroups: port to strict OS X
29061         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
29062         Document the getgrouplist problem.
29063         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
29064         New macro.
29065         (mgetgroups): Use it.
29066         * m4/mgetgroups.m4 (gl_MGETGROUPS):
29067         Check for OS X signature for getgrouplist.
29069 2015-06-29  Jim Meyering  <meyering@fb.com>
29071         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
29072         It started like this when building coreutils' latest on OS X,
29073         invoking ./configure with a nonempty --cache=.cache:
29075           lib/linkat.c:46:42: error: operator '||' has no right operand
29076           lib/linkat.c: In function 'rpl_linkat':
29077           lib/linkat.c:330:27: error: #if with no expression
29079         Here's linkat.c's line 46:
29081           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
29083         Here's some context:
29085           $ grep linkat_nofoll .cache
29086           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
29087           $ grep LINKAT_SYM lib/config.h
29088           #define LINKAT_SYMLINK_NOTSUP
29090         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
29091         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
29092         but that violates a tenet of AC_CACHE_CHECK: it must
29093         have no side effect other than setting its cache variable.
29095         What happens is that when the cache is set, we'd skip the
29096         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
29097         defined to whatever value it happened to have in configure's
29098         environment.  In my case, it was not defined, so this later code:
29100           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
29101             [Define to 1 if linkat can create hardlinks to symlinks])
29103         would emit code with an empty RHS.
29105         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
29106         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
29108 2015-06-28  Jim Meyering  <meyering@fb.com>
29110         mountlist: avoid an unused-label warning on OS X
29111         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
29112         Building on OS X, I saw a warning about the "free_then_fail" label
29113         being unused.  Give it the _GL_UNUSED_LABEL attribute.
29115         error.c: correct printf-style format: %d -> %u
29116         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
29117         rather than %d, to match the type of "line_number", unsigned int.
29119 2015-06-25  Pádraig Brady  <P@draigBrady.com>
29121         fts: avoid reading beyond the heap allocation
29122         GCC 5.1.1 with -O2 and -fsanitize=address reports
29123         a read of size 4 from a heap object of size 3 is indeed invalid,
29124         though this may be due to incorrect padding assumptions by GCC, see:
29125         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
29126         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
29127         * modules/fts: Depend on stdalign.
29129 2015-06-24  Pádraig Brady  <P@draigBrady.com>
29131         savedir: avoid undefined behavior in qsort call
29132         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
29133         "runtime error: null pointer passed as argument 1,
29134          which is declared to never be null"
29135         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
29137 2015-06-24  Pádraig Brady  <P@draigBrady.com>
29139         userspec: avoid undefined behavior in gettext call
29140         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
29141         "runtime error: null pointer passed as argument 2,
29142          which is declared to never be null"
29143         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
29145 2015-06-20  Glenn Morris  <rgm@gnu.org>
29147         gitlog-to-changelog: improve gitmerge.el commits
29148         Let the Emacs ChangeLog generation process exclude "skipped"
29149         messages from merge commits (Bug#20717).
29150         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
29152 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
29154         wchar: fix MinGW compilation warnings
29155         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
29156         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
29157         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
29159 2015-06-20  Daiki Ueno  <ueno@gnu.org>
29161         uniname/uniname-tests: use pristine data files
29162         For copyright and maintenance reasons, use the data files from UCD
29163         without modification.
29164         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
29165         (getfield): Remove.
29166         (aliases_count): New global variable.
29167         (fill_names): Skip comments and empty lines in the input.  Don't
29168         use getfield.
29169         (fill_aliases): Likewise.
29170         (main): Change the expected command line arguments to:
29171         NAMES... ["--" ALIASES...].
29172         * tests/uniname/test-uninames.sh: Adjust to the change in
29173         test-uninames.c.
29174         * tests/uniname/UnicodeDataNames.txt: Remove.
29175         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
29176         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
29177         file from Unicode 8.0.0.
29179 2015-06-19  Pádraig Brady  <P@draigBrady.com>
29181         linked-list, linkedhash-list: avoid compiler warnings
29182         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
29183         -Werror=suggest-attribute=pure (from GCC 5.1.1).
29185 2015-06-19  Daiki Ueno  <ueno@gnu.org>
29187         libunistring: bump minimum version to 0.9.6
29188         * all modules depending on updated Unicode data: Regenerate.
29189         The modules are listed by a script that does:
29190         - for each file listed by: git show --oneline --name-only 705f4efc
29191           - deduce the containing modules, based on "Files:"
29192         - deduce the modules which depend on the containing modules, based
29193           on "Depends-on:"
29195 2015-06-18  Daiki Ueno  <ueno@gnu.org>
29197         uniname/uniname: update to Unicode 8.0.0
29198         * lib/uniname/uninames.h: Regenerate.
29199         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
29200         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
29202 2015-06-18  Daiki Ueno  <ueno@gnu.org>
29204         libunistring: update to Unicode 8.0.0
29205         * lib/gen-uni-tables.c (SIZEOF): New macro.
29206         (output_numeric): Increase the maximum number of fractions from
29207         128 to 160.  Increase the level3 value width from 7 bits to 8
29208         bits.  Use SIZEOF instead of a hard-coded integer.
29209         (output_blocks): Decrease the cut-off threshold from 0x30000 to
29210         0x28000.
29211         (fill_blocks): Increase the maximum number of blocks from 256 to
29212         384.  Use SIZEOF instead of a hard-coded integer.
29213         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
29214         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
29215         value width.
29216         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
29217         a new case added to LBP22.
29218         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
29219         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
29220         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
29221         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
29222         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
29223         * tests/uniwidth/test-uc_width2.sh: Same updates as in
29224         lib/uniwidth/width.c.
29225         * all generated files under lib/uni* and tests/uni*: Regenerate.
29227 2015-06-16  Pádraig Brady  <P@draigBrady.com>
29229         gnu-web-doc-update: add --mirror to remove stale files
29230         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
29231         out of date files from the CVS server.  Since this is usually
29232         appropriate, a prompt is given when the option is not specified,
29233         along with the `cvs remove` command that would be run.
29235 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
29237         acl-permissions: pacify -Wsuggest-attribute=const
29238         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
29239         * lib/acl-internal.h (free_permission_context):
29240         Declare with attribute const if ! (defined USE_ACL &&
29241         (HAVE_ACL_GET_FILE || defined GETACL)).
29243         fsync: document AIX misbehavior
29244         * doc/posix-functions/fsync.texi (fsync):
29245         Document failure on AIX with read-only file descriptor.
29247 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
29249         stdio: Don't redefine gets when using C++
29250         * lib/stdio.in.h (gets): Disable warning on C++.
29252 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
29254         acl-permissions: port to AIX, C89 HP-UX
29255         Problems reported by Michael Felt.
29256         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
29257         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
29258         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
29259         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
29260         Add cast for AIX, whose system calls are declared to accept
29261         char * even though the arguments are really char const *.
29262         * lib/get-permissions.c (get_permissions):
29263         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
29264         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
29265         that broke a build.
29266         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
29267         Rework types to pacify xlc.
29269 2015-06-03  Pádraig Brady  <P@draigBrady.com>
29271         vasprintf-posix: avoid compiling vasnprintf where possible
29272         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
29273         module where not required.  For example on a GNU/Linux system
29274         when gnulib-tool is run with the --conditional-dependencies option.
29276 2015-06-02  Pádraig Brady  <P@draigBrady.com>
29278         file-has-acl: fix build on Mac OS X 10
29279         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
29280         which has an incompatible 6 parameter getxattr() call.
29281         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
29282         call on Mac OS X >= 10.4.
29283         * doc/glibc-functions/fgetxattr.texi: Likewise.
29284         * lib/file-has-acl.c: Revert to more complete combined check.
29285         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
29286         Reported by Jack Howarth.
29288 2015-06-02  Pádraig Brady  <P@draigBrady.com>
29290         prefix-gnulib-mk: remove no longer needed special case
29291         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
29292         continued lib_SOURCES lines are no longer present,
29293         so special case handling of such entries is not required.
29295 2015-06-01  Pádraig Brady  <P@draigBrady.com>
29297         acl: don't depend on the deprecated qacl module
29298         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
29300 2015-06-01  Pádraig Brady  <P@draigBrady.com>
29302         gnulib-tool: concatenate lib_SOURCES to a single line
29303         * gnulib-tool: Refactor the line merging sed logic,
29304         and use that to output a single lib_SOURCES line for each module.
29305         gnulib using projects often postprocess this output to prepend
29306         subdir paths to each item, and having a single line simplifies this
29307         processing allowing better decoupling from the gnulib-tool output.
29309 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
29311         pthread_sigmask: discount system version if a simple macro (trivial)
29312         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
29313         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
29314         function to ensure it's available.
29316 2015-05-31  Pádraig Brady  <P@draigBrady.com>
29318         readlinkat: avoid OS X 10.10 trailing slash bug
29319         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
29320         has this bug.
29321         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
29322         that OS X 10.10 has this function.
29323         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
29324         as done for readlink().
29325         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
29326         trailing slash bug, and assume readlinkat() has the same issue.
29327         Also fix a typo where $gl_cv_decl_readlink_works was tested,
29328         rather than the correct $gl_cv_decl_readlinkat_works.
29330 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
29332         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
29333         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
29334         module rewrite.
29336         acl-permissions: Fix build on Solaris and Cygwin
29337         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
29338         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
29339         ace_entries variables have moved into struct permission_context but
29340         they were still accessed as local variables here.
29342 2015-05-29  Pádraig Brady  <P@draigBrady.com>
29344         linkat: avoid OS X 10.10 trailing slash with symlink bug
29345         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
29346         causes the symlink to be dereferenced, and if it points
29347         to a non existent file, that file will be created as
29348         a hard link to "path1".
29349         This fixes a test failure in test-linkat.c.
29350         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
29351         this case.  The existing workaround in linkat.c for
29352         trailing slash issues, suffices for this case.
29353         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
29354         the list of platforms with trailing slash issues.
29356 2015-05-28  Pádraig Brady  <P@draigBrady.com>
29358         unlinkat: handle ignoring of ".." on Darwin 14
29359         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
29360         on Mac OS X 10.10, where it ignores paths with a trailing "..",
29361         so handle in the same manner.
29362         * m4/unlinkat.m4: Comment on this Darwin issue.
29363         * doc/posix-functions/unlink.texi: Update the latest version
29364         where the issue was seen.
29365         * doc/posix-functions/unlinkat.texi: Mention this issue.
29366         Fixes a test failure in test-unlinkat.c.
29368 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
29370         qacl: split into qcopy-acl and qset-acl
29371         Emacs needs the former, but not the latter.
29372         * modules/acl-permissions: New file, containing most of the old qacl.
29373         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
29374         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
29375         * modules/qcopy-acl, modules/qset-acl: New files.
29376         * MODULES.html.sh (File system functions):
29377         Mention the new modules, and mention qacl while we're at it.
29379 2015-05-27  Glenn Morris  <rgm@gnu.org>
29381         gitlog-to-changelog: new option --ignore-line
29382         (This patch is imported from the GNU Emacs master.)
29383         This option ignores individual commit lines matching a pattern.
29384         * build-aux/gitlog-to-changelog: Add --ignore-line option.
29386 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
29388         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
29389         Implement get_permissions and set_permissions primitives for getting all
29390         the permissions of a file, storing them, and later setting them. (In the
29391         minimal case, the permissions consist only of a file mode.) Reimplement
29392         qset_acl and qcopy_acl based on these new primitives: this avoids code
29393         duplication and makes error handling more consistent.
29394         The Solaris and Cygwin code still uses duplicate code paths for setting
29395         a file mode while making sure that no acls exist and setting an explicit
29396         acl; this is no worse than before, but could be cleaned up.  The AIX
29397         code still doesn't read ACLs, it only makes sure that acls don't get in
29398         the way when setting a file mode.
29399         * lib/acl-internal.h (struct permission_context): New data structure.
29400         (get_permissions, set_permissions, free_permission_context): Declare.
29401         * lib/acl-internal.c (free_permission_context): New helper function.
29402         * lib/get-permissions.c (get_permissions): New helper function split off
29403         from qcopy_acl.
29404         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
29405         AIX, set a file's permissions based only on a file mode.
29406         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
29407         other platforms construct a temporary acl from the file mode and set
29408         that acl in the same way as setting an acl read from the source file.
29409         This should help avoid code duplication and inconsistent / buggy
29410         behavior.
29411         (set_acls): New helper function Split off from qcopy_acl.
29412         (chmod_or_fchmod): Moved here from qset-acl.c.
29413         (set_permissions): New helper function.
29414         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
29415         set_permissions.
29416         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
29417         * modules/qacl: Add get-permissions.c and set-permissions.c.
29419         file-has-acl: Split feature tests again (Bug#20667)
29420         * lib/file-has-acl.c: Instead of testing for
29421         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
29422         define them when needed.
29423         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
29424         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
29426 2015-05-27  Pádraig Brady  <P@draigBrady.com>
29428         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
29429         This avoids a conflict with "FORTIFY_SOURCE" variants
29430         of the string functions when they're replaced on NetBSD-6.0.1
29431         and Darwin-14.3.0 at least.
29432         * lib/string.in.h: Avoid including our "lib/string.h" while
29433         including the system <string.h>.
29435 2015-05-26  Eric Blake  <eblake@redhat.com>
29437         stdio: limit __gnu_printf__ witness to gcc 4.4+
29438         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
29439         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
29441         error: use correct printf attributes on mingw
29442         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
29444         inttypes: force correct mingw PRIdMAX even without <stdio.h>
29445         * modules/inttypes (Depends-on): Require extensions, so that mingw
29446         always uses GNU style inttypes.
29447         * lib/inttypes.in.h: On mingw, include <stdio.h>.
29449         stdio: fix probe on mingw under gcc 5.1
29450         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
29451         around new gcc preprocessor rules.
29453 2015-05-07  Glenn Morris  <rgm@gnu.org>
29455         gitlog-to-changelog: parse "Tiny-change"
29456         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
29457         "Copyright-paperwork-exempt".  (Bug#20324)
29459 2015-05-06  Pádraig Brady  <P@draigBrady.com>
29461         doc: document glibc posix_fallocate() issues
29462         * doc/posix-functions/posix_fallocate.texi: Mention the
29463         glibc efficiency problems and issues with NFS.
29465 2015-05-05  Karl Berry  <karl@freefriends.org>
29467         * build-aux/gendocs.sh (usage): document new css default
29468         for HTML (--htmlarg).
29470 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
29472         extern-inline: no need for workaround in GCC 5.1
29473         * doc/extern-inline.texi (extern inline):
29474         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
29475         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
29476         around these bugs in GCC 5.1 and later.  Maybe in a decade or
29477         two we can remove these workarounds.
29479 2015-04-28  Pádraig Brady  <P@draigBrady.com>
29481         eealloc, pagealign_alloc, xalloc: avoid clang warnings
29482         Avoid [-Wunknown-attributes] warnings like:
29483         warning: unknown attribute '__alloc_size__' ignored
29484         * lib/xalloc.h: Don't use the __alloc_size__  attribute
29485         with clang, as support has been fully removed as of clang 3.5:
29486         https://github.com/llvm-mirror/clang/commit/c047507a
29487         * lib/eealloc.h: Likewise.
29488         * lib/pagealign_alloc.h: Likewise.
29490 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
29492         tests: pacify GCC 5.1's stricter printf checking
29493         * tests/test-dirname.c (main):
29494         * tests/test-getaddrinfo.c (simple):
29495         * tests/test-getlogin.c (main):
29496         * tests/test-getndelim2.c (main):
29497         * tests/test-inttostr.c (CK):
29498         * tests/test-md5.c (main):
29499         * tests/test-read-file.c (main):
29500         * tests/test-sha1.c (main):
29501         Fix mismatches between printf format and value signedness.
29502         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
29503         Remove, as CAST_VAL always returned a value of type uintmax_t.
29505         fts: port to GCC 5.1 with --enable-gcc-warnings
29506         Without this fix, GCC 5.1 (correctly) warns about a subscript
29507         error on the fts_name component of FTSENT.  It's actually a
29508         flexible member, so define it that way on C99 or later hosts.
29509         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
29510         structure that now has a flexible array member.
29511         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
29512         (FTSENT): fts_name is now flexible on C99-or-later platforms.
29513         * modules/fts (Depends-on): Add flexmember.
29515 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
29517         file-has-acl: port to CentOS 6
29518         Problem reported by Tom G. Christensen in:
29519         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
29520         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
29521         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
29522         HAVE_GETXATTR.
29523         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
29524         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
29525         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
29526         file-has-acl.c actually needs.
29528 2015-04-26  Pádraig Brady  <P@draigBrady.com>
29530         file-has-acl: always return false when ACLs aren't supported
29531         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
29532         change the GNU/Linux getxattr path, to transform "not supported"
29533         errors to a false return rather than an error.  This is handled
29534         within file_has_acl() due to the platform specific tests to
29535         determine if ACLs are not supported.
29537 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
29539         gettext: propagate po/Makefile.in.in too
29540         * build-aux/po/Makefile.in.in: Copy from latest gettext.
29541         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
29542         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
29543         between Makefile.in.in and the gettext-runtime m4 files.
29545 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
29547         file-has-acl: new module, split from acl
29548         And add a new module file-has-acl-tests to match.
29549         I ran into a problem with the recent changes to the acl module,
29550         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
29551         When using the fixed version with Emacs, I discovered that
29552         file-has-acl wasn't separated out well enough for Emacs (e.g., it
29553         had multiple libraries, but needed only one), so I fixed that too.
29554         * NEWS: Document this incompatible change.
29555         * modules/file-has-acl, modules/file-has-acl-tests: New files.
29556         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
29557         Initialize gl_need_lib_has_acl.
29558         (gl_FUNC_ACL): Require it.
29559         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
29560         Move the file-has-acl.c-relevant stuff to ...
29561         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
29562         use_xattrs = 0' typo, and omit some needless work.  Set
29563         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
29564         when gl_FUNC_ACL is called.
29565         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
29566         (Link): Remove $(LIB_HAS_ACL).
29567         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
29568         (check_PROGRAMS): Move stuff relevant to file-has-acl to
29569         modules/file-has-acl-tests.
29570         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
29572         manywarnings: add GCC 5.1 warnings
29573         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
29574         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
29575         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
29576         -Wsuggest-override, -Wuse-without-only.  Change
29577         -Wnormalized=... operands to match 5.1.
29578         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
29579         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
29580         -Wdiscarded-qualifiers, -Wformat-signedness,
29581         -Wincompatible-pointer-types, -Wint-conversion,
29582         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
29583         -Wshift-count-negative, -Wshift-count-overflow,
29584         -Wsizeof-array-argument, -Wsuggest-final-methods,
29585         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
29586         and add -Warray-bounds=2 as a special case.
29588 2015-04-21  Simon Josefsson  <simon@josefsson.org>
29590         doc: update FDL template to match FDL examples.
29591         * doc/alloca-opt.texi:
29592         * doc/alloca.texi:
29593         * doc/c-ctype.texi:
29594         * doc/c-strcase.texi:
29595         * doc/c-strcaseeq.texi:
29596         * doc/c-strcasestr.texi:
29597         * doc/c-strstr.texi:
29598         * doc/c-strtod.texi:
29599         * doc/c-strtold.texi:
29600         * doc/ctime.texi:
29601         * doc/error.texi:
29602         * doc/gcd.texi:
29603         * doc/gnulib-tool.texi:
29604         * doc/inet_ntoa.texi:
29605         * doc/intprops.texi:
29606         * doc/lib-symbol-visibility.texi:
29607         * doc/maintain.texi:
29608         * doc/parse-datetime.texi:
29609         * doc/quote.texi:
29610         * doc/regexprops-generic.texi:
29611         * doc/standards.texi: Remove spurious 'with' in FDL license
29612         template.
29614 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
29616         lstat: fix cross-compilation 'ln -s' problem
29617         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
29618         Have the test program call 'symlink' rather than a separate
29619         script run 'ln -s'; this is more likely to work in
29620         cross-compilation environments.  Reported by Pavel Fedin in:
29621         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
29623 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
29625         gendocs.sh: default to a common CSS style sheet for HTML output
29626         * build-aux/gendocs.sh (htmlarg): Change default value.
29628 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
29630         gnulib-tool: output bold attribute more portably
29631         * gnulib-tool (func_show_module_list): Change hexadecimal
29632         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
29633         encoded numbers as arguments to `printf' is not portable,
29634         and is not claimed by POSIX.  This is the case with FreeBSD.
29636 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
29638         qacl: Simplify HP-UX acl_nontrivial check
29639         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
29640         acl_nontrivial. Check if the acl has at most three entries instead (it must
29641         have exactly three entries according to the HP-UX documentation). Ignore
29642         uids and gids as long as an entry is either for a user (i.e., the owner),
29643         a group (i.e., the owning group), or others.
29644         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
29645         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
29647 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
29649         acl: On Linux, check for acls without libacl
29650         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
29651         library function to check for the presence of acls, avoiding a library.
29652         * lib/file-has-acl.c: Include xattr headers if we have them.
29653         (file_has_acl): On Linux, use getxattr().
29654         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
29655         file_has_acl(). Check for xattr headers and getxattr().
29657 2015-04-14  Ángel González  <keisial@gmail.com>
29659         tempname: avoid unused parameter warnings (trivial)
29660         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
29661         (try_nocreate): Likewise.
29663 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
29665         fseeko: fix build failure on NetBSD >= 6 (trivial)
29666         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
29667         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
29669 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
29671         gitlog-to-changelog: port to MS-Windows
29672         * build-aux/gitlog-to-changelog (git_dir_option):
29673         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
29674         MS-Windows Perl.  Reported by Eli Zaretskii in:
29675         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
29677 2015-04-07  Karl Berry  <karl@gnu.org>
29679         gendocs: new option --tex for passing args to texi2dvi.
29680         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
29681         (TEXI2DVI): cut to just command name.
29682         (usage): mention new option, and update copyright.
29683         <generate_tex>: use it.
29685 2015-04-07  Karl Berry  <karl@gnu.org>
29687         * config/srclistvars.sh (GETTEXT): new definition.
29688         * config/srclist.txt: use it for gettext .m4 files.
29689         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
29690         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
29691         and continuing into April.
29693 2015-04-07  Daiki Ueno  <ueno@gnu.org>
29695         uniname/uniname-tests: fix failure due to alias
29696         Reported by Jack Howarth in:
29697         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
29698         * tests/uniname/test-uninames.c (name_has_alias): New function.
29699         (test_inverse_lookup): Exclude character name with valid alias,
29700         from randomly generated character names.
29701         (main): Fill unicode_aliases before calling test functions.
29703 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
29705         hash: remove deprecated hash_insert0 function
29706         * lib/hash.h (hash_insert0): Remove deprecated function.
29707         * lib/hash.c (hash_insert0): Likewise.
29709 2015-04-02  Pádraig Brady  <P@draigBrady.com>
29711         mountlist: remove dependency on libmount
29712         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
29713         directly, rather than depending on libmount, which has many
29714         dependencies due to its dependence on libselinux, as detailed at:
29715         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
29716         Note we restrict this to __linux__ as that's probably where this
29717         interface will remain.  If ever porting, it would be best
29718         to first pull the makedev() wrapper from coreutils to a gnulib module.
29719         Note also we don't add a getline dependency to the mountlist module,
29720         as all Linux versions are sufficient.
29722 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
29724         stddef: port to pre-C11 GCC on x86
29725         On this platform, max_align_t should have an alignment of 8 even
29726         though the storage alignments of double, long, etc. max out at 4.
29727         Inspired by a comment of Andreas Schwab's here:
29728         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
29729         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
29730         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
29731         * tests/test-stddef.c: Test __alignof__ too, if available.
29733 2015-03-24  Pádraig Brady  <P@draigBrady.com>
29735         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
29736         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
29738 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
29740         yesno: make EOL optional in ENABLE_NLS case also (trival)
29741         * lib/yesno.c (yesno): Check for EOL before replacing.
29742         * tests/test-yesno.sh: Add a test case (test along with gettext).
29744 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
29746         fdopendir-tests: test it does not close its arg
29747         * tests/test-fdopendir.c (main): Test that fdopendir does not
29748         close its argument.  From a suggestion by David Grayson in:
29749         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
29751 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
29753         gitlog-to-changelog: trim trailing white space
29754         * build-aux/gitlog-to-changelog (main):
29755         Trim trailing white space from commit message lines.
29756         This is helpful for processing the GNU Emacs repository,
29757         which dates back to 1985 and contains a lot of such lines.
29759         gitlog-to-changelog: new option --ignore-matching
29760         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
29761         Support new option --ignore-matching=PAT, which ignores all
29762         commit messages whose first line matches PAT.
29764 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
29766         fdopendir: port better to MinGW
29767         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
29768         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
29769         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
29770         * modules/fdopendir (Depends-on): Add dirfd.
29772 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
29774         fdopendir: fix typo in comment
29775         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
29777 2015-03-09  Eric Blake  <eblake@redhat.com>
29779         error: document all entry points provided
29780         * doc/glibc-functions/error_print_progname.texi
29781         (error_print_progname): Mention the error module.
29782         * doc/glibc-functions/error_at_line.texi (error_at_line):
29783         Likewise.
29784         * doc/glibc-functions/error_message_count.texi
29785         (error_message_count): Likewise.
29786         * doc/glibc-functions/error_one_per_line.texi
29787         (error_one_per_line): Likewise.
29789 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
29791         vasnprintf: pacify clang 3.5.0
29792         Problem reported by Werner Lemberg in:
29793         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
29794         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
29795         The casts aren't needed, since the characters in question are ASCII.
29797 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
29799         glob, etc.: port to MSVC v18 on MS-Windows 8.1
29800         * lib/dirent--.h (GNULIB_defined_opendir):
29801         * lib/dirent.in.h (GNULIB_defined_opendir)
29802         (GNULIB_defined_closedir):
29803         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
29804         #undef only if Gnulib defined it.
29806         poll: port to MSVC v18 on MS-Windows 8.1
29807         Problem reported by Gisle Vanem in:
29808         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
29809         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
29810         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
29811         Add sys_socket.
29813 2015-02-24  Pádraig Brady  <P@draigBrady.com>
29815         tests: support stderr verification with returns_()
29816         * tests/init.sh (returns_): Disable tracing for this wrapper
29817         function, so that stderr of the wrapped command is unchanged,
29818         allowing for verification of the contents.
29820 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
29822         passfd: avoid valgrind uninitalised data warning
29823         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
29824         to include just the fd we've initialized, rather than including
29825         the extra space used for alignment.
29827 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
29829         uniwbrk/u32-wordbreaks-tests: fix copyright
29830         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
29832         dup2: doc and test for Android bug
29833         Reported by Kevin Cernekee in:
29834         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
29835         * doc/posix-functions/dup2.texi (dup2): Document the bug.
29836         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
29838 2015-02-23  Kevin Cernekee  <cernekee@google.com>
29840         Replace dup2() on Android
29841         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
29842         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
29843         fails.  Using rpl_dup2() fixes this because it has an explicit test
29844         for this condition.
29846 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
29848         Android doesn't define RLIM_SAVED_*
29849         Portability problem reported by Kevin Cernekee in:
29850         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
29851         * doc/posix-headers/sys_resource.texi (sys/resource.h):
29852         Mention the portability problem.
29853         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
29854         Define if not defined.
29855         * m4/dup2.m4 (gl_FUNC_DUP2):
29856         * m4/fcntl.m4 (gl_FUNC_FCNTL):
29857         Likewise.
29859 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
29861         vasnprintf-posix-tests: use consistent test
29862         * tests/test-vasnprintf-posix.c (test_function):
29863         Use "<" in assert instead of "<=", for consistency with other tests.
29865 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
29867         printf, isinf, etc.: noncanonical != NaN
29868         Do not require that isinf, printf, etc. treat noncanonical
29869         values as NaNs.  Instead, require only that they do not crash.
29870         Problem reported by Joseph Myers in:
29871         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
29872         * doc/posix-functions/dprintf.texi (dprintf):
29873         * doc/posix-functions/fprintf.texi (fprintf):
29874         * doc/posix-functions/isfinite.texi (isfinite):
29875         * doc/posix-functions/isinf.texi (isinf):
29876         * doc/posix-functions/isnan.texi (isnan):
29877         * doc/posix-functions/printf.texi (printf):
29878         * doc/posix-functions/snprintf.texi (snprintf):
29879         * doc/posix-functions/sprintf.texi (sprintf):
29880         * doc/posix-functions/vdprintf.texi (vdprintf):
29881         * doc/posix-functions/vfprintf.texi (vfprintf):
29882         * doc/posix-functions/vprintf.texi (vprintf):
29883         * doc/posix-functions/vsnprintf.texi (vsnprintf):
29884         * doc/posix-functions/vsprintf.texi (vsprintf):
29885         Document this.
29886         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
29887         * m4/isinf.m4 (gl_ISINFL_WORKS):
29888         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
29889         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
29890         * tests/test-isfinite.c (test_isfinitel):
29891         * tests/test-isinf.c (test_isinfl):
29892         * tests/test-isnan.c (test_long_double):
29893         * tests/test-isnanl.h (main):
29894         * tests/test-snprintf-posix.h (test_function):
29895         * tests/test-sprintf-posix.h (test_function):
29896         * tests/test-vasnprintf-posix.c (test_function):
29897         * tests/test-vasprintf-posix.c (test_function):
29898         Test only that noncanonical values do not cause crashes, not that
29899         they are treated as NaNs.  In some cases this means a larger
29900         output buffer is needed.
29902 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
29904         fts: remove redundant close() (trivial)
29905         * lib/fts.c (fts_read): Remove redundant call to close().
29906         Spotted by coverity.
29908 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
29910         getdtablesize: port better for Android
29911         Problem reported by Kevin Cernekee in:
29912         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
29913         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
29914         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
29915         Instead, just use getrlimit, taking care to avoid Cygwin bug.
29917         poll: fixes for large fds
29918         * lib/poll.c (poll): Don't check directly for NFD too large.
29919         Don't rely on undefined behavior in FD_SET when an arg exceeds
29920         FD_SETSIZE.  Always set revents afterwards, even if to zero.
29921         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
29922         as that makes the test a bit stricter.
29924 2015-02-19  Kevin Cernekee  <cernekee@google.com>
29926         fcntl: Fix cross compiling
29927         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
29928         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
29930 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
29932         dup2, fcntl: cross-compile better for Android
29933         Problem reported by Kevin Cernekee in:
29934         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
29935         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
29936         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
29937         there's little need to cross-compile for older kernels nowadays.
29938         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
29939         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
29941 2015-02-18  Pádraig Brady  <P@draigBrady.com>
29943         getopt: don't crash on memory exhaustion
29944         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
29945         memory exhaustion.  In the _LIBC case we use alloca() as is
29946         already done in glibc, so we don't need to consider the separate
29947         error path in that awkward case.  Also fix a memory leak when
29948         ambiguous options are present.
29949         Reported by Tobias Stoeckmann
29951 2015-02-17  Mike Miller  <mtmiller@ieee.org>
29953         tempname: allow compilation with C++ (trivial)
29954         * lib/tempname.h [C++]: Specify extern "C" linkage.
29955         * lib/tempname.h (try_tempname):
29956         * lib/tempname.c (__try_tempname, __gen_tempname):
29957         Rename 'try' to 'tryfunc'.
29959 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
29961         dup2, fcntl: port to AIX
29962         * m4/dup2.m4 (gl_FUNC_DUP2):
29963         * m4/fcntl.m4 (gl_FUNC_FCNTL):
29964         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
29965         The former works on AIX 7.1 but the latter does not.
29966         Also, this may work better with Android; see:
29967         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
29969 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
29971         getdtablesize, dup2, fcntl: port to Android
29972         Problem reported by Kevin Cernekee in:
29973         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
29974         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
29975         Mention that getdtablesize doesn't work on Android.
29976         * lib/getdtablesize.c: Use getrlimit substitute only if
29977         getdtablesize is declared.  This should suffice for Cygwin
29978         while not breaking Android.
29979         * m4/dup2.m4 (gl_FUNC_DUP2):
29980         * m4/fcntl.m4 (gl_FUNC_FCNTL):
29981         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
29982         standardized but the latter is not, and sysconf works on Android.
29983         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
29984         Also check that getdtablesize is declared.
29985         This removes the need for a special case for Android.
29987 2015-02-16  Kevin Cernekee  <cernekee@google.com>
29989         localename: Implement gl_locale_name_thread_unsafe for Android
29990         * lib/localename.c: Android API level >= 21 supports two hardcoded
29991         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
29992         the internal __locale_t struct.
29994 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
29996         fts: avoid crash when a cycle is added while traversing
29997         This could be triggered by auto-mounting a recursive bind mount.
29998         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
29999         * lib/fts.c (fts_read): Avoid removing the original hash table item
30000         when leaving a directory that caused a cycle, and preserve the FTS_DC
30001         flag.
30003 2015-02-16  Daiki Ueno  <ueno@gnu.org>
30005         uniname/uniname: support character alias
30006         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
30007         Generate one-way mapping from aliases to codepoints in the
30008         generated tables.  Special case variation selectors to reduce
30009         table size.
30010         * lib/uniname/uniname.c (unicode_character_name): Special case
30011         variation selectors.
30012         (unicode_name_character): Special case variation selectors and
30013         their aliases.
30014         * lib/uniname/uninames.h: Regenerate.
30015         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
30016         * modules/uniname/uniname-tests (Files): Add
30017         tests/uniname/NameAliases.txt.
30018         * tests/uniname/test-uninames.c: Mark as static.
30019         (ALIASLEN): Define.
30020         (struct unicode_alias): New struct.
30021         (unicode_aliases): New variable.
30022         (fill_aliases): New function.
30023         (test_alias_lookup): New test function.
30024         (main): Run the 'test_alias_lookup' test if the second argument is
30025         given.
30026         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
30027         second argument.
30029 2015-02-11  Kevin Cernekee  <cernekee@google.com>
30031         Fix FILE struct compatibility with Android API level >= 21
30032         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
30033         __sferror.  Recent versions of Bionic's stdio.h no longer define
30034         __sferror.
30035         * lib/fbufmode.c: Likewise.
30036         * lib/fflush.c: Likewise.
30037         * lib/fpurge.c: Likewise.
30038         * lib/freadable.c: Likewise.
30039         * lib/freadahead.c: Likewise.
30040         * lib/freading.c: Likewise.
30041         * lib/freadptr.c: Likewise.
30042         * lib/freadseek.c: Likewise.
30043         * lib/fseeko.c: Likewise.
30044         * lib/fseterr.c: Likewise.
30045         * lib/fwritable.c: Likewise.
30047         Assume unbroken ungetc() on Android
30048         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
30049         test case passed when running on an Android host, and the code
30050         hasn't really changed since 2009.
30052         getdtablesize: Fix Android build
30053         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
30054         versions have this symbol in the .so library (at least 32-bit
30055         platforms) but are missing the declaration in the header file,
30056         causing the m4 logic to guess incorrectly.
30058         localename: Fix Android build
30059         * modules/localename (Depends-on): Add langinfo.
30061         getugroups: Fix Android build
30062         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
30063         functions.
30065         euidaccess: Fix Android build
30066         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
30067         AT_EACCESS gets declared.
30069         linkat_nofollow: Add fallback case for cross compiling
30070         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
30072         net_if: Handle content-free <net/if.h> system headers
30073         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
30074         struct if_nameindex.  If not, enable the replacement header.
30076         signal_h: Fix Android build
30077         * lib/signal.in.h: Add Android to the list of platforms that declare
30078         pthread_sigmask() in <pthread.h> instead of <signal.h>.
30080         duplocale: Fix Android build of duplocale-tests
30081         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
30082         is included by test-duplocale.c (but not by duplocale.c).
30083         * modules/duplocale-tests (configure.ac): Check for monetary.h.
30084         * tests/test-duplocale.c: Skip test if monetary.h is absent.
30085         * doc/posix-headers/monetary.texi: Add Android to the list of
30086         platforms missing monetary.h.
30088 2015-02-11  Pádraig Brady  <P@draigBrady.com>
30090         tests: avoid recent -Werror=unused-variable regression in test-locale
30091         * tests/test-locale.c (main): Reference the variable to avoid the
30092         "unused variable" warning.
30094 2015-02-11  Pádraig Brady  <P@draigBrady.com>
30096         maint: various whitespace cleanups in tempname
30097         * lib/tempname.c: Normalize spacing and line length.
30098         * lib/tempname.h: Likewise.
30099         * modules/tempname: Likewise.
30101 2015-02-11  Pádraig Brady  <P@draigBrady.com>
30103         tests: provide returns_() to simplify exit status checking
30104         * tests/init.sh (returns_): A new function for use in tests,
30105         to allow for easier checking of return values, where you expect
30106         a command to exit with failure status.  By checking for a particular
30107         exit code, you don't hide any crashes for example.
30109 2015-02-11  Pádraig Brady  <P@draigBrady.com>
30111         mountlist: only use libmount when specified
30112         There are currently many shared libs dependencies introduced by
30113         libmount with associated runtime and virt mem overhead.
30114         Therefore don't enable by default.
30115         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
30117 2015-02-08  Daiki Ueno  <ueno@gnu.org>
30119         uniname/unimame-tests: don't link with -lunistring
30120         * modules/uniname/uniname-tests (Makefile.am): Don't link against
30121         $(LIBUNISTRING).  Document the rationale why we need to
30122         conditionalize the test.
30124 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
30126         fstrcmp: don't assume strlen < INT_MAX
30127         * lib/fstrcmp.c: Include stddef.h and stdint.h.
30128         (uintptr_t): Remove, as we're now assuming stdint.
30129         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
30130         Prefer ptrdiff_t to int when the value could exceed INT_MAX
30131         if the input string is long.
30132         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
30133         uintptr_t to size_t when the underlying value is a pointer casted
30134         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
30135         * modules/fstrcmp (Depends-on): Add stdint.
30137         diffseq: prefer ptrdiff_t to ssize_t
30138         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
30139         ptrdiff_t is the natural type for signed indexes.
30140         On a few older platforms, ssize_t is narrower than size_t.
30142         xalloc: fix typo that suppressed warnings
30143         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
30144         This typo, introduced a couple of years ago, mistakenly suppressed
30145         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
30146         -Wmissing-declarations warnings.
30148         full-read: fix license notice typo
30149         * lib/full-read.h: Remove a stray line in the license notice.
30150         Reported by Sam Ellis in: http://bugs.gnu.org/19808
30152         crypto/gc: fix a -Wswitch warning
30153         Reported by Bruce Korb in:
30154         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
30155         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
30157 2015-02-03  Pádraig Brady  <P@draigBrady.com>
30159         gnulib-tool: fix handling of patch(1) diagnostics
30160         * gnulib-tool: Send diagnostics from patch(1) to stderr,
30161         as otherwise gnulib-tool will reparse that output and attempt
30162         to lookup modules.
30164 2015-02-03  Pádraig Brady  <P@draigBrady.com>
30166         bootstrap: exit immediately upon gnulib-tool failure
30167         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
30168         This was noticed when gnulib-tool exited early due to failure
30169         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
30170         but various confusing errors were then given as the build proceeded.
30172 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
30174         symlinkat: include all required header files
30175         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
30176         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
30177         Reported at https://savannah.gnu.org/bugs/index.php?44151
30178         and by Jack Howarth.
30180 2015-01-29  Pádraig Brady  <P@draigBrady.com>
30182         localename: support Solaris 12 and illumos
30183         * lib/localename.c (gl_locale_name_thread_unsafe): call
30184         getlocalename_l() on newer __sun platforms.
30185         Reported by Alexander Pyhalov.
30186         Fix suggested by Rich Burridge.
30188 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
30190         locale: fix tests on illumos (trivial)
30191         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
30192         so move from global scope to main().
30194 2015-01-24  Daiki Ueno  <ueno@gnu.org>
30196         unictype: avoid undefined left-shift behavior
30197         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
30198         gcc's -fsanitize=shift and running its tests triggered:
30199           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
30200             places cannot be represented in type 'int'
30201         Cast LHS to 'unsigned int' after integer promotion.
30202         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
30203         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
30205 2015-01-20  Daiki Ueno  <ueno@gnu.org>
30207         libunistring: bump version of unitypes dependants
30208         Due to the header file search order, all the headers which depend
30209         on unitypes.h need to be generated, when the preinstalled
30210         libunistring is older.
30211         * modules/unicase/base (configure.ac): Bump minimum version to
30212         0.9.4.
30213         * modules/uniconv/base (configure.ac): Likewise.
30214         * modules/unilbrk/base (configure.ac): Likewise.
30215         * modules/uninorm/base (configure.ac): Likewise.
30216         * modules/unistdio/base (configure.ac): Likewise.
30217         * modules/unistr/base (configure.ac): Likewise.
30218         * modules/uniwbrk/base (configure.ac): Likewise.
30219         * modules/uniwidth/base (configure.ac): Likewise.
30221 2015-01-20  Daiki Ueno  <ueno@gnu.org>
30223         unictype/category-none: fix link with libunistring
30224         Since _UC_CATEGORY_NONE is not a public symbol, it will be
30225         prefixed with "libstring_" when compiled as part of libunistring.
30226         To avoid undefined symbol at link time, increase the minimum
30227         version when the dependant modules are updated.
30228         * modules/unictype/category-none (configure.ac): Bump minimum
30229         version to 0.9.5.
30231 2015-01-20  Daiki Ueno  <ueno@gnu.org>
30233         unitypes: fix build with installed libunistring
30234         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
30235         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
30236         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
30238 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
30240         time: port to MinGW32 3.21
30241         Problem reported by Eli Zaretskii in:
30242         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
30243         * lib/time.in.h:
30244         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
30245         * modules/time (Depends-on):
30246         Fall back on unistd.h if the other include files don't define
30247         struct timespec.
30249         update-copyright: apply to self
30250         * build-aux/update-copyright: Fix copyright date.  How ironic!
30252 2015-01-15  Daiki Ueno  <ueno@gnu.org>
30254         libunistring: update to Unicode 7.0.0
30255         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
30256         Manichaean names.
30257         * lib/unictype/joininggroup_name.h: Likewise.
30258         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
30259         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
30260         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
30261         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
30262         (fill_arabicshaping, joining_group_as_c_identifier): Support those
30263         enum values.
30264         (is_property_alphabetic): Accept newly added characters to
30265         cuneiform numeric signs.
30266         (is_property_default_ignorable_code_point): Reject U+0605.
30267         (FIELDLEN): Increase from 120 to 160.
30268         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
30269         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
30270         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
30271         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
30272         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
30273         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
30274         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
30275         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
30276         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
30277         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
30278         U+1E8D0..U+1E8D6.
30279         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
30280         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30281         lib/uniwidth/width.c.
30282         * all generated files under lib/uni* and tests/uni*: Regenerate.
30284 2015-01-14  Daiki Ueno  <ueno@gnu.org>
30286         libunistring: update to Unicode 6.3.0
30287         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
30288         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
30289         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
30290         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
30291         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
30292         Update WB5, WB9, WB10, WB13a, and WB13b.
30293         * tests/uniwbrk/test-uc-wordbreaks.c
30294         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
30295         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
30296         (UC_BIDI_PDI): New enumeration values.
30297         (bidi_category_byname): Support those enum values.
30298         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
30299         dedicated property assigned.
30300         (is_property_case_ignorable): Check 0x0027.
30301         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
30302         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
30303         (output_wbp): Support those enum values.
30304         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
30305         (UC_BIDI_PDI): New enumeration values.
30306         * lib/unictype/bidi_byname.gperf: Add those property names.
30307         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
30308         U+180E, U+1A1B, and U+2066..U+2069.
30309         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30310         lib/uniwidth/width.c.
30311         * all generated files under lib/uni* and tests/uni*: Regenerate.
30313 2015-01-14  Daiki Ueno  <ueno@gnu.org>
30315         libunistring: update to Unicode 6.2.0
30316         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
30317         (unilbrk_table): Adjust table size.
30318         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
30319         for LBP_RI.
30320         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
30321         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
30322         Normalize table index skipping ignored properties.
30323         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
30324         WBP_EXTEND and WBP_FORMAT, which are now computed without using
30325         the table.
30326         * lib/uniwbrk/wbrktable.h: Adjust table size.
30327         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
30328         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
30329         Support rule GB8a.
30330         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
30331         * tests/unigbrk/test-uc-is-grapheme-break.c
30332         (graphemebreakproperty_to_string): Support GBP_RI.
30333         * tests/uniwbrk/test-uc-wordbreaks.c
30334         (wordbreakproperty_to_string): Support WBP_RI.
30335         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
30336         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
30337         (output_lbp): Support LBP_RI.  Adjust some characters changed from
30338         LBP_AL to LBP_ID.
30339         (output_lbp): Support LBP_RI.
30340         (WBP_RI): New enumeration value.
30341         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
30342         (output_wbp): Support WBP_RI.
30343         (GBP_RI): New enumeration value.
30344         (output_gbp_test, fill_org_gbp): Support GBP_RI.
30345         * all generated files under lib/uni* and tests/uni*: Regenerate.
30347 2015-01-14  Daiki Ueno  <ueno@gnu.org>
30349         libunistring: update to Unicode 6.1.0
30350         * lib/gen-uni-tables.c (output_joining_group): Switch to
30351         3-level table to accommodate joining groups defined with higher
30352         codepoint value.  Since there are only 88 groups defined in
30353         Unicode 7.0.0, use 7-bit packed format for level3 entries.
30354         (get_lbp): Update for Unicode 6.1.0.
30355         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
30356         3-level table.
30357         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
30358         joining group name.
30359         * lib/unictype/joininggroup_name.h: Likewise.
30360         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
30361         (unilbrk_table): Adjust table size.
30362         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
30363         for LBP_HL.
30364         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
30365         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
30366         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
30367         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
30368         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
30369         U+302E..U+302F.
30370         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30371         lib/uniwidth/width.c.
30372         * all generated files under lib/uni* and tests/uni*: Regenerate.
30373         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
30375 2015-01-15  Daiki Ueno  <ueno@gnu.org>
30377         uniwbrk/u32-wordbreaks-tests: add conformance test
30378         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
30379         tests/uniwbrk/test-uc-wordbreaks.c,
30380         tests/uniwbrk/test-uc-wordbreaks.sh, and
30381         tests/uniwbrk/WordBreakTest.txt.
30382         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
30383         test-uc-wordbreaks to $(check_PROGRAMS), and define
30384         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
30385         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
30386         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
30388 2015-01-15  Daiki Ueno  <ueno@gnu.org>
30390         uniwbrk: ignore Extended/Format characters at BOL not BOS
30391         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
30392         characters if the previous character property is one of
30393         WBP_NEWLINE, WBP_CR, and WBP_LF.
30395 2015-01-11  Jim Meyering  <meyering@fb.com>
30397         test-strstr.c: avoid a trivial leak
30398         * tests/test-strstr.c (main): Free haystack.
30400         update-copyright: recognize groff's \(co marker
30401         * build-aux/update-copyright (circle_c_re): Also accept
30402         uses of \(co, as found in gzip.1.
30404 2015-01-08  Pádraig Brady  <P@draigBrady.com>
30406         maint.mk: fix compatibility with OS X nm
30407         * top/maint.mk (_gl_tight_scope): Use the -g option to
30408         show exported items rather than the -e option which is
30409         ignored on all platforms except OS X where it gives an error.
30410         Reported by Assaf Gordon.
30412 2015-01-07  KO Myung-Hun  <komh@chollian.net>
30414         localcharset: improve charset detection on OS/2
30415         Use system codepage when appropriate.  Map OS/2 codepages to
30416         GNU canonical charset names if possible.
30417         * lib/config.charset: Don't output aliases if "$os" is os2*.
30418         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
30419         result for OS/2.
30420         (locale_charset) [OS2]: Use system codepage if codeset is omitted
30421         from the locale name which is neither "C" nor "POSIX".
30423 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
30425         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
30426         This reverts the last patch but one, as it shouldn't be needed now
30427         that the typo is fixed.
30428         * lib/count-leading-zeros.h (count_leading_zeros_ll):
30429         * lib/count-trailing-zeros.h:
30430         * lib/count-one-bits.h:
30431         Go back to using 64-bit intrinsics.
30433         count-leading-zeros: fix pragma typos
30434         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
30435         Fix typos in declaration of intrinsics when _MSC_VER.
30437 2015-01-06  Pádraig Brady  <P@draigBrady.com>
30439         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
30440         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
30441         intrinsics in this case.
30442         * lib/count-trailing-zeros.h: Likewise.
30443         * lib/count-one-bits.h: Likewise.
30445 2015-01-06  Daiki Ueno  <ueno@gnu.org>
30447         uniname/uniname: update to Unicode 7.0.0
30448         To accommodate new characters added since Unicode 5.1.0, this
30449         changes the internal representation of codepoint ranges.
30450         Previously, we grouped codepoint ranges by manually assigned 4-bit
30451         tag, which only allowed 16 groups.  This removes the limitation by
30452         switching to binary search on a table.  For the detail rationale
30453         and the benchmark results, see:
30454         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
30455         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
30456         to INDEX, as it no longer represents a codepoint.
30457         (range): New struct.
30458         (main): Switch to intervals list from a bit-pattern based
30459         classification.
30460         * lib/uniname/uninames.h: Regenerate.
30461         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
30462         * modules/uniname/base (configure.ac): Bump minimum version to
30463         0.9.5.
30464         * modules/uniname/uniname (configure.ac): Bump minimum version to
30465         0.9.5.
30467 2015-01-05  Eric Blake  <eblake@redhat.com>
30469         doc: update INSTALL from autoconf
30470         * doc/install.texi: Resync from autoconf.
30471         * doc/INSTALL: Reflect recent autoconf update.
30472         * doc/INSTALL.ISO: Likewise.
30473         * doc/INSTALL.UTF-8: Likewise.
30475         stdio: fix use of PRIdMAX on modern mingw
30476         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
30477         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
30478         to work with modern mingw.
30480 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
30482         pthread: detect git mingw builds with only partial pollution
30483         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
30484         pollution, as seen temporarily in Fedora 21.
30486 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
30488         lib-symbol-versions: cache script check
30489         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
30490         Cache the check for linker version scripts.
30491         From a suggestion by Christophe Curis in:
30492         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
30494 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
30496         maint: fix grammar nits in propername (trivial change)
30497         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
30498         and use an adequate verb and tense.
30500 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
30502         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
30503         * module/gendocs: Add 'doc/gendocs_template_min'.
30505         * build-aux/gendocs.sh: Change email addresses and upstream URLs
30506         from to Gnulib's.
30507         (scripturl, templateurl): Adjust accordingly.
30509 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
30511         gendocs: copyright date and version fix
30512         Reported by Karl Berry in:
30513         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
30514         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
30515         Fix copyright date.
30516         * build-aux/gendocs.sh (scriptversion): Update.
30518 2015-01-01  Karl Berry  <karl@gnu.org>
30520         * doc/install.texi,
30521         * build-aux/mdate-sh,
30522         * build-aux/depcomp,
30523         * build-aux/config.guess,
30524         * build-aux/config.sub,
30525         * build-aux/ar-lib,
30526         * build-aux/compile: revert copyright updates (some from last
30527         year) in slaved files.
30529 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
30531         version-etc: new year
30532         * doc/gnulib.texi:
30533         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
30534         * all files: Run 'make update-copyright'.
30536 2014-12-30  Pádraig Brady  <P@draigBrady.com>
30538         xstrtol: ensure errno is reset
30539         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
30540         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
30542         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
30544 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
30546         utimens: fix dependency typo
30547         * modules/utimens (Depends-on): Remove 'assure'.
30548         This bug was introduced in the recent 'assure' patch.
30550 2014-12-22  Eric Blake  <eblake@redhat.com>
30552         docs: mention why libgen.h is bad
30553         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
30555 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
30557         assure: new module
30558         This works better than 'assert' when compiling with -DNDEBUG,
30559         as it avoids some compiler diagnostics in that case.
30560         Reported by Norihiro Tanaka in:
30561         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
30562         * MODULES.html.sh (func_all_modules): Add 'assure'.
30563         * lib/assure.h, modules/assure: New files.
30564         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
30565         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
30566         Prefer 'assure' to 'assert'.
30567         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
30568         * modules/chdir-long, modules/cycle-check, modules/fchdir:
30569         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
30570         Depend on 'assure'.
30572 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
30574         stdalign: port better to HP compilers
30575         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
30576         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
30578         stdalign: work around Apple GCC 4.0 bug
30579         Reported by David Fang in:
30580         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
30581         * lib/stdalign.in.h (_Alignas):
30582         * m4/stdalign.m4 (gl_STDALIGN_H):
30583         Do not use aligned attribute with GCC 4.0 on Apple.
30585 2014-12-16  Pádraig Brady  <P@draigBrady.com>
30587         getcwd: fix test failure on OS X 10.9
30588         * m4/getcwd-path-max.m4: Avoid the replacement if it
30589         won't be effective due to the PATH_MAX limitation of lstat().
30590         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
30591         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
30592         for this case for use in tests, and also exclude this
30593         case when setting REPLACE_GETCWD.
30594         * tests/test-getcwd.c (test_long_name): Restrict the
30595         tested path length so that lstat() will not be passed
30596         a path greater than PATH_MAX.
30597         Also key a test condition on HAVE_OPENAT_SUPPORT rather
30598         than AT_FDCWD, since the latter is set unconditionally
30599         since Sep 2009 in commit 52c658e9.
30601 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
30603         parse-datetime: avoid a compiler warning with byacc (trivial)
30604         * lib/parse-datetime.y (yylex): Use the same prototype in the
30605         function definition as the declaration, to avoid a -Wstrict-prototypes
30606         warning seen when using byacc.
30608 2014-12-12  Daiki Ueno  <ueno@gnu.org>
30610         unicase/locale-language-tests: fix LOCALE_FR test
30611         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
30612         a French locale with traditional encoding.
30613         Reported by umerqayam in:
30614         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
30616 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
30618         stddef: support C11's max_align_t
30619         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
30620         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
30621         Do not undef, as that might cause max_align_t to be defined twice.
30622         Instead, change use to check for _GL_STDDEF_WINT_T too.
30623         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
30624         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
30625         Check for max_align_t.
30626         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
30627         * modules/stddef-tests (Depends-on): Add stdalign.
30628         * tests/test-stddef.c: Test max_align_t.
30630 2014-12-11  Daiki Ueno  <ueno@gnu.org>
30632         unistd: fix iOS check conditional
30633         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
30634         as 0 or 1 in <TargetConditionals.h>, and the previous check always
30635         yielded true on non-iOS environment.
30636         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
30637         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
30638         they are defined.
30640 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
30642         posixtm: avoid compiler warning in a better way
30643         * lib/posixtm.c (IF_LINT): Remove.
30644         (year, posix_time_parse):
30645         Return true (not 0) if successful.  All callers changed.
30646         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
30648 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
30650         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
30651         started with '/' on EMX.
30653 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
30655         freopen: workaround freopen() on OS/2 kLIBC
30656         * lib/freopen.c (rpl_freopen): Workaround.
30657         * m4/freopen.m4: Add os2* case.
30659         get_shared_library_fullname: port to EMX
30660         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
30661         on EMX, respectively.
30662         (_DLL_InitTerm): New on EMX.
30663         (get_shared_library_fullname): Implement on EMX.
30665         find_executable: port to EMX
30666         * lib/progreloc.c (find_executable): Implement on EMX.
30668         sched: check struct sched_param in spawn.h as well
30669         * lib/sched.in.h: Include spawn.h on kLIBC.
30670         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
30672 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
30674         bootstrap: Allow perl modules in $buildreq
30675         * build-aux/bootstrap: Add case for perl modules.
30677 2014-12-08  Pádraig Brady  <P@draigBrady.com>
30679         apply _GL_ATTRIBUTE_PURE to some inline functions
30680         clang 3.4.2 flagged these inline functions as pure
30681         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
30682         * lib/sig-handler.h (get_handler): Likewise.
30683         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
30684         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
30686 2014-12-06  Pádraig Brady  <P@draigBrady.com>
30688         vasnprintf: fix potential use after free
30689         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
30690         flagged by clang-analyzer 3.4.2.
30692 2014-12-05  Pádraig Brady  <P@draigBrady.com>
30694         filevercmp, posixtm: avoid compiler warnings with -O3
30695         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
30696         * lib/posixtm.c: (IF_LINT): Define.
30697         (posix_time_parse): Use it to void a "may be used uninitialized"
30698         warning, seen only with -O3.
30700 2014-12-05  Bruno Haible  <bruno@clisp.org>
30702         Fix LDBL80_WORDS macro on big endian platforms.
30703         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
30704         LDBL80_WORDS macro.
30705         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
30706         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
30707         * tests/test-isfinite.c (test_isfinitel): Likewise.
30708         * tests/test-isinf.c (test_isinfl): Likewise.
30709         * tests/test-isnan.c (test_long_double): Likewise.
30710         * tests/test-isnanl.h (main): Likewise.
30711         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
30712         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
30713         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
30714         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
30715         Reported by Pádraig Brady.
30717 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
30719         git-version-gen: do not print new line characters
30720         * build-aux/git-version-gen: Use printf instead of echo and tr.
30722         gnulib-tool: recognize x:* as an absolute path
30723         * gnulib-tool (func_gnulib_dir): Add ?:* case.
30724         (func_relconcat): Likewise.
30726 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
30728         argp: avoid extraneous translation and mem leak with empty pre doc
30729         * lib/argp-help.c (argp_doc): Never translate the empty string,
30730         when "\v" is the first or last character of the string, as that
30731         has a reserved meaning to return the header info from a po file.
30732         This also fixes a small memory leak in the !post case.
30733         The issue can be seen with this command for example:
30734         LC_MESSAGES=en_US grub2-mknetdir --help
30736 2014-11-27  Daiki Ueno  <ueno@gnu.org>
30738         uniname/uniname-tests: skip if system's libunistring is used
30739         * modules/uniname/uniname-tests (Makefile.am): Skip test if
30740         uniname/uniname module is not compiled.
30742 2014-11-27  Pádraig Brady  <P@draigBrady.com>
30744         printf: fix configure check on big endian systems
30745         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
30747 2014-11-22  Daiki Ueno  <ueno@gnu.org>
30749         pipe-filter-gi, pipe-filter-ii: port to AIX
30750         On AIX 7.1, 'select' is defined as static and cannot be referred
30751         to from inline function.
30752         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
30753         the definition...
30754         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
30755         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
30757 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
30759         gitlog-to-changelog: add --until
30760         * build-aux/gitlog-to-changelog: Support new --until option.
30761         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
30763 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
30765         extern-inline: update commentary about GCC bugs
30766         * m4/extern-inline.m4: Add another GCC bug number to comments.
30768 2014-11-13  Daiki Ueno  <ueno@gnu.org>
30770         gen-uni-tables: untabify
30771         * lib/gen-uni-tables.c: Untabify.
30773 2014-11-13  Daiki Ueno  <ueno@gnu.org>
30775         gen-uni-tables: check out-of-range values added to 3-level tables
30776         * lib/gen-uni-tables.c (output_category, output_bidi_category)
30777         (output_joining_type, output_ident_category): Check out-of-range
30778         values added to 3-level tables.
30780 2014-11-13  Daiki Ueno  <ueno@gnu.org>
30782         gen-uni-tables: utilize 'assert'
30783         * lib/gen-uni-tables.c: Include <assert.h>.
30784         (output_category, output_combclass, output_decimal_digit_test)
30785         (output_decimal_digit, output_digit_test, output_digit)
30786         (output_numeric, get_mirror_value, fill_properties)
30787         (fill_property30, is_property_alphabetic)
30788         (is_property_default_ignorable_code_point)
30789         (is_property_uppercase, is_property_lowercase)
30790         (is_property_cased, is_property_case_ignorable)
30791         (is_property_changes_when_lowercased, is_property_iso_control)
30792         (is_property_math, fill_arabicshaping, output_joining_group)
30793         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
30794         (output_wbp, fill_org_gbp, get_decomposition)
30795         (output_decomposition, fill_composition_exclusions)
30796         (debug_output_composition_tables, output_composition_tables)
30797         (redistribute_casefolding_rules, output_casing_rules): Use
30798         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
30799         reporting.
30801 2014-11-13  Daiki Ueno  <ueno@gnu.org>
30803         gen-uni-tables: cosmetic improvements
30804         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
30805         variables specification.
30806         (is_outdigit): Remove unused function.
30808 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
30810         fcntl-h-tests: port to PA-RISC GNU/Linux
30811         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
30813 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
30815         fts: port to C89
30816         Problem reported for MSVC 16 by Gisle Vanem in:
30817         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
30818         * lib/fts.c (fts_build): Avoid declaration before statement.
30820 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
30822         unistd: port to iOS
30823         Problem reported by André Klitzing in:
30824         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
30825         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
30827 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
30829         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
30830         Problem reported by Alan Modra in:
30831         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
30832         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
30833         Always cast the function arg, reverting this part of the previous
30834         change.
30836 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
30838         obstack: avoid potentially-nonportable function casts
30839         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
30840         Remove, replacing with ...
30841         (call_chunkfun, call_freefun): New static functions.
30842         All uses changed.  Avoid potentially-nonportable casts.
30843         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
30844         (_obstack_begin_worker): Omit last two args, since they
30845         rely on potentially-nonportable casts.  All callers changed.
30846         * lib/obstack.h (_OBSTACK_CAST): New macro.
30847         Use it everywhere the old API used a potentially-nonportable cast.
30848         The new API doesn't cast.
30849         (struct obstack): Use unions rather than requiring
30850         potentially-nonportable casts.
30851         (obstack_chunkfun, obstack_freefun): Return void.
30853 2014-11-03  Alan Modra  <amodra@gmail.com>
30855         obstack: fix macro return values
30856         * lib/obstack.h (obstack_next_free): Return void *.
30857         (obstack_1grow_fast, obstack_blank_fast): Return void.
30858         For __GNUC__ macros:
30859         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
30860         For !__GNUC__ macros:
30861         (obstack_make_room, obstack_grow, obstack_grow0)
30862         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
30864 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
30866         obstack: do not assume system-supplied obstack is size_t safe
30867         * m4/obstack.m4: New file.
30868         * modules/obstack (Files): Add it.
30870         obstack: port to platforms that #define __alignof__
30871         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
30872         not if !_LIBC.  We don't know of any platforms that #define
30873         __alignof__, but it might be useful in tests.  Conversely,
30874         glibc assumes GCC.
30876 2014-11-03  Pádraig Brady  <P@draigBrady.com>
30878         linkat: don't unconditionally replace on GNU/Linux
30879         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
30880         was redundant for a few reasons.  It was present to support compiling
30881         on new systems but running on the old narrow window of Linux 2.6.1[67].
30882         It setup and cleaned up test files which weren't actually used.
30883         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
30884         implicit in the following check.
30886 2014-11-03  Pádraig Brady  <P@draigBrady.com>
30888         linkat: wrap to handle symlinks on OS X 10.10
30889         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
30890         but not usable because it doesn't support creating hardlinks
30891         to symlinks.  Therefore add a generic test for this capability
30892         and fallback to our emulation if linkat() fails with ENOTSUP.
30894 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
30896         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
30897         * doc/posix-functions/open.texi (open):
30898         * doc/posix-functions/openat.texi (openat):
30899         Document that these functions do not set errno to ELOOP when
30900         a symlink is opened with O_NOFOLLOW.
30902 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
30904         obstack: add NEWS entry for recent incompatible changes
30905         * NEWS: Describe recent changes.
30907 2014-10-30  Pádraig Brady  <P@draigBrady.com>
30909         mountlist: don't use libmount to decide on dummy/remote
30910         * lib/mountlist.c (read_file_system_list): Don't use the libmount
30911         routines to determine whether a file system is dummy or remote,
30912         as they're not currently compatible.  For example the remoteness
30913         is determined on file system type (for which the list seems incomplete),
30914         rather than simply checking for a ':' in the device name.
30915         Also libmount currently determines that 'tmpfs' is a dummy file system
30916         even though it has associated storage.
30918 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
30920         obstack: prefer __alignof__ to alignof
30921         This is for portability to pre-4.7 GCC when compiling glibc.
30922         See Joseph S. Myers in:
30923         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
30924         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
30925         New macro, defined by including and using <alignof.h>.
30926         (MAX): New macro.
30927         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
30928         Do not use enums as they are not portable to some broken compilers.
30929         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
30931         obstack: prefer alignof to calculating alignments by hand
30932         * lib/obstack.c: Include <stdalign.h>.
30933         (struct fooalign): Remove.
30934         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
30935         * modules/obstack (Depends-on): Add stdalign.
30937 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
30939         obstack: use size_t alignments and check for overflow
30940         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
30941         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
30942         * lib/obstack.h (struct obstack.alignment_mask):
30943         Use _OBSTACK_SIZE_T, not int, for alignments.
30944         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
30945         overflows, e.g., when adding the alignment.
30947 2014-10-29  Alan Modra  <amodra@gmail.com>
30949         obstack: 64-bit obstack support, part 3
30950         This finally enables full 64-bit obstack support.  The glibc
30951         shared library specific code is removed from obstack.c too, and
30952         the error handling code conditionally compiled under control of
30953         another macro, _OBSTACK_NO_ERROR_HANDLER.
30954         * lib/obstack.h: Include string.h earlier.
30955         (_OBSTACK_INTERFACE_VERSION): Define.
30956         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
30957         * lib/obstack.c: Don't include shlib-compat.h.
30958         (OBSTACK_INTERFACE_VERSION): Delete.
30959         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
30960         glibc code is compatible with version 2.  Don't include stdio.h for
30961         __GNU_LIBRARY.
30962         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
30963         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
30964         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
30965         glibc shared library specific source.
30967         obstack: 64-bit obstack support, part 2
30968         This gets us 4G obstack support, without changing ABI
30969         compatibility, apart from possibly introducing some
30970         signed/unsigned comparison warnings in code that uses obstack.h.
30971         a) Replace "int" size parameters, return values, and macro local vars
30972            with _OBSTACK_SIZE_T, an "unsigned int" for now.
30973         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
30974         c) Make all obstack macros checking available room use obstack_room.
30975            "next_free + desired > chunk_limit" may wrap the lhs for chunks
30976            allocated near the top of memory.
30977         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
30978         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
30979         in place of "int" size parameters, return values and local vars.
30980         (_CHUNK_SIZE_T): Define.
30981         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
30982         union use an _OBSTACK_SIZE_T integer type.
30983         For __GNUC__ versions of the following macros...
30984         (obstack_room): Rename local var.
30985         (obstack_make_room): Use obstack_room.
30986         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
30987         obstack_int_grow, obstack_blank): Likewise.
30988         (obstack_finish): Use unsigned comparison when comparing aligned
30989         next_free against chunk_limit.
30990         (obstack_free): Cast OBJ to remove possible const qualifier.
30991         For !__GNUC__ versions of the following macros...
30992         (obstack_make_room): Use obstack_room.
30993         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
30994         obstack_int_grow, obstack_blank): Likewise.
30995         (obstack_finish): Use unsigned comparision when comparing aligned
30996         next_free against chunk_limit.
30997         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
30998         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
30999         _OBSTACK_SIZE_T.
31000         (_obstack_begin, _obstack_begin_1): Likewise.
31001         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
31002         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
31004         obstack: 64-bit obstack support, part 1
31005         a) Correct calls to alloc function, to use a size_t arg.  "long" is
31006            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
31007            and "size_t" 64 bits.
31008         b) Consolidate _obstack_begin and _obstack_begin1 code.
31009         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
31010         use "size_t" rather than "long".
31011         (_obstack_begin, _obstack_begin1): Likewise.
31012         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
31013         obstack_chunkfun): Update alloc function casts.
31014         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
31015         (chunkfun_type, freefun_type): New typdefs.
31016         (_obstack_begin_worker): Split out from ..
31017         (_obstack_begin, _obstack_begin_1): ..here.
31019         obstack: tidy part 2
31020         a) Don't be concerned about "not polluting the namespace with stddef.h
31021            symbols" in obstack.h, since gnulib string.h includes stddef.h
31022            anyway, and it seems unlikely that anyone would care.
31023         b) Don't roll our own slow memcpy in _obstack_newchunk.
31024         c) Rename obstack_free to _obstack_free.  This makes the naming
31025            consistent with other obstack functions and obviates the need for
31026            __obstack_free.  Ancient obstack.c defined both obstack_free and
31027            _obstack_free.  We continue to do that for _LIBC via an alias.
31028         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
31029            is clever, but nowadays gcc warns on undefined macros.  You'll get
31030            an undefined macro warning if simulating an old gcc with -U__GNUC__
31031            -U__GNUC_MINOR__ -D__GNUC__=1.
31032         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
31033         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
31034         (__obstack_free): Delete, update refs.
31035         (_obstack_free): Rename from obstack_free.
31036         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
31037         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
31038         * lib/obstack.c: Don't include stddef.h.
31039         (COPYING_UNIT): Delete.
31040         (_obstack_begin): Formatting fix.
31041         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
31042         (_obstack_free): Rename from __obstack_free, update alias.  Move
31043         undef of obstack_free to where it is needed.
31045         obstack: tidy part 1
31046         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
31047            to me, and result in overlong lines after later patches.
31048         b) Move error handling code, to avoid a forward declaration and to
31049            simplify later patches in this series.
31050         * lib/obstack.h (struct obstack <temp>): Rename fields of union
31051         and update all uses.
31052         * lib/obstack.c: Include stdlib.h earlier.
31053         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
31054         in file.
31055         (print_and_abort): Remove now redundant forward declaration.
31057 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
31059         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
31060         Without this change, in bleeding-edge fileutils Autoconf complains
31061         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
31062         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
31063         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
31064         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
31066 2014-10-24  Daiki Ueno  <ueno@gnu.org>
31068         iconv: avoid false detection of non-working iconv
31069         The INBUF arguments of iconv can be either 'const char **'
31070         or 'char **'.  If CC is g++, the difference causes a compile error
31071         and thus leads to a false detection of non-working iconv.
31072         Reported by Eli Zaretskii and Werner LEMBERG in:
31073         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
31074         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
31075         iconv.  Bump serial number.
31077 2014-10-23  Pádraig Brady  <P@draigBrady.com>
31079         bootstrap: print more diagnostics for missing programs
31080         * build-aux/bootstrap: only suppress stderr when checking for
31081         alternative program names.  This supports programs issuing non
31082         standard error messages.
31084 2014-10-23  Pádraig Brady  <P@draigBrady.com>
31086         bootstrap: only update the gnulib submodule
31087         * build-aux/bootstrap: Restrict the "submodule update" command
31088         to the gnulib path.
31090 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
31092         symlinkat: port to AIX 7.1
31093         * doc/posix-functions/symlinkat.texi (symlinkat):
31094         Mention AIX porting problem.
31095         * lib/symlinkat.c: Always include errno.h.
31096         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
31097         * lib/unistd.in.h (symlinkat): Add replacement machinery.
31098         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
31099         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
31100         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
31101         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
31102         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
31104         readlinkat: port to AIX 7.1
31105         * doc/posix-functions/readlink.texi (readlink):
31106         * doc/posix-functions/readlinkat.texi (readlinkat):
31107         Mention AIX porting problem.
31108         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
31109         New function.
31110         * lib/unistd.in.h (readlinkat): Add replacement machinery.
31111         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
31112         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
31113         * modules/readlinkat (configure.ac): Also compile replacement
31114         if REPLACE_READLINKAT.
31115         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
31117 2014-10-12  Karl Berry  <karl@gnu.org>
31119         * doc/posix-functions/dirname.texi: remove spurious {.
31121 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
31123         basename, dirname: Improve documentation.
31124         * doc/posix-functions/basename.texi: Mention dirname module and
31125         base_name() function.
31126         * doc/posix-functions/dirname.texi: Mention dir_name() and
31127         mdir_name() functions.
31128         Suggested by Werner LEMBERG <wl@gnu.org>.
31130 2014-09-24  Jim Meyering  <meyering@fb.com>
31132         exclude: declare exclude_patopts static
31133         * lib/exclude.c (exclude_patopts): Declare static,
31134         to avoid triggering a -Wmissing-prototypes warning.
31135         The alternative (declaring it in the .h file) would
31136         require publicizing the private "struct patopts".
31138 2014-09-21  Werner Lemberg  <wl@gnu.org>
31140         dirname: support compilation with C++
31141         * lib/dirname.h: Add necessary C linkage declarations.
31143 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
31145         qsort_r: include <config.h>
31146         Problem reported by Tom G. Christensen in:
31147         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
31148         * lib/qsort.c [!_LIBC]: Include <config.h> first.
31150 2014-09-16  Dylan Cali  <calid1984@gmail.com>
31152         avltree-list: avoid compiler warnings (trivial)
31153         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
31154         -Werror=suggest-attribute=pure.
31155         * lib/gl_array_list.c: Likewise.
31156         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
31157         declaration to avoid -Werror=missing-prototypes.  This is not added
31158         to a header as only exported for tests.  Add (void) to the
31159         check_invariants() call to indicate we're discarding the result
31160         in this context which avoids -Werror=unused-value.  Note we don't
31161         use ignore_value here to avoid a dependency as we know we'll not
31162         be adding __attribute__((warn_unused_result)) to check_invariants().
31163         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
31165 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
31167         qsort_r: new module, for GNU-style qsort_r
31168         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
31170 2014-09-15  Werner LEMBERG  <wl@gnu.org>
31172         strerror_r-posix: support compilation with C++
31173         * lib/strerror_r.c: Add necessary C linkage declarations.
31175 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
31177         fcntl-h: fix compilation with Intel C++ compiler (trivial)
31178         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
31180 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
31182         mountlist: use /proc/self/mountinfo when available
31183         Use libmount to propagate device IDs provided by Linux in
31184         /proc/self/mountinfo.  This will give more accurate output when
31185         using df in chroot'ed environments as the device IDs are not
31186         determined by stat() which may be inaccurate within the chroot.
31187         * lib/mountlist.c (read_file_system_list): Use the libmount routines
31188         from util-linux to parse "/proc/self/mountinfo" or fall back to
31189         standard getmntent() processing.
31190         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
31191         getmntent() is used, as is the case on GNU/Linux.
31193 2014-09-07  Eric Wong  <normalperson@yhbt.net>
31195         users.txt: add cmogstored
31196         cmogstored has used gnulib since the beginning in 2012 to support
31197         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
31199 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
31201         Trivial change.
31202         * gnulib-tool: Use same options as build-aux/bootstrap to download
31203         PO files.
31205 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
31207         Trivial change.
31208         * gnulib-tool: Fallback to wget when rsync of PO files fails.
31210 2014-09-04  Eric Blake  <eblake@redhat.com>
31212         maintainer-makefile: add syntax check for useless ';;'
31213         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
31215 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
31217         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
31218         Problem reported by Assaf Gordon in:
31219         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
31220         Apparently Ubuntu is doing some fancy link-time optimization
31221         that doesn't work with -lpthread but does work with -pthread.
31222         Work around the bug by preferring -pthread to -lpthread.
31223         * m4/pthread.m4 (gl_PTHREAD_CHECK):
31224         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
31225         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
31226         Treat -pthread like -lpthread.
31228 2014-09-04  Eric Blake  <eblake@redhat.com>
31230         error: drop spurious semicolon
31231         * lib/error.c (__error_at_line): Fix ';;'.
31233 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
31235         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
31236         * m4/gnulib-common.m4 (AC_C_RESTRICT):
31237         Override AC_C_RESTRICT unconditionally.
31238         Update from autoconf, incorporating:
31239         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
31240         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
31242 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31244         manywarnings: add GCC 4.9 warnings
31245         Also, make it easier to maintain this in the future.
31246         * build-aux/gcc-warning.spec: Add -Wabi-tag,
31247         -Wconditionally-supported, -Wdelete-incomplete,
31248         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
31249         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
31250         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
31251         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
31252         only for older GCC versions that need them.  Handle
31253         -Wnormalized=nfc specially, so that the 'comm' command used
31254         for maintenance doesn't get confused.
31256 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
31258         vasnprintf: fix bugs in width computation
31259         * lib/vasnprintf.c (VASNPRINTF):
31260         Rework previous change, which introduced a bug,
31261         to avoid the warning in a different way.
31262         Avoid undefined behavior if the width arg is less than -INT_MAX.
31263         Avoid unnecessary use of HAS_WIDTH local.
31265 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
31267         vasnprintf: Avoid signed/unsigned comparison warning.
31268         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
31269         compare end addr of generated string w/ maximum end addr.
31271 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
31273         parse-datetime: Avoid pointer difference.
31274         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
31275         instead of calculating difference of pointers.  This removes an
31276         annoying warning, devoid of any use.
31278 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
31280         qsort_r: new module, for GNU-style qsort_r
31281         This works even on FreeBSD, which has an incompatible qsort_r API.
31282         * MODULES.html.sh: Add it.
31283         * doc/glibc-functions/qsort_r.texi: It's now supported.
31284         * lib/qsort.c: New file, taken from glibc with minor changes
31285         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
31286         removed.
31287         * lib/qsort_r.c: New file, compiled only on FreeBSD.
31288         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
31289         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
31290         * modules/qsort_r, modules/qsort_r-tests: New files.
31291         * modules/stdlib (Makefile): Set up its defaults.
31292         * tests/test-qsort_r.c: New file.
31294 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
31296         vla: new module
31297         GNU RCS can use this, mostly for documentation I expect.  See:
31298         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
31299         * MODULES.html.sh: Add vla.
31300         * lib/vla.h, modules/vla: New files.
31302 2014-08-07  Daiki Ueno  <ueno@gnu.org>
31304         localename: make gl_locale_name_thread really thread-safe on Windows
31305         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
31306         "glthread/lock.h".
31307         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
31308         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
31310 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
31312         getpass: don't assume struct termios
31313         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
31314         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
31315         * lib/getpass.c (getpass): Port to systems lacking struct termios.
31317         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
31318         Problem reported by Jonas 'Sortie' Termansen in:
31319         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
31320         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
31321         Implement via sysconf for platforms that lack getdtablesize.
31323         vararrays: modernize AC_C_VARARRAYS for C11
31324         This backports a change I recently made to Autoconf.
31325         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
31326         VLAs are not supported, as this is what C11 does.  The old macro
31327         HAVE_C_VARARRAYS is still defined if they are supported, but is
31328         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
31330 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
31332         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
31333         * build-aux/install-reloc (func_create_wrapper): Also wrap
31334         strerror-override, stat, stat.
31336 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
31338         sys_select: fix FD_ZERO problem on Solaris 10
31339         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
31340         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
31341         to expand to an expression that invoked memset without necessarily
31342         including <string.h>.  The problem was that the first include
31343         defined _SYS_TIME_H, causing the second include to short-circuit.
31344         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
31345         Also, fix what appears to be a cut-and-paste typo, by replacing
31346         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
31347         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
31349         accept: document Solaris 10 type glitch
31350         * doc/posix-functions/accept.texi (accept): Mention that
31351         Solaris 10 'accept' takes void * last arg, not socklen_t *.
31353 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
31355         extern-inline: port to FreeBSD, DragonFly
31356         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
31357         is present if either __DragonFly__ or __FreeBSD__ is defined.
31358         FreeBSD problem reported by Andrey Borzenkov in:
31359         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
31360         Also, worry about __APPLE__ only if __MACH__ is also defined,
31361         as this is more consistent with the rest of gnulib.
31362         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
31363         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
31365 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
31367         regex: Make #if/#ifdef usage consistent for DEBUG
31368         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
31369         of the inconsistent usage of #if and #ifdef as that works with
31370         both Glibc and Gnulib's style.
31372 2014-07-31  Eric Blake  <eblake@redhat.com>
31374         openat-die: use _Noreturn markup
31375         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
31376         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
31377         _Noreturn.
31379 2014-07-30  Eric Blake  <eblake@redhat.com>
31381         test-open: port to cygwin, which lacks Fortify
31382         * tests/test-open.h (ALWAYS_INLINE): New macro.
31383         (__always_inline): Don't abuse internal symbol on non-glibc.
31385 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
31387         localename: Enforce declarations before statements.
31388         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
31389         first statement.
31391 2014-07-18  Jim Meyering  <meyering@fb.com>
31393         test-userspec: don't look up numeric user names
31394         * tests/test-userspec.c: I found a system for which getpwnam("0")
31395         returned a pointer to a non-root user's entry, and that made the
31396         test fail.
31397         (T): Prefix each numeric input with "+", to inhibit lookup.
31399 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
31401         localcharset, localename: MS-Windows support for non-default locales
31402         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
31403         falling back on the default system codepage, try extracting
31404         the codepage from what 'setlocale' returns.  This allows to
31405         take into account changes of the codeset due to non-default
31406         locale set by a previous call to 'setlocale'.
31407         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
31408         Define if not already defined.
31409         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
31410         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
31411         current locale by calling 'setlocale', then converting the
31412         locale name into LCID by calling 'get_lcid'.  This allows to
31413         take into account changes in the current locale from the
31414         default one, in contrast to GetThreadLocale.
31416 2014-07-14  Daiki Ueno  <ueno@gnu.org>
31418         announce-gen: avoid failure when Digest::SHA is installed
31419         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
31420         Digest::SHA1->new in print_checksums fails.
31421         * build-aux/announce-gen (digest_classes): New associative array
31422         for available message digest implementations.
31423         (print_locations): Use it.
31425 2014-07-13  Pádraig Brady  <P@draigBrady.com>
31427         gettext: revert "update macros to version 0.19"
31428         This reverts commit 9b9370ca, as it currently requires that
31429         developers of any project that explicitly uses the gettext module
31430         or implicitly uses it through the utimens-tests or
31431         futimens-tests modules, use gettext >= 0.19.
31432         However there are some stability and availablity issues with
31433         that version at present.  We can reinstate this soon, when stability
31434         is addressed and packages are more readily available.
31436 2014-07-12  Jim Meyering  <meyering@fb.com>
31438         regex: don't deref NULL upon heap allocation failure
31439         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
31440         failure in one more place.
31441         To trigger the segfault, configure grep -with-included-regex,
31442         build it, and run these commands:
31443         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
31444         I discovered this while replying to a private report from
31445         Jens Schleusener about excessive memory consumption by grep
31446         when using a regular expression like the one above.
31448 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
31450         regex: fix memory leak in compiler
31451         Fix by Andreas Schwab in:
31452         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
31453         * lib/regcomp.c (parse_reg_exp): Deallocate partially
31454         constructed tree before returning error.
31456 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
31458         announce-gen: avoid perl warnings
31459         * build-aux/announce-gen: add two minor checks to avoid
31460         "use of uninitialized value" warnings when command-line parameters are
31461         missing.
31463 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
31465         localename: avoid -Wsuggest-attribute={const,pure} warnings
31466         * lib/localename.c (string_has): Tag internal function as pure.
31467         * lib/localename.h (gl_locale_name_default): Tag extern declaration
31468         as const when appropriate.
31470 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
31472         nl_langinfo: Fix last change.
31473         * lib/nl_langinfo.c (includes): Drop redundant include.
31475 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
31477         error: Fix -Wundef warnings in glibc
31478         * lib/error.c [_LIBC]: Define default macros for
31479         glibc.
31480         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
31481         Check _LIBC before STRERROR_R_CHAR_P.
31483         error: Sync from glibc master
31484         * lib/error.c [_LIBC]: Remove INTUSE usage.
31485         (error_tail): Remove unused macro ALLOCA_LIMIT.
31486         Fix potential buffer overflow.  Fix potential NULL dereference
31487         in strcmp.
31489 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
31491         nl_langinfo: fix build under mingw
31492         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
31494 2014-07-09  Andrew D Warshall  <warshall@99main.com>
31496         mountlist: do not classify a bind-mounted dir entry as "dummy"
31497         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
31498         1-argument getmntent() (instead of assuming absence).
31500 2014-07-08  Eric Blake  <eblake@redhat.com>
31502         maint.mk: less syntax-check noise when SIGPIPE is ignored
31503         * top/maint.mk (_sc_header_without_use)
31504         (sc_require_config_h_first): Parse full list.
31506 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
31507             Paul Eggert  <eggert@cs.ucla.edu>
31509         nl_langinfo: CODESET on MS-Windows and more items from localeconv
31510         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
31511         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
31512         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
31513         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
31514         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
31515         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
31516         Include <stdio.h> if Microsoft Windows.
31517         Include <time.h> if !REPLACE_NL_LANGINFO.
31518         (ctype_codeset): New function, taken from rpl_nl_langinfo,
31519         and with improvements for Microsoft Windows.
31520         (rpl_nl_langinfo): Use it.
31521         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
31522         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
31523         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
31524         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
31525         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
31526         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
31527         corresponding values returned by 'localeconv'.  Compute the values
31528         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
31529         'strftime' with a suitable struct tm value.
31531 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
31533         Bruno Haible has stepped down as maintainer.
31534         See Karl Berry in:
31535         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
31536         Daiki Ueno has volunteered to maintain libunistring; see:
31537         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
31538         * modules/gen-uni-tables, modules/libunistring:
31539         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
31540         * modules/unicase/base, modules/unicase/cased:
31541         * modules/unicase/empty-prefix-context:
31542         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
31543         * modules/unicase/locale-language, modules/unicase/special-casing:
31544         * modules/unicase/tocasefold, modules/unicase/tolower:
31545         * modules/unicase/totitle, modules/unicase/toupper:
31546         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
31547         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
31548         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
31549         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
31550         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
31551         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
31552         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
31553         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
31554         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
31555         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
31556         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
31557         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
31558         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
31559         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
31560         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
31561         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
31562         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
31563         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
31564         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
31565         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
31566         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
31567         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
31568         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
31569         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
31570         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
31571         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
31572         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
31573         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
31574         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
31575         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
31576         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
31577         * modules/unicase/ulc-casexfrm, modules/unicodeio:
31578         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
31579         * modules/uniconv/u16-conv-to-enc:
31580         * modules/uniconv/u16-strconv-from-enc:
31581         * modules/uniconv/u16-strconv-from-locale:
31582         * modules/uniconv/u16-strconv-to-enc:
31583         * modules/uniconv/u16-strconv-to-locale:
31584         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
31585         * modules/uniconv/u32-strconv-from-enc:
31586         * modules/uniconv/u32-strconv-from-locale:
31587         * modules/uniconv/u32-strconv-to-enc:
31588         * modules/uniconv/u32-strconv-to-locale:
31589         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
31590         * modules/uniconv/u8-strconv-from-enc:
31591         * modules/uniconv/u8-strconv-from-locale:
31592         * modules/uniconv/u8-strconv-to-enc:
31593         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
31594         * modules/unictype/bidicategory-all:
31595         * modules/unictype/bidicategory-byname:
31596         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
31597         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
31598         * modules/unictype/bidiclass-byname:
31599         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
31600         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
31601         * modules/unictype/block-all, modules/unictype/block-list:
31602         * modules/unictype/block-of, modules/unictype/block-test:
31603         * modules/unictype/category-C, modules/unictype/category-Cc:
31604         * modules/unictype/category-Cf, modules/unictype/category-Cn:
31605         * modules/unictype/category-Co, modules/unictype/category-Cs:
31606         * modules/unictype/category-L, modules/unictype/category-LC:
31607         * modules/unictype/category-Ll, modules/unictype/category-Lm:
31608         * modules/unictype/category-Lo, modules/unictype/category-Lt:
31609         * modules/unictype/category-Lu, modules/unictype/category-M:
31610         * modules/unictype/category-Mc, modules/unictype/category-Me:
31611         * modules/unictype/category-Mn, modules/unictype/category-N:
31612         * modules/unictype/category-Nd, modules/unictype/category-Nl:
31613         * modules/unictype/category-No, modules/unictype/category-P:
31614         * modules/unictype/category-Pc, modules/unictype/category-Pd:
31615         * modules/unictype/category-Pe, modules/unictype/category-Pf:
31616         * modules/unictype/category-Pi, modules/unictype/category-Po:
31617         * modules/unictype/category-Ps, modules/unictype/category-S:
31618         * modules/unictype/category-Sc, modules/unictype/category-Sk:
31619         * modules/unictype/category-Sm, modules/unictype/category-So:
31620         * modules/unictype/category-Z, modules/unictype/category-Zl:
31621         * modules/unictype/category-Zp, modules/unictype/category-Zs:
31622         * modules/unictype/category-all, modules/unictype/category-and:
31623         * modules/unictype/category-and-not, modules/unictype/category-byname:
31624         * modules/unictype/category-longname, modules/unictype/category-name:
31625         * modules/unictype/category-none, modules/unictype/category-of:
31626         * modules/unictype/category-or, modules/unictype/category-test:
31627         * modules/unictype/category-test-withtable:
31628         * modules/unictype/combining-class:
31629         * modules/unictype/combining-class-all:
31630         * modules/unictype/combining-class-byname:
31631         * modules/unictype/combining-class-longname:
31632         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
31633         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
31634         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
31635         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
31636         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
31637         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
31638         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
31639         * modules/unictype/digit, modules/unictype/joininggroup-all:
31640         * modules/unictype/joininggroup-byname:
31641         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
31642         * modules/unictype/joiningtype-all:
31643         * modules/unictype/joiningtype-byname:
31644         * modules/unictype/joiningtype-longname:
31645         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
31646         * modules/unictype/mirror, modules/unictype/numeric:
31647         * modules/unictype/property-all, modules/unictype/property-alphabetic:
31648         * modules/unictype/property-ascii-hex-digit:
31649         * modules/unictype/property-bidi-arabic-digit:
31650         * modules/unictype/property-bidi-arabic-right-to-left:
31651         * modules/unictype/property-bidi-block-separator:
31652         * modules/unictype/property-bidi-boundary-neutral:
31653         * modules/unictype/property-bidi-common-separator:
31654         * modules/unictype/property-bidi-control:
31655         * modules/unictype/property-bidi-embedding-or-override:
31656         * modules/unictype/property-bidi-eur-num-separator:
31657         * modules/unictype/property-bidi-eur-num-terminator:
31658         * modules/unictype/property-bidi-european-digit:
31659         * modules/unictype/property-bidi-hebrew-right-to-left:
31660         * modules/unictype/property-bidi-left-to-right:
31661         * modules/unictype/property-bidi-non-spacing-mark:
31662         * modules/unictype/property-bidi-other-neutral:
31663         * modules/unictype/property-bidi-pdf:
31664         * modules/unictype/property-bidi-segment-separator:
31665         * modules/unictype/property-bidi-whitespace:
31666         * modules/unictype/property-byname:
31667         * modules/unictype/property-case-ignorable:
31668         * modules/unictype/property-cased:
31669         * modules/unictype/property-changes-when-casefolded:
31670         * modules/unictype/property-changes-when-casemapped:
31671         * modules/unictype/property-changes-when-lowercased:
31672         * modules/unictype/property-changes-when-titlecased:
31673         * modules/unictype/property-changes-when-uppercased:
31674         * modules/unictype/property-combining:
31675         * modules/unictype/property-composite:
31676         * modules/unictype/property-currency-symbol:
31677         * modules/unictype/property-dash:
31678         * modules/unictype/property-decimal-digit:
31679         * modules/unictype/property-default-ignorable-code-point:
31680         * modules/unictype/property-deprecated:
31681         * modules/unictype/property-diacritic:
31682         * modules/unictype/property-extender:
31683         * modules/unictype/property-format-control:
31684         * modules/unictype/property-grapheme-base:
31685         * modules/unictype/property-grapheme-extend:
31686         * modules/unictype/property-grapheme-link:
31687         * modules/unictype/property-hex-digit:
31688         * modules/unictype/property-hyphen:
31689         * modules/unictype/property-id-continue:
31690         * modules/unictype/property-id-start:
31691         * modules/unictype/property-ideographic:
31692         * modules/unictype/property-ids-binary-operator:
31693         * modules/unictype/property-ids-trinary-operator:
31694         * modules/unictype/property-ignorable-control:
31695         * modules/unictype/property-iso-control:
31696         * modules/unictype/property-join-control:
31697         * modules/unictype/property-left-of-pair:
31698         * modules/unictype/property-line-separator:
31699         * modules/unictype/property-logical-order-exception:
31700         * modules/unictype/property-lowercase, modules/unictype/property-math:
31701         * modules/unictype/property-non-break:
31702         * modules/unictype/property-not-a-character:
31703         * modules/unictype/property-numeric:
31704         * modules/unictype/property-other-alphabetic:
31705         * modules/unictype/property-other-default-ignorable-code-point:
31706         * modules/unictype/property-other-grapheme-extend:
31707         * modules/unictype/property-other-id-continue:
31708         * modules/unictype/property-other-id-start:
31709         * modules/unictype/property-other-lowercase:
31710         * modules/unictype/property-other-math:
31711         * modules/unictype/property-other-uppercase:
31712         * modules/unictype/property-paired-punctuation:
31713         * modules/unictype/property-paragraph-separator:
31714         * modules/unictype/property-pattern-syntax:
31715         * modules/unictype/property-pattern-white-space:
31716         * modules/unictype/property-private-use:
31717         * modules/unictype/property-punctuation:
31718         * modules/unictype/property-quotation-mark:
31719         * modules/unictype/property-radical:
31720         * modules/unictype/property-sentence-terminal:
31721         * modules/unictype/property-soft-dotted:
31722         * modules/unictype/property-space:
31723         * modules/unictype/property-terminal-punctuation:
31724         * modules/unictype/property-test, modules/unictype/property-titlecase:
31725         * modules/unictype/property-unassigned-code-value:
31726         * modules/unictype/property-unified-ideograph:
31727         * modules/unictype/property-uppercase:
31728         * modules/unictype/property-variation-selector:
31729         * modules/unictype/property-white-space:
31730         * modules/unictype/property-xid-continue:
31731         * modules/unictype/property-xid-start:
31732         * modules/unictype/property-zero-width, modules/unictype/scripts:
31733         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
31734         * modules/unictype/syntax-c-whitespace:
31735         * modules/unictype/syntax-java-ident:
31736         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
31737         * modules/unigbrk/u16-grapheme-breaks:
31738         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
31739         * modules/unigbrk/u32-grapheme-breaks:
31740         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
31741         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
31742         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
31743         * modules/unigbrk/uc-is-grapheme-break:
31744         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
31745         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
31746         * modules/unilbrk/u16-width-linebreaks:
31747         * modules/unilbrk/u32-possible-linebreaks:
31748         * modules/unilbrk/u32-width-linebreaks:
31749         * modules/unilbrk/u8-possible-linebreaks:
31750         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
31751         * modules/unilbrk/ulc-possible-linebreaks:
31752         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
31753         * modules/uniname/uniname, modules/uninorm/base:
31754         * modules/uninorm/canonical-decomposition:
31755         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
31756         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
31757         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
31758         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
31759         * modules/uninorm/nfkc, modules/uninorm/nfkd:
31760         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
31761         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
31762         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
31763         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
31764         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
31765         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
31766         * modules/unistdio/base, modules/unistdio/u-printf-args:
31767         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
31768         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
31769         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
31770         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
31771         * modules/unistdio/u16-u16-sprintf:
31772         * modules/unistdio/u16-u16-vasnprintf:
31773         * modules/unistdio/u16-u16-vasprintf:
31774         * modules/unistdio/u16-u16-vsnprintf:
31775         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
31776         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
31777         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
31778         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
31779         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
31780         * modules/unistdio/u32-u32-asnprintf:
31781         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
31782         * modules/unistdio/u32-u32-sprintf:
31783         * modules/unistdio/u32-u32-vasnprintf:
31784         * modules/unistdio/u32-u32-vasprintf:
31785         * modules/unistdio/u32-u32-vsnprintf:
31786         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
31787         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
31788         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
31789         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
31790         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
31791         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
31792         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
31793         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
31794         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
31795         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
31796         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
31797         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
31798         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
31799         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
31800         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
31801         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
31802         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
31803         * modules/unistr/u16-check, modules/unistr/u16-chr:
31804         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
31805         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
31806         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
31807         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
31808         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
31809         * modules/unistr/u16-move, modules/unistr/u16-next:
31810         * modules/unistr/u16-prev, modules/unistr/u16-set:
31811         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
31812         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
31813         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
31814         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
31815         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
31816         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
31817         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
31818         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
31819         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
31820         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
31821         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
31822         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
31823         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
31824         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
31825         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
31826         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
31827         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
31828         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
31829         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
31830         * modules/unistr/u32-next, modules/unistr/u32-prev:
31831         * modules/unistr/u32-set, modules/unistr/u32-startswith:
31832         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
31833         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
31834         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
31835         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
31836         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
31837         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
31838         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
31839         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
31840         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
31841         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
31842         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
31843         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
31844         * modules/unistr/u8-check, modules/unistr/u8-chr:
31845         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
31846         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
31847         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
31848         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
31849         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
31850         * modules/unistr/u8-next, modules/unistr/u8-prev:
31851         * modules/unistr/u8-set, modules/unistr/u8-startswith:
31852         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
31853         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
31854         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
31855         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
31856         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
31857         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
31858         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
31859         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
31860         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
31861         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
31862         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
31863         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
31864         * modules/uniwbrk/base, modules/uniwbrk/table:
31865         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
31866         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
31867         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
31868         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
31869         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
31870         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
31871         * modules/uniwidth/width, modules/utf16-ucs4:
31872         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
31873         * modules/utf8-ucs4-unsafe:
31874         Change maintainer from Bruno Haible to Daiki Ueno.
31875         This is my guess at the libunistring modules; please feel free
31876         to fix if I guessed incorrectly.
31877         * modules/accept4, modules/acl, modules/acos, modules/acosf:
31878         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
31879         * modules/areadlink, modules/array-list, modules/array-mergesort:
31880         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
31881         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
31882         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
31883         * modules/binary-io, modules/bison-i18n, modules/btowc:
31884         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
31885         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
31886         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
31887         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
31888         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
31889         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
31890         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
31891         * modules/closedir, modules/concat-filename, modules/copy-file:
31892         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
31893         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
31894         * modules/csharpcomp-script, modules/csharpexec:
31895         * modules/csharpexec-script, modules/ctype, modules/diffseq:
31896         * modules/dprintf, modules/dprintf-posix, modules/dup:
31897         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
31898         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
31899         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
31900         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
31901         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
31902         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
31903         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
31904         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
31905         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
31906         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
31907         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
31908         * modules/findprog, modules/findprog-lgpl, modules/floor:
31909         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
31910         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
31911         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
31912         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
31913         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
31914         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
31915         * modules/freadable, modules/freadahead, modules/freadptr:
31916         * modules/freadseek, modules/freopen, modules/frexp:
31917         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
31918         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
31919         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
31920         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
31921         * modules/ftello, modules/full-read, modules/full-write:
31922         * modules/fwritable, modules/fwriteerror, modules/gcd:
31923         * modules/get-rusage-as, modules/get-rusage-data:
31924         * modules/getdtablesize, modules/getrusage, modules/gettext:
31925         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
31926         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
31927         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
31928         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
31929         * modules/iconv, modules/iconv-h, modules/iconv_open:
31930         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
31931         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
31932         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
31933         * modules/integer_length_ll, modules/ioctl, modules/isatty:
31934         * modules/isblank, modules/isnand, modules/isnand-nolibm:
31935         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
31936         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
31937         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
31938         * modules/javaexec, modules/javaexec-script, modules/javaversion:
31939         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
31940         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
31941         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
31942         * modules/lib-symbol-visibility, modules/libsigsegv:
31943         * modules/linked-list, modules/linkedhash-list, modules/list:
31944         * modules/localcharset, modules/locale, modules/localeconv:
31945         * modules/localename, modules/lock, modules/log, modules/log-ieee:
31946         * modules/log10, modules/log10-ieee, modules/log10f:
31947         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
31948         * modules/log1p, modules/log1p-ieee, modules/log1pf:
31949         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
31950         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
31951         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
31952         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
31953         * modules/logf, modules/logf-ieee, modules/login_tty:
31954         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
31955         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
31956         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
31957         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
31958         * modules/mbscspn, modules/mbsinit, modules/mbslen:
31959         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
31960         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
31961         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
31962         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
31963         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
31964         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
31965         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
31966         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
31967         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
31968         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
31969         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
31970         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
31971         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
31972         * modules/posix_spawn, modules/posix_spawn-internal:
31973         * modules/posix_spawn_file_actions_addclose:
31974         * modules/posix_spawn_file_actions_adddup2:
31975         * modules/posix_spawn_file_actions_addopen:
31976         * modules/posix_spawn_file_actions_destroy:
31977         * modules/posix_spawn_file_actions_init:
31978         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
31979         * modules/posix_spawnattr_getpgroup:
31980         * modules/posix_spawnattr_getschedparam:
31981         * modules/posix_spawnattr_getschedpolicy:
31982         * modules/posix_spawnattr_getsigdefault:
31983         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
31984         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
31985         * modules/posix_spawnattr_setschedparam:
31986         * modules/posix_spawnattr_setschedpolicy:
31987         * modules/posix_spawnattr_setsigdefault:
31988         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
31989         * modules/pow, modules/powf, modules/printf-frexp:
31990         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
31991         * modules/progname, modules/propername, modules/pselect:
31992         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
31993         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
31994         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
31995         * modules/read, modules/readdir, modules/readlink:
31996         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
31997         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
31998         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
31999         * modules/relocatable-script, modules/remainder:
32000         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
32001         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
32002         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
32003         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
32004         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
32005         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
32006         * modules/setlocale, modules/sh-quote, modules/shutdown:
32007         * modules/signal, modules/signbit, modules/sigpipe:
32008         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
32009         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
32010         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
32011         * modules/snippet/link-warning, modules/snippet/unused-parameter:
32012         * modules/snprintf, modules/snprintf-posix, modules/spawn:
32013         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
32014         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
32015         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
32016         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
32017         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
32018         * modules/streq, modules/strerror_r-posix, modules/striconv:
32019         * modules/striconveh, modules/striconveha, modules/strncat:
32020         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
32021         * modules/sublist, modules/sys_resource, modules/sys_utsname:
32022         * modules/sys_wait, modules/system-posix, modules/system-quote:
32023         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
32024         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
32025         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
32026         * modules/truncf, modules/truncf-ieee, modules/truncl:
32027         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
32028         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
32029         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
32030         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
32031         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
32032         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
32033         * modules/wait-process, modules/waitpid, modules/wcpcpy:
32034         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
32035         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
32036         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
32037         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
32038         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
32039         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
32040         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
32041         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
32042         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
32043         * modules/write, modules/xconcat-filename, modules/xlist:
32044         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
32045         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
32046         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
32047         * modules/y0, modules/y1, modules/yn:
32048         Remove Bruno Haible as maintainer; if he's the sole maintainer,
32049         change the maintainer to 'all'.  Let's hope someone volunteers.
32051 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
32053         mktime: merge #if/#ifdef usage from glibc
32054         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
32055         as that works with both Glibc's and Gnulib's style.
32056         See thread starting at Siddhesh Poyarekar's bug report at:
32057         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
32059 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
32061         git-version-gen: improve option descriptions
32062         * build-aux/git-version-gen: Mention that --prefix and --fallback
32063         have a mandatory argument.
32065 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
32067         regex: fix memory leak in compiler
32068         Fix by Andreas Schwab in:
32069         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
32070         * lib/regcomp.c (parse_expression): Deallocate partially
32071         constructed tree before returning error.
32073         regex: merge patch from libc
32074         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
32075         Combine __USE_BSD and __USE_SVID into __USE_MISC.
32076         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
32078 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
32080         acl: port to gcc -Wredundant-decls
32081         From a request by Dmitry Antipov in:
32082         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
32083         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
32084         "#ifndef _GL_ACL_H".
32086 2014-06-11  Bruce Korb  <bkorb@gnu.org>
32087         Jim Meyering  <meyering@fb.com>
32089         parse-duration: eliminate 68-year duration limit
32090         * lib/parse-duration.c: Include "intprops.h".
32091         (TIME_MAX): Rename to MAX_DURATION and define to
32092         TYPE_MAXIMUM(time_t).
32093         * modules/parse-duration (Depends-on): Add intprops.
32094         Reported by Jonas 'Sortie' Termansen.
32096 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
32098         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
32099         * modules/pthread (Depends-on): Add 'extensions', as it defines
32100         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
32101         (configure.ac-early): New section.
32102         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
32103         it is no longer needed.
32105 2014-06-14  Pádraig Brady  <P@draigBrady.com>
32107         pthread: define thread-safe macros on some platforms
32108         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
32109         for thread-safe operation on some platforms.
32111 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
32113         regex: don't be multithreaded if USE_UNLOCKED_IO.
32114         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
32115         * lib/regex_internal.h: Do not use multithreaded version if
32116         USE_UNLOCKED_IO is defined.  This is a hack, but it works
32117         around a porting bug with coreutils 8.22 on AIX 7.1.
32119 2014-06-11  Daiki Ueno  <ueno@gnu.org>
32121         gettext: update macros to version 0.19
32122         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
32123         depend on gl_EXTERN_INLINE and drop support for older Bison
32124         versions.
32126 2014-06-10  Pádraig Brady  <P@draigBrady.com>
32128         select,poll: fix console handle check on windows 8
32129         lib/poll.c (IsConsoleHandle): Change from testing the lower
32130         2 bits of the handle to the more expensive but accurate syscall.
32131         lib/select.c: Likewise.
32133 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
32135         select: fix waiting on anonymous pipes on MS-Windows
32136         * lib/select.c (rpl_select): Fall back to polling when select()
32137         indicates there is nothing to check, while due to the timeout not
32138         expiring, activity is indicated on one of the handles.
32139         Also clear the TIMEOUT argument if the timer does expire.
32141 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
32143         times: fix to return non constant value on MS-Windows
32144         * lib/times.c (times): Don't use the process creation time,
32145         rather clock() which on windows returns the number of
32146         clock ticks since the process started.
32148 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
32150         isatty: fix to work on windows 8
32151         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
32152         2 bits of the handle to the more expensive but accurate syscall.
32154 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
32156         maint: fix typo in fdl.texi
32157         * doc/fdl.texi: Fix typo (missing '@').
32158         Somehow this was in fdl.texi but not fdl-1.3.texi.
32160 2014-06-06  Ben Walton  <bdwalton@gmail.com>
32162         mountlist: avoid hasmntopt const type warning on solaris
32163         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
32164         with char * instead of const char *.  Passing the constant string
32165         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
32166         to avoid the warning.
32168 2014-06-04  Eric Blake  <eblake@redhat.com>
32170         maintainer-makefile: delete obsolete code
32171         * top/maint.mk (build_aux): Drop old code, as threatened.
32173         maintainer-makefile: avoid spurious error messages
32174         * top/maint.mk (syntax-check): Guard definition and use of
32175         $(shell) by whether Makefile is present.
32177 2014-06-03  Ben Walton  <bdwalton@gmail.com>
32179         rename: avoid unused-but-set-variable compiler warning
32180         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
32181         it is possible that dst_exists may be set but not used.  Mark it with
32182         the unused attribute to avoid compiler warnings.
32184 2014-06-02  Ben Walton  <bdwalton@gmail.com>
32186         rename: mark a label as potentially unused
32187         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
32188         by marking the out label as potentially unused.
32189         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
32191 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
32193         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
32194         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
32196 2014-06-02  Ben Walton  <bdwalton@gmail.com>
32198         acl: apply pure attribute to two functions
32199         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
32200         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
32202 2014-06-01  Pádraig Brady  <P@draigBrady.com>
32204         gnulib-common.m4: add _GL_UNUSED_LABEL
32205         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
32206         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
32208 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
32210         dup2, fcntl, fcntl-h: port to AIX 7.1
32211         This fixes some porting problems discovered when testing the latest
32212         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
32213         in grep but it could be important for other applications.
32214         * doc/posix-functions/dup2.texi:
32215         * doc/posix-functions/fcntl.texi:
32216         * doc/posix-headers/fcntl.texi:
32217         Document AIX bugs.
32218         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
32219         Define to 0 if outside 'int' range.
32220         * m4/dup2.m4 (gl_FUNC_DUP2):
32221         * m4/fcntl.m4 (gl_FUNC_FCNTL):
32222         Check for getdtablesize.  If it's available, test a value just
32223         outside its range instead of testing 1000000.  When cross-compiling,
32224         guess that AIX will fail this improved test.
32226 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
32228         printf, config.rpath: Port to FreeBSD 10.
32229         Problem reported by Tijl Coosemans in:
32230         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
32231         * build-aux/config.rpath (hardcode_libdir_flag_spec)
32232         (hardcode_direct): Simplify FreeBSD configuration.
32233         (library_names_spec): Don't mishandle FreeBSD 10+.
32234         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
32235         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
32236         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
32237         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
32238         Don't mishandle FreeBSD 10+ when cross-compiling.
32240         ftoastr: work around compiler bug in IBM xlc 12.1
32241         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
32242         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
32243         around a compiler bug in IBM xlc 12.1.0.0: it complains
32244         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
32245         _GL_FLT_PREC_BOUND.'
32247 2014-05-30  Kieran Colford  <colfordk@gmail.com>
32249         valgrind-tests: fixed misleading help message
32250         * m4/valgrind-tests.m4: The help message generated by configure
32251         implied that valgrind was disabled by default, which it wasn't.
32252         Adjusted the help message using s/enable/disable/ to clarify.
32254 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
32256         isfinite, isinf, isnan tests: fix for little-endian PowerPC
32257         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
32258         first double of a PowerPC "double double" pair.
32259         * tests/test-isinf.c (test_isinfl): Likewise.
32260         * tests/test-isnan.c (test_long_double): Likewise.
32261         * tests/test-isnanl.h (main): Likewise.
32262         * tests/test-signbit.c (test_signbitl): Likewise.
32264 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
32266         exclude-tests: port to AIX 7.1
32267         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
32268         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
32269         the regex code uses locks.
32271 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
32273         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
32274         Without this fix, Emacs would sometimes call sigprocmask instead
32275         of pthread_sigmask, which is a no-no in multithreaded applications.
32276         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
32277         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
32278         Suppress check for pthread_sigmask working without -lpthread if
32279         the application always links with -lpthread.  Do not link with
32280         $LIBMULTITHREAD if gl_THREADLIB is not defined.
32281         * m4/timer_time.m4 (gl_TIMER_TIME):
32282         Require gl_THREADLIB only if it is defined.  Do not append
32283         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
32285 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
32287         gnulib-tool: wget translations using --no-verbose rather than --quiet
32288         This allows the user to see error messages if any (--quiet hides them)
32289         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
32291 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
32293         gnulib-tool: adjust translation wget to avoid a https redirection
32294         Context: http://translationproject.org/latest/gnulib redirects to
32295            https://translationproject.org/latest/gnulib/
32296         Rationale: if the user falls back to wget, she doesn't have rsync and
32297         is probably in a minimal build environment, where packages such as
32298         'ca-certificates' are missing as well, resulting in a failed (and
32299         difficult to detect since ignored) translation initial fetch.
32300         Consequently let's avoid https if possible, and add the missing
32301         trailing slash.  This also avoids an unnecessary 302 redirection.
32302         * gnulib-tool: Add trailing slash to gnulib URL.
32304 2014-05-22  Pádraig Brady  <P@draigBrady.com>
32306         getlogin_r-tests: check return value rather than errno
32307         * tests/test-getlogin_r.c (main): As per POSIX we should be
32308         verifying the return value from getlogin_r() rather than errno.
32310 2014-05-22  Pádraig Brady  <P@draigBrady.com>
32312         getlogin_r-tests: fix various issues in recent change
32313         * tests/test-getlogin_r.c: Include required headers that were
32314         missed in recent commit eec20b4e.
32315         Also consistently check the errno rather than the return value from
32316         getlogin_r as POSIX only specifies that non zero is returned on error.
32317         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
32319 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
32321         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
32322         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
32323         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
32324         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
32325         * lib/spawn-pipe.c:
32326         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
32327         and then 'int open64(const char *, int, ...);', which means the
32328         declaration for 'open' gets lost if we later '#undef open'.
32329         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
32330         where the compilation reported the non-fatal error "In function
32331         'openat_proc_name' ... warning: implicit declaration of function
32332         'open'".  In this case the error is relatively harmless, but in
32333         other cases it might not be so minor.
32335 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
32337         xalloc: don't potentially generate invalid code for xmemdup calls
32338         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
32339         this function can initialize the newly-allocated storage with new
32340         pointers, which means this function is not malloc-like.  See:
32341         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
32343 2014-05-19  Pádraig Brady  <P@draigBrady.com>
32345         getlogin_r-tests: avoid false failure under sudo/ssh etc.
32346         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
32347         changes from commit 97249cf29 to not depend on environment variables.
32349 2014-05-18  Pádraig Brady  <P@draigBrady.com>
32351         getlogin-tests: avoid false failure under cron
32352         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
32353         since that's not what's under test.  Centos 6 was seen to return
32354         EINVAL for ttyname() when run from cron.
32356 2014-05-16  Jim Meyering  <meyering@fb.com>
32358         mbrtowc.m4: fix a comment typo
32359         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
32360         emitted documentation string.
32362 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
32364         mbrlen, mbrtowc: fix bug with empty input
32365         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
32366         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
32367         so this is mainly for documentation.
32368         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
32369         (gl_FUNC_MBRTOWC): Use it.
32370         * tests/test-mbrtowc.c (main): Test for the bug.
32372 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
32374         doc: document mbrtowc and mbrlen problem with empty input
32375         * doc/posix-functions/mbrlen.texi (mbrlen):
32376         * doc/posix-functions/mbrtowc.texi (mbrtowc):
32377         Document portability problem when the input string is empty.  See:
32378         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
32380         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
32381         Problem reported by Eli Zaretskii in:
32382         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
32383         * doc/posix-functions/execl.texi (execl):
32384         * doc/posix-functions/execle.texi (execle):
32385         * doc/posix-functions/execlp.texi (execlp):
32386         * doc/posix-functions/execv.texi (execv):
32387         * doc/posix-functions/execve.texi (execve):
32388         * doc/posix-functions/execvp.texi (execvp):
32389         Mention spawn+exit problem on non-Cygwin Windows platforms.
32391 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
32393         getlogin-tests: avoid false failure under sudo/ssh etc.
32394         * modules/getlogin-tests (configure.ac): Check for ttyname().
32395         * tests/test-getlogin.c (main): Don't depend on environment variables
32396         to correlate with getlogin(), since sudo and ssh etc. can tamper
32397         with the LOGNAME and USER env vars.  Instead lookup the name from
32398         the uid associated with the stdin tty.
32400 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
32402         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
32403         These were found when building the latest grep snapshot on IRIX 6.5.
32404         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
32405         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
32406         never used later.
32407         * lib/quotearg.c (quoting_options_from_style):
32408         * lib/xstrtol.c (__xstrtol):
32409         Use enum instead of 0, to pacify IRIX 6.5 cc.
32411 2014-04-18  Pádraig Brady  <P@draigBrady.com>
32413         gitlog-to-changelog: revert inclusion of git-log-fix file
32414         * build-aux/git-log-fix: Delete dummy file.
32415         * modules/gitlog-to-changelog: Don't reference (overwrite)
32416         the project specific git-log-fix file.
32418 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
32420         maint.mk: Relax the copyright check to cater for non FSF projects
32421         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
32422         to not require the "Free" suffix after the copyright years.
32424 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
32426         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
32427         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
32428         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
32429         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
32430         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
32432 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
32434         exclude: port to strict C99
32435         Strict C does not allow converting a function pointer to void *
32436         and vice versa.  Pass a pointer to a function pointer instead.
32437         * lib/exclude.c (add_exclude_file):
32438         Pass the address of the function pointer.
32439         (call_addfn): And deference the address here, to match.
32441 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
32443         regex: do not depend on malloc-gnu
32444         * modules/regex (Depends-on): Remove malloc-gnu.
32445         It's no longer needed, because of the 2012-12-29 patch
32446         "regex: port to hosts where malloc (0) == NULL".
32447         Reported by Nathan Kennedy in:
32448         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
32450 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
32452         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
32453         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
32454         * doc/posix-functions/expl.texi: Mention the workaround.
32456 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
32458         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
32459         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
32460         size to be zero even when the pointer is nonnull.  This
32461         accommodates the use case where P is malloc (0) and *PN is 0 on a
32462         host where malloc (0) yields nonnull.
32464 2014-04-09  Eric Blake  <eblake@redhat.com>
32466         fts: avoid unnecessary strlen calls
32467         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
32469 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
32471         fts: avoid unnecessary strlen calls
32472         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
32473         when that can be faster than strlen.
32475 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
32477         fts: avoid unnecessary strlen calls
32478         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
32479         (fts_build): Store the length of the dp->d_name entry in a local variable
32480         instead of calling strlen() several times via the above, removed macro.
32481         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
32482         run by ~4%, yet this reduces the execution time by about a third if run
32483         via "ltrace -c rm -rf some-dir".
32485 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
32487         obstack: Remove ancient NeXTSTEP gcc support conditional
32488         This change will ease merging with glibc.  The "#if ... __NEXT__"
32489         causes a warning with -Wundef which glibc now enables by default.
32490         Problem reported by Will Newton in
32491         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
32492         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
32493         so go with that.
32494         * lib/obstack.h (__extension__):
32496 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
32498         obstack: merge with glibc changes
32499         * lib/obstack.c, lib/obstack.h: Merge from glibc.
32500         This is mostly indenting and commentary changes.
32501         Instances of 'register' have been removed.
32503 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
32505         strftime: wrap macros in "do {...} while(0)"
32506         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
32507         this macro in "do {...} while(0)" to prevent false use as a
32508         single statement, e.g., in an un-braced "{}" else-block.
32509         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
32510         (strftime_case_): Remove 'else' after 'goto' - which was the
32511         only non-fatal, un-braced use of one of the above macros.
32512         Spotted by coverity (NESTING_INDENT_MISMATCH).
32514 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
32516         modechange: avoid memory leaks for invalid octal modes
32517         * lib/modechange.c (mode_compile): During the parsing of
32518         notations like +40, free the 'mc' buffer for invalid mode
32519         strings like +17777 (greater than the maximum octal mode),
32520         =18 (bad octal mode characters) or u=1 ('affected' with
32521         octal modes).
32522         Reproducer, e.g.:
32523             $ valgrind --leak-check=full chmod +17777 file
32524         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
32525         add notations +40, 00440, etc.".
32526         Spotted by coverity (RESOURCE_LEAK).
32528 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
32530         gitlog-to-changelog: include a dummy git-log-fix file
32531         Problem reported by Nathan Stratton Treadway in:
32532         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
32533         * build-aux/git-log-fix: New file.
32535 2014-03-13  Jim Meyering  <meyering@fb.com>
32537         gitlog-to-changelog: also include the file, git-log-fix
32538         * modules/gitlog-to-changelog (Files): Add git-log-fix.
32539         Reported by Assaf Gordon.
32541 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
32543         regex: port to OS X 10.8.5 en_US.UTF-8 locale
32544         This fixes a bug when ignoring case and when comparing the
32545         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
32546         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
32547         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
32548         titlecase letter is neither lowercase nor uppercase, but
32549         uppercasing the titlecase letter (via towupper) yields the
32550         uppercase letter, so the two letters should match when ignoring case.
32551         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
32552         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
32553         Don't test whether a character is lowercase before uppercasing it.
32555 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
32557         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
32558         This is basically one of the options Bruno Haible proposed in:
32559         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
32560         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
32561         * lib/stdint.in.h: Use it.
32562         * modules/stdint (Depends-on): Add sys_types.
32564 2014-02-26  Pádraig Brady  <P@draigBrady.com>
32566         parse-datetime: fix crash or infloop in TZ="" parsing
32567         * lib/parse-datetime.y (parse_datetime): Break out of the
32568         TZ="" parsing loop once the second significant " is found.
32569         Also skip over any subsequent whitespace to be consistent
32570         with the non TZ= case.
32571         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
32573 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
32575         savedir: new symbol for fast-read version
32576         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
32577         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
32578         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
32579         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
32581 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
32583         unistd: port readlink to Mac OS X 10.3.9
32584         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
32585         around self-include problem in Mac OS X 10.3.9 when combined with
32586         readlink module.  Problem reported by Klaus Zietler in
32587         <http://bugs.gnu.org/16825>.
32589 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
32591         diffseq: remove TOO_EXPENSIVE heuristic
32592         Problem with diffutils reported by Vincent Lefevre in
32593         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
32594         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
32595         Although appropriate for circa-1993 hardware, these days the heuristic
32596         seems to be more trouble than it's worth.
32597         * lib/diffseq.h: Modernize citations.
32598         (struct context): Remove member too_expensive.
32599         All uses changed.
32600         (struct partition): Remove members lo_minimal, hi_minimal.
32601         All uses changed.
32602         (diag, compareseq): Remove arg find_minimal.  All uses changed.
32603         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
32604         1993 to make 'diff' run faster (but not as well) on large inputs.
32605         These days, computers are fast enough that it's typically better
32606         to run slower but more accurately.
32607         * lib/fstrcmp.c: Remove duplicate comment.
32608         * lib/fstrcmp.c (strcmp_bounded):
32609         * lib/git-merge-changelog.c (compute_differences):
32610         Adjust to diffseq.h changes.
32611         * NEWS: Document the change.
32613         savedir: simplify by using stpcpy
32614         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
32615         (streamsavedir): Use stpcpy instead.
32616         * modules/savedir (Depends-on): Add stpcpy.
32618 2014-02-21  Pádraig Brady  <P@draigBrady.com>
32620         spawn: fix link error on uclibc
32621         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
32622         to incorporate -lrt if needed (on uclibc for example).
32623         * modules/posix_spawn: Reference the substituted LIB.
32625 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
32626         timer: fix uClibc detection of threading
32627         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
32628         enabled in uClibc.
32630 2014-02-21  Eric Blake  <eblake@redhat.com>
32632         maintainer-makefiles: provide AC_PROG_SED for older autoconf
32633         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
32635 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
32637         exclude: add support for posix regexps
32639         This commit adds support for POSIX extended regular expressions
32640         and fixes a long-standing memory leak (pattern buffer was never
32641         freed).  It also implements a new interface function to read
32642         exclude patterns from a FILE, which passes an additional parameter
32643         to its callback function, thereby allowing to preserve its state
32644         between invocations.
32646         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
32647         (pattern_buffer): New struct.
32648         (exclude): New member patbuf.
32649         (exclude_add_pattern_buffer): New function.
32650         (free_exclude_segment): Free regexps.
32651         (free_exclude): Free allocated pattern buffers.
32652         (exclude_patopts): New function.
32653         (file_pattern_matches): Use exclude_patopts.
32654         (add_exclude): support regexps.
32655         (add_exclude_fp): New function.
32656         (add_exclude_file): Rewrite using add_exclude_fp.
32657         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
32658         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
32659         (add_exclude_fp)
32660         (add_exclude_file): Rewrite using add_exclude_fp.
32661         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
32662         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
32663         (add_exclude_fp)
32664         (exclude_add_pattern_buffer): New prototypes.
32665         * modules/exclude: Depends on regex and filename.
32667 2014-02-20  Eric Blake  <eblake@redhat.com>
32669         maintainer-makefiles: use $(SED) for syntax check
32670         * modules/maintainer-makefile (configure.ac): Check for sane sed.
32671         * top/maint.mk: Change sed to $(SED).
32673 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
32674             Paul Eggert  <eggert@cs.ucla.edu>
32676         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
32677         Patch based on an idea by Dick Streefland in
32678         <https://savannah.gnu.org/patch/?7892>.
32679         * NEWS: Document this.
32680         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
32681         (direntry_t, comparison_function): New types.
32682         (direntry_cmp_name): New function.
32683         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
32684         (streamsavedir, savedir): New arg OPTION.
32685         (streamsavedir): Simplify memory allocation.
32686         (fdsavedir): Remove.
32687         * lib/savedir.h (enum savedir_option): New type.
32688         (streamsavedir, savedir): New arg OPTION.
32689         (fdsavedir): Remove.
32691 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
32693         file-type: add support for doors and other less-common file types
32694         Problem with S_ISDOOR reported by Rich Burridge.
32695         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
32696         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
32697         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
32699 2014-01-23  Eric Blake  <eblake@redhat.com>
32701         pthread: work around winpthread header pollution on mingw
32702         * lib/time.in.h: Move pthread workarounds...
32703         * lib/pthread.in.h: ...here.
32704         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
32705         detect macro pollution on mingw.
32706         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
32708 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
32710         qacl: check for fchmod
32711         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
32712         and qset-acl.c both use HAVE_FCHMOD.
32714 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
32716         fdopen-tests: port to Tru64
32717         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
32718         descriptor that is not open, as POSIX doesn't specify the
32719         resulting behavior and the test does not work on Tru64.
32720         Problem reported by Steven M. Schweda in:
32721         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
32723         stdalign: port to HP-UX compilers
32724         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
32725         if __HP_cc or __HP_aCC are nonzero.
32727 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
32729         strtoimax: port to platforms lacking 'long long'
32730         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
32731         check whether strtoll is declared, which causes the C file to
32732         wrongly report an error.  Problem reported by Steven M. Schweda in:
32733         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
32734         * lib/strtoimax.c (strtoull):
32735         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
32736         (strtoll): Declare only if HAVE_LONG_LONG_INT.
32738 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
32740         relocatable-perl: fix texi syntax
32741         * doc/relocatable-maint.texi: Escape braces.
32743 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
32745         relocatable-perl: like relocatable-script, but for Perl scripts
32746         * build-aux/relocatable.pl.in: Add.
32747         * doc/relocatable-maint.texi: Add documentation.
32748         * modules/relocatable-perl: Add.
32750 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
32752         tests: fix export bug in previous patch
32753         Problem reported by Jim Meyering.
32754         * tests/init.sh (re_shell): New var, which is exported instead of
32755         re_shell_.
32757         tests: simplify porting to Solaris 10 /bin/sh
32758         Some test cases in 'grep' need a shell that groks '$(';
32759         export re_shell_ for their benefit.  Problem reported for 'grep'
32760         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
32761         * tests/init.sh (re_shell_): Export if it's used.
32763 2014-01-06  Eric Blake  <eblake@redhat.com>
32765         md5, sha1, sha256, sha512: support older autoconf
32766         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
32767         for autoconf < 2.63b.
32769         include_next: port to autoconf 2.63
32770         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
32772 2014-01-04  Jim Meyering  <meyering@fb.com>
32774         maint: add a gnulib-local rule to keep non-ascii out of .texi files
32775         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
32776         so that "make sc_maint" will ding anyone who puts non-ascii
32777         in any of gnulib's .texi files.
32779 2014-01-03  Jim Meyering  <meyering@fb.com>
32781         freadable, fwritable, fwriting: declare with the "pure" attribute
32782         * lib/freadable.h (freadable): Declare with the "pure" attribute.
32783         * lib/fwritable.h (fwritable): Likewise.
32784         * lib/fwriting.h (fwriting): Likewise.
32785         Suggested by Bruno Haible.
32787         maint.mk: adapt openat.h-include-without-use test
32788         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
32789         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
32790         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
32791         With this change, running "make sc_maint" in gnulib's top-level
32792         directory now passes for me.
32794 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
32796         doc: use ASCII in .texi files where UTF-8 isn't needed
32797         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
32798         * doc/posix-functions/setkey.texi, doc/regex.texi:
32799         Use ASCII input, not UTF-8.
32801 2014-01-02  Jim Meyering  <meyering@fb.com>
32803         freading: declare with the "pure" attribute
32804         * lib/freading.h (freading): Declare with the "pure" attribute.
32806         manywarnings: remove -Wmudflap
32807         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
32808         it is no longer supported in gcc-4.9-to-be.
32810 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
32812         relocatable-script: remove unused code
32813         Problem reported by Reuben Thomas in:
32814         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
32815         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
32817 2014-01-01  Jim Meyering  <meyering@fb.com>
32819         maint: fix public-submodule-commit to work with newer git
32820         * top/maint.mk (public-submodule-commit): Remove excess quoting.
32821         We were over-quoting the test arguments, and somewhere prior to
32822         version 1.8.5.2.229, git stopped removing those excess quotes,
32823         which made the test fail, since the unexpanded strings would
32824         always differ; using GIT_TRACE=1 confirmed that the git merge-base
32825         command wasn't even being run.
32827 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
32829         doc: update main copyright year
32830         * doc/gnulib.texi: Update copyright date.
32832 2014-01-01  Eric Blake  <eblake@redhat.com>
32834         version-etc: new year
32835         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
32836         * all files: run 'make update-copyright'
32838 2013-12-24  Eric Blake  <eblake@redhat.com>
32840         passfd: give nicer error for recvfd at eof
32841         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
32842         * tests/test-passfd.c (main): Enhance test to cover this.
32844 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
32846         gettimeofday: port recent C++ fix to Emacs
32847         Without this further patch, Emacs won't build due to
32848         the portcheck failing.  Also, this simplifies the patch a bit.
32849         * lib/time.in.h (localtime, gmtime): Don't replace unless
32850         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
32851         * lib/time.in.h (localtime, gmtime):
32852         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
32853         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
32854         * modules/time (time.h):
32855         Don't worry about the possibility of localtime and gmtime
32856         being absent; they're present in all C libraries we know about.
32857         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
32858         Don't assume sys_time is present and has been initialized.
32859         Instead, use a hack that should work even if it hasn't been.
32860         Don't use a portcheck for gmtime or localtime; this supports
32861         the hack.
32862         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
32864 2013-12-17  John W. Eaton  <jwe@gnu.org>
32866         gettimeofday: fix C++ crosscompilation
32868         Never replace gmtime and localtime by macros when compiling with
32869         C++, this prevents <ctime> from being included.
32871         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
32872         define gmtime and localtime as preprocessor macros.  Instead
32873         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
32874         REPLACE_LOCALTIME substitutions.
32875         * lib/time.in.h: Declare gmtime and localtime when needed.
32876         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
32877         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
32878         * modules/time: Depend on gettimeofday, and substitute the above
32879         variables in time.h.
32881 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
32883         qacl: port to Windows better
32884         See Eli Zaretskii in
32885         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
32886         * lib/file-has-acl.c (acl_access_nontrivial):
32887         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
32888         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
32890 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
32892         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
32893         * lib/gl_openssl.h: Cast void pointers to a specific type.
32895 2013-12-07  Pádraig Brady  <P@draigBrady.com>
32897         open-tests: fix build failure with -Werror=old-style-declaration
32898         * tests/test-open.h: Reorder the inline to avoid the issue.
32900 2013-12-07  Pádraig Brady  <P@draigBrady.com>
32902         md5, sha1, sha256, sha512: fix link error with partial libcrypto
32903         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
32904         init time, so that if early checks find crypto routines,
32905         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
32906         avoiding link failures.
32908 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
32910         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
32911         This provides a new way to specify the default for
32912         gl_CRYPTO_CHECK, one that is reflected in the --help message.
32913         Emacs uses this, as well as the old way.
32914         This attempts to implement a suggestion by Pádraig Brady in
32915         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
32916         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
32917         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
32919         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
32920         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
32921         Add support for a new option, --with-openssl=auto, which causes
32922         the library to be used if available and silently ignored if not.
32923         Add support to allow configure.ac to specify its own
32924         default, by setting with_openssl_default before invoking gl_INIT.
32926 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
32928         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
32929         Problem reported by Daiki Ueno in:
32930         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
32931         * tests/test-open.h (__always_inline):
32932         New macro, if not already defined.
32933         (test_open): Use it.
32935 2013-12-04  Eric Blake  <eblake@redhat.com>
32937         include_next: minimize code duplication
32938         * modules/include_next (Depends-on): Add absolute-header.
32939         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
32940         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
32942 2013-12-04  Pádraig Brady  <P@draigBrady.com>
32944         getcwd: fix compile error in configure check
32945         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
32947 2013-12-04  Pádraig Brady  <P@draigBrady.com>
32949         regex: suppress core dumps from detection code
32950         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
32951         to suppress core dumps that may well occur on glibc systems.
32952         These core dumps might not be cleaned up automatically, or could
32953         trigger some system core dump handling logic.
32955 2013-12-03  Pádraig Brady  <P@draigBrady.com>
32957         md5, sha1, sha256, sha512: support mandating use of openssl
32958         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
32959         description, to list the now 3 separate options.  also don't
32960         mention the default=no, since this is implicit given the option
32961         is described as --with-openssl rather than --without-openssl.
32962         If projects change the default they're free to document that.
32963         with --with-openssl[=yes] we now error out when the specified
32964         hash algorithm is not available in libcrypto.
32966 2013-12-03  Ivailo  <xakepa10@gmail.com>
32968         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
32969         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
32970         -Wformat-nonliteral checks, as these edge cases are part of the test.
32972 2013-12-03  Eric Blake  <eblake@redhat.com>
32974         regex: avoid glibc deadlock during configure
32975         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
32976         glibc bug 15078 in turn triggers bug 16159.
32977         Reported by Michal Privoznik.
32979 2013-12-02  Pádraig Brady  <P@draigBrady.com>
32981         md5, sha1, sha256, sha512: use openssl routines if available.
32982         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
32983         routines will be used if available, requiring apps to link @LIB_CRYPTO@
32984         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
32985         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
32986         in the standard system location.
32987         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
32988         * m4/sha256.m4: Likewise with SHA256.
32989         * m4/sha512.m4: Likewise with SHA512.
32990         * m4/md5.m4: Likewise with MD5.
32991         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
32992         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
32993         * lib/sha256.h: Likewise with SHA256.
32994         * lib/sha512.h: Likewise with SHA512.
32995         * lib/md5.h: Likewise with MD5.
32996         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
32997         * lib/sha256.c: Likewise with SHA256.
32998         * lib/sha512.c: Likewise with SHA512.
32999         * lib/md5.c: Likewise with MD5.
33000         * modules/crypto/sha1 (Link:): Add the new optional lib.
33001         (Depends-on:): Add dependency on extern-inline.
33002         * modules/crypto/sha256: Likewise.
33003         * modules/crypto/sha512: Likewise.
33004         * modules/crypto/md5: Likewise.
33005         * modules/crypto/sha1-tests: Reference the lib here too.
33006         * modules/crypto/md5-tests: Likewise.
33007         * modules/crypto/gc-des-tests: Likewise.
33008         * modules/crypto/gc-hmac-md5-tests: Likewise.
33009         * modules/crypto/gc-hmac-sha1-tests: Likewise.
33010         * modules/crypto/gc-hmac-sha256-tests: Likewise.
33011         * modules/crypto/gc-hmac-sha512-tests: Likewise.
33012         * modules/crypto/gc-md5-tests: Likewise.
33013         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
33014         * modules/crypto/gc-sha1-tests: Likewise.
33015         * modules/crypto/gc-tests: Likewise.
33016         * modules/crypto/hmac-md5-tests: Likewise.
33017         * modules/crypto/hmac-sha1-tests: Likewise.
33018         * modules/crypto/hmac-sha256-tests: Likewise.
33019         * modules/crypto/hmac-sha512-tests: Likewise.
33021 2013-11-29  RV1971  <rv1971@web.de>
33023         base64: (trivial) fix compilation regression on some compilers
33024         * lib/base64.c: Don't return the void function,
33025         instead split to a separate return statement.
33027 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
33029         ignore-value: revert previous code change
33030         * lib/ignore-value.h (ignore_value): Use __extension__ and
33031         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
33032         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
33033         Change the comment to try to explain this better.
33035 2013-11-27  Pádraig Brady  <P@draigBrady.com>
33037         selinux-h: improve stub types and add more stub functions
33039         * lib/se-selinux.in.h: Change security_context_t to a typedef
33040         rather than a define, as it's a pointer type and so is better
33041         as a typedef to avoid issues declaring multiple variables
33042         with the comma operator.  Also add stub for string_to_security_class().
33043         * lib/se-context.in.h: Add stub functions for
33044         context_{type,range,role,user}_get().
33046 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
33048         ignore-value: prefer GCC version back through 2.0
33049         The code didn't match the comments, so I did a bit of software
33050         archaeology.  GCC 2.0 seems to support __extension__ and
33051         __typeof__, so fix both code and comments to use 2.0.
33052         * lib/ignore-value.h (ignore_value): Use __extension__ and
33053         __typeof__ for GCC 2.0 through 3.3, too.
33055 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
33057         pty: Activate the signature wrapper of forkpty.
33058         The intended preprocessor macro HAVE_FORKPTY is
33059         never defined, yet `lib/forkpty.c' depends on it.
33061         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
33062         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
33063         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
33065 2013-11-18  Jim Meyering  <meyering@fb.com>
33066         and Paul Eggert  <eggert@cs.ucla.edu>
33068         quotearg: don't attempt to store 1 << 31 into an "int"
33069         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
33070         gcc's new -fsanitize=undefined and running its tests triggered some
33071         new test failures due to undefined behavior, all with this diagnostic:
33072           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
33073             cannot be represented in type int
33074         Rather than shifting "1" left to form a mask, shift the bits right and
33075         simply use "1" as the mask.
33077 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
33079         error: depend on stdio
33080         Problem reported by Nikos Mavrogiannopoulos in
33081         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
33082         * modules/error (Depends-on): Add stdio.
33084 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
33086         * doc/relocatable-maint.texi (Supporting Relocation): Improve
33087         wording.
33088         Reported by Reuben Thomas <rrt@sc3d.org>.
33090 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
33092         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
33093         New function and macro, to work around _DARWIN_C_SOURCE problem.
33094         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
33096 2013-11-11  Pádraig Brady  <P@draigBrady.com>
33098         base64: provide a fast path for encoding well sized buffers
33099         Avoid conditionals in the base64 encoding loop,
33100         which was seen to give 60% better throughput.
33101         * lib/base64.c (base64_encode_fast): A new function to be called
33102         when we don't want to NUL terminate, and we have enough space
33103         in the output to encode the given input.
33104         (base64_encode): Call the _fast() version when appropriate.
33105         Also remove a redundant mask with 0x3F on the first encoded byte.
33107 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
33109         extern-inline: port better to OS X 10.9
33110         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
33111         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
33112         OS X 10.9, except for g++ where the bug is still present.
33113         See <http://trac.macports.org/ticket/41033>.
33115 2013-11-08  Eric Blake  <eblake@redhat.com>
33117         fpending: fix regression on DragonFly BSD
33118         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
33119         * lib/fpending.h (__fpending): Don't declare twice.
33120         Reported by GW in
33121         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
33123 2013-11-05  Jim Meyering  <meyering@fb.com>
33125         hash: relax license to LGPLv2+, for libguestfs
33126         * modules/hash (License): Change from GPL to LGPLv2+.
33128 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
33130         intprops: port to Oracle Studio c99
33131         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
33132         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
33134 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
33136         obstack: pacify HP C
33137         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
33138         warning "conversion from pointer to smaller integer" from HP
33139         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
33140         C89 or later nowadays, so cast to void instead of int.  Privately
33141         reported by H.Merijn Brand.  Also, change header to match glibc's,
33142         to make checking against glibc easier.
33144 2013-10-29  Jim Meyering  <meyering@fb.com>
33146         maint.mk: prefer gpgv2 over gpgv
33147         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
33148         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
33149         Reported by Gary Vaughan.
33151 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
33153         isnan: port to VAX
33154         Reported by John Klos for NetBSD-5/VAX in
33155         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
33156         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
33157         (FUNC): Use it.
33159 2013-10-28  Jim Meyering  <meyering@fb.com>
33161         gnulib-tool: protect against CDPATH
33162         * gnulib-tool: Many "cd" built-in functions print a directory name
33163         to stdout when CDPATH is set, e.g.,
33164           $ bash -c 'CDPATH=/; cd tmp'
33165           /tmp
33166         Unset it, when possible.  Prompted by a comment from Bruce Korb.
33168         maint.mk: restore functionality removed by recent change...
33169         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
33170         the context of a shallow-cloned gnulib repository: "git describe"
33171         would fail in such a directory.  However, that change made it so
33172         the reported gnulib revision no longer includes the version number
33173         or a commit count, even when run from a full clone.
33174         * top/maint.mk (gnulib-version): Use the full "git describe"
33175         output when possible, e.g., the form above, rather than the
33176         abbreviated, no-tag, no-commit-count string, and fall back to
33177         using a 10-byte hash, rather than the default minimal-length
33178         hash prefix, since while the minimal-length one may be fine today,
33179         it is likely not to be unique for very long.
33181 2013-10-26  Jim Meyering  <meyering@fb.com>
33183         maint.mk: fix "release" target to build _version
33184         This fixes a bug in README-release whereby following the outlined
33185         steps, one would publish a tarball whose programs would report
33186         --version output not consistent with the package version number.
33187         This bug caused grep-2.15 to produce a grep program whose
33188         --version option made it print 2.14.56-1e3d rather than 2.15.
33189         * top/maint.mk (release): Making this target build "_version"
33190         ensures that the new version number is reflected in configure.
33192 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
33194         install-reloc: Support multi-binary installation.
33195         * build-aux/install-reloc: Support installing multiple programs in
33196         one invocation, as done by Automake starting with commit
33197         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
33198         Haible <bruno@clisp.org>, archived at
33199         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
33200         Reported by Sylvain <beuc@gnu.org>.
33202 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33204         selinux-h: Really build without selinux when library is missing.
33205         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
33206         continue without selinux, as already told in the warning message.
33208 2013-10-21  Jim Meyering  <meyering@fb.com>
33210         regex: also remove dependency on HAVE_WCSCOLL
33211         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
33213 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
33215         xfreopen: Fix typo. s/frepoen/freopen/
33216         * lib/xfreopen.c: Fix description.
33217         * modules/xfreopen: Likewise.
33219 2013-10-21  Jim Meyering  <meyering@fb.com>
33221         regex: don't depend on wcscoll
33222         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
33223         It is no longer used.
33225 2013-10-20  Jim Meyering  <meyering@fb.com>
33227         error: add the printf attribute to a static function
33228         * lib/error.c (error_tail): Add the printf attribute, to placate
33229         gcc's -Werror=suggest-attribute=format option.
33231 2013-09-30  Jim Meyering  <meyering@fb.com>
33233         fpending, obstack, strerror-override: use pure+const function attrs
33234         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
33235         * lib/obstack.c (_obstack_allocated_p): Likewise.
33236         * lib/obstack.h (_obstack_memory_used): Likewise.
33237         (_obstack_memory_used): Likewise.
33238         * lib/strerror-override.h (strerror_override): Declare with
33239         the "const" attribute.
33241 2013-10-18  Eric Blake  <eblake@redhat.com>
33243         extern-inline: make safe for -Wundef usage
33244         Reported by Vladimir 'phcoder' Serbinenko in
33245         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
33246         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
33248 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33250         mkfifo-tests, etc.: allow HP-UX 11.11 bug
33251         Problem reported by Daniel Richard G. in
33252         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
33253         * doc/posix-functions/mkfifo.texi (mkfifo):
33254         * doc/posix-functions/mkfifoat.texi (mkfifoat):
33255         * doc/posix-functions/mknod.texi (mknod):
33256         * doc/posix-functions/mknodat.texi (mknodat):
33257         Document the HP-UX 11.11 bug.
33258         * tests/test-mkfifo.h (test_mkfifo):
33259         Allow the HP-UX 11.11 bug.
33261 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
33263         acl: allow cross-compilation to Gentoo
33264         Problem reported by Gabriel Marcano in
33265         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
33266         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
33267         test only whether it links.
33269 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
33271         mgetgroups: remove dependency on realloc-gnu
33272         The dependency violates the comment in realloc-gnu, which
33273         says that tests can't depend on realloc-gnu; some tests depend
33274         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
33275         Problem reported by Daniel Richard G. in
33276         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
33277         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
33278         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
33279         not realloc-gnu.
33281 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
33283         regex-tests: port to HP-UX 11.11
33284         Problem reported by Daniel Richard G. in
33285         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
33286         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
33288 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
33290         verify: document some 'assume' pitfalls
33291         * doc/verify.texi (Compile-time Assertions):
33292         Mention that 'assume (E)' can sometimes slow things down.
33293         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
33295 2013-10-10  Eric Blake  <eblake@redhat.com>
33297         strtoumax: fix typo in previous commit.
33298         * modules/strtoumax (Depends-on): Fix typo.
33299         * modules/strtoimax (Depends-on): Likewise.
33301 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
33303         strtoumax: port to Solaris 8
33304         This problem was introduced in the recent HP-UX patch.
33305         Reported by Tom G. Christensen in
33306         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
33307         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
33308         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
33310 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
33312         strtoimax, strtoumax: port to HP-UX 11.11
33313         Problem reported by Daniel Richard G. in
33314         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
33315         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
33316         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
33317         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
33318         REPLACE_STRTOUMAX.
33319         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
33320         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
33321         Replace the function if defined as a macro but not as a function.
33322         * modules/inttypes-incomplete (inttypes.h): Substitute
33323         REPLACE_STRTOUMAX.
33324         * modules/strtoumax (configure.ac): Replace strtoumax if
33325         REPLACE_STRTOUMAX.
33327 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
33329         strtoimax: port to HP-UX 11.11
33330         Problem reported by Daniel Richard G.
33331         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
33332         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
33333         they might clash with inttypes.h.
33335 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
33337         New module 'count-trailing-zeros'.
33338         * MODULES.html.sh: Mention it.
33339         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
33340         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
33341         * modules/count-trailing-zeros-tests:
33342         * tests/test-count-trailing-zeros.c:
33343         New files.
33345         count-leading-zeros: port to MSC; support types wider than 64 bits
33346         The ideas behind the MSC port are stolen from Emacs.
33347         * lib/count-leading-zeros.h:
33348         Don't include verify.h: it's no longer needed, as types wider than
33349         64 bits are now supported.
33350         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
33351         performance with MSC.  All uses changed.  Do not assume that TYPE
33352         has at most 64 bits.
33353         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
33354         All uses changed.  Fold the subtraction from 31 into the table.
33356         count-one-bits: port to MSC; support types wider than 64 bits
33357         The ideas behind the MSC port are stolen from Emacs.
33358         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
33359         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
33360         Don't include verify.h: it's no longer needed, as types wider than
33361         64 bits are now supported.
33362         (COUNT_ONE_BITS_GENERIC): New macro.
33363         (popcount_supported) [_MSC_VER]: New inline function.
33364         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
33365         performance with MSC.  All uses changed.  Do not assume that TYPE
33366         has at most 64 bits.
33367         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
33369 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
33371         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
33372         * lib/mountlist.c (read_file_system_list): fix leak of directory
33373         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
33375 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
33377         tests: improve diagnostic when an assertion fails
33378         * tests/macros.h (ASSERT): Report the assertion that failed.
33380 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
33382         verify: new macro 'assume'
33383         This is taken from Emacs, and should be generally useful.
33384         * doc/verify.texi (assume): Document it.
33385         * lib/verify.h (assume): New macro.
33386         (__has_builtin): Expand to 0 if not defined.
33388 2013-09-26  Eric Blake  <eblake@redhat.com>
33390         dup2, dup3: work around another cygwin crasher
33391         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
33392         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
33393         * tests/test-dup2.c (main): Likewise.
33394         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
33395         * lib/dup3.c (dup3): Likewise.
33396         * doc/posix-functions/dup2.texi (dup2): Document it.
33397         * doc/glibc-functions/dup3.texi (dup3): Likewise.
33399         getdtablesize: work around cygwin issue
33400         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
33401         * modules/getdtablesize (configure.ac): Build replacement.
33402         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
33403         * modules/unistd (Makefile.am): Expose the witness.
33404         * lib/unistd.in.h (getdtablesize): Declare replacement.
33405         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
33406         * tests/test-getdtablesize.c (main): Test it.
33407         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
33409 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
33411         pmccabe2html: escaping of special characters
33412         Escape all '<', '>', and '&' in HTML output.
33413         * build-aux/pmccabe2html (html_fnc): Call gsub()
33414         instead of sub() to capture all '<', '>', and '&'.
33415         Neither of '<' and '>' is special in a regexp,
33416         so first arguments to gsub() are corrected. Also,
33417         in replacement strings, ampersand must be escaped.
33418         Finally, '&' must be handled first, then '<' and '>'.
33420 2013-09-24  Eric Blake  <eblake@redhat.com>
33422         manywarnings: enable nicer gcc warning messages
33423         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
33424         some -f options for optimal warnings.
33426 2013-09-21  Jim Meyering  <meyering@fb.com>
33428         timespec: use the new TIMESPEC_RESOLUTION in a few more places
33429         * lib/timespec-add.c (timespec_add): Also replace 999999999
33430         with TIMESPEC_RESOLUTION - 1.
33431         * lib/timespec-sub.c (timespec_sub): Likewise.
33433 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
33435         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
33436         Problem reported by Dagobert Michelsen via Eric Blake in
33437         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
33438         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
33439         not AC_COMPILE_IFELSE.
33441 2013-09-23  Eric Blake  <eblake@redhat.com>
33443         configmake: support new --runstatedir option
33444         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
33445         even if autoconf was too old to provide the command line option.
33446         * modules/configmake (Makefile.am): Propagate it to .h file.
33448 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
33450         ctype, string: depend on extern-inline
33451         This is needed to complete the recent OS X fixes.
33452         Also, fix related documentation as suggested by Eric Blake.
33453         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
33454         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
33455         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
33456         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
33457         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
33458         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
33459         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
33460         * doc/posix-functions/toupper.texi:
33461         List the 'ctype' gnulib module.
33462         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
33463         * doc/posix-functions/strncpy.texi:
33464         List the 'string' gnulib module.
33465         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
33466         Add string.
33467         * modules/ctype, modules/string (Depends-on): Add extern-inline.
33469 2013-09-19  Pádraig Brady  <P@draigBrady.com>
33471         userspec: support optional parameters to parse_user_spec()
33472         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
33473         then avoid group processing and treat the full spec as a user.
33474         (parse_with_separator): Allow the USERNAME and GROUPNAME to
33475         be optional params (NULL), in which case they're ignored.
33477 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
33479         timespec: new function make_timespec, and new constants
33480         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
33481         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
33482         (make_timespec): New function.
33483         * lib/dtotimespec.c (dtotimespec):
33484         * lib/timespec-add.c (timespec_add):
33485         * lib/timespec-sub.c (timespec_sub):
33486         * lib/utimens.c (validate_timespec):
33487         * lib/utimensat.c (rpl_utimensat):
33488         Use these new constants and functions.
33490         stdio: OS X port of putc_unlocked + extern inline
33491         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
33492         * doc/posix-functions/putc_unlocked.texi:
33493         * doc/posix-functions/putchar_unlocked.texi:
33494         Document this portability problem.
33496         signal: OS X port of sigaddset etc. + extern inline
33497         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
33498         (sigismember): #undef on problematic Apple platforms.
33499         * doc/posix-functions/sigaddset.texi:
33500         * doc/posix-functions/sigdelset.texi:
33501         * doc/posix-functions/sigemptyset.texi:
33502         * doc/posix-functions/sigfillset.texi:
33503         * doc/posix-functions/sigismember.texi:
33504         Document this portability problem.
33506         extern-inline: do not always suppress extern inline on OS X
33507         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
33508         extern inline on Apple only if the particular compile-time
33509         configuration is known to have the problem.
33510         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
33511         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
33512         other Gnulib modules.
33514         extern-inline: document fixes for ctype and wctype macros
33515         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
33516         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
33517         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
33518         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
33519         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
33520         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
33521         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
33522         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
33523         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
33524         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
33525         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
33526         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
33527         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
33528         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
33529         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
33530         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
33531         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
33532         * doc/posix-functions/strncpy.texi:
33533         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
33534         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
33535         Document that Gnulib fixes portability problems with these
33536         functions on OS X 10.8 and earlier when called from plain inline
33537         or extern inline functions.
33539 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
33541         fflush, freadahead, fseeko: Fix for Android
33542         Suggested by Bruno Haible in:
33543         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
33544         * lib/stdio-impl.h: Use local __sfileext definition.
33546 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
33548         pmccabe2html: Portability to other awk versions.
33549         The functions systime() and strftime() are available
33550         in Gawk only.  Properly close two HTML-tags 'style'
33551         and 'span'.
33552         * build-aux/pmccabe2html (BEGIN): Store timing
33553         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
33554         systime() in HTML_COMMENT.
33555         (html_header): Correctly close tag 'style'.
33556         (END): Replace strftime() by CHRONOS_TIME.  Close
33557         tag 'span' correctly, not as 'div'.
33559 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
33561         getgroups: statement without effect
33562         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
33563         Change equality conditional to expected assignment.
33565 2013-09-09  Eric Blake  <eblake@redhat.com>
33567         glob: fix compilation
33568         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
33570 2013-09-07  Eric Blake  <eblake@redhat.com>
33572         glob: fix build for platforms without __THROW
33573         * lib/glob.in.h (__THROW): Add definition again.
33575 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
33577         regex-quote: fix buffer access out of bounds
33578         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
33579         * lib/regex-quote.c (regex_quote_spec_pcre):
33580         Fix typo that resulted in an out-of-bounds read.
33582 2013-09-04  Eric Blake  <eblake@redhat.com>
33584         glob: avoid -Wattribute warnings on glibc
33585         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
33586         __THROWNL, not __THROW, on static functions.
33587         * lib/glob.in.h (__THROW): Adjust...
33588         (__THROWNL): ...accordingly.
33590 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
33592         headers: check that _GL_INLINE_HEADER_BEGIN is defined
33593         Suggested by Bruce Korb in:
33594         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
33595         * doc/extern-inline.texi (extern inline):
33596         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
33597         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
33598         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
33599         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
33600         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
33601         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
33602         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
33603         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
33604         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
33605         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
33606         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
33607         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
33608         * lib/xtime.h:
33609         Check that _GL_INLINE_HEADER_BEGIN is defined.
33611 2013-08-29  Pádraig Brady  <P@draigBrady.com>
33613         bootstrap: remove the --version requirement from ancillary tools
33614         * build-aux/bootstrap (check_exists): A new refactored function to
33615         determine if a command exists.
33616         (find_tool): Use the new function which does not require the
33617         --version option to be supported.
33618         (check_versions): Use the new function.
33620 2013-08-26  Simon Josefsson  <simon@josefsson.org>
33622         gc: support HMAC-SHA256 and HMAC-SHA512.
33623         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
33624         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
33625         functions.
33626         (gc_hmac_md5): Use symbolic constant.
33627         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
33628         (gc_hmac_sha256, gc_hmac_sha512): New functions.
33629         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
33630         * m4/sha256.m4: Protect against empty expansion.
33631         * m4/sha512.m4: Likewise.
33632         * lib/hmac-sha256.c: New file.
33633         * lib/hmac-sha512.c: Likewise.
33634         * m4/gc-hmac-sha256.m4: Likewise.
33635         * m4/gc-hmac-sha512.m4: Likewise.
33636         * m4/gc-sha256.m4: Likewise.
33637         * m4/gc-sha512.m4: Likewise.
33638         * modules/crypto/gc-hmac-sha256: Likewise.
33639         * modules/crypto/gc-hmac-sha256-tests: Likewise.
33640         * modules/crypto/gc-hmac-sha512: Likewise.
33641         * modules/crypto/gc-hmac-sha512-tests: Likewise.
33642         * modules/crypto/hmac-sha256: Likewise.
33643         * modules/crypto/hmac-sha256-tests: Likewise.
33644         * modules/crypto/hmac-sha512: Likewise.
33645         * modules/crypto/hmac-sha512-tests: Likewise.
33646         * tests/test-gc-hmac-sha256.c: Likewise.
33647         * tests/test-gc-hmac-sha512.c: Likewise
33648         * tests/test-hmac-sha256.c: Likewise.
33649         * tests/test-hmac-sha512.c: Likewise
33651 2013-08-24  Daiki Ueno  <ueno@gnu.org>
33653         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
33654         of AC_CHECK_DECLS.
33656 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
33658         selinux-at: omit unnecessary include
33659         * lib/selinux-at.c: Don't include dosname.h; not needed, since
33660         this source file doesn't use its macros, and subsidiary files that
33661         use the macros already include it.
33663 2013-08-21  Eric Blake  <eblake@redhat.com>
33665         d-ino: avoid false negative on symlink
33666         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
33667         Reported by Stephane Chazelas.
33669 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
33671         bootstrap: port to OpenBSD sed
33672         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
33673         does not interpret `-' as a file argument to mean stdin.
33675 2013-08-15  Eric Blake  <eblake@redhat.com>
33677         warnings: minor optimization
33678         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
33680         warnings: check -Wfoo rather than -Wno-foo
33681         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
33682         -Wno-, test if the compiler recognizes the positive form instead.
33684 2013-08-15  Karl Berry  <karl@gnu.org>
33686         * config/srclist-update: add option "doclicense" to placate
33687         pulling *.texi files from Emacs.  Write terse usage
33688         documentation at the top.
33690 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
33692         xvasprintf-tests: port to GCC with hardening flags
33693         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
33694         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
33695         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
33697 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33699         fpending: port to recent Cygwin change to stdio_ext.h
33700         Reported by LRN in
33701         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
33702         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
33703         just declare __fpending unless it's a macro.
33704         A duplicate decl shouldn't hurt.
33705         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
33706         call compiles and links, instead of separately checking for
33707         decl and lib function.
33708         * modules/fpending (configure-ac):
33709         Adjust to fpending.m4's renaming of shell variable.
33711 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
33713         sys_time: port to OpenBSD
33714         * lib/sys_time.in.h: Simply delegate to the system's header
33715         in the BSDish cases as well.  Problem reported by Mike Miller in
33716         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
33717         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
33718         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
33719         wider than time_t.
33721 2013-08-09  Pádraig Brady  <P@draigBrady.com>
33723         bootstrap: support checksum utils having -c but not --status
33724         * build-aux/bootstrap: Only look for sha1sum if updating po files.
33725         Add sha1 to the list of supported checksum utils since it's now
33726         supported through adjustments below.
33727         (update_po_files): Remove the use of --status
33728         in a way that will suppress all error messages, but since this is
33729         only used to minimize updates, it shouldn't cause an issue.
33730         Exit early if there is a problem updating the po file checksums.
33731         (find_tool): Remove the check for --version support as this
33732         is optional as per commit 86186b17.  Don't even check for the
33733         presence of the command as if that is needed, it's supported
33734         through configuring prerequisites in bootstrap.conf.
33735         Prompt that when a tool isn't found, one can define an environment
33736         variable to add to the hardcoded search list.
33738 2013-08-05  Jim Meyering  <meyering@fb.com>
33740         regex: port to non-glibc/lock-using systems
33741         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
33742         system with GNULIB_LOCK would fail due to absence of the
33743         included "glthread/lock.h".  This would affect any package
33744         for which the "lock" module is used only by the regex module,
33745         and not explicitly used.
33746         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
33747         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
33748         Add a dependency on the "lock" module.
33750 2013-07-20  Daiki Ueno  <ueno@gnu.org>
33752         localecharset: make locale_charset thread-safe on Mac OS X
33753         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
33754         instead of MB_CUR_MAX.
33756 2013-07-20  Daiki Ueno  <ueno@gnu.org>
33758         gettext: update to version 0.18.3
33759         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
33760         require AC_PROG_SED to allow user to specify custom sed command when
33761         generating en@quot PO file.
33763 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
33765         bootstrap: use correct source when copying build-aux files
33766         * build-aux/bootstrap (gnulib_extra_files): This variable is
33767         relative to upstream gnulib layout, not downstream.
33769 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
33771         tmpdir: fix bug in VMS port
33772         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
33773         See Steven M. Schweda in
33774         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
33776 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
33778         tmpdir: port to VMS, to // != /, and to long dirs
33779         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
33780         __secure_getenv, so that we're more like the glibc version.
33781         All uses changed.
33782         (path_search): Don't put slash after directory if __VMS.
33783         Problem reported by Steven M. Schweda in
33784         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
33785         Simplify code to add slash; no need for a loop.
33786         Do not remove trailing slash from "//".
33787         Do not assume dlen <= INT_MAX.
33789 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
33791         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
33792         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
33793         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
33794         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
33796         accept4, dup3, pipe2: port to Cygwin
33797         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
33798         * lib/accept4.c (accept4) [O_BINARY]:
33799         * lib/dup3.c (dup3) [O_BINARY]:
33800         * lib/pipe2.c (pipe2) [O_BINARY]:
33801         Use set_binary_mode, not setmode.
33802         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
33803         * modules/binary-io (Depends-on): Remove module indicator.
33804         These last two bits undo the previous change to pipe2 and binary-io.
33806 2013-07-09  Pádraig Brady  <P@draigBrady.com>
33808         mountlist: add support for deallocating returned list entries
33809         * lib/mountlist.c (free_mount_entry): A new exported function
33810         to deallocate a mount list entry.
33811         (read_file_system_list): Refactor to use the new deallocation function.
33812         Suggested by Anton Ovchinnikov.
33814 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
33816         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
33817         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
33818         * lib/stdalign.in.h (_Alignas, _Alignof):
33819         Port to FreeBSD 9.1, and to C11 and C++11.
33820         (_Alignas): Also support ICC.
33821         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
33822         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
33824 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
33826         fnmatch: don't goto over declaration
33827         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
33828         undefined behavior for goto over a declaration.
33829         Problem reported by Charlie Brown in
33830         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
33832         pipe2: decouple from binary-io a bit
33833         This is for Emacs, which needs pipe2 but not binary-io.
33834         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
33835         * modules/binary-io (Depends-on): Add module indicator.
33837 2013-07-03  Eric Blake  <eblake@redhat.com>
33839         mgetgroups: relax license to LGPLv2+
33840         * modules/getugroups (License): Change from GPLv3+.
33841         * modules/mgetgroups (License): Likewise.
33842         * modules/getgroups (License): Change from LGPLv3+.
33844         xalloc-oversized: relax license to LGPLv2+
33845         * modules/xalloc-oversized (License): Change from GPLv3+.
33847         nproc: relax license to LGPLv2+
33848         * modules/nproc (License): Change from LGPLv3+.
33850         bootstrap: honor --no-git
33851         * build-aux/bootstrap: Don't even try to use git when user is
33852         pointing to a static checkout.
33854 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
33856         ignore-value: port to gcc -pedantic
33857         * lib/ignore-value.h (ignore_value):
33858         Port to gcc -pedantic, by using __extension__.
33859         Reindent as per usual gnulib style nowadays.
33860         Simplify GCC version check.
33862 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
33864         extern-inline: port to gcc -std=c89
33865         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
33866         Do not use __gnu_inline__ if pedantic and pre-C99.
33868 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
33870         doc: document extern-inline
33871         * doc/extern-inline.texi: New file.
33872         * doc/gnulib.texi (alloca-opt): Include it.
33873         * m4/extern-inline.m4: Move some comments to documentation,
33874         and others closer to what they describe.
33876         doc: chatter less
33877         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
33878         (updated-stamp): Use it.  This causes 'make' to output just
33879         one file name rather than zillions.
33881         fflush, fseeko: port to musl cross-compiles
33882         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
33883         on some implementation that (1) is not known to be buggy,
33884         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
33885         cross-compiled to so we can't easily check for lack of
33886         conformance.  This is for cross-compiling to musl.
33887         Reported by Rich Felker in
33888         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
33889         * m4/fclose.m4 (gl_FUNC_FCLOSE):
33890         * m4/fflush.m4 (gl_FUNC_FFLUSH):
33891         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
33892         Adjust to above change.
33893         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
33894         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
33895         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
33896         known not to work, or unknown.
33898 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
33900         msvc-inval: port to mingw-w64
33901         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
33902         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
33903         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
33905 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
33907         getcwd-lgpl: port to Tru64
33908         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
33909         Problem reported by Steven M. Schweda in
33910         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
33912         tests: port large-fd POSIX spawn tests to OS X
33913         Problem reported by Daiki Ueno in
33914         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
33915         * tests/test-posix_spawn_file_actions_addclose.c:
33916         * tests/test-posix_spawn_file_actions_adddup2.c:
33917         * tests/test-posix_spawn_file_actions_addopen.c:
33918         Include <limits.h>, for OPEN_MAX, if available.
33919         (big_fd): New static function.
33920         (main): Use it.
33922 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
33924         tests/nap.h: use an adaptive delay to avoid ctime update issues
33925         The recent change in nap.h (5191133e) decreased the probability of lost
33926         races to about a third, however such problems could still be observed
33927         in virtual machines and openSUSE's OBS.
33928         Before, nap() detected the needed time once empirically and then used
33929         that delay (together with a small correction multiplier) in further
33930         calls.  This problem has been reported and discussed several times,
33931         including guesses about possible kernel issues:
33932         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
33933         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
33934         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
33935         http://bugs.gnu.org/12820
33936         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
33937         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
33938         Now, nap() avoids the race alltogether by verifying on a reference
33939         file whether a timestamp difference has happened.
33940         * tests/nap.h (nap_fd): Define file descriptor variable for the
33941         witness file.
33942         (nap_works): Change return value to bool.  Change passing
33943         the old file's status by value instead of by reference as this function
33944         does no longer update that timestamp; rename the function argument from
33945         st to old_st.  Remove the local variables cdiff and mdiff because that
33946         function now returns true/false instead of the precise delay.
33947         (guess_delay): Remove function.
33948         (clear_tmp_file): Add new function to close and unlink the witness file.
33949         (nap): Instead of re-using the delay which has been calculated during
33950         the first call, avoid the race by actually verifying that a timestamp
33951         difference can be observed on the current file system.  Use an adaptive
33952         approach for the delay to minimize execution time.  Assert that the
33953         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
33954         = 2^31 - 1 = 2.1s.
33955         Use atexit to call clear_tmp_file when the process terminates.
33957 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
33959         sig2str: port to C++
33960         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
33961         Reported by Daniel J Sebald in
33962         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
33964 2013-05-30  Eric Blake  <eblake@redhat.com>
33966         docs: mention cygwin shortcoming in <sys/un.h>
33967         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
33969         vasnprintf: silence mingw compiler warning
33970         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
33972 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
33974         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
33975         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
33976         This fixes a porting bug I recently reintroduced in regex, and
33977         some other instances that I discovered while testing the fix.
33978         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
33979         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
33980         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
33981         with an empty argument if this is a pedantic pre-C99 GCC.
33982         * lib/verify.h: Do not use _Static_assert if this is a pedantic
33983         pre-C11 GCC.
33985         regex: adapt to locking regime instead of depending on pthread
33986         Instead of depending on pthread, adapt to whatever thread
33987         modules are in use.  Problem reported by Ludovic Courtès in
33988         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
33989         and by Mats Erik Andersson in
33990         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
33991         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
33992         Support either the 'lock' module, or the 'pthread' module, or
33993         no module.
33994         (lock_lock, lock_unlock): New macros.
33995         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
33996         * modules/lock, modules/pthread (configure.ac): Add module indicator.
33997         * modules/regex (Depends-on): Remove pthread.
33999 2013-05-22  Eric Blake  <eblake@redhat.com>
34001         getgroups: document portability issues
34002         * doc/glibc-functions/initgroups.texi (initgroups): Mention
34003         multithread safety.
34004         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
34005         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
34006         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
34007         getugroups.
34008         * doc/posix-functions/getgroups.texi (getgroups): Mention
34009         multithread safety and mgetgroups.
34011 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
34013         test-lchown, test-chown: also skip test if chown fails with EPERM
34014         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
34015         skip this test, to handle FAT file systems.
34016         * tests/test-chown.h (test_chown): Likewise.
34018 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
34020         regex: fix dfa race in multithreaded uses
34021         Problem reported by Ludovic Courtès in
34022         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
34023         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
34024         New macros.  All uses of __libc_lock_define, __libc_lock_init
34025         changed to use the first two of these.
34026         (__libc_lock_lock, __libc_lock_unlock): New macros, for
34027         non-glibc platforms.
34028         (struct re_dfa_t): Define the lock unconditionally.
34029         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
34030         '#ifdef _LIBC"s.
34031         * modules/regex (Depends-on): Add pthread, if we use the
34032         included regex.
34034         * lib/regcomp.c: Do actions that are not needed for glibc,
34035         but may be needed elsewhere.
34036         (regfree, re_compile_internal): Destroy the lock.
34037         (re_compile_internal): Check for lock-initialization failure.
34039         malloca: port to compilers that reject size-zero arrays
34040         This fixes a bug introduced in my previous patch.
34041         * lib/malloca.c (struct preliminary_header): Use an int
34042         rather than a character array of size int; that's simpler.
34043         (struct header): Remove, replacing with ...
34044         (union header): New type.  This avoids the need for declaring a
34045         character array of size zero, which is not allowed on some platforms.
34046         All uses changed.
34048 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
34050         parse-datetime, tests: don't use "string" + int
34051         Recent versions of 'clang' complain about C source code that
34052         uses expressions of the form '"string literal" + integer',
34053         I guess on the theory that it's confusing for readers who are
34054         used to C++.  On those grounds I suppose it's OK to make this
34055         minor style change.
34056         * lib/parse-datetime.y (parse_datetime):
34057         * tests/test-fchdir.c (main):
34058         * tests/test-snprintf-posix.h (test_function):
34059         * tests/test-snprintf.c (main):
34060         * tests/test-vasnprintf-posix.c (test_function):
34061         * tests/test-vasnprintf.c (test_function):
34062         * tests/test-vsnprintf.c (main):
34063         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
34064         Rewrite '"str" + E' to '&"str"[E]'.
34066 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
34068         argmatch: port to C++
34069         * lib/argmatch.h [__cplusplus]: Add extern "C".
34071         argp: typo fix
34072         * lib/argp-help.c: Typo in comment.
34074 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
34076         manywarnings: update for GCC 4.8.0
34077         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
34078         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
34079         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
34080         -Wmissing-noreturn, as they are duplicates of other warnings.
34081         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
34082         was documented to be flaky in earlier versions of GCC.
34084         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
34085         * tests/test-spawn.c (main):
34086         * tests/test-sys_socket.c (main):
34087         * tests/test-sys_wait.c (main):
34088         Don't have a switch value that isn't covered by a case.
34090         getaddrinfo-tests: port --enable-gcc-warnings to clang
34091         * tests/test-getaddrinfo.c (simple):
34092         Avoid casts from looser to stricter-aligned pointers.
34094         thread: port --enable-gcc-warnings to clang
34095         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
34096         Include <signal.h>, to pacify a warning about pthread_sigmask.
34098         stdio: use __REDIRECT for fwrite, fwrite_unlocked
34099         * lib/stdio.in.h (fwrite):
34100         When working around bug 11959, use __REDIRECT rather than '#define
34101         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
34102         fix the -Wunused-value issue with clang, and it works with GCC too.
34103         Problem with targeting reported by Eric Blake in
34104         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
34105         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
34106         debugging the fwrite issue.
34108         stdio: port --enable-gcc-warnings to clang
34109         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
34110         since the GCC workaround for fwrite does not pacify clang.
34112         sig2str: port --enable-gcc-warnings to clang
34113         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
34115         obstack: port --enable-gcc-warnings to clang
34116         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
34117         Avoid casts from looser to stricter-aligned pointers.
34119         memchr2: port --enable-gcc-warnings to clang
34120         * lib/memchr2.c (memchr2):
34121         Avoid casts from looser to stricter-aligned pointers.
34123         mbsstr: port --enable-gcc-warnings to clang
34124         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
34125         Avoid casts from looser to stricter-aligned pointers.
34127         malloca: port --enable-gcc-warnings to clang
34128         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
34129         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
34131         inttostr: port --enable-gcc-warnings to clang
34132         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
34134         warnings: port to clang
34135         Problem reported by Daniel P. Berrange via Eric Blake in
34136         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
34137         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
34138         (gl_WARN_ADD): Use it.
34140 2013-05-11  Jim Meyering  <meyering@fb.com>
34142         quotearg: do not read beyond end of buffer
34143         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
34144         end of an ARG for which no length was specified.  With an N-byte
34145         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
34146         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
34147         via coreutils' misc/sort-debug-keys.sh test and detected by running
34148         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
34149         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
34150         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
34151         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
34152         characters correctly."
34154 2013-05-11  Daiki Ueno  <ueno@gnu.org>
34156         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
34157         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
34158         compilation target is Mac OS X 10.6.
34159         Problem reported by parafin and Andoni Morales in
34160         <http://savannah.gnu.org/bugs/?37844> and
34161         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
34163 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
34165         mkdir-p: remove assumptions about umask and mode
34166         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
34167         umask is 0, or that MODE is a subset of MODE_BITS.
34169 2013-05-10  Eric Blake  <eblake@redhat.com>
34171         maint.mk: catch more abuse of HAVE_DECL in syntax-check
34172         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
34174 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
34176         deps: require Automake >= 1.9.6 in generated Makefile fragments
34178         That is the same minimal version required in the DEPENDENCIES file.
34179         Moreover, the old code generated a requirement of Automake >= 1.5,
34180         and that is an insanely outdated version.
34182         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
34183         * tests/havelib/rpathlx/Makefile.am: Likewise.
34184         * tests/havelib/rpathly/Makefile.am: Likewise.
34185         * tests/havelib/rpathlyx/Makefile.am: Likewise.
34186         * tests/havelib/rpathlz/Makefile.am: Likewise.
34187         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
34188         * tests/havelib/rpathx/Makefile.am: Likewise.
34189         * tests/havelib/rpathy/Makefile.am: Likewise.
34190         * tests/havelib/rpathz/Makefile.am: Likewise.
34192 2013-05-08  Eric Blake  <eblake@redhat.com>
34194         bootstrap: AC_INIT may have more than four parameters
34195         * build-aux/bootstrap (extract_package_name): Correctly extract
34196         non-empty tarname field.  Avoid range in regex.
34197         Based on a report by Sami Kerola <kerolasa@iki.fi>.
34199 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
34201         qacl: port to MS-Windows port of GNU Emacs
34202         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
34203         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
34204         port of GNU Emacs.  Problem reported by Eli Zaretskii in
34205         <http://bugs.gnu.org/14295#14>.
34207 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
34209         acl: include quote.h
34210         * lib/copy-acl.c: Include quote.h.
34211         * lib/set-acl.c: Likewise.
34213 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
34215         fchownat, renameat, unlinkat: update statat dependencies
34216         These modules use statat and lstatat, not fstatat; so depend on
34217         the statat module, which was split out recently from fstatat.
34218         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
34219         * modules/renameat: Likewise.  Also delete fstat.
34220         URL: http://bugs.gentoo.org/468790
34222 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
34224         Assume gnulib is checked out from Git, not CVS
34226         In fact, access to the gnulib repository through CVS has been
34227         disabled, or more precisely, got broken and was never restored; see:
34228         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
34230         Note that support for CVS is not removed completely and unthinkingly
34231         by this change: only support for CVS checkouts of gnulib itself is
34232         removed.  For example, the 'bootstrap' script still cater to .cvsingore
34233         files and CVS directories, for the benefit of those poor gnulib clients
34234         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
34236         * gnulib-tool: Simplify accordingly.
34237         * posix-modules: Likewise.
34238         * MODULES.html.sh: Likewise.
34239         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
34240         repository.
34241         * doc/gnulib-intro.texi: Likewise.
34242         * doc/gnulib-readme.texi: Likewise.
34243         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
34244         sample '.gitignore' file rather than a sample '.cvsignore'.
34245         * NEWS: Update.
34246         * m4/extensions.m4: While at it, remove a comment mistakenly referring
34247         to "CVS Autoconf" rather than "git Autoconf".
34249 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
34251         utimensat-tests, etc.: try to fix some races
34252         Problem reported by Bernhard Voelker in
34253         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
34254         I don't know whether this patch fixes that race condition, but it
34255         fixes *some* race conditions, so it should be a win.
34256         * modules/chown-tests (Depends-on):
34257         * modules/fchownat-tests (Depends-on):
34258         * modules/fdutimensat-tests (Depends-on):
34259         * modules/futimens-tests (Depends-on):
34260         * modules/lchown-tests (Depends-on):
34261         * modules/stat-time-tests (Depends-on):
34262         * modules/utimens-tests (Depends-on):
34263         * modules/utimensat-tests (Depends-on):
34264         Depend on nanosleep, not usleep.
34265         * modules/chown-tests (test_chown_LDADD):
34266         * modules/lchown-tests (test_lchown_LDADD):
34267         * modules/stat-time-tests (test_stat_time_LDADD):
34268         New macro.
34269         * modules/fchownat-tests (test_fchownat_LDADD):
34270         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
34271         * modules/futimens-tests (test_futimens_LDADD):
34272         * modules/utimens-tests (test_utimens_LDADD):
34273         * modules/utimensat-tests (test_utimensat_LDADD):
34274         Add $(LIB_NANOSLEEP).
34275         * modules/stat-time-tests (Files): Add tests/nap.h.
34276         * tests/nap.h: Include <limits.h>, for INT_MAX.
34277         (lt_mtime): Remove.
34278         (diff_timespec): New function.
34279         (get_stat): Rename from get_mtime.  All callers changed.
34280         (nap_works): Determine the needed delay by inspecting the
34281         file system's timestamp jumps; this should be more reliable.
34282         Look at both mtime and ctime, and take the maximum of the two jumps.
34283         (nap_works, guess_delay):
34284         Return a nanosecond count, not a microsecond count.
34285         All callers changed.
34286         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
34287         failure.
34288         (nap): Multiply the guess by 1.125, to accommodate the case where
34289         the file system's clock is a bit slower than nanosleep's clock.
34290         * tests/test-stat-time.c (BASE): New macro.
34291         Include nap.h.
34292         (nap): Remove; nap.h now defines this.  This removes a duplicate
34293         implementation of 'nap'.
34295         utimens, utimensat: work around Solaris UTIME_OMIT bug
34296         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
34297         Linux kernel 2.6.32 does.  Work around it in the same way.
34298         * doc/posix-functions/futimens.texi (futimens):
34299         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
34300         * lib/utimens.c (fdutimens, lutimens):
34301         * lib/utimensat.c (rpl_utimensat): Work around the bug.
34303         gettext: now it's your responsibility to add -I$(top_builddir)/intl
34304         Formerly, it was your responsibility to do this for all Makefile.ams
34305         other than Gnulib's.  Now it's your responsibility to do it for
34306         Gnulib's Makefile.am, too.
34307         * NEWS: Document this.
34308         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
34310         acl: include errno.h to get errno
34311         Reported by Daiki Ueno in
34312         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
34313         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
34315 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
34317         tests: don't assume getdtablesize () <= 10000000
34318         * modules/cloexec-tests:
34319         * modules/dup2-tests:
34320         * modules/dup3-tests:
34321         * modules/nonblocking-tests:
34322         * modules/posix_spawn_file_actions_addclose-tests:
34323         * modules/posix_spawn_file_actions_adddup2-tests:
34324         * modules/posix_spawn_file_actions_addopen-tests:
34325         * modules/unistd-safer-tests:
34326         Depend on the getdtablesize module.
34327         * tests/test-cloexec.c:
34328         * tests/test-dup-safer.c:
34329         * tests/test-dup2.c:
34330         * tests/test-dup3.c:
34331         * tests/test-fcntl.c:
34332         * tests/test-nonblocking.c:
34333         * tests/test-posix_spawn_file_actions_addclose.c:
34334         * tests/test-posix_spawn_file_actions_adddup2.c:
34335         * tests/test-posix_spawn_file_actions_addopen.c:
34336         Don't assume getdtablesize () <= 10000000.
34338 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
34340         extern-inline: work around bug in Sun c99
34341         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
34342         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
34344 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
34346         qacl: new module, broken out from the acl module
34347         This is for GNU Emacs, which wants the acl functions but does
34348         not want 'error' invoked when they fail.
34349         * lib/acl-internal.h: Do not include error.h, quote.h.
34350         (ENOSYS, ENOTSUP): Remove; no longer needed.
34351         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
34352         * lib/acl.h: Include <stdbool.h>.
34353         (acl_errno_valid): New function.
34354         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
34355         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
34356         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
34357         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
34358         (ACL_INTERNAL_INLINE): Remove; no longer needed.
34359         * lib/file-has-acl.c (file_has_acl):
34360         * lib/qcopy-acl.c (qcopy_acl):
34361         * lib/qset-acl.c (qset_acl):
34362         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
34363         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
34364         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
34365         lib/file-has-acl.c, m4/acl.m4 to qacl module.
34366         Add lib/set-acl.c.
34367         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
34368         Add qacl.
34369         (configure.ac): Move gl_FUNC_ACL to qacl module.
34370         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
34371         Rename set-mode-acl.c to set-acl.c.
34372         * lib/acl-errno-valid.c: New file.
34373         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
34374         copy_acl function remains in copy-acl.c.
34375         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
34376         (_): Remove; not needed.
34377         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
34378         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
34379         * modules/qacl: New file, moved from the old modules/acl.
34380         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
34381         Remove set-mode-acl.c, copy-acl.c.
34382         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
34384         alignof, intprops, malloca: port better to IBM's C compiler
34385         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
34386         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
34387         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
34389 2013-04-25  Daiki Ueno  <ueno@gnu.org>
34391         wctype-h: fix gettext link error on mingw
34392         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
34393         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
34394         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
34395         rpl_towupper and rpl_towupper.
34397 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
34399         regex-tests, regex: allow glibc re_search behavior
34400         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
34401         re_search input data to make the multi-character collating element
34402         in it clearly visible, and treat re_search return code 0 as valid.
34403         * m4/regex.m4 (gl_REGEX): Likewise.
34405 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
34407         stdalign: doc fix
34408         * doc/posix-headers/stdalign.texi (stdalign.h):
34409         Gnulib doesn't support '_Alignof expr'.
34411 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
34413         stdalign: port to stricter ISO C11
34414         ISO C11 says that _Alignof's operand must be a parenthesized type.
34415         Problem reported by Eli Zaretskii in
34416         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
34417         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
34418         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
34420 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
34422         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
34423         Problem reported by Marco Atzeri in
34424         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
34425         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
34426         Simply delegate to the system <sys/select.h> in this case too.
34427         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
34428         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
34429         be needed on Solaris either.
34430         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
34431         Simply delegate to the system <sys/time.h> in this case.
34433 2013-03-19  Karl Berry  <karl@gnu.org>
34435         * build-aux/gnupload: check for erroneous (with gnupload) use of
34436         ftp-upload.gnu.org, tweak help.
34438 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
34440         copy-file, rpmatch: fix problems found by cppcheck
34441         Reported by Arno Onken in
34442         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
34443         * lib/rpmatch.c (try): Fix memory leak.
34444         * lib/copy-file.c: Include "ignore-value.h".
34445         (qcopy_file_preserving): Ignore chown value.
34446         * modules/copy-file (Depends-on): Add ignore-value.
34448 2013-01-27  Jim Meyering  <jim@meyering.net>
34450         prefix-gnulib-mk: give better diagnostics
34451         * build-aux/prefix-gnulib-mk: Don't just "die".
34452         Give better diagnostics upon failure.
34454 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
34456         putenv: port to Solaris 10
34457         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
34458         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
34459         is not what is wanted here.
34460         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
34461         declaration, not for its existence.
34463 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
34465         mktime: fix configure typo
34466         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
34468 2013-03-12  Eric Blake  <eblake@redhat.com>
34470         regex-tests: skip UTF-8 test on mingw
34471         * modules/regex-tests (Depends-on): Add localcharset.
34472         * tests/test-regex.c (main): Use it to skip test on mingw.
34474 2013-03-11  Eric Blake  <eblake@redhat.com>
34476         tests: make it easier to bypass alarm time in debugger
34477         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
34478         * tests/test-memmem.c (main): Likewise.
34479         * tests/test-passfd.c (main): Likewise.
34480         * tests/test-ptsname.c (main): Likewise.
34481         * tests/test-ptsname_r.c (main): Likewise.
34482         * tests/test-strcasestr.c (main): Likewise.
34483         * tests/test-strstr.c (main): Likewise.
34485         regex: port to mingw's recent addition of undeclared alarm
34486         * doc/posix-functions/alarm.texi (alarm): Document that alarm
34487         exists but still doesn't work in newer mingw.
34488         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
34489         not existence.  Ensure SIGALRM is not trapped.
34490         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
34491         * m4/regex.m4 (gl_REGEX): Likewise.
34492         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
34493         * tests/test-regex.c (main): Use correct probe for alarm.
34495         putenv: avoid compilation warning on mingw
34496         * lib/putenv.c (_unsetenv): Protect variable declaration.
34497         (putenv): Fix indentation.
34499 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
34501         unistd: don't prevent Tru64 Unix from using gnulib strtod.
34502         * lib/unistd.in.h: be careful not to include un-needed system
34503         stdlib.h from here, because that prevents gnulib stdlib.h from
34504         defining rpl_strtod correctly.
34506 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
34508         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
34509         changesets, but for the 'precision 0' test.
34510         * tests/test-vasprintf-posix.c (test_function): Don't insist on
34511         round-to-even, since POSIX says rounding is implementation-defined
34512         and OS X 10.8.2 rounds 1.51 to 1 here.
34514         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
34515         changeset.
34516         * tests/test-vasprintf-posix.c (test_function): Don't insist on
34517         round-to-even, since POSIX says rounding is implementation-defined
34518         and OS X 10.8.2 rounds 1.5 to 1 here.
34520 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
34522         vasnprintf-posix-tests: allow rounding 1.5 to 1
34523         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
34524         round-to-even, since POSIX says rounding is implementation-defined
34525         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
34526         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
34528         bootstrap: port to FreeBSD
34529         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
34530         that treat '--' differently.  Reported by Mats Erik Andersson in
34531         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
34533 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
34535         regex: rename remaining __attribute calls to __attribute__.
34536         2012-02-25 changed definition of __attribute, but left some uses
34537         unchanged, preventing compilation of regex module on most non-gcc
34538         environments.
34539         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
34540         (lookup_collation_sequence_value, build_range_exp)
34541         (build_collating_symbol): Set attributes with newly renamed
34542         __attribute__ decorator.
34543         * lib/regex_internal.c (re_string_peek_byte_case)
34544         (re_node_set_compare, re_node_set_contains): Likewise.
34545         * lib/regexec.c (acquire_init_state_context): Likewise.
34547 2013-03-06  Bruno Haible  <bruno@clisp.org>
34549         execute: Revert last change, but use a different condition.
34550         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
34551         on Windows.
34553 2013-03-05  Eric Blake  <eblake@redhat.com>
34555         execute: drop dead code
34556         * lib/execute.c (nonintr_close, nonintr_open): Delete.
34558 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
34560         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
34561         * m4/non-recursive-gnulib-prefix-hack.m4
34562         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
34563         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
34564         <http://bugs.gnu.org/10305#237>.
34566 2013-03-04  Eric Blake  <eblake@redhat.com>
34568         test-getsockopt: avoid compiler warning
34569         * tests/test-getsockopt.c (includes): Ensure close is declared.
34571 2013-03-02  Bruno Haible  <bruno@clisp.org>
34573         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
34574         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
34576 2013-03-02  Bruno Haible  <bruno@clisp.org>
34578         gettext: Update to version 0.18.2.
34579         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
34580         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
34581                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
34583 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
34585         regex: merge patches from libc
34587         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
34588         * lib/regex_internal.h (__attribute__): Rename from __attribute.
34589         All uses changed.
34590         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
34591         (re_string_wchar_at, re_string_elem_size_at):
34592         Mark function as possibly unused.
34594         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
34595         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
34596         elements compare against the byte sequence of it, not its name.
34598 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
34600         putenv: port better to native Windows
34601         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
34602         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
34603         (_unsetenv): Use _putenv if available.
34604         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
34605         a bit less likely to cause damage.
34606         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
34607         Fix the wrong value with SetEnvironmentVariable.
34608         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
34609         code better.
34611 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
34613         regex: ignore old-style-definition warnings
34614         * lib/regex.c: Add pragma to ignore these warnings.
34615         Problem reported for GNU tar by Pavel Raiskup.
34617 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
34619         getcwd: support coreutils better
34620         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
34621         but this might not be correct in coreutils, which disables
34622         the raw decl checks.  Problem reported by Nagendra in
34623         <http://bugs.gnu.org/10305#192>.
34624         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
34625         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
34626         Test the getcwd function, not any macro, since getcwd.c wants the
34627         function.
34628         * m4/getcwd.m4 (gl_FUNC_GETCWD):
34629         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
34630         compile, as might happen if there's a macro but no function.
34632         strtod: support coreutils better
34633         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
34634         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
34635         disables the raw decl checks.  This assumes there is an underlying
34636         strtod, but that's a safe assumption these days.
34637         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
34639         mountlist: port to HP NonStop
34640         Reported by Joachim Schmitz in
34641         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
34642         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
34643         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
34645 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
34647         extern-inline: avoid compilation error with HP-UX cc
34648         Reported by Richard Lloyd in
34649         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
34650         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
34651         Suppress extern inline with HP-UX cc.  This should be safe,
34652         though it may hurt performance.  Perhaps someone with some HP-UX
34653         experience can come up with a higher-performance fix.
34655 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
34657         putenv: fix heap corruption with mixed putenv/_putenv
34658         Problem reported by Michael Goffioul in
34659         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
34660         * lib/putenv.c (putenv) [HAVE__PUTENV]:
34661         Rely on _putenv to allocate the new environment.
34662         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
34663         * modules/putenv (configure.ac): Use it.
34665 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
34667         unsetenv etc.: port to Solaris 11 + GNU Emacs
34668         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
34669         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
34670         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
34671         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
34672         idea but is too painful to fix right now), and without this gnulib
34673         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
34674         compiling unsetenv.c on Solaris 11.  Fix the problem for
34675         unsetenv.c, and fix other similar occurrences.
34677 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
34679         secure_getenv: fix C++ declaration typo
34680         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
34681         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
34682         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
34684 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
34686         careadlinkat: stop exporting careadlinkatcwd
34687         Only Emacs used it directly, and Emacs no longer needs it.
34688         * NEWS: Document this simplification.
34689         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
34690         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
34691         for readlink.
34692         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
34693         Don't include stdlib.h; no longer needed.
34694         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
34695         * lib/relocwrapper.c: Adjust comment to match new dependencies.
34696         * modules/areadlink (Depends-on): Add readlink.
34697         (Maintainer): Add self.
34698         * modules/careadlinkat (Depends-on): Remove readlink.
34700         extensions: port better to HP-UX
34701         This is merged from git Autoconf.
34702         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
34703         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
34704         so that it's compatible with the value used when compiling.
34706         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
34707         Problem reported by Mats Erik Andersson in
34708         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
34709         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
34710         openpty function exists, not merely when we intend to replace it.
34711         This corrects the 2013-01-31 patch, which mistakenly defined
34712         HAVE_OPENPTY even on hosts that lacked it.
34714 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
34716         secure_getenv: fix include typo
34717         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
34719         secure_getenv: port better to FreeBSD and Solaris
34720         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
34721         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
34722         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
34723         This works better on BSDish platforms.
34724         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
34725         Test for issetugid if __secure_getenv is missing.
34727 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
34729         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
34730         Some of these changes are merged in from git Autoconf.
34731         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
34732         When deciding whether to define _XOPEN_SOURCE, inspect the
34733         preprocessor macro __hpux instead of the more-heavyweight
34734         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
34735         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
34736         as the key for __EXTENSIONS__.
34738         unistd: avoid namespace pollution on non-glibc systems
34739         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
34740         This avoids namespace pollution on non-glibc systems, by causing
34741         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
34742         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
34743         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
34745 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
34747         tmpdir: use secure_getenv
34748         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
34749         Define to secure_getenv, not getenv.
34750         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
34751         as that's now secure_getenv's job.
34752         * modules/tmpdir (Depends-on): Add secure_getenv.
34754         tempname: use secure_getenv
34755         * lib/tempname.c (__secure_getenv) [!_LIBC]:
34756         Define to secure_getenv, not getenv.
34757         * modules/tempname (Depends-on):
34758         Add secure_getenv.
34760         secure_getenv: new module
34761         * MODULES.html.sh (Extra functions based on ANSI C 89):
34762         Add secure_getenv.
34763         * doc/glibc-functions/secure_getenv.texi: New file.
34764         * doc/gnulib.texi: Include it.
34765         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
34766         New files.
34767         * lib/stdlib.in.h (secure_getenv): New decl.
34768         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
34769         * modules/stdlib (stdlib.h):
34770         Add secure_getenv checks.
34772 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
34774         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
34775         Reported for OS X 10.8.2 by Assaf Gordon in
34776         <http://bugs.gnu.org/13516>.
34777         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
34778         !HAVE_OPENAT && !HAVE_FDOPENDIR.
34779         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
34780         so that they can be kept in sync more easily.  Avoid PATH_MAX
34781         test on the Hurd.  Sync from test-getcwd.c for errno tests after
34782         mkdir or chdir failure.
34783         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
34784         lib/getcwd.c.
34785         (test_abort_bug): Do not test for the deep directory bug unless we
34786         have openat support.  Avoid PATH_MAX test on the Hurd.
34788         regex-tests, regex: fix bug: memset undeclared
34789         * tests/test-regex.c: Don't include regex.h twice.  Include
34790         string.h, to declare memset.  Christensen's report also mentioned
34791         this issue.
34792         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
34793         test-regex.c, to avoid future problems like this.  Remove
34794         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
34795         twice.
34797         regex-tests: fix link errors on older Solaris
34798         These need to link with @LIBINTL@ to get libintl_gettext.
34799         Problem reported by Tom G. Christensen in
34800         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
34801         * modules/regex-tests (test_regex_LDADD): New macro.
34803 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
34805         regex-tests: new module
34806         * modules/regex-tests, tests/test-regex.c: New files.
34808         regex: fix off-by-one error in configure test
34809         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
34811 2013-01-31  Eric Blake  <eblake@redhat.com>
34813         regex: avoid infinite configure test
34814         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
34816 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
34818         openpty: fix bug where HAVE_OPENPTY wasn't defined
34819         See the thread starting at:
34820         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
34821         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
34822         openpty function exists, not merely when we intend to replace it.
34824 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
34826         sys_time: port to Solaris 2.6
34827         There is a circularity problem on Solaris 2.6, where <time.h> includes
34828         <sys/time.h> for struct timespec.  The include nesting is gnulib
34829         <time.h>, system <time.h>, gnulib <sys/time.h>, system
34830         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
34831         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
34832         <sys/siginfo.h>; the last, innermost file needs struct
34833         timestruc_t, which is defined in <sys/time.h>, which has not been
34834         fully parsed.  Problem reported by Tom G. Christensen in
34835         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
34836         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
34837         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
34838         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
34839         uses split double-inclusion guards.
34841 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
34843         regex: test for buffer overrun
34844         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
34845         for the just-fixed regex bug.
34847 2013-01-29  Andreas Schwab  <schwab@suse.de>
34849         regex: fix buffer overrun in regexp matcher [BZ #15078]
34850         * lib/regexec.c (extend_buffers): Add parameter min_len.
34851         (check_matching): Pass minimum needed length.
34852         (clean_state_log_if_needed): Likewise.
34853         (get_subexp): Likewise.
34855 2013-01-28  Pádraig Brady  <P@draigBrady.com>
34857         mountlist: don't consider "devtmpfs" as dummy
34858         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
34859         as there is storage associcated with it.
34861 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
34863         futimens-tests, utimens-tests: Depend on gettext.
34864         This works around a problem introduced in my 2013-01-12 patch,
34865         which added @LIBINTL@ to these modules.
34866         * modules/futimens-tests (Depends-on):
34867         * modules/utimens-tests (Depends-on): Add gettext.
34869 2013-01-26  Eric Blake  <eblake@redhat.com>
34871         test-getpeername: fix typo
34872         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
34874 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
34876         bootstrap: remove the need for a sorted .gitignore file
34877         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
34878         rename to insert_if_absent(), so that we don't need or generate
34879         a sorted .gitignore file.  We do require a .gitignore with no
34880         existing duplicate entries and enforce that.
34881         (sort_patterns): Remove this function as we now use the simpler
34882         technigue of inserting blacklist entries at the top of the file,
34883         assuming gnulib won't be inserting !whitelist entries.
34885 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
34887         readlinkat: don't depend on gl_FUNC_OPENAT
34888         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
34889         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
34890         renameat.m4, symlinkat.m4; but one thing at a time.
34892         statat: new module, split out from fstatat
34893         GNU Emacs needs the POSIX-specified fstatat, but not the
34894         gnulib-specified statat and lstat.  Split the latter two into a
34895         new module 'statat'.
34896         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
34897         * lib/openat.h, lib/statat.c (STATAT_INLINE):
34898         Rename from FSTATAT_INLINE. All uses changed.
34899         * modules/fstatat (Files): Remove lib/statat.c.
34900         (gl_MODULE_INDICATOR([fstatat])): Remove.
34901         (lib_SOURCES): Remove.
34902         (Maintainer): Add self.
34903         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
34904         * tests/test-fstatat.c (BASE): Don't define if already defined.
34905         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
34907 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
34909         tests: don't assume fd 99 is closed
34910         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
34911         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
34912         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
34913         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
34914         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
34915         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
34916         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
34917         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
34918         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
34919         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
34920         * tests/test-fwrite.c, tests/test-getpeername.c:
34921         * tests/test-getsockname.c, tests/test-getsockopt.c:
34922         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
34923         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
34924         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
34925         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
34926         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
34927         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
34928         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
34929         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
34930         * tests/test-unlinkat.c, tests/test-unlockpt.c:
34931         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
34932         Close file descriptor 99, instead of assuming it's already closed.
34934 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
34936         stpncpy: port to OS X 10.8
34937         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
34938         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
34940 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
34942         unistd: port to recent mingw
34943         * lib/unistd.in.h: Remove special invocation convention for mingw,
34944         which breaks for the latest mingw version.  See John W. Eaton in
34945         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
34947         largefile: port better to Mac OS X 10.5
34948         This patch is backported from Autoconf git.
34949         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
34950         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
34951         with ino_t size being different for configuration time versus
34952         build/run time.  Problem reported by PHO in
34953         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
34955 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
34957         doc: clarify -Werror
34958         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
34959         clarify that it's intended for developers, not for ordinary builds,
34960         and mention --enable-gcc-warnings as one possible use.
34962 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
34964         stdint: fix build with Android's Bionic fox x86
34965         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
34966         was already included as _SSIZE_T_DEFINED_ might also be defined
34967         in include/machine/_types.h, which is included by stdio.h
34969 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
34971         net_if-tests: port to Solaris 7 + GCC 3.4.6
34972         Problem reported by Tom G. Christensen in
34973         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
34974         * tests/test-net_if.c (ni): Move to next the code that uses it,
34975         so that it's declared only if needed.
34977 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
34979         net_if-tests: port to older Solaris
34980         Problem reported by Tom G. Christensen in
34981         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
34982         * modules/net_if-tests (NET_IF_LIB): New substitution.
34983         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
34984         (HAVE_IF_NAMEINDEX): New C macro.
34985         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
34987         system-quote-tests: port to older Solaris
34988         Problem reported by Tom G. Christensen in
34989         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
34990         * tests/test-system-quote-child.c (fopen, fread): Undef.
34992         c-xvasprintf etc.: fix link errors on older Solaris
34993         These need to link with @LIBINTL@ to get libintl_gettext.
34994         Problem reported by Tom G. Christensen in
34995         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
34996         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
34997         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
34998         * modules/futimens-tests (test_futimens_LDADD):
34999         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
35001 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
35003         locale: port to Solaris 2.6 and 7 + GNU gettext
35004         * lib/locale.in.h: Just include_next <locale.h> when
35005         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
35006         when combining the localename module with GNU gettext 0.18.2.
35007         Problem reported by Tom G. Christensen in
35008         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
35010 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
35012         stdlib: port to Solaris 2.6
35013         Also, the code worked on Solaris 7 through 9 only by accident.
35014         Problem reported by Tom G. Christensen in
35015         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
35016         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
35017         simply include the system stdlib.h.
35018         * lib/getopt.in.h (__need_system_stdlib_h):
35019         * lib/pthread.in.h (__need_system_stdlib_h):
35020         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
35021         Define when including <stdlib.h>, to avoid problems at least for
35022         the pthread case on Solaris 2.6 and 7.  These .h files can get by
35023         with the system stdlib.h.
35025 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
35027         doc: update main copyright year
35028         * doc/gnulib.texi: Update copyright date.
35030         doc: improve ISO 8601 discussion
35031         * doc/parse-datetime.texi (Combined date and time of day items):
35032         Specify more carefully what formats are supported and what is
35033         done with excess precision.
35035 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
35037         doc: avoid small caps
35038         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
35039         they're more trouble than they're worth.  Suggested by Karl Berry
35040         in <http://bugs.gnu.org/13360>.
35042         regex: conform to strict C
35043         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
35044         From Aharon Robbins.
35046         gnulib-tool: fix incompatibility with autopoint 0.18.2
35047         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
35048         Problem reported by Tom G. Christensen in
35049         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
35051 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
35053         fprintftime: bring back and reword fwrite comment
35054         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
35056         stdio: remove now-unnecessary stdio.c
35057         Since stdio.in.h no longer uses inline functions, we no longer
35058         need to compile the extern versions.
35059         * lib/stdio.c: Remove.
35060         * modules/stdio (Files): Remove lib/stdio.c.
35061         (lib_SOURCES): Remove.
35063         unicodeio: depend on stdio, not ignore-value
35064         * lib/unicodeio.c: Do not include ignore-value.h.
35065         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
35066         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
35068         fprintftime: depend on stdio, not ignore-value
35069         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
35070         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
35071         since the stdio module arranges to silence that warning now.
35072         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
35074 2012-10-04  Simon Josefsson  <simon@josefsson.org>
35076         stdint-tests: Fix expanded-before-required-warning.
35077         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
35079 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
35081         fwrite: silence __wur only for older glibc versions
35082         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
35083         This will help us remove this workaround some time in the far future.
35085 2013-01-03  Eric Blake  <eblake@redhat.com>
35087         fwrite: silence __wur without using inline
35088         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
35089         just gcc, and in a way that avoids inline issues.
35090         * modules/stdio (Depends-on): Drop extern-inline.
35092 2013-01-03  Jim Meyering  <jim@meyering.net>
35094         update-copyright: avoid copyright notice date corruption
35095         Given a sequence of copyright year numbers in which the final
35096         one was a two-digit number that happened to be a substring of
35097         a preceding four-digit year number, we would mistakenly update
35098         the substring (from two- to four-digit) rather than the two-digit
35099         number at the end, which, combined with the addition of the current
35100         4-digit year number would yield two 5-digit year numbers, e.g.,
35101         here, it would convert the first "99" to "1999, 2013" rather than
35102         the final one:
35103           1991, 99
35104           11999, 20131, 1999
35105         * build-aux/update-copyright: Tighten a regexp.
35106         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
35107         Reported by Joseph Myers in
35108         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
35110 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
35112         regex: omit needless signed-pointer casts
35113         * lib/regcomp.c (build_charclass, build_charclass_op):
35114         Use char *, not unsigned char *, for class name and extra.
35115         The char values are always nonnegative so there's no need to
35116         insist on unsigned char * here, and using char * removes the need
35117         for casts.  Reported by Aharon Robbins in
35118         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35120         regex: support Gawk, which never uses alloca
35121         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
35122         Do not include in this case.  Gawk doesn't supply a substitute
35123         alloca.h and doesn't need one.
35125         regex: port __libc_lock_define usage to C89
35126         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
35127         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
35128         does not conform to C89, as it has an empty macro argument.
35129         Reported by Aharon Robbins in
35130         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35132 2013-01-01  Eric Blake  <eblake@redhat.com>
35134         maint: update all copyright year number ranges
35135         Run "make update-copyright".
35137         version-etc: bump copyright year reported in --version
35138         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
35140 2012-12-31  Eric Blake  <eblake@redhat.com>
35142         sigprocmask-tests: skip test if pid is unexpectedly large
35143         * tests/test-sigprocmask.c (main): Add range check.
35145         git-version-gen: avoid test -z portability glitch
35146         * build-aux/git-version-gen: Prefer portable test spelling, since
35147         git-version-gen is run on more than just developer machines.
35149 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
35151         git-version-gen: add --fallback option to use if git is not present
35152         * build-aux/git-version-gen: Add support for the new option --fallback,
35153         which comes into play when there is no $tarball_version_file and
35154         git is not working.
35155         (scriptversion): Update.
35157         maint.mk: handle missing git with more grace
35158         * top/maint.mk (no-submodule-changes, public-submodule-commit):
35159         Quietly proceed if git is not present.
35161 2012-12-31  Eric Blake  <eblake@redhat.com>
35163         dup2: work around cygwin bug
35164         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
35165         * lib/dup2.c (rpl_dup2): Work around it.
35166         * doc/posix-functions/dup2.texi (dup2): Document it.
35168 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
35170         regex: remove unnecessary dependency on localcharset.h
35171         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
35172         hasn't been needed for years.
35173         * modules/regex (Depends-on): Remove localcharset.
35175         regex: revert single-byte change
35176         * lib/regexec.c (check_node_accept_bytes): Revert previous change
35177         to this function.  This was alredy fixed in a different way, at
35178         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
35179         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
35180         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
35182         regex: simplify based on Gawk version
35183         * lib/regex_internal.c (re_dfa_add_node): Simplify.
35184         Reported by Aharon Robbins in
35185         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35187 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
35189         regex: check that pattern char is single-byte
35190         Reported by Aharon Robbins in
35191         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35192         * lib/regexec.c (check_node_accept_bytes):
35193         Return 0 if the pattern string has a multibyte character here.
35195         regex: implement rational ranges
35196         Reported by Aharon Robbins in
35197         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35198         * lib/regcomp.c (build_range_exp) [!_LIBC]:
35199         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
35200         Implement rational ranges.
35202         regex: avoid redefining __wctype
35203         Reported by Aharon Robbins in
35204         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35205         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
35206         #undef before defining.
35208         regex: port to hosts where malloc (0) == NULL
35209         Reported by Aharon Robbins in
35210         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35211         * lib/regex_internal.c (re_node_set_alloc):
35212         Don't assume that malloc (0) yields nonnull.
35213         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
35214         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
35215         * modules/regex (Files): Add m4/eealloc.m4.
35217         regex: port to C89
35218         Reported by Aharon Robbins in
35219         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
35220         * lib/regcomp.c (init_word_char): Declaration before statement.
35222         regex: merge glibc changes
35223         Also, copy the license wording from glibc.  This simplifies
35224         merging changes.  gnulib-tool will change the wording to GPL as
35225         appropriate, when importing it to other packages.  The only
35226         glibc change made since the last merge, which needs merging, is:
35227         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
35228         * lib/regex_internal.h (gettext): Remove use of INTUSE.
35230         * users.txt: Add Emacs.
35232         doc: omit mention of version when not needed
35233         * doc/gnulib-intro.texi (Portability and Application Code):
35234         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
35235         Don't mention particular dates or versions when not necessary, so
35236         that the documentation won't go out of date so quickly.
35238         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
35240 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
35242         bootstrap: pass --force to autoreconf.
35243         * build-aux/bootstrap (AUTORECONFFLAGS): New.
35244         Add "--force" so that Automake's ylwrap and other such tools
35245         be updated at each bootstrap invocation.
35246         Use it.
35248 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
35250         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
35251         The earlier patch forgot to update one of the #if conditions, causing
35252         a problem on Debian testing i386 reported by Mats Erik Andersson
35253         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
35254         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
35255         (__argp_fmtstream_puts, argp_fmtstream_puts)
35256         (__argp_fmtstream_write, argp_fmtstream_write)
35257         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
35259         * doc/gnulib-readme.texi: Minor fixups.
35260         (Portability guidelines): Modernize URLs.  Remove some repetition.
35261         (Indent with spaces not TABs): Reword to avoid too-long lines.
35262         Remove some '@ifset standalone' stuff that isn't used.
35264         * doc/gnulib-readme.texi (Portability guidelines):
35265         ctype.h, not ctime.h.
35267         Correct name of POSIX.1-2001.
35268         * doc/posix-functions/fgetc.texi (fgetc):
35269         * doc/posix-functions/fgets.texi (fgets):
35270         * doc/posix-functions/fread.texi (fread):
35271         * doc/posix-functions/fscanf.texi (fscanf):
35272         * doc/posix-functions/getc.texi (getc):
35273         * doc/posix-functions/getchar.texi (getchar):
35274         * doc/posix-functions/scanf.texi (scanf):
35275         POSIX.1-2001, not POSIX-2001.
35277         doc: move README into manual
35278         * README: Move contents to new file doc/gnulib-readme.texi.
35279         Replace with a one-line summary.
35280         * doc/gnulib.texi (Brief Overview): New section,
35281         with old intro preface.  Include gnulib-readme.texi for contents.
35282         (Philosophy): Rename from "Introduction", since this
35283         section no longer introduces the rest.  Write a new preface.
35284         * doc/gnulib-readme.texi: New file, with the old contents of
35285         README texinfo-ized.  This way, the README info appears
35286         in the online and printed manual.
35288 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
35290         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
35291         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
35292         c_vasprintf() prototype.
35294 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
35296         c-vasprintf: Fix "empty declaration" warning reported by GCC.
35297         * lib/c-vasprintf.h: Remove stray semicolon.
35299 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
35301         gettext: avoid obsolete macro AM_PROG_MKDIR_P
35302         It is obsolete and is planned to be removed from Automake 1.14; see
35303         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
35304         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
35305         (installdirs-data, installdirs-data-yes):
35306         Use $(MKDIR_P), not $(mkdir_p).
35307         * m4/intl.m4 (AM_INTL_SUBDIR):
35308         * m4/po.m4 (AM_PO_SUBDIRS):
35309         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
35311 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
35313         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
35314         On this platform, we are not optimizing but we are using
35315         the substitute for extern inlines, so compile as if
35316         C99-style extern inline, or a substitute, is available.
35317         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
35318         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
35319         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
35320         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
35321         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
35322         Declare as ARGP_FS_EI, not as extern.
35323         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
35324         (__option_is_short, _option_is_end, __option_is_end)
35325         [!_LIBC && __USE_EXTERN_INLINES]:
35326         Declare as ARGP_EI, not as extern.
35328 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
35330         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
35331         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
35332         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
35333         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
35334         ...), as the latter is fatal with older Autoconfs.
35335         Problem reported and fix suggested by Eric Blake in thread starting at
35336         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
35338 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
35340         AC_PROG_MKDIR_P: don't workaround if not buggy
35341         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
35342         Define only for Autoconf versions before 2.62.
35343         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
35344         undocumented m4_PACKAGE_VERSION, for consistency with the
35345         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
35346         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
35347         was introduced in 2.62.
35349 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
35351         New 'c-*printf' modules for formatted output in C locale.
35353         New module 'c-vasnprintf'.
35354         * modules/c-vasnprintf: New file.
35355         * lib/c-vasnprintf.c: New file.
35356         * lib/c-vasnprintf.h: New file.
35358         New module 'c-snprintf'.
35359         * modules/c-snprintf: New file.
35360         * modules/c-snprintf-tests: New file.
35361         * lib/c-snprintf.c: New file.
35362         * lib/c-snprintf.h: New file.
35363         * tests/test-c-snprintf.c: New file.
35364         * tests/test-c-snprintf.sh: New file.
35366         New module 'c-vsnprintf'.
35367         * modules/c-vsnprintf: New file.
35368         * modules/c-vsnprintf-tests: New file.
35369         * lib/c-vsnprintf.c: New file.
35370         * lib/c-vsnprintf.h: New file.
35371         * tests/test-c-vsnprintf.c: New file.
35372         * tests/test-c-vsnprintf.sh: New file.
35374         New module 'c-vasprintf'.
35375         * modules/c-vasprintf: New file.
35376         * modules/c-vasprintf-tests: New file.
35377         * lib/c-asprintf.c: New file.
35378         * lib/c-vasprintf.c: New file.
35379         * lib/c-vasprintf.h: New file.
35380         * tests/test-c-vasprintf.c  +: New file.
35381         * tests/test-c-vasprintf.sh: New file.
35383         New module 'c-xvasprintf'.
35384         * modules/c-xvasprintf: New file.
35385         * modules/c-xvasprintf-tests: New file.
35386         * lib/c-xasprintf.c: New file.
35387         * lib/c-xvasprintf.c: New file.
35388         * lib/c-xvasprintf.h: New file.
35389         * tests/test-c-xvasprintf.c: New file.
35390         * tests/test-c-xvasprintf.sh: New file.
35392 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
35394         argp: better 'inline'
35395         Use extern-inline module to declare extern inline functions.
35396         This avoids some bogus warning diagnostics.  Problem discovered
35397         when modifying GNU tar to use the manywarnings module.
35398         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
35399         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
35400         Define based on extern-inline.
35401         * modules/argp (Depends-on): Add extern-inline.
35403 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
35405         filemode, sys_stat: Handle MPX files a la AIX.
35406         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
35407         * lib/sys_stat.in.h (S_ISMPX): New macro.
35408         * tests/test-sys_stat.c: Add tests for MPX files.
35410 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
35412         x-to-1: honor $PERL
35413         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
35414         a chance to use his preferred version of Perl.  This is typically
35415         required by Darwin users whose default /usr/bin/perl does not have all
35416         the libraries required by help2man, and who need to use their MacPorts
35417         installation of Perl instead.
35419 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
35421         gnu-web-doc-update: add all the new files, even in new directories
35422         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
35423         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
35424         Use it.
35425         (main): Don't use cvsutils to get the list of unknown files,
35426         just add all the existing files and directories.
35428 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
35430         gnu-web-doc-update: improve --help
35431         * build-aux/gnu-web-doc-update: Move comments into --help.
35433 2012-12-07  Eric Wong  <normalperson@yhbt.net>
35435         mountlist: recognize more "dummy" file systems
35436         * lib/mountlist.c (ME_DUMMY_0):
35437         Add these dummy FS names to the list:
35438         - "debugfs" virtual filesystem for kernel debugging
35439         - "devpts" PTY slave filesystem
35440         - "devtmpfs" device filesystem on top of tmpfs/ramfs
35441         - "fusectl" control filesystem for FUSE
35442         - "mqueue" enumerates POSIX message queues
35443         - "rpc_pipefs" kernel <-> userspace bridge for NFS
35444         - "sysfs" is for exporting kernel objects
35445         - "devfs" device filesystem for Linux 2.4 and FreeBSD
35447 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
35449         extern-inline: avoid incompatibility with Darwin Libc
35450         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
35451         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
35452         Problem reported by Akim Demaille in
35453         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
35455 2012-12-11  Simon Josefsson  <simon@josefsson.org>
35457         gnupload: Work with GnuPG using gpg-agent (for smartcards).
35458         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
35459         let it handle password prompting.
35461 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
35463         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
35464         * lib/canonicalize.c (canonicalize_filename_mode):
35465         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
35466         fetching the current directory.  Don't overrun the beginning of
35467         rpath if there's no slashes after the MS-Windows drive letter.
35469 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
35471         maint.mk: avoid extra forks
35472         * top/maint.mk (_cfg_mk): The GNU make manual documents that
35473         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
35474         So use that instead of "$(shell test -f FILE && echo FILE)".
35476 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
35478         vasnprintf: fix ASCII_ONLY typo
35479         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
35480         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
35481         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
35482         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
35483         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
35485 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
35487         list, oset, xlist, xoset: fix extern inline issue with C99
35488         This was introduced by my recent changes for 'inline'.
35489         Problem reported for gettext by Daiki Ueno in
35490         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
35491         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
35492         (gl_list_nx_create, gl_list_size, gl_list_node_value)
35493         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
35494         (gl_list_previous_node, gl_list_get_at)
35495         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
35496         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
35497         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
35498         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
35499         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
35500         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
35501         (gl_list_iterator_free, gl_sortedlist_search)
35502         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
35503         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
35504         (gl_sortedlist_remove):
35505         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
35506         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
35507         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
35508         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
35509         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
35510         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
35511         (gl_list_add_at, gl_sortedlist_add):
35512         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
35513         Wrap these extern decls inside "#if 0", because they are implemented
35514         as inline functions, and extern inline is not what's wanted here.
35515         It would simplify these .h files to remove the extern decls entirely,
35516         although a downside would be less-clear separation between
35517         specification and implementation.
35519 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
35521         sys_stat: no 'static inline'
35522         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
35523         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
35525         extern-inline: no 'static inline'
35526         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
35527         Do not require AC_C_INLINE.
35528         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
35529         'static inline', for older compilers.
35531         snippet/warn-on-use: no 'static inline'
35532         * build-aux/snippet/warn-on-use.h:
35533         Remove unnecessary 'inline' in comment.
35535         rbtree-list, rbtreehash-list: no 'static inline'
35536         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
35537         * lib/gl_anytree_list2.h (node_at):
35538         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
35539         (gl_oset_first, add_nodes_to_buckets):
35540         Now static, not static inline.
35542         regex: no 'static inline'
35543         * lib/regex_internal.c (calc_state_hash):
35544         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
35545         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
35546         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
35547         Now static, not static inline.
35548         (inline) [__GNUC__ < 3 && _LIBC]:
35549         Remove macro; no longer needed.
35551         xvasprintf: no 'static inline'
35552         * lib/xvasprintf.c (xstrcat):
35553         Now static, not static inline.
35554         * m4/xvasprintf.m4 (gl_XVASPRINTF):
35555         Do not require AC_C_INLINE.
35557         parse-datetime, parse-duration: no 'static inline'
35558         * lib/parse-datetime.y (to_uchar):
35559         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
35560         (scale_n_add):
35561         Now static, not static inline.
35562         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
35563         * modules/parse-duration (configure.ac):
35564         Do not require AC_C_INLINE.
35566         getaddrinfo: no 'static inline'
35567         * lib/getaddrinfo.c (validate_family):
35568         Now static, not static inline.
35569         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
35570         Do not require AC_C_INLINE.
35572         ftruncate, fts, lstat, openat, raise: no 'static inline'
35573         * lib/ftruncate.c (chsize_nothrow):
35574         * lib/fts.c (opendirat, diropen):
35575         * lib/lstat.c (orig_lstat):
35576         * lib/openat.c (orig_openat):
35577         * lib/raise.c (raise_nothrow):
35578         Now static, not static inline.
35579         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
35580         * m4/fts.m4 (gl_FUNC_FTS_CORE):
35581         * m4/lstat.m4 (gl_PREREQ_LSTAT):
35582         * m4/openat.m4 (gl_PREREQ_OPENAT):
35583         * m4/raise.m4 (gl_PREREQ_RAISE):
35584         Do not require AC_C_INLINE.
35586         fflush, stat: no 'static inline'
35587         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
35588         (clear_ungetc_buffer, disable_seek_optimization)
35589         (restore_seek_optimization, update_fpos_cache):
35590         * lib/stat.c (orig_stat):
35591         Now static, not static inline.
35592         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
35593         (update_fpos_cache):
35594         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
35595         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
35596         * m4/stat.m4 (gl_PREREQ_STAT):
35597         Do not require AC_C_INLINE.
35599         error, filevercmp: no 'static inline'
35600         * lib/error.c (is_open, flush_stdout):
35601         * lib/filevercmp.c (order):
35602         Now static, not static inline.
35603         * m4/error.m4 (gl_PREREQ_ERROR):
35604         * modules/filevercmp (configure.ac):
35605         Do not require AC_C_INLINE.
35607         dup, execute, fatal-signal, etc.: no 'static inline'
35608         * lib/dup.c (dup_nothrow):
35609         * lib/execute.c (nonintr_close, nonintr_open):
35610         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
35611         * lib/fopen.c (orig_fopen):
35612         * lib/freadseek.c (freadptrinc):
35613         * lib/freopen.c (orig_freopen):
35614         * lib/fstat.c (orig_fstat, fstat_nothrow):
35615         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
35616         (get_rusage_as_via_iterator):
35617         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
35618         * lib/getdtablesize.c (_setmaxstdio_nothrow):
35619         * lib/isatty.c (_isatty_nothrow):
35620         * lib/open.c (orig_open):
35621         * lib/read.c (read_nothrow):
35622         * lib/sigprocmask.c (signal_nothrow):
35623         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
35624         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
35625         * lib/wait-process.c (unregister_slave_subprocess):
35626         * lib/write.c (write_nothrow):
35627         Now static, not static inline.
35628         * lib/spawn-pipe.c (nonintr_open): Define only if
35629         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
35630         * m4/dup.m4 (gl_PREREQ_DUP):
35631         * m4/execute.m4 (gl_EXECUTE):
35632         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
35633         * m4/fopen.m4 (gl_PREREQ_FOPEN):
35634         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
35635         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
35636         * m4/fstat.m4 (gl_PREREQ_FSTAT):
35637         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
35638         * m4/isatty.m4 (gl_PREREQ_ISATTY):
35639         * m4/open.m4 (gl_PREREQ_OPEN):
35640         * m4/read.m4 (gl_PREREQ_READ):
35641         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
35642         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
35643         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
35644         * m4/wait-process.m4 (gl_WAIT_PROCESS):
35645         * m4/write.m4 (gl_PREREQ_WRITE):
35646         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
35647         Do not require AC_C_INLINE.
35649         c-strtod, memcoll, readutmp: no 'static inline'
35650         * lib/c-strtod.c (c_locale):
35651         * lib/memcoll.c (strcoll_loop):
35652         * lib/readutmp.c (desirable_utmp_entry):
35653         Now static, not static inline.
35654         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
35655         * m4/memcoll.m4 (gl_MEMCOLL):
35656         * m4/readutmp.m4 (gl_READUTMP):
35657         Do not require AC_C_INLINE.
35659         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
35660         * lib/arctwo.c (to_uchar):
35661         * lib/md4.c (set_uint32):
35662         * lib/md5.c (set_uint32):
35663         * lib/sha1.c (set_uint32):
35664         * lib/sha256.c (set_uint32):
35665         * lib/sha512.c (set_uint64):
35666         Now static, not static inline.  This is a bit simpler, and doesn't
35667         affect performance with GCC and default optimization.
35668         * m4/arctwo.m4 (gl_ARCTWO):
35669         * m4/md4.m4 (gl_MD4):
35670         * m4/md5.m4 (gl_MD5):
35671         * m4/sha1.m4 (gl_SHA1):
35672         * m4/sha256.m4 (gl_SHA256):
35673         * m4/sha512.m4 (gl_SHA512):
35674         Do not require AC_C_INLINE.
35676         cond, lock, thread: better 'inline'
35677         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
35678         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
35679         New macros.  Use them instead of static inline, for header functions.
35680         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
35681         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
35682         * lib/glthread/lock.c (gl_waitqueue_init)
35683         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
35684         * lib/glthread/thread.c (get_current_thread_handle):
35685         Change 'static inline' to 'inline'.
35686         * lib/glthread/cond.h, lib/glthread/thread.h:
35687         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35688         * m4/cond.m4 (gl_COND):
35689         * m4/lock.m4 (gl_PREREQ_LOCK):
35690         * m4/thread.m4 (gl_THREAD):
35691         Do not require AC_C_INLINE.
35692         * modules/cond, modules/thread (Depends-on): Add extern-inline.
35694         chdir-long, cycle-check, savewd: better 'inline'
35695         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
35696         (find_non_slash):
35697         * lib/cycle-check.c (is_zero_or_power_of_two):
35698         * lib/savewd.c (savewd_delegating):
35699         Change 'static inline' to 'inline'.
35700         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
35701         Replace all remaining uses of 'static inline' with it.
35702         * lib/savewd.h:
35703         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35704         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
35705         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
35706         * m4/savewd.m4 (gl_SAVEWD):
35707         Do not require AC_C_INLINE.
35708         * modules/savewd (Depends-on): Add extern-inline.
35710         base32, base64: no need for 'inline'
35711         * lib/base32.c (to_uchar, get_8, decode_8):
35712         * lib/base64.c (to_uchar, get_4, decode_4):
35713         Change 'static inline' to 'inline'.
35714         * m4/base32.m4 (gl_PREREQ_BASE32):
35715         * m4/base64.m4 (gl_PREREQ_BASE64):
35716         Do not require AC_C_INLINE.
35718         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
35719         * lib/gl_array_oset.c (gl_array_nx_add_at):
35720         (gl_array_remove_at):
35721         * lib/gl_linkedhash_list.c (hash_resize_after_add)
35722         (add_to_bucket, remove_from_bucket):
35723         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
35724         Change 'static inline' to 'static', as it's simpler to omit
35725         'inline' unless there's a significant performance advantage.
35727         list, oset, xlist, xoset, xsublist: simplify via extern inline
35728         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
35729         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
35730         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
35731         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
35732         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
35733         New macro.  Replace all uses of 'static inline' with it.
35734         [HAVE_INLINE]: Implement functions as *_INLINE functions,
35735         instead of as macros FOO that are defined to static inline
35736         functions FOO_inline.
35737         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
35738         * lib/gl_xsublist.c:
35739         Reimplement from scratch, by defining the corresponding *_INLINE
35740         macro and including the corresponding .h file.  This is simpler.
35741         * modules/list, modules/oset, modules/xlist, modules/xoset:
35742         (Files): Remove m4/gl_list.m4.
35743         (configure.ac): Remove gl_LIST.
35744         * m4/gl_list.m4: Remove.
35745         * modules/list, modules/oset, modules/xlist, modules/xoset:
35746         * modules/xsublist:
35747         (Depends-on): Depend on extern-inline, not inline.
35749         xalloc: better 'inline'
35750         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
35751         New macro.  Replace all uses of 'static inline' with it.
35752         (static_inline): Remove.
35753         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
35754         Let 'extern inline' do the work automatically, instead of doing
35755         it by hand.
35756         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
35757         Remove.  All uses removed.
35758         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
35760         gethrxtime: better 'inline'
35761         * lib/xtime.c: New file.
35762         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
35763         * lib/xtime.h (XTIME_INCLUDE):
35764         New macros.  Replace all uses of 'static inline' with them.
35765         * lib/gethrxtime.c (gethrxtime): Define only if
35766         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
35767         this source file is now always compiled, because of the extern inline.
35768         * lib/gethrxtime.h, lib/xtime.h:
35769         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35770         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
35771         if gethrtime works, as they're not needed in that case.
35772         (gl_XTIME): Do not require AC_C_INLINE.
35773         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
35774         compiled now.  Move the check into gl_GETHRXTIME.
35775         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
35776         (Depends-on): Add extern-inline.
35777         (configure.ac): gethrxtime is always compiled now.
35778         (lib_SOURCES): Add gethrxtime.c.
35780         wctype-h: better 'inline'
35781         * lib/wctype-h.c: New file.
35782         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
35783         New macro.  Replace all uses of 'static inline' with it.
35784         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35785         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
35786         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
35787         (Depends-on): Add extern-inline.
35789         unistd: better 'inline'
35790         * lib/unistd.c: New file.
35791         * lib/unistd.in.h (_GL_UNISTD_INLINE):
35792         New macro.  Replace all uses of 'static inline' with it.
35793         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35794         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
35795         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
35796         (Depends-on): Add extern-inline.
35798         sys_socket: better 'inline'
35799         * lib/sys_socket.c: New file.
35800         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
35801         New macro.  Replace all uses of 'static inline' with it.
35802         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35803         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
35804         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
35805         (Depends-on): Add extern-inline.
35807         stdio: better 'inline'
35808         * lib/stdio.c: New file.
35809         * lib/stdio.in.h (_GL_STDIO_INLINE):
35810         New macro.  Replace all uses of 'static inline' with it.
35811         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35812         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
35813         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
35814         (Depends-on): Add extern-inline.
35816         sigaction: better 'inline'
35817         * lib/sig-handler.c: New file.
35818         * lib/sig-handler.h (SIG_HANDLER_INLINE):
35819         New macro.  Replace all uses of 'static inline' with it.
35820         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35821         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
35822         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
35823         (Depends-on): Add extern-inline.
35825         selinux-h: better 'inline'
35826         * lib/se-context.c, lib/se-selinux.c: New files.
35827         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
35828         * lib/se-context.in.h (SE_CONTEXT_INLINE):
35829         New macro.  Replace all uses of 'static inline' with it.
35830         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35831         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
35832         New macro.  Replace all uses of 'static inline' with it.
35833         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35834         * modules/selinux-h (Files, lib_SOURCES):
35835         Add lib/se-context.c, lib/se-selinux.c.
35836         (Depends-on): Add extern-inline.
35837         (configure.ac): Do not require AC_C_INLINE.
35839         pthread: better 'inline'
35840         * lib/pthread.c: New file.
35841         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
35842         New macro.  Replace all uses of 'static inline' with it.
35843         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35844         * m4/pthread.m4 (gl_PTHREAD_CHECK):
35845         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
35846         * modules/pthread (Files): Add lib/pthread.c.
35847         (Depends-on): Add extern-inline.
35849         math: better 'inline'
35850         * lib/math.c: New file.
35851         * lib/math.in.h (_GL_MATH_INLINE):
35852         New macro.  Replace all uses of 'static inline' with it.
35853         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35854         * m4/math_h.m4 (gl_MATH_H):
35855         Do not require AC_C_INLINE.
35856         * modules/math (Files, lib_SOURCES):
35857         Add lib/math.c.
35858         (Depends-on): Add extern-inline.
35860         count-one-bits: better 'inline'
35861         * lib/count-one-bits.c: New file.
35862         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
35863         New macro.  Replace all uses of 'static inline' with it.
35864         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35865         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
35866         Do not require AC_C_INLINE.
35867         * modules/count-one-bits (Files, lib_SOURCES):
35868         Add lib/count-one-bits.c.
35869         (Depends-on): Add extern-inline.
35871         count-leading-zeros: better 'inline'
35872         * lib/count-leading-zeros.c: New file.
35873         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
35874         New macro.  Replace all uses of 'static inline' with it.
35875         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35876         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
35877         Do not require AC_C_INLINE.
35878         * modules/count-leading-zeros (Files, lib_SOURCES):
35879         Add lib/count-leading-zeros.c.
35880         (Depends-on): Add extern-inline.
35882         bitrotate: better 'inline'
35883         * lib/bitrotate.c: New file.
35884         * lib/bitrotate.h (BITROTATE_INLINE):
35885         New macros.
35886         Replace all uses of 'static inline' with them.
35887         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35888         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
35889         (Depends-on): Add extern-inline.
35890         (configure.ac): Do not require AC_C_INLINE.
35892 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
35894         maint.mk: avoid gratuitous failure
35895         Reported by Stefano Lattarini in
35896         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
35897         * top/maint.mk (public-submodule-commit): Quote more safely.
35899 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
35901         canonicalize, canonicalize-lgpl: support MS-Windows file names
35902         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
35903         for test cases, which it'd be nice to add at some point.
35904         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
35905         * lib/canonicalize.c (canonicalize_filename_mode):
35906         * lib/canonicalize-lgpl.c (__realpath):
35907         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
35908         slash is at the beginning of the file name.  Use ISSLASH, instead
35909         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
35910         the first character with '/'.  Test for
35911         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
35912         with a drive letter.
35913         * lib/canonicalize.c (SLASHES): New macro.
35914         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
35916 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
35918         fts: introduce FTS_VERBATIM
35919         * lib/fts_.h (FTS_VERBATIM): New bit flag.
35920         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
35921         * lib/fts.c (fts_open): Honor it.
35923 2012-11-09  Pádraig Brady  <P@draigBrady.com>
35925         getlogin-tests: allow errno == ENXIO
35926         * tests/test-getlogin.c (main): Skip tests if getlogin fails
35927         with errno == ENXIO (No controlling tty).
35928         getlogin_r-tests: Likewise. Also allow errno == ENOENT
35929         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
35930         with errno == ENOENT.  This was reported to happen in various
35931         situations on GNU/Linux.
35933 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
35935         getlogin-tests: allow errno == ENOENT
35936         * tests/test-getlogin.c (main): Skip tests if getlogin fails
35937         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
35938         when running a test in an Emacs shell buffer.
35940 2012-11-08  Jim Meyering  <jim@meyering.net>
35942         tests/nap.h: avoid warning about unused variable
35943         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
35945         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
35946         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
35947         white space before each of the special-cased file names, to avoid
35948         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
35949         in http://bugs.gnu.org/12830.
35951 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
35953         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
35954         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
35955         fails with errno == EBADF when fd is opened with O_PATH.
35956         Reported by Jim Meyering in
35957         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
35958         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
35959         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
35961 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
35963         test-utimens: speed up by taking shorter naps
35964         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
35965         New functions.
35966         (nap): Use them, to do a better job of guessing the delay.
35967         On Fedora 17 with ext4 atop md atop hard disks, this made
35968         test-utimens run 10x faster, because the test napped for
35969         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
35970         <http://bugs.gnu.org/12820#11>.
35972 2012-11-07  Jim Meyering  <jim@meyering.net>
35974         mountlist.c: fix a compilation failure
35975         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
35976         I introduced while transforming commit v0.0-7683-g613bcb6
35978 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
35980         errno: port to LynxOS 178 2.2.2
35981         Problem reported by Joel Brobecker in
35982         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
35983         * doc/posix-headers/errno.texi (errno.h): Document this.
35984         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
35985         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
35986         Supply a string for EILSEQ.
35987         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
35989 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
35991         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
35992         Linux kernel 2.6.39 introduced O_PATH (see
35993         <http://lwn.net/Articles/433854/>) and this is a better fallback
35994         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
35995         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
35996         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
35997         * lib/fcntl.in.h (O_ACCMODE):
35998         * tests/test-fcntl-h.c (main):
35999         Do not reject O_ACCMODE merely because it has more than the
36000         minimal number of bits, as POSIX allows extensions here.
36002 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
36004         mountlist: do not classify a bind-mounted dir entry as "dummy"
36005         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
36006         the "none"-testing clause.
36007         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
36008         exception for bind-mounted directories.
36010 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
36012         quote: provide a means to escape strings with nul characters
36013         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
36014         (quote, quote_n): Rename formal arguments for consistency with
36015         quotearg.
36017 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
36019         test-raise: don't assume 199 is an invalid signal
36020         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
36022         sh-quote-tests: port to Solaris 9
36023         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
36024         Problem reported by Dagobert Michelsen in
36025         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
36027 2012-10-28  Jim Meyering  <jim@meyering.net>
36029         maint.mk: rename a new configurable variable
36030         * top/maint.mk (_gl_translatable_string_re): Rename from
36031         translation-markers: _gl_ prefix to insulate from user Makefile code,
36032         and the _re suffix to inform that it's a regular expression.
36034 2012-10-26  Eric Blake  <eblake@redhat.com>
36036         maint.mk: let packages tweak sc_po_check pattern
36037         * top/maint.mk (sc_po_check): Add translation-markers, to allow
36038         finding files with other translation markers.
36040 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36042         euidaccess: speed up 'configure' on GNU hosts
36043         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
36044         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
36045         it's needed only in this case.  Use AC_CHECK_DECLS, not
36046         AC_CHECK_DECLS_ONCE.
36047         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
36048         or AC_REQUIRE for AC_FUNC_GETGROUPS.
36050         * lib/regexec.c (re_search_internal): Fix grammar in comment.
36052 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
36054         fchmodat, fchownat, fstatat: port to non-inlining compilers
36055         Problem reported for FreeBSD 9 by Jim Meyering in
36056         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
36057         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
36058         New files, which define FCHMODAT_INLINE etc.
36059         * lib/fchmodat.c (FCHMODAT_INLINE):
36060         * lib/fchownat.c (FCHOWNAT_INLINE):
36061         * lib/fstatat.c (FSTATAT_INLINE):
36062         Remove, as chmodat.c etc. now do this.
36063         * modules/fchmodat (Files): Add lib/chmodat.c.
36064         * modules/fchownat (Files): Add lib/chownat.c.
36065         * modules/fstatat (Files): Add lib/statat.c.
36067 2012-10-15  Jim Meyering  <jim@meyering.net>
36069         fchmodat.c, fchownat.c: compile-impeding typos
36070         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
36071         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
36072         Introduced in commit v0.0-7636-gd202279.
36074 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
36076         fcntl-h: support GNU flags like O_IGNORE_CTTY
36077         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
36078         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
36079         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
36080         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
36081         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
36082         Define to 0 if not already defined.
36083         * tests/test-fcntl-h.c: Test these new flags.
36085 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
36087         faccessat, etc.: support AT_FDCWD-only use
36088         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
36089         this function only if its first argument is AT_FDCWD.
36090         Emacs wants faccessat for AT_EACCESS but not for any first-arg
36091         values other than AT_FDCWD, so it doesn't want all the openat
36092         machinery with fchdir etc.
36093         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
36094         * modules/fstatat, modules/mkdirat, modules/openat (Files):
36095         * modules/unlinkat (Files):
36096         Remove lib/openat-priv.h, as at-internal supplies this file.
36097         Removing this file here allows us to support programs like Emacs
36098         that avoid at-internal.
36100         faccessat: speed up 'configure' on mainstream hosts
36101         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
36102         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
36103         since it's only on unusual platforms that we need to check for
36104         'access', and it's better not to slow 'configure' down on all
36105         platforms.
36107         faccessat: port to Solaris 10
36108         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
36109         Needed on Solaris 10, which doesn't have AT_EACCESS,
36110         so we need the Gnulib fcntl.h, which defines it.
36112 2012-10-14  Pádraig Brady  <P@draigBrady.com>
36113         canonicalize: fix C89 compilation
36114         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
36115         declarations so C89 is supported.  Also remove the comment
36116         referencing memorty allocation as the suggested feature could
36117         not be implemented as suggested.
36118         Reported by Michael Goffioul.
36120 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
36122         group-member: omit unnecessary dependencies
36123         This is for Emacs, which has its own allocator and where we
36124         don't want to use xalloc.
36125         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
36126         since we no longer use xmalloc.  Do not include stdbool.h, since
36127         the changes below happen to remove the only use of bool.
36128         (GROUPBUF_SIZE): New constant.
36129         (struct group_info): Remove n_groups member.  Add groupbuf member.
36130         This lets us get the groups without using malloc, usually.
36131         (free_group_info, get_group_info): Adjust to this.
36132         (get_group_info): Return the number of groups found, or -1 on error.
36133         Use plain malloc not xmalloc, and treat its failure as if there
36134         are no groups, as the user already loses in case of error.
36135         (group_member): Simplify, based on changes to get_group_info.
36136         * modules/group-member (Depends-on): Remove dependencies on
36137         xalloc and stdbool.  Add dependency on xalloc-oversized.
36139 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
36141         gethrxtime: port to C++
36142         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
36144 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
36146         ptsname: fix macro-name typo
36147         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
36149 2012-10-03  Simon Josefsson  <simon@josefsson.org>
36151         inttostr: Relax license.
36152         * modules/inttostr (License): Change from LGPL to LGPLv2+.
36154 2012-10-03  Eric Blake  <eblake@redhat.com>
36156         ptsname_r: support ptys returned by FreeBSD posix_openpt
36157         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
36158         lives in /dev/pts/.
36160 2012-10-02  Eric Blake  <eblake@redhat.com>
36162         pselect: reject invalid file descriptors
36163         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
36164         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
36165         * modules/pselect (Depends-on): Add dup2.
36166         * doc/posix-functions/pselect.texi (pselect): Document this.
36168         select: reject invalid file descriptors
36169         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
36170         * lib/select.c (rpl_select) [!win32]: Work around it.
36171         * modules/select (Depends-on): Add dup2.
36172         * doc/posix-functions/select.texi (select): Document this.
36174         select: enhance test
36175         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
36176         New functions.
36177         (test_function): Enhance test.
36178         (do_select_bad_fd): Avoid any stale errno values.
36180         ptsname: reject invalid file descriptors
36181         http://www.austingroupbugs.net/view.php?id=503
36182         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
36183         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
36184         * modules/stdlib (Makefile.am): Replace witness.
36185         * lib/stdlib.in.h (ptsname): Allow for replacement.
36186         * modules/ptsname (configure.ac): Trigger replacement.
36187         * doc/posix-functions/ptsname.texi (ptsname): Document this.
36189 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
36191         hash-pjw-bare: new module
36192         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
36193         * lib/hash-pjw-bare.h: Likewise.
36194         * modules/hash-pjw-bare: New file.
36195         * MODULES.html.sh (Misc): Add it.
36197 2012-10-02  Eric Blake  <eblake@redhat.com>
36199         manywarnings: cater to more gcc infelicities
36200         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
36201         -Wuninitialized without -O.
36203 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
36205         select, poll tests: Make setsockopt invocation effective.
36206         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
36207         the bind() call.
36208         * tests/test-select.h (open_server_socket): Likewise.
36210 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
36212         sockets, sys_stat: restore AC_C_INLINE
36213         This undoes the 2012-09-22 patch.
36214         * m4/sockets.m4 (gl_SOCKETS):
36215         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
36216         Restore AC_C_INLINE, since MSVC requires __inline or _inline
36217         and does not support plain 'inline'.  Reported by Bruno Haible in
36218         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
36220 2012-09-30  Bruno Haible  <bruno@clisp.org>
36222         localeconv tests: Avoid test failure on OpenIndiana.
36223         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
36224         skip the 'grouping' and 'mon_grouping' tests.
36225         Reported by Jim Meyering.
36227 2012-09-30  Bruno Haible  <bruno@clisp.org>
36229         havelib: Follow libtool developments.
36230         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
36231         Suggested by Simon Josefsson.
36233 2012-09-29  Jim Meyering  <meyering@redhat.com>
36235         fstatat.c: fix a compile-impeding typo
36236         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
36237         Introduced in commit v0.0-7636-gd202279.
36238         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
36240 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
36242         extern-inline: provide a -Wundef safe config.h
36243         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
36244         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
36245         to produce a -Wundef warning free config.h.
36247 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
36249         hash-pjw: relax license to LGPLv2+
36250         * modules/hash-pjw (License): Relax, with consent of author.
36252 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
36254         maint.mk: fix strict vs. lazy variable issues with RELEASE
36255         * top/maint.mk (_equal): New function.
36256         (member_check): Strip the result to avoid spurious spaces.
36257         (url_dir_list): Do not use ifeq, which is strict, as it will
36258         require RELEASE_TYPE to be defined.
36259         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
36260         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
36261         (announcement_Cc_alpha,announcement_mail_headers_alpha)
36262         (announcement_Cc_beta,announcement_mail_headers_beta)
36263         (announcement_Cc_stable,announcement_mail_headers_stable): these.
36264         (release): Do not depend on $(release-type), as it forces its
36265         evaluation.  Bounce to it.
36267 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
36269         maint.mk: formatting changes
36270         * top/maint.mk: Indent bodies of if's.
36272 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
36274         maint.mk: factor the validation of RELEASE_TYPE
36275         With help from Jim Meyering.
36276         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
36277         * top/maint.mk (_empty, _sp): Move their definition earlier.
36278         (member-check, release-type): New.
36279         Use the latter instead of $(RELEASE_TYPE).
36280         Remove now useless local checks.
36282 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
36284         maint.mk: provide "make upload" to ease uploading
36285         See
36286         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
36287         Do not depend simply on the current $(VERSION), as there may have been
36288         new commits since the tarball generation.  Rather, rely on $(RELEASE),
36289         as "make release-commit" already does.
36291         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
36292         "make TYPE".
36294         * top/maint.mk (upload_command, upload, release): New.
36295         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
36296         (VERSION): first word of $(RELEASE) is always right.
36297         (emit_upload_commands): Adjust.
36298         * top/README-release: Update.
36300 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
36302         maint.mk: silent rules
36303         With help from Stefano Lattarini.
36304         * top/maint.mk (writable-files): Use $(AM_V_GEN).
36305         (announcement): Use $(AM_V_at).
36307 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
36309         localename: port gl_locale_name_thread_unsafe to FreeBSD
36310         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
36311         and use the simpler FreeBSD implementation on Mac OS X as well.
36312         Original idea suggested by Ed Maste in
36313         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
36315 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
36317         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
36318         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
36319         * lib/mbuiter.c, lib/xsize.c: New files.
36320         * lib/binary-io.h (BINARY_IO_INLINE):
36321         * lib/eealloc.h (EEALLOC_INLINE):
36322         * lib/mbfile.h (MBFILE_INLINE):
36323         * lib/mbiter.h (MBITER_INLINE):
36324         * lib/mbuiter.h (MBUITER_INLINE):
36325         * lib/xsize.h (XSIZE_INLINE):
36326         New macros.
36327         Replace all uses of 'static inline' with them.
36328         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36329         * m4/eealloc.m4 (gl_EEALLOC):
36330         * m4/mbfile.m4 (gl_MBFILE):
36331         * m4/mbiter.m4 (gl_MBITER):
36332         * m4/xsize.m4 (gl_XSIZE):
36333         Do not require AC_C_INLINE.
36334         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
36335         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
36336         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
36337         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
36338         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
36339         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
36340         * modules/binary-io, modules/eealloc, modules/mbfile:
36341         * modules/mbiter, modules/mbuiter:
36342         (Depends-on): Add extern-inline.
36344         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
36345         * lib/pipe-filter-aux.c: New file.
36346         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
36347         Replace all uses of 'static inline' with it.
36348         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36349         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
36350         (filter_retcode): No real need for inline here.
36351         * modules/pipe-filter-gi, modules/pipe-filter-ii:
36352         (Files): Add lib/pipe-filter-aux.c.
36353         (Depends-on): Add extern-inline.
36354         (configure.ac): Do not require AC_C_INLINE.
36355         (lib_SOURCES): Add pipe-filter-aux.c.
36357         fdutimensat: omit unnecessary AC_C_INLINE
36358         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
36360         fchmodat, fchownat, fstatat: use extern-inline
36361         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
36362         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
36363         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
36364         New macros.
36365         * lib/openat.h:
36366         Replace all uses of 'static inline' with them.
36367         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36368         * modules/fchmodat, modules/fchownat, modules/fstatat:
36369         * modules/openat-h:
36370         (Depends-on):
36371         Add extern-inline.
36372         (configure.ac): Remove AC_C_INLINE.
36374         acl, mbchar, priv-set: use extern-inline
36375         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
36376         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
36377         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
36378         New macros.
36379         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
36380         Replace all uses of 'static inline' with it.
36381         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36382         * m4/acl.m4 (gl_FUNC_ACL):
36383         * m4/mbchar.m4 (gl_MBCHAR):
36384         * m4/priv-set.m4 (gl_PRIV_SET):
36385         Remove AC_C_INLINE, since 'inline' is no longer used directly.
36386         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
36387         Add extern-inline.
36389         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
36390         * m4/sockets.m4 (gl_SOCKETS):
36391         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
36392         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
36393         environments where it's already guaranteed to work, so we needn't
36394         check for it at 'configure'-time.
36396         tls-tests: omit unnecessary 'inline'
36397         * tests/test-tls.c (perhaps_yield): No longer inline.
36398         Simplicity and portability trump efficiency in test cases.
36400         utimens-tests: avoid unnecessary 'inline'
36401         * modules/fdutimensat-tests (configure.ac):
36402         * modules/futimens-tests (configure.ac):
36403         * modules/utimens-tests (configure.ac):
36404         * modules/utimensat-tests (configure.ac):
36405         Remove AC_C_INLINE.
36406         * tests/test-utimens-common.h (ctime_compare):
36407         No longer inline.  Simplicity and portability trump efficiency here.
36409         misc: don't limit commentary to inline functions
36410         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
36411         * lib/xalloc-oversized.h, lib/xsize.h:
36412         Contrast macros to functions in general, not just to inline functions,
36413         when the commentary does not apply only to inline functions.
36415 2012-09-20  Jim Meyering  <meyering@redhat.com>
36417         non-recursive-gnulib-prefix-hack: new module
36418         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
36419         the file that originated in Bison.
36420         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
36421         largely copied from a snippet that resided in bison's configure.ac.
36422         * modules/non-recursive-gnulib-prefix-hack: New file.
36423         * MODULES.html.sh (Support for maintaining and releasing projects):
36424         Add it.
36426 2012-09-18  Jim Meyering  <meyering@redhat.com>
36428         maint.mk: generalize _gl_tight_scope for non-recursive make
36429         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
36430         that *.h would describe additional .h files in the directory
36431         specified by $(_gl_TS_dir).  I.e., add this...
36432         (_gl_TS_other_headers): New variable.
36434         maint.mk: exempt trailing blanks found in "binary" files
36435         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
36436         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
36437         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
36439 2012-09-17  Jim Meyering  <meyering@redhat.com>
36441         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
36442         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
36443         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
36444         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
36446 2012-09-17  Jim Meyering  <meyering@redhat.com>
36448         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
36449         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
36450         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
36451         It is not in the same category as "exit (0)" or "exit (1)", and
36452         besides, I know of no symbolic name for that 77.  Reported by
36453         Richard W.M. Jones in
36454         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
36456 2012-09-17  Jim Meyering  <meyering@redhat.com>
36458         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
36459         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
36460         all uses of #define, not just those that start in column 1.
36461         Richard W.M. Jones reported a false positive in
36462         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
36464 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
36466         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
36467         * lib/localcharset.c (locale_charset) [DARWIN7]:
36468         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
36469         as these two values are incompatible.  Problem reported by Max Horn.
36470         For more discussion, please see
36471         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
36473         doc: document sticky-EOF issue
36474         * doc/posix-functions/fgetc.texi (fgetc):
36475         * doc/posix-functions/fgets.texi (fgets):
36476         * doc/posix-functions/fread.texi (fread):
36477         * doc/posix-functions/fscanf.texi (fscanf):
36478         * doc/posix-functions/getc.texi (getc):
36479         * doc/posix-functions/getchar.texi (getchar):
36480         * doc/posix-functions/scanf.texi (scanf):
36481         Mention that glibc and default Solaris do not conform to
36482         C99 and POSIX-2001 or later, with respect to how getchar
36483         etc. behave when feof reports nonzero.
36485 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
36487         poll: fix poll(0, NULL, msec)
36488         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
36489         but nfd is 0.  In that case poll should behave like select.
36491 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
36492             Paolo Bonzini  <bonzini@gnu.org>
36494         poll: fix for systems that can't recv() on a non-socket
36495         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
36496         is readable.  In this case POLLHUP will not be supported.
36497         * doc/posix-functions/poll.texi: Document this.
36499 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
36501         poll/select: document portability problems not fixed by Gnulib.
36502         * doc/posix-functions/poll.texi: poll does not work well on
36503         pipes under Windows.  It has the same limitations as select on
36504         BeOS.
36505         * doc/posix-functions/select.texi: select does not work well
36506         on pipes under Windows.
36508 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
36510         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
36511         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
36512         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
36513         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
36515 2012-09-06  Eric Blake  <eblake@redhat.com>
36517         net_if: give more details about the bug being fixed
36518         * doc/posix-headers/net_if.texi: Add clarification.
36520 2012-09-05  Eric Blake  <eblake@redhat.com>
36522         net_if: new module
36523         * modules/net_if: New module, borrowing ideas from netinet_in.
36524         * m4/net_if_h.m4: New file.
36525         * lib/net_if.in.h: Likewise.
36526         * doc/posix-headers/net_if.texi (net/if.h): Document it.
36527         * MODULES.html.sh (lacking POSIX:2008): Likewise.
36528         * tests/test-net_if.c: Make function checks conditional.
36529         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
36531 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
36533         readutmp: fix non-portable UT_PID use
36534         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
36535         Use `UT_PID (u) > 0' as absolute condition.
36537 2012-09-04  Jim Meyering  <meyering@redhat.com>
36539         fts: reduce two or more trailing spaces to just one, usually
36540         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
36541         or more slashes, trim all but the final one.  But if a name consists
36542         solely of two slashes, don't modify it.  If it consists solely of
36543         three or more slashes, strip all but one.
36545         This is part of the solution to a minor problem with rm:
36546         it would print a bogus ELOOP diagnostic when failing to remove
36547         the slash-decorated name of a symlink-to-directory:
36549             $ mkdir d && ln -s d s && env rm -r s/
36550             rm: cannot remove 's': Too many levels of symbolic links
36552         With the change below and a trivial don't-trim-trailing-slashes
36553         adjustment to remove.c, it does this:
36555             $ env rm -r s/
36556             rm: cannot remove 's/': Not a directory
36558         Improved by: Eric Blake
36560         fts: when there is no risk of overlap, use memcpy, not memmove
36561         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
36563 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
36565         stdbool: be more compatible with mixed C/C++ compiles
36566         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
36567         Define to bool, true, false, respectively, as GCC's builtin
36568         stdbool.h does.  Problem reported by Michael Goffioul in
36569         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
36571 2012-08-28  Jim Meyering  <meyering@redhat.com>
36573         revert last change: it was not needed
36574         * tests/test-vc-list-files-git.sh: There's already a test for
36575         a working git, just below.
36577 2012-08-28  Jim Meyering  <meyering@redhat.com>
36579         tests: test-vc-list-files-git.sh: skip if git is not available
36580         * tests/test-vc-list-files-git.sh: Skip this test when git is
36581         not available.
36583 2012-08-26  Bruno Haible  <bruno@clisp.org>
36585         gnulib-tool: Remove no-op option --no-changelog.
36586         * gnulib-tool (func_usage): Don't mention --no-changelog.
36587         (do_changelog): Remove variable.
36588         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
36590 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36592         doc: remove fdl-1.2.texi
36593         It is no longer used or maintained, and its use of @acronym
36594         is problematic.  See the thread containing
36595         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
36596         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
36597         * doc/old-licenses/fdl-1.2.texi: Remove.
36599         execinfo: port to FreeBSD
36600         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
36601         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
36602         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
36603         * modules/execinfo (Link): Add $(LIB_EXECINFO).
36605 2012-08-23  Jim Meyering  <meyering@redhat.com>
36607         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
36608         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
36609         to placate gcc's -Wold-style-declaration.
36611 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
36613         doc: do not use @acronym
36614         * doc/inet_ntoa.texi (inet_ntoa):
36615         * doc/parse-datetime.texi (Seconds since the Epoch)
36616         (Specifying time zone rules):
36617         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
36618         Don't use @acronym.  Problem reported by John Darlington in
36619         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
36621 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
36623         stdnoreturn: port to newer GCCs
36624         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
36625         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
36626         Problem reported by Jim Meyering in
36627         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
36628         Also, rename the 'test' function to a void a clash with the
36629         already-supplied 'main' function; this fixes a bug that incorrectly
36630         rejected GCC 4.7.1's <stdnoreturn.h>.
36631         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
36632         Document GCC problem.
36634 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
36636         pipe-filter: fix comment typo
36637         * lib/pipe-filter.h: Mention correct function.
36639 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
36641         execinfo: new module
36642         This is for Emacs.  Currently, it provides a no-effect stub
36643         on all platforms where it does not already work.
36644         It already works on glibc-based systems, and on Solaris 11.
36645         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
36646         New files.
36647         * doc/glibc-headers/execinfo.texi (execinfo.h):
36648         * MODULES.html.sh (Misc): Document it.
36650 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
36652         extern-inline: support old GCC 'inline'
36653         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
36654         if available.  This applies to GCC versions 2.7 through 4.2, or
36655         when newer GCC is using -fgnu89-inline.  The goal is to address
36656         some of the performance issues mentioned by Bruno Haible in
36657         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
36659 2012-08-20  Eric Blake  <eblake@redhat.com>
36661         maint.mk: avoid redundant file name in message
36662         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
36663         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
36664         (sc_makefile_path_separator_check): Remove bogus $(ME).
36666 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
36668         timer-time: fix link order when static linking on glibc
36669         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
36670         _after_ -lrt so that it's significant.
36672 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
36674         timespec: omit unnecessary AC_C_INLINE
36675         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
36677         stat-time: omit unnecessary AC_C_INLINE
36678         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
36679         Do not require AC_C_INLINE.
36681         ignore-value: omit unnecessary AC_C_INLINE
36682         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
36684         sys_select: avoid 'static inline'
36685         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
36687         mktime: avoid 'static inline'
36688         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
36689         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
36691 2012-08-19  Bruno Haible  <bruno@clisp.org>
36693         gnulib-tool: Improve coding style.
36694         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
36695         func_emit_lib_Makefile_am.
36696         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
36698 2012-08-19  Bruno Haible  <bruno@clisp.org>
36700         gnulib-tool: Fix indentation.
36701         * gnulib-tool (func_import): Fix indentation.
36703 2012-08-19  Bruno Haible  <bruno@clisp.org>
36705         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
36706         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
36707         on the list of removed files.
36709 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
36711         test-parse-datetime: avoid glibc leap-second glitch
36712         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
36713         with the 2012 rules.  Problem reported by Bruce Dubbs in
36714         <http://bugs.gnu.org/12206>.
36716 2012-08-14  Bruno Haible  <bruno@clisp.org>
36718         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
36719         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
36720         from argument.
36721         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
36723 2012-08-14  Eric Blake  <eblake@redhat.com>
36725         ldexp: relax license
36726         * modules/ldexp (License): Trivial relax, since the module only
36727         provides a permissively licensed m4 file.
36729 2012-08-13  Bruno Haible  <bruno@clisp.org>
36731         gnulib-tool: Fix persistence of --witness-c-macro option.
36732         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
36733         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
36735 2012-08-11  Eric Blake  <eblake@redhat.com>
36737         count-leading-zeros: use a lookup table on non-gcc compilers
36738         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
36739         alternate implementation, suggested by Jim Meyering.
36741 2012-08-10  Eric Blake  <eblake@redhat.com>
36743         count-leading-zeros: new module
36744         * modules/count-leading-zeros: New module.
36745         * m4/count-leading-zeros.m4: New file.
36746         * lib/count-leading-zeros.h: Likewise.
36747         * modules/count-leading-zeros-tests: New test.
36748         * tests/test-count-leading-zeros.c: New file.
36749         * MODULES.html.sh (Integer arithmetic functions): Document it.
36751 2012-08-07  Simon Josefsson  <simon@josefsson.org>
36752             Jim Meyering  <meyering@redhat.com>
36754         maintainer-makefile: Fix syntax error with dash.
36755         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
36756         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
36758 2012-08-05  Jim Meyering  <meyering@redhat.com>
36760         extern-inline: also ignore -Wmissing-declarations
36761         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
36762         required with gcc-4.8.0-to-be.
36764         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
36765         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
36766         for /error ?([^,]*)/.  This avoids false-positives for strings like
36767         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
36769 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
36771         gnumakefile: better interaction with Automake-NG
36772         * modules/gnumakefile [Makefile.am]: The makefiles generated by
36773         Automake-NG always contain a definition of VPATH, even in non-VPATH
36774         builds (its value being simply '.' in that case).  So, in the
36775         'clean-GNUmakefile' rule, to determine whether running under a
36776         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
36777         '$(VPATH)' expands to the empty string.
36779 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
36781         base64: Use extern C scope in header file, for C++.
36782         * lib/base64.h: Add C++ namespace protection.
36784 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
36786         stat-time, timespec, u64: support naive out-of-dir builds
36787         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
36788         Use '#include "foo.h"', not '#include <foo.h>', when including
36789         one's own interface.  This works better when configuring with
36790         out-of-directory builds, since packages need not add an
36791         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
36793 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
36795         utimens: use extern-inline
36796         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
36797         * lib/utimens.h: Add copyright notice, since this is now large enough
36798         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36799         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
36800         * modules/utimens (Depends-on): Add extern-inline.
36802         u64: use extern-inline
36803         * lib/u64.c: New file.
36804         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36805         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
36806         * modules/u64 (Files): Add lib/u64.c.
36807         (Depends-on): Add extern-inline.
36808         (configure.ac): No need to require AC_C_INLINE, since extern-inline
36809         does that now.
36810         (lib_SOURCES): Add u64.c.
36812         timespec: use extern-inline
36813         * lib/timespec.c: New file.
36814         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36815         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
36816         * modules/timespec (Files): Add lib/timespec.c.
36817         (Depends-on): Add extern-inline.
36818         (lib_SOURCES): Add timespec.c.
36820         stat-time: use extern-inline
36821         * lib/stat-time.c: New file.
36822         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36823         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
36824         * modules/stat-time (Files): Add lib/stat-time.c.
36825         (Depends-on): Add extern-inline.
36826         (lib_SOURCES): Add stat-time.c.
36828         extern-inline: new module
36829         * modules/extern-inline, m4/extern-inline.m4: New files.
36830         This is for better support of 'extern inline' a la ISO C99,
36831         with a portable alternative on compilers that do not support
36832         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
36833         of the Emacs executable, when compiled with debugging disabled,
36834         which is a typical way that Emacs is built while developing.
36836 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
36838         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
36839         * build-aux/do-release-commit-and-tag: Move variable definitions
36840         together.
36841         ($branch): Instead of defaulting to "master", default to the current
36842         branch (as gnu-web-doc-update does).
36843         (help): Display the current values of the option arguments.
36844         * top/maint.mk (release-commit): New.
36845         * top/README-release: Simplify the corresponding step.
36847 2012-07-30  Eric Blake  <eblake@redhat.com>
36849         passfd: fix comment on recvfd
36850         * lib/passfd.c (recvfd): Fix comment.
36851         Reported by Jann Horn <jannhorn@googlemail.com>.
36853 2012-07-30  Jim Meyering  <meyering@redhat.com>
36855         maint.mk: avoid a sub-shell
36856         * top/maint.mk (release-prep): Remove unneeded sub-shell.
36858 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
36860         maint.mk: use silent-rules support from Automake
36861         * top/maint.mk (news-check, vc-diff-check, announcement)
36862         (no-submodule-changes, alpha beta stable, release-prep)
36863         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
36865 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
36867         maint.mk: provide a web-manual-update target
36868         * top/maint.mk: here.
36869         * top/README-release: Use it to simplify the web manual update step.
36871 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
36873         README-release: shorten the circuit to post a news
36874         * top/README-release: Point directly to the news submission form.
36876 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
36878         gnu-web-doc-update: fix --help
36879         * build-aux/gnu-web-doc-update: The information "top level" was written
36880         twice.
36882 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
36884         maint.mk: absolute VPATH issue
36885         * top/maint.mk (release-prep): Help Git find .git/.
36886         From Jim Meyering.
36888 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
36890         gitlog-to-changelog: fix previous change
36891         * build-aux/gitlog-to-changelog: Fix condition.
36892         Add missing ";".
36894 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
36896         gitlog-to-changelog: don't expect .git to be in $srcdir
36897         Reported by Bruno Haible.
36898         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
36899         * build-aux/gitlog-to-changelog (&git_dir_option): New.
36900         Use it.
36902 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
36904         maint.mk: absolute VPATH build fix
36905         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
36906         $(srcdir) is not a parent of $(builddir).
36908 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
36910         clean-temp: Fix memory leak.
36911         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
36912         'files' members of tmpdir.
36914 2012-07-27  Jim Meyering  <meyering@redhat.com>
36916         maint.mk: new rule: refresh-gnulib-patches
36917         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
36918         Use this rule to refresh them.
36919         * top/maint.mk (refresh-gnulib-patches): New rule.
36921 2012-07-24  Bruno Haible  <bruno@clisp.org>
36923         gnulib-tool: Fix handling of inctests variable.
36924         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
36925         Reported by Nick Bowler <nbowler@elliptictech.com>.
36927 2012-07-22  Bruno Haible  <bruno@clisp.org>
36929         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
36930         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
36931         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
36932         Remove exemption for getpass.h.
36933         Suggested by Eric Blake.
36935 2012-07-20  Eric Blake  <eblake@redhat.com>
36937         verify: document conflict with -Wnested-externs
36938         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
36940         maint.mk: forbid exit(-1)
36941         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
36943 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
36945         fsusage: port back to Solaris
36946         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
36947         error (fsd not declared) on Solaris 10.  Reported privately by
36948         Andrew Borodin.
36950 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
36952         gnu-web-doc-update: fix error messages
36953         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
36955         gnu-web-doc-update: check the requirements.
36956         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
36957         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
36958         * build-aux/bootstrap (find_tool): Comment change.
36960 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
36962         maint.mk: minor simplication.
36963         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
36964         for default values.
36966 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
36968         gitlog-to-changelog: VPATH build issues
36969         If builddir is not a subdirectory of srcdir, running git from it will
36970         fail.
36971         * build-aux/gitlog-to-changelog (--srcdir): New option.
36973 2012-07-15  Bruno Haible  <bruno@clisp.org>
36975         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
36976         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
36977         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
36978         Remove exemption for fpending.h.
36979         Suggested by Eric Blake.
36981 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
36983         pthread_sigmask: fix bug on FreeBSD 9
36984         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
36985         Include string.h.
36986         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
36987         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
36988         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
36989         but pthread_sigmask (1729, NULL, NULL) returns zero.
36990         See <http://bugs.gnu.org/11884>.
36991         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
36992         by inspecting whether the main call changed the old mask.
36994 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
36996         README-release: make it more legible
36997         * top/README-release: Improve typography slightly.
36999 2012-07-15  Jim Meyering  <meyering@redhat.com>
37001         maint: require that each sc_... command start with "@"
37002         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
37003         "make sc_maint" helps us avoid this nit.
37005 2012-07-15  Jim Meyering  <meyering@redhat.com>
37007         maint.mk: add leading "@" to quiet new "make syntax-check" rule
37008         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
37010 2012-07-13  Eric Blake  <eblake@redhat.com>
37012         maint.mk: new syntax check for HAVE_DECL checks
37013         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
37014         * cfg.mk
37015         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
37016         Exempt some false positives.
37017         Based on a report by Karel Zak.
37019         argp: make HAVE_DECL usage consistent
37020         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
37021         macros, not whether they are defined.
37022         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
37023         convention with other declaration checks.
37024         Reported by Karel Zak, with suggestions from Paul Eggert.
37026         stat-time: relax license to LGPLv2+
37027         * modules/stat-time (License): Relax, with consent of all authors.
37029         strndup: fix m4 usage error
37030         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
37031         defined, to either 0 or 1.
37032         Reported by Karel Zak.
37034 2012-07-11  Jim Meyering  <meyering@redhat.com>
37036         maint: enable the sc_avoid_if_before_free syntax-check rule
37037         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
37038         (if_before_free_offenders_): Define.
37039         (if_before_free_basename_re_): Define.
37040         Exempt current files with useless if-before-free.
37042 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
37044         gettext: do not assume '#define ... defined ...' behavior
37045         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
37046         Do not use '#define FOO ... defined BAR ...', as the C standard says
37047         it's not portable to expect that this works after macro expansion.
37048         Problem reported for gzip by Steven M. Schweda in
37049         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
37051 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
37053         getloadavg: clean out old Emacs and Autoconf cruft
37054         See Glenn Morris in <http://bugs.gnu.org/11905>.
37055         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
37056         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
37057         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
37058         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
37060 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
37062         bootstrap: let warn be like tests/init.sh's warn_
37063         Reported by Jim Meyering.
37064         * build-aux/bootstrap (warn): Remove, replaced by...
37065         (warnf_, warn_): these.
37066         Adjust callers.
37067         Shorten messages that no longer fit in 80 columns.
37069 2012-07-09  Bruno Haible  <bruno@clisp.org>
37071         getopt: Simplify after Emacs changed.
37072         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
37073         (gl_GETOPT_IFELSE): Remove macro.
37075 2012-07-09  Jim Meyering  <meyering@redhat.com>
37077         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
37078         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
37080         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
37081         Bugs in both of those conspired to make the
37082         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
37083         _sc_search_regexp's handling of non-empty $in_files would filter
37084         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
37085         choice of in_files value meant there would be no match in most
37086         projects, due to the presence of two or more Makefile.in files.
37087         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
37088         Fix a bug in how a non-empty $$in_files was processed:
37089         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
37090         in spite of the name, it's a regexp, not a list of file names.
37092 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
37094         getloadavg, getopt: fix commentary re configure.in
37095         Autoconf is deprecating the name 'configure.in', so change it to
37096         to the new name 'configure.ac' in a couple of places.
37097         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
37098         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
37099         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
37100         Emacs has renamed it to configure.ac, and it no longer refers
37101         to these macros anyway.
37103         timespec: mark functions with const attributes
37104         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
37105         Mark with _GL_ATTRIBUTE_CONST.
37107 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
37109         canonicalize[-lgpl]: handle "guessing" values when cross-building
37110         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
37111         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
37112         matches "*yes" instead of just "yes".  Regression introduced in commit
37113         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
37115 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
37116             Bruno Haible  <bruno@clisp.org>
37118         canonicalize: make the right guess when cross-compiling to GNU
37119         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
37120         determine whether cross-compiling to glibc systems, so as to
37121         include GNU/Hurd.
37123 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
37125         timespec-sub: avoid duplicate include
37126         * lib/timespec-sub.c: Do not include <config.h> twice.
37127         Reported by Juanma Barranquero.
37129 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
37131         bootstrap: use a more consistent error reporting scheme
37132         * build-aux/bootstrap (warn, die): New.
37133         Use them.
37135 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
37137         sys_time: allow too-wide tv_sec
37138         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
37139         timeval even if tv_sec is wider than time_t.  This allows
37140         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
37141         as without this patch gnulib replaces struct timeval
37142         and OpenBSD futimes therefore has a type mismatch.
37143         * doc/posix-headers/sys_time.texi: Mention this.
37145         pthread: check for both pthread_create and pthread_join
37146         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
37147         alter the check so that it tests for both pthread_create and
37148         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
37149         Suggested by Bruno Haible and Richard Yao in
37150         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
37152         parse-datetime: doc tuneup
37153         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
37154         spacing issues.
37156 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
37158         do-release-commit-and-tag: fix the previous commit
37159         * build-aux/do-release-commit-and-tag: Actually the test was right,
37160         but the comment and the error message were misleading.
37161         Fix comment, and improve error message.
37162         Perform check first, so that NEWS is not modified uselessly.
37164         do-release-commit-and-tag: fix typo
37165         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
37166         _not_ start with a stub.
37168 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
37170         pthread: check for pthread_create, not pthread_join
37171         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
37172         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
37173         pthread_join in libc.  I hope this removes the need for all the
37174         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
37175         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
37177 2012-07-04  Jim Meyering  <meyering@redhat.com>
37179         parse-datetime: fix failure to diagnose invalid input
37180         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
37181         rather than diagnosing the invalid input.  Now it reports this:
37182         date: invalid date '\260'
37183         * lib/parse-datetime.y (to_uchar): Define.
37184         (yylex): Don't sign-extend "other" bytes.
37185         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
37186         Thanks to Bruno Haible for the patch to this file.
37187         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
37188         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
37190 2012-07-03  Jim Meyering  <meyering@redhat.com>
37192         bootstrap: do not require now-removed build-aux/missing
37193         Now that build-aux/missing is, er, missing, bootstrap would
37194         silently fail.
37195         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
37196         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
37197         no longer part of gnulib.
37198         Diagnose the failure.
37200 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37202         alloca: add support for HP NonStop TNS/E native
37203         * lib/alloca.in.h (alloca): Support the new host.
37204         From a suggestion by Joachim Schmitz in
37205         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
37207 2012-07-02  Pádraig Brady  <P@draigBrady.com>
37209         fsusage: remove code not needed on non GNU/Linux systems.
37211         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
37212         Don't include headers no longer needed in this case.
37213         * lib/fsusage.c [STAT_STATVFS &&
37214         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
37215         STAT_STATFS2_FRSIZE to exclude code not used in this case.
37217 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
37219         fsusage: include files needed for glibc 2.6 fallback
37220         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
37221         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
37222         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
37223         Problem reported by Ludovic Courtès in
37224         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
37226         fsusage: avoid needless check on GNU/Linux
37227         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
37228         on GNU/Linux systems, since it can't possibly work.
37230 2012-07-01  Bruno Haible  <bruno@clisp.org>
37232         log: Fix an autoconf >= 2.64 warning.
37233         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
37234         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
37236 2012-06-28  Bruno Haible  <bruno@clisp.org>
37238         log10f: Fix possible configuration problem.
37239         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
37240         $LOGF_LIBM.
37241         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
37243 2012-06-28  Bruno Haible  <bruno@clisp.org>
37245         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
37246         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
37247         not gl_cv_func_unlink_works.
37248         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
37250 2012-06-27  Eric Blake  <eblake@redhat.com>
37252         config: drop scripts that automake says are not independent
37253         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
37254         * build-aux/elisp-comp: Delete.
37255         * build-aux/missing: Likewise.
37256         * build-aux/ylwrap: Likewise.
37257         * modules/elisp-comp: Likewise.
37258         * MODULES.html.sh: Drop mention of elisp-comp.
37259         * NEWS: Mention this.
37261 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
37263         root-uid: new module
37264         This is for portability to Tandem's NonStop Kernel.
37265         * lib/root-uid.h, modules/root-uid: New files.
37266         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
37267         * lib/write-any-file.c, tests/test-sethostname2.c:
37268         Include "root-uid.h".
37269         * lib/euidaccess.c (euidaccess):
37270         * lib/pt_chown.c (main):
37271         * lib/unlinkdir.c (cannot_unlink_dir):
37272         * lib/write-any-file.c (can_write_any_file):
37273         * m4/mknod.m4 (gl_FUNC_MKNOD):
37274         * tests/test-sethostname2.c (geteuid, main):
37275         Don't assume ROOT_UID == 0.
37276         * modules/euidaccess (Depends-on):
37277         * modules/pt_chown (Depends-on):
37278         * modules/sethostname-tests (Depends-on):
37279         * modules/unlinkdir (Depends-on):
37280         * modules/write-any-file (Depends-on):
37281         Add root-uid.
37283         regex: use locale-independent comparison for codeset name
37284         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
37285         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
37286         for codeset name.
37287         * lib/regex_internal.h: Do not include <strings.h>, since we
37288         no longer use strcasecmp.
37289         * modules/regex (Depends-on): Remove strcase.
37291 2012-06-23  Bruno Haible  <bruno@clisp.org>
37293         getopt-posix: No longer guarantee that option processing is resettable.
37294         * doc/posix-functions/getopt.texi: Drop description of problem with
37295         internal state. Fix info about mingw and msvc9.
37296         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
37297         option processing by getopt(). Run three test programs instead of one.
37298         Simplify cross-compilation guess.
37299         * NEWS: Mention the change.
37300         Reported by Rich Felker <dalias@aerifal.cx>.
37302 2012-06-26  Bruno Haible  <bruno@clisp.org>
37304         argp, regex: Ensure strcasecmp gets declared.
37305         * lib/argp-help.c: Include <strings.h>.
37306         * lib/regex_internal.h: Likewise.
37307         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
37309 2012-06-24  Bruno Haible  <bruno@clisp.org>
37311         ptsname_r: Make it consistent with ptsname on AIX.
37312         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
37313         implementation as for OSF/1.
37314         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
37315         a pty master.
37317         ptsname_r: Make it consistent with ptsname on OSF/1.
37318         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
37319         OSF/1.
37321 2012-06-24  Bruno Haible  <bruno@clisp.org>
37323         ttyname_r: Fix result on OSF/1, Solaris.
37324         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
37326 2012-06-24  Bruno Haible  <bruno@clisp.org>
37328         ptsname_r: Add support for Solaris.
37329         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
37330         Solaris.
37332         ptsname_r: Fix test failure on native Windows.
37333         * modules/ptsname_r (Depends-on): Add isatty.
37335         ptsname_r: Fix test failures on IRIX, Solaris.
37336         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
37337         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
37338         accordingly.
37339         * lib/ptsname_r.c: Include <fcntl.h>.
37340         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
37341         set errno if fd is invalid.
37342         * tests/test-isatty.c (main): Update comments.
37344 2012-06-24  Bruno Haible  <bruno@clisp.org>
37346         ptsname test: Extend test.
37347         * tests/test-ptsname.c: Include <errno.h>.
37348         (main): Test behaviour with invalid file descriptor.
37350 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
37352         time: fix obsolete comment
37353         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
37354         reference to HAVE_STRUCT_TIMESPEC in comment.
37356 2012-06-23  Bruno Haible  <bruno@clisp.org>
37358         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
37359         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
37360         does not handle abbreviated long options with equivalent
37361         disambiguations, set gl_replace_getopt to yes.
37362         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
37364 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
37366         time_r: fix typo that always overrode localtime_r decl
37367         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
37368         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
37369         not in a standard include.
37371 2012-06-22  Bruno Haible  <bruno@clisp.org>
37373         Write "Mac OS X" instead of "MacOS X".
37374         * README: Write "Mac OS X" instead of "MacOS X".
37375         * build-aux/bootstrap: Likewise.
37376         * build-aux/install-reloc: Likewise.
37377         * lib/acl-internal.h: Likewise.
37378         * lib/acl_entries.c: Likewise.
37379         * lib/argp-ba.c: Likewise.
37380         * lib/argp-pv.c: Likewise.
37381         * lib/config.charset: Likewise.
37382         * lib/copy-acl.c: Likewise.
37383         * lib/csharpexec.c: Likewise.
37384         * lib/euidaccess.c: Likewise.
37385         * lib/fbufmode.c: Likewise.
37386         * lib/fflush.c: Likewise.
37387         * lib/file-has-acl.c: Likewise.
37388         * lib/filemode.h: Likewise.
37389         * lib/fpurge.c: Likewise.
37390         * lib/freadable.c: Likewise.
37391         * lib/freadahead.c: Likewise.
37392         * lib/freading.c: Likewise.
37393         * lib/freadptr.c: Likewise.
37394         * lib/freadseek.c: Likewise.
37395         * lib/fseeko.c: Likewise.
37396         * lib/fseterr.c: Likewise.
37397         * lib/fsusage.c: Likewise.
37398         * lib/fwritable.c: Likewise.
37399         * lib/fwriting.c: Likewise.
37400         * lib/get-rusage-as.c: Likewise.
37401         * lib/get-rusage-data.c: Likewise.
37402         * lib/getdomainname.c: Likewise.
37403         * lib/idpriv-drop.c: Likewise.
37404         * lib/idpriv-droptemp.c: Likewise.
37405         * lib/localcharset.c: Likewise.
37406         * lib/locale.in.h: Likewise.
37407         * lib/localename.c: Likewise.
37408         * lib/mbsrtowcs-state.c: Likewise.
37409         * lib/nproc.c: Likewise.
37410         * lib/passfd.c: Likewise.
37411         * lib/posix_openpt.c: Likewise.
37412         * lib/printf-parse.c: Likewise.
37413         * lib/progreloc.c: Likewise.
37414         * lib/safe-read.h: Likewise.
37415         * lib/safe-write.h: Likewise.
37416         * lib/sched.in.h: Likewise.
37417         * lib/set-mode-acl.c: Likewise.
37418         * lib/signal.in.h: Likewise.
37419         * lib/stdint.in.h: Likewise.
37420         * lib/stdio-impl.h: Likewise.
37421         * lib/stdlib.in.h: Likewise.
37422         * lib/strtod.c: Likewise.
37423         * lib/sys_select.in.h: Likewise.
37424         * lib/tcgetsid.c: Likewise.
37425         * lib/unistd.in.h: Likewise.
37426         * lib/unlockpt.c: Likewise.
37427         * lib/vasnprintf.c: Likewise.
37428         * lib/vma-iter.c: Likewise.
37429         * lib/wcsrtombs-state.c: Likewise.
37430         * m4/acl.m4: Likewise.
37431         * m4/acosl.m4: Likewise.
37432         * m4/asinl.m4: Likewise.
37433         * m4/atanl.m4: Likewise.
37434         * m4/c-stack.m4: Likewise.
37435         * m4/cosl.m4: Likewise.
37436         * m4/expl.m4: Likewise.
37437         * m4/extensions.m4: Likewise.
37438         * m4/fdatasync.m4: Likewise.
37439         * m4/fmal.m4: Likewise.
37440         * m4/frexp.m4: Likewise.
37441         * m4/frexpf.m4: Likewise.
37442         * m4/frexpl.m4: Likewise.
37443         * m4/fsusage.m4: Likewise.
37444         * m4/getdomainname.m4: Likewise.
37445         * m4/getloadavg.m4: Likewise.
37446         * m4/getopt.m4: Likewise.
37447         * m4/gettext.m4: Likewise.
37448         * m4/gnulib-common.m4: Likewise.
37449         * m4/intdiv0.m4: Likewise.
37450         * m4/intlmacosx.m4: Likewise.
37451         * m4/largefile.m4: Likewise.
37452         * m4/ldexpl.m4: Likewise.
37453         * m4/link-follow.m4: Likewise.
37454         * m4/locale-ar.m4: Likewise.
37455         * m4/locale-fr.m4: Likewise.
37456         * m4/locale-ja.m4: Likewise.
37457         * m4/locale-tr.m4: Likewise.
37458         * m4/locale-zh.m4: Likewise.
37459         * m4/locale_h.m4: Likewise.
37460         * m4/lock.m4: Likewise.
37461         * m4/logl.m4: Likewise.
37462         * m4/mathfunc.m4: Likewise.
37463         * m4/minus-zero.m4: Likewise.
37464         * m4/mktime.m4: Likewise.
37465         * m4/mmap-anon.m4: Likewise.
37466         * m4/multiarch.m4: Likewise.
37467         * m4/nanosleep.m4: Likewise.
37468         * m4/nocrash.m4: Likewise.
37469         * m4/poll.m4: Likewise.
37470         * m4/printf-frexpl.m4: Likewise.
37471         * m4/printf.m4: Likewise.
37472         * m4/signbit.m4: Likewise.
37473         * m4/sinl.m4: Likewise.
37474         * m4/sqrtl.m4: Likewise.
37475         * m4/strerror_r.m4: Likewise.
37476         * m4/tanl.m4: Likewise.
37477         * m4/threadlib.m4: Likewise.
37478         * m4/ttyname_r.m4: Likewise.
37479         * m4/unlink.m4: Likewise.
37480         * m4/visibility.m4: Likewise.
37481         * m4/wcwidth.m4: Likewise.
37482         * tests/minus-zero.h: Likewise.
37483         * tests/test-alloca-opt.c: Likewise.
37484         * tests/test-copy-acl.sh: Likewise.
37485         * tests/test-copy-file.sh: Likewise.
37486         * tests/test-fdatasync.c: Likewise.
37487         * tests/test-file-has-acl.sh: Likewise.
37488         * tests/test-flock.c: Likewise.
37489         * tests/test-fsync.c: Likewise.
37490         * tests/test-localename.c: Likewise.
37491         * tests/test-malloca.c: Likewise.
37492         * tests/test-nonblocking-pipe.h: Likewise.
37493         * tests/test-nonblocking-socket.h: Likewise.
37494         * tests/test-openpty.c: Likewise.
37495         * tests/test-posix_openpt.c: Likewise.
37496         * tests/test-ptsname.c: Likewise.
37497         * tests/test-ptsname_r.c: Likewise.
37498         * tests/test-sameacls.c: Likewise.
37499         * tests/test-select.h: Likewise.
37500         * tests/test-set-mode-acl.sh: Likewise.
37501         * tests/test-snprintf-posix.h: Likewise.
37502         * tests/test-sprintf-posix.h: Likewise.
37503         * tests/test-strtod.c: Likewise.
37504         * tests/test-time.c: Likewise.
37505         * tests/test-vasnprintf-posix.c: Likewise.
37506         * tests/test-vasprintf-posix.c: Likewise.
37507         * doc/acl-resources.txt: Likewise.
37508         * doc/**/*.texi: Likewise.
37509         Reported by Max Horn <max@quendi.de>.
37511 2012-06-22  Bruno Haible  <bruno@clisp.org>
37513         grantpt: Relax requirement regarding invalid file descriptors.
37514         * lib/grantpt.c: Don't include <fcntl.h>.
37515         (grantpt): Don't verify the validity of the file descriptor.
37516         * modules/grantpt (Depends-on): Remove fcntl-h.
37517         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
37518         file descriptors.
37519         * doc/posix-functions/grantpt.texi: Document more platforms on which
37520         grantpt succeeds for invalid file descriptors.
37521         Reported by Rich Felker <dalias@aerifal.cx>.
37523 2012-06-22  Bruno Haible  <bruno@clisp.org>
37525         fbufmode test: Don't test unportable behaviour.
37526         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
37527         (main): Invoke it three times.
37528         Reported by Szabolcs Nagy <nsz@port70.net>
37529         and Rich Felker <dalias@aerifal.cx>.
37531 2012-06-21  Bruno Haible  <bruno@clisp.org>
37533         gnulib-tool: Refactor inctests variable.
37534         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
37535         (func_modules_transitive_closure,
37536         func_modules_transitive_closure_separately,
37537         func_import, func_create_testdir): Update.
37539         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
37540         * gnulib-tool: Accept option --without-tests.
37541         (func_usage): Document --without-tests option. Rearrange.
37542         (inctests): Normalize according to the mode.
37543         * NEWS: Mention the change.
37544         Suggested by Simon Josefsson.
37546 2012-06-21  Bruce Korb  <bkorb@gnu.org>
37548         parse-duration test: Avoid spurious output.
37549         * tests/test-parse-duration.sh: Reindent with leading tabs.
37551 2012-06-21  Jim Meyering  <meyering@redhat.com>
37553         maint: disable the strncpy prohibition
37554         * cfg.mk: Do not prohibit strncpy here.
37556 2012-06-21  Bruno Haible  <bruno@clisp.org>
37558         nonblocking: Avoid compilation error on mingw64.
37559         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
37560         fscanf.
37561         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
37562         * modules/vfscanf (configure.ac): Likewise.
37563         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
37564         definition only if stdio.h has prepared it.
37565         Reported by Daniel P. Berrange <berrange@redhat.com>.
37567 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
37569         gnulib-tool: Use readlink if it is available.
37570         * gnulib-tool (func_readlink): Choose function more appropriately.
37572 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
37574         posixtm-tests: port to buggy compiler
37575         Problem reported by Simon Josefsson in
37576         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
37577         * modules/posixtm-tests (Depends-on): Add stdint.
37578         * tests/test-posixtm.c (struct posixtm_test.t_expected):
37579         Now of type int_least64_t, not int64_t, both because that's
37580         what INT64_C returns and because int_least64_t works even
37581         on 72-bit hosts.
37582         (T): Use INT64_C on constants outside the traditional int range,
37583         to work around compiler bug noted by Simon.
37585         mktime: fix integer overflow in 'configure'-time test
37586         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
37587         after integer overflow.  Problem reported by Rich Felker in
37588         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
37589         Also, don't look for further instances of a bug if we've already
37590         found one instance; this helps 'configure' run faster.
37592 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
37594         tmpfile, clean-temp: Fix invocation of GetVersionEx.
37595         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
37596         GetVersionEx correctly.
37597         * lib/clean-temp.c (supports_delete_on_close): Likewise.
37599 2012-06-20  Bruno Haible  <bruno@clisp.org>
37601         fdopen: Allow implementations that don't reject invalid fd arguments.
37602         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
37603         succeeds.
37604         Reported by Rich Felker <dalias@aerifal.cx>.
37606 2012-06-20  Simon Josefsson  <simon@josefsson.org>
37608         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
37609         bring in LIBINTL.
37611 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
37613         init.sh: do not rely on autoupated PWD
37614         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
37615         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
37616         Although Nelson's bug was not necessarily fixed by this patch,
37617         it seems wise to make the change for safety.
37618         * tests/init.sh (path_prepend_): Do not rely on PWD updating
37619         automagically after 'cd'; this is not reliable on older shells.
37620         (setup_): Fail if we cannot cd to temporary directory.
37622 2012-06-19  Bruno Haible  <bruno@clisp.org>
37624         stat, fstat: Avoid warnings on mingw64.
37625         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
37626         redefining.
37627         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
37628         Reported by Daniel P. Berrange <berrange@redhat.com>.
37630 2012-06-19  Bruno Haible  <bruno@clisp.org>
37632         stdioext: Add support for musl libc.
37634         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
37635         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
37637         * m4/fseterr.m4: New file.
37638         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
37639         function exists.
37640         * modules/fseterr (Files): Add m4/fseterr.m4.
37641         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
37642         __fseterr does not exist.
37643         (Makefile.am): Remove fseterr.c from lib_SOURCES.
37645         * lib/freadable.h: Update comment.
37647         * lib/fwritable.h: Update comment.
37649         * lib/freading.h: Update comment.
37651         * lib/fwriting.h: Update comment.
37653         * m4/freadahead.m4: New file.
37654         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
37655         that function exists.
37656         * modules/freadahead (Files): Add m4/freadahead.m4.
37657         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
37658         __freadahead does not exist.
37659         (Makefile.am): Remove freadahead.c from lib_SOURCES.
37661         * m4/freadptr.m4: New file.
37662         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
37663         function exists.
37664         * modules/freadptr (Files): Add m4/freadptr.m4.
37665         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
37666         __freadptr does not exist.
37667         (Makefile.am): Remove freadptr.c from lib_SOURCES.
37669         * m4/freadseek.m4: New file.
37670         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
37671         exists.
37672         * modules/freadseek (Files): Add m4/freadseek.m4.
37673         (configure.ac): Invoke gl_FUNC_FREADSEEK.
37675         * lib/fpurge.c (fpurge): Update comment.
37677         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
37679 2012-06-19  Bruno Haible  <bruno@clisp.org>
37681         *printf-posix: Put more info into config.log.
37682         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
37683         exit code into config.log.
37685 2012-06-19  Bruno Haible  <bruno@clisp.org>
37687         getopt-gnu: Fix exit code overflow in autoconf test.
37688         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
37689         to keep them below < 128.
37691 2012-06-17  Jim Meyering  <meyering@redhat.com>
37693         maint.mk: fix typo in code to derive GPG key at release time
37694         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
37696 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
37698         regex: avoid warning when pointers are not long
37699         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
37700         and uintptr_t, not long, for portability to hosts where pointers and
37701         long have different sizes.  Issue noted by Daniel P. Berrange in
37702         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
37703         and fix suggested by Bruno Haible in
37704         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
37706 2012-06-17  Bruno Haible  <bruno@clisp.org>
37708         dummy: Relicense into the public domain.
37709         * modules/dummy (License): Set to "public domain".
37710         Suggested by Reuben Thomas.
37712 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
37714         announce-gen: VPATH issues
37715         * build-aux/announce-gen (--srcdir): New option, used to trim the
37716         $srcdir part of the path from $builddir to NEWS.
37717         * top/maint.mk (announcement): Adjust.
37719 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
37721         gnu-web-doc-update: VPATH builds
37722         * build-aux/gnu-web-doc-update (--builddir): New option.
37723         Revamp the handling of options.
37724         Prefer $(...) to `...`.
37725         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
37726         the template, and it is GNU mktemp specific.
37727         Prefer set -e to long series of &&.
37728         Restore the initial git branch, not "master".
37729         Properly initialize submodules (don't rely only on bootstrap).
37730         Do not reconfigure blindly, use config.status.
37731         * top/README-release: Update instructions for gnu-web-doc-update.
37733 2012-06-11  Jim Meyering  <meyering@redhat.com>
37735         maint.mk: revert most of the previous change re "all these"
37736         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
37737         For rationale, see the discussion at
37738         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
37740 2012-06-10  Karl Berry  <karl@gnu.org>
37742         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
37744         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
37746 2012-06-10  Bruce Korb  <bkorb@gnu.org>
37748         parse-duration: Relicense under LGPLv2+.
37749         * modules/parse-duration (License): Change to LGPLv2+.
37751 2012-06-10  Jim Meyering  <meyering@redhat.com>
37753         maint.mk: prohibit common grammar error: "all these"
37754         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
37755         the list of prohibited word sequences.  It should be "all of these".
37756         * lib/tempname.c (__gen_tempname): Fix one of them.
37758 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
37760         do-release-commit-and-tag: support VPATH builds
37761         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
37762         (noteworthy): Defined earlier to factor its value.
37763         (noteworthy_stub): New.
37764         Use it to factor.
37765         (help_version): Split into...
37766         (help, version): these.
37767         Adjust the option processing part.
37768         Support "--option=value" in addition to "--option value".
37769         (builddir): New.
37770         (--builddir): New option.
37771         * top/README-release: Document this.
37772         Reword slightly so that the reader cannot understand that he
37773         has to do these steps before calling do-release-commit-and-tag.
37775 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
37777         readme-release: also require announce-gen and maintainer-makefile
37778         * modules/readme-release (Depends-on): here.
37779         * modules/announce-gen, modules/do-release-commit-and-tag,
37780         modules/gnu-web-doc-update, modules/maintainer-makefile
37781         (Description): Point to readme-release.
37783 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
37785         maint.mk: fix VPATH issues.
37786         * top/maint.mk (news-check): GNU Make understand $< very well.
37787         (release-prep): NEWS is in $(srcdir).
37789 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
37791         readme-release: require the promoted modules.
37792         * modules/readme-release (Depends-on): Add
37793         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
37794         in this text.
37796 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
37797             Bruno Haible  <bruno@clisp.org>
37799         error, strerror-override: Support mingw64 from Fedora 17.
37800         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
37801         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
37802         EINPROGRESS.
37803         * lib/strerror-override.h (strerror_override): Test it.
37804         * lib/strerror-override.c (strerror_override): Likewise.
37805         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
37807 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
37808             Bruno Haible  <bruno@clisp.org>
37810         error, strerror-override: Support mingw64 from Fedora 17.
37811         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
37812         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
37813         * lib/strerror-override.h (strerror_override): Test it.
37814         * lib/strerror-override.c (strerror_override): Likewise.
37816 2012-06-03  Bruno Haible  <bruno@clisp.org>
37818         error, strerror-override: Support new errno values from POSIX:2008.
37819         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
37820         ENOTRECOVERABLE.
37821         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
37822         platforms.
37823         * lib/strerror-override.c (strerror_override): Conditionalize the
37824         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
37825         * lib/strerror-override.h (strerror_override): Declare also if
37826         GNULIB_defined_EOWNERDEAD is defined.
37827         * tests/test-errno.c (e130, e131): New variables.
37828         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
37829         ENOTRECOVERABLE.
37830         Reported by Paolo Bonzini.
37832 2012-05-31  Jim Meyering  <meyering@redhat.com>
37834         savewd: add missing dependency on sys_wait module
37835         * modules/savewd (Depends-on): Add sys_wait, needed at least
37836         for MSVC.  Report and suggested change by Michael Goffioul.
37838 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
37840         system-quote-tests: port to CentOS 5
37841         Problem reported by Tom G. Christensen in
37842         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
37843         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
37845 2012-05-29  Jim Meyering  <meyering@redhat.com>
37847         maint: fix typos in comments and ChangeLog
37848         Culprits identified and fixed mostly automatically using these commands:
37849         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
37850         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
37851         using http://github.com/lyda/misspell-check
37852         * ChangeLog: Fix typos.
37853         * doc/solaris-versions: Likewise.
37854         * lib/regexec.c (re_search_stub): Likewise.
37855         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
37857 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
37859         manywarnings: remove duplicate -Wmultichar entry
37860         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
37861         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
37862         so keep the entry marked as documented.
37864 2012-05-27  Karl Berry  <karl@gnu.org>
37866         * config/srclist.txt (mktime.c): remove last libc sync,
37867         perhaps just temporarily.
37869 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
37871         regex: don't assume uint64_t or uint32_t
37872         * lib/regcomp.c (init_word_char): Don't assume that the types
37873         uint64_t and uint32_t exist.  The C standard doesn't guarantee
37874         them, and on some 32-bit compilers there is no uint64_t.
37875         Problem reported by Gianluigi Tiesi in
37876         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
37878 2012-05-25  Jim Meyering  <meyering@redhat.com>
37880         maint.mk: add strncpy-prohibiting syntax-check rule
37881         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
37883 2012-05-24  Jim Meyering  <meyering@redhat.com>
37885         maint.mk: compute $(gpg_key_ID) more portably
37886         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
37887         That use of sed is not portable to some fringe systems.
37888         Reported by Paul Eggert in
37889         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
37891 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
37893         mktime: sync from glibc
37894         * config/srclist.txt: Uncomment mktime.c.
37895         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
37896         First, indent with tabs, since glibc uses tabs and doesn't want to
37897         change and we'd rather be identical to glibc.  Also, two small
37898         coding changes:
37899         (isdst_differ): Use &&, not &, as && is the usual style.
37900         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
37901         for clarity.
37903 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
37905         announce-gen: du -h is more portable than du --human
37906         * build-aux/announce-gen (sizes): Invoke du with -h instead
37907         of --human.  Accept leading white space in its output.
37909 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
37911         announce-gen: Improve diagnostics.
37912         * build-aux/announce-gen: When parsing command line options,
37913         prefer "announce-gen: option --release-type requires an argument"
37914         to "Option release-type requires an argument".
37916 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
37918         maint.mk: gpg_key_ID: use sed more portably
37919         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
37920         the closing brace.
37921         (refresh-po): Fuse two sed invocations into one.
37923 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
37925         gitlog-to-changelog: support the log message format used in Bison.
37926         * build-aux/gitlog-to-changelog: Support --strip-tab and
37927         --strip-cherry-picked.
37929 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
37931         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
37932         the rest of the current time slice to another thread in the current
37933         process. So if the thread that feeds the file decscriptor we're
37934         polling is not in the current process, we get busy-waiting.
37935         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
37936         Patch from Theodore Leblond.
37937         * lib/select.c: Split polling out of the loop that sets the output
37938         fd_sets.  Check for zero result and loop if the wait timeout is
37939         infinite.
37941 2012-05-21  Simon Josefsson  <simon@josefsson.org>
37943         select: Fix build error on IRIX 6.5.
37944         * lib/select.c: Include stddef.h for NULL.
37946 2012-05-21  Simon Josefsson  <simon@josefsson.org>
37948         gc: fix libgcrypt detection on older machines.
37949         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
37950         copyright years because the file has been distributed every year
37951         since it was created.
37953 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
37955         crypto: fix bug in large buffer handling
37956         Problem reported by Serge Belyshev for glibc in
37957         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
37958         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
37959         * lib/md4.c (md4_process_block):
37960         * lib/md5.c (md5_process_block):
37961         * lib/sha1.c (sha1_process_block):
37962         * lib/sha256.c (sha256_process_block):
37963         Don't assume the buffer length is less than 2**32.
37964         * lib/sha512.c (sha512_process_block): Likewise.
37965         Here, the bug is present only in the rare case where the host does
37966         not support uint64_t or where size_t is wider than 64 bits.
37967         Use u64size to work around the problems.
37968         * lib/u64.h (u64size): New macro.
37970 2012-05-15  Pádraig Brady  <P@draigBrady.com>
37972         fsusage: fix block size returned on older Linux 2.6
37974         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
37975         which is available since Linux 2.6.
37976         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
37977         when the member is available so it can be used as a fallback.
37978         * doc/posix-functions/statvfs.texi: Mention the hang issue
37979         on Linux < 2.6.36.
37981 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
37983         bootstrap: suppress stderr chatter
37984         * build-aux/bootstrap (insert_sorted_if_absent, main program):
37985         Omit unnecessary chatter to stderr.  The main program chatter
37986         was there only inadvertantly.
37988         bootstrap: .gitignore files created by autopoint, libtool
37989         I ran into this problem when bootstrapping the latest diffutils.
37990         After './bootstrap', 'git status' reported lots of untracked files
37991         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
37992         autopoint and do not need to be version-controlled.
37993         * build-aux/bootstrap: Put into .gitignore the files that
37994         autopoint and libtool create, by keeping track of files that exist
37995         after but not before these programs are run.
37996         (version_controlled_file): Move up.  2nd arg is now full file
37997         name, not base name; this is more convenient.  Put CVS at the end,
37998         as it's now somewhat deprecated.
38000 2012-05-14  Jim Meyering  <meyering@redhat.com>
38002         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
38003         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
38004         definition.  Reported by Bruno Haible.
38006 2012-05-13  Bruno Haible  <bruno@clisp.org>
38007             Paul Eggert  <eggert@cs.ucla.edu>
38009         binary-io: Define set_binary_mode function.
38010         * lib/binary-io.h (set_binary_mode): New function.
38011         (SET_BINARY): Define in terms of set_binary_mode.
38012         * modules/binary-io (configure.ac): Require AC_C_INLINE.
38013         * tests/test-binary-io.c (main): Accept an argument, and test either
38014         set_binary_mode or SET_BINARY depending on the argument.
38015         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
38016         argument. Clean up also t-bin-out0.tmp.
38018 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
38020         bootstrap: take advantage of POSIX shell features
38022         The 'bootstrap' script offered by Gnulib script already uses POSIX
38023         shell features (like $((...)) arithmetic expansions) that are not
38024         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
38025         means that bootstrap must already be run using a proper POSIX shell,
38026         which will thus provide more features, like ${var#pattern} parameter
38027         expansion or inversion of a command exit status with '!'.  We can
38028         thus use these features to improve the clarity and the performances
38029         of the bootstrap script.
38031         Suggested by Eric Blake.
38033         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
38034         of sed/expr plus command substitutions, to save some forks.  While
38035         we are at it, prefer the POSIX $(...) form of command substitution,
38036         rather than the legacy form `...` (since the former is visually
38037         clearer and interacts better with quoting), and prefer the idiom:
38038           "if ! CMD; then ACTION ..."
38039         over the idiom:
38040           "if CMD; then :; else ACTION ..."
38041         which was required by legacy Bourne shells not supporting '!'.
38043 2012-05-12  Bruno Haible  <bruno@clisp.org>
38045         system-quote: Add more comments.
38046         * lib/system-quote.h: Add more comments about wilcards and limitations.
38047         Suggested by Eli Zaretskii <eliz@gnu.org>.
38049         sh-quote, system-quote: Add comments about wildcards.
38050         * lib/sh-quote.h: Clarify what happens with wildcard characters.
38051         * lib/system-quote.h: Likewise.
38052         Reported by Eli Zaretskii <eliz@gnu.org>.
38054 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
38056         fsusage: check for GNU/Linux statvfs problem dynamically
38057         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
38058         Define STAT_STATFS2_BSIZE too, since in this case the code now
38059         checks dynamically whether statvfs is reliable, falling back on
38060         Linux-style statfs otherwise.
38061         (statvfs_works): New function, for dynamically testing statvfs.
38062         (get_fs_usage) [STAT_STATVFS]: Use it.
38063         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
38064         statvfs on GNU/Linux hosts, since it's now done dynamically.
38066 2012-05-10  Bruno Haible  <bruno@clisp.org>
38068         system-quote, execute, spawn-pipe: Escape '?' on Windows.
38069         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
38070         '?' character.
38071         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
38072         * tests/test-system-quote-main.c (check_all): Check also strings like
38073         "??????????".
38074         Reported by Eli Zaretskii <eliz@gnu.org>.
38076 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
38078         _Noreturn: port config.h to gcc -Wundef
38079         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
38080         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
38081         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
38083 2012-05-10  Bruno Haible  <bruno@clisp.org>
38085         system-quote: Refactor.
38086         * lib/system-quote.h (system_quote_copy): Fix comment.
38087         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
38088         New functions, extracted from system_quote_copy.
38089         (system_quote_length, system_quote_copy): Use these functions.
38090         Reported by Paul Eggert.
38092 2012-05-08  Bruno Haible  <bruno@clisp.org>
38094         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
38095         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
38097 2012-05-08  Bruno Haible  <bruno@clisp.org>
38099         Tests for module 'system-quote'.
38100         * modules/system-quote-tests: New file.
38101         * tests/test-system-quote.sh: New file.
38102         * tests/test-system-quote-main.c: New file.
38103         * tests/test-system-quote-child.c: New file.
38105         New module 'system-quote'.
38106         * lib/system-quote.h: New file.
38107         * lib/system-quote.c: New file.
38108         * modules/system-quote: New file.
38110 2012-05-08  Bruno Haible  <bruno@clisp.org>
38112         sh-quote: Make C++ safe and allow multiple inclusion.
38113         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
38114         declarations in extern "C".
38116 2012-05-08  Bruno Haible  <bruno@clisp.org>
38118         sh-quote tests: Make tests stricter.
38119         * tests/test-sh-quote.c (check_one): Check the return value of
38120         shell_quote_copy.
38121         (main): Check a string with a CR character. Check a string that
38122         contains UCHAR_MAX.
38124 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
38126         warnings.m4: provide a means to specify the program to compile.
38127         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
38128         (gl_WARN_ADD): here.
38129         Use gl_AS_VAR_APPEND.
38130         Support an argument to specify the program to compile.
38131         (gl_WARN_ADD): Accept an argument to specify the program to compile.
38132         AC_SUBST the WARN_CFLAGS when they are used.
38133         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
38134         leave this to gl_WARN_ADD.
38136 2012-05-08  Eric Blake  <eblake@redhat.com>
38138         doc: recommendations on gettext version
38139         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
38140         choice between versions.
38141         * DEPENDENCIES (gettext): Cover both approaches.
38143 2012-05-08  Jim Meyering  <meyering@redhat.com>
38145         init.sh: explain why EXEEXT support uses aliases rather than functions
38146         * tests/init.sh: Add a comment.
38148         init.sh: don't let bash aliases interfere with tests
38149         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
38150         is bash.  This avoids problems for those who alias standard commands to
38151         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
38152         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
38154 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
38156         stdint: be more consistent with glibc, SunOS libc
38157         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
38158         (gl_int_fast16_t, gl_uint_fast16_t)
38159         (gl_int_fast32_t, gl_uint_fast32_t)
38160         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
38161         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
38162         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
38163         Be consistent with glibc by default, and with SunOS 5.10 and later
38164         if __sun is defined.  This lessens the likelihood of clashes if
38165         code compiled for older hosts is combined with code compiled for
38166         newer ones.  Problem reported by Niels Möller in
38167         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
38169 2012-05-07  Eric Blake  <eblake@redhat.com>
38171         isatty: relax license to LGPLv2+
38172         * modules/isatty (License): Relax license.
38174 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
38176         stat-size: comment fix
38177         * lib/stat-size.h: Remove obsolete comment about indenting.
38179 2012-05-06  Bruno Haible  <bruno@clisp.org>
38181         Tests for module 'sh-quote'.
38182         * modules/sh-quote-tests: New file.
38183         * tests/test-sh-quote.c: New file.
38185 2012-05-06  Bruno Haible  <bruno@clisp.org>
38187         sh-quote: Improve shell_quote_argv's signature.
38188         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
38189         * lib/sh-quote.c (shell_quote_argv): Likewise.
38191 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
38193         stdint: document issues with int_fast8_t etc.
38194         * doc/posix-headers/stdint.texi (stdint.h): Say that other
38195         stdint.h substitutes may define these types differently.  See
38196         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
38198 2012-05-05  Bruno Haible  <bruno@clisp.org>
38200         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
38201         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
38202         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
38203         or 'guessing no (mishandles large arguments)'.
38205 2012-05-05  Bruno Haible  <bruno@clisp.org>
38207         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
38208         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
38209         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
38210         set gl_cv_func_link_follows_symlink to "guessing no".
38212 2012-05-05  Bruno Haible  <bruno@clisp.org>
38214         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
38215         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
38216         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
38217         "guessing no".
38218         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
38220 2012-05-05  Bruno Haible  <bruno@clisp.org>
38222         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
38223         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
38224         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
38225         set gl_cv_struct_dirent_d_ino to "guessing yes".
38227 2012-05-05  Bruno Haible  <bruno@clisp.org>
38229         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
38230         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
38231         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
38232         "guessing yes".
38234 2012-05-05  Bruno Haible  <bruno@clisp.org>
38236         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
38237         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
38238         compiling to a glibc system, set gl_cv_func_signbit and
38239         gl_cv_func_signbit_gcc to "guessing yes".
38241 2012-05-05  Bruno Haible  <bruno@clisp.org>
38243         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
38244         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
38245         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
38246         to "guessing yes".
38247         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
38248         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
38250 2012-05-05  Bruno Haible  <bruno@clisp.org>
38252         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
38253         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
38254         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
38255         gl_cv_func_realpath_works to "guessing yes".
38257 2012-05-05  Bruno Haible  <bruno@clisp.org>
38259         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
38260         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
38261         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
38263 2012-05-04  Bruno Haible  <bruno@clisp.org>
38265         Tweak last commit.
38266         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
38267         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38269 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
38271         unistd_h: make it easier to avoid sys_types_h
38272         This is useful for Emacs, which has its own method of porting to
38273         Windows, and which therefore does not need the sys_types_h module.
38274         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
38275         code moved here from gl_SYS_TYPES_H.
38276         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
38277         using the code directly.
38278         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
38279         gl_SYS_TYPES_H.
38280         * modules/sys_types (Files):
38281         * modules/unistd (Files): Add m4/off_t.m4.
38283 2012-05-03  Bruno Haible  <bruno@clisp.org>
38285         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
38286         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
38287         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
38288         "guessing yes" or "guessing no".
38289         (gl_FUNC_LSTAT): Update.
38290         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
38291         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
38292         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
38294 2012-05-03  Bruno Haible  <bruno@clisp.org>
38296         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
38297         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
38298         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
38299         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
38300         cross-compiling, choose the first alternative on glibc systems.
38301         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
38303 2012-05-03  Bruno Haible  <bruno@clisp.org>
38305         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
38306         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
38307         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
38309 2012-05-03  Bruno Haible  <bruno@clisp.org>
38311         chown: Avoid "guessing no" when cross-compiling to glibc systems.
38312         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
38314 2012-05-03  Bruno Haible  <bruno@clisp.org>
38316         Avoid "guessing no" guesses when cross-compiling to glibc systems.
38317         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
38318         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
38319         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
38320         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
38321         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
38322         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
38323         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
38324         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
38325         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
38326         compiling to glibc systems, set gl_cv_func_chown_slash_works,
38327         gl_cv_func_chown_ctime_works to "guessing yes".
38328         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
38329         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
38330         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
38331         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
38332         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
38333         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
38334         compiling to glibc systems, set gl_cv_func_open_directory_works to
38335         "guessing yes".
38336         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
38337         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
38338         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
38339         "guessing yes".
38340         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
38341         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
38342         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
38343         compiling to glibc systems, set gl_cv_func_floorf_ieee to
38344         "guessing yes".
38345         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
38346         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
38347         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
38348         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
38349         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
38350         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
38351         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
38352         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
38353         "guessing yes".
38354         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
38355         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
38356         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
38357         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
38358         "guessing yes".
38359         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
38360         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
38361         "guessing yes".
38362         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
38363         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
38364         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
38365         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
38366         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
38367         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
38368         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
38369         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
38370         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
38371         compiling to glibc systems, set gl_cv_func_log10f_ieee to
38372         "guessing yes".
38373         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
38374         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
38375         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
38376         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
38377         "guessing yes".
38378         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
38379         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
38380         "guessing yes".
38381         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
38382         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
38383         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
38384         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
38385         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
38386         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
38387         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
38388         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
38389         compiling to glibc systems, set gl_cv_func_mkfifo_works to
38390         "guessing yes".
38391         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
38392         compiling to glibc systems, set gl_cv_func_mknod_works to
38393         "guessing yes".
38394         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
38395         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
38396         "guessing yes".
38397         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
38398         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
38399         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
38400         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
38401         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
38402         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
38403         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
38404         compiling to glibc systems, set gl_cv_func_svid_putenv to
38405         "guessing yes".
38406         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
38407         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
38408         "guessing yes".
38409         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
38410         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
38411         "guessing yes".
38412         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
38413         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
38414         to "guessing yes".
38415         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
38416         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
38417         to "guessing yes".
38418         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
38419         compiling to glibc systems, set gl_cv_func_rmdir_works to
38420         "guessing yes".
38421         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
38422         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
38423         gl_cv_func_unlink_parent_fails to "guessing yes".
38424         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
38425         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
38426         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
38427         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
38428         gl_cv_func_rename_dest_works to "guessing yes".
38429         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
38430         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
38431         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
38432         compiling to glibc systems, set gl_cv_func_roundf_ieee to
38433         "guessing yes".
38434         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
38435         compiling to glibc systems, set gl_cv_func_roundl_ieee to
38436         "guessing yes".
38437         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
38438         compiling to glibc systems, set gl_cv_func_setenv_works to
38439         "guessing yes".
38440         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
38441         compiling to glibc systems, set gl_cv_func_unsetenv_works to
38442         "guessing yes".
38443         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
38444         compiling to glibc systems, set gl_cv_func_sleep_works to
38445         "guessing yes".
38446         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
38447         compiling to glibc systems, set gl_cv_func_stat_file_slash to
38448         "guessing yes".
38449         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
38450         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
38451         "guessing yes".
38452         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
38453         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
38454         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
38455         compiling to glibc systems, set gl_cv_func_truncf_ieee to
38456         "guessing yes".
38457         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
38458         compiling to glibc systems, set gl_cv_func_truncl_ieee to
38459         "guessing yes".
38460         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
38461         compiling to glibc systems, set gl_cv_func_usleep_works to
38462         "guessing yes".
38463         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
38464         compiling to glibc systems, set gl_cv_func_futimesat_works to
38465         "guessing yes".
38467 2012-05-03  Bruno Haible  <bruno@clisp.org>
38469         Say "guessing yes" or "guessing no" when cross-compiling.
38470         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
38471         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
38472         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
38473         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
38474         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
38475         am_cv_func_working_getline to "guessing yes" or "guessing no".
38476         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
38477         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
38478         (gl_FUNC_MEMMEM): When cross-compiling, set
38479         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
38480         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
38481         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
38482         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
38483         set gl_cv_func_strcasestr_works_always to "guessing yes" or
38484         "guessing no".
38485         (gl_FUNC_STRCASESTR): When cross-compiling, set
38486         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
38487         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
38488         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
38489         (gl_FUNC_STRSTR): When cross-compiling, set
38490         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
38491         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
38492         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
38493         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
38494         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
38496 2012-05-01  Bruno Haible  <bruno@clisp.org>
38498         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
38499         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
38500         * build-aux/reloc-ldflags: Likewise.
38501         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
38503 2012-05-01  Bruno Haible  <bruno@clisp.org>
38505         gnulib-tool: Remove transitional code.
38506         * gnulib-tool: Don't warn about --import with 0 arguments any more.
38507         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
38509 2012-05-01  Bruno Haible  <bruno@clisp.org>
38511         getcwd: Fix misindentation.
38512         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
38514 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
38516         exclude: process exclude and include directives in order
38517         This restores the pre-2009 behavior, and is part of a fix of a
38518         grep bug reported by Quentin Arce in
38519         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
38520         * lib/exclude.c (struct exclude): Remove 'tail' member.
38521         (new_exclude_segment): Prepend the new segment instead of appending.
38522         Return void, since that's now more convenient.
38523         (file_pattern_matches): Renamed from excluded_file_pattern_p.
38524         (file_name_matches): Renamed from excluded_file_name_p.
38525         (file_pattern_matches, file_name_matches):
38526         Return true if the pattern matches, not if it excludes.
38527         All callers changed.
38528         (excluded_file_name): Process the list in reverse order;
38529         since the list is now reversed this restores the pre-2009 behavior.
38530         (add_exclude): Adjust to new reversed-order list.  Use local var
38531         rather than macro, for clarity.
38532         * tests/test-exclude7.sh: Adjust to corrected behavior.
38534         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
38535         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
38536         it's not possible here.  Handle the case of \ at end of pattern
38537         without dumping core.
38538         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
38540         _Noreturn: future-proof non-GNU and non-MSVC compilers
38541         * build-aux/snippet/_Noreturn.h (_Noreturn):
38542         * m4/gnulib-common.m4 (gl_COMMON_BODY):
38543         Do not define _Noreturn if __STDC_VERSION__ indicates this is
38544         C11 or later.  This is more likely to work with random future C
38545         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
38546         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
38548         exclude: handle wildcards with FNM_EXTMATCH
38549         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
38550         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
38551         comment that "has wildcards" really means "has or may have
38552         wildcards".  Simplify by avoiding the need to call strcspn.
38554 2012-04-29  Bruno Haible  <bruno@clisp.org>
38556         gnulib-tool: Fix list of authors.
38557         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
38559 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
38561         bootstrap: support Automake-NG in $buildreq
38562         * bootstrap (check_versions): Handle automake and aclocal from
38563         Automake-NG specially.  They can be specified as respectively
38564         the "automake-ng" and "aclocal-ng" requirements.
38566 2012-04-25  Eric Blake  <eblake@redhat.com>
38568         bootstrap: only force latest Makefile.in.in for gettext module
38569         * build-aux/bootstrap (with_gettext): Only install latest
38570         Makefile.in.in for projects requesting bleeding edge gettext.
38572 2012-04-22  Bruno Haible  <bruno@clisp.org>
38574         doc: Mention reason for replacement on glibc/Linux systems.
38575         * doc/posix-functions/dprintf.texi: Mention the problem with special
38576         'long double' values.
38577         * doc/posix-functions/fprintf.texi: Likewise.
38578         * doc/posix-functions/printf.texi: Likewise.
38579         * doc/posix-functions/snprintf.texi: Likewise.
38580         * doc/posix-functions/sprintf.texi: Likewise.
38581         * doc/posix-functions/vdprintf.texi: Likewise.
38582         * doc/posix-functions/vfprintf.texi: Likewise.
38583         * doc/posix-functions/vprintf.texi: Likewise.
38584         * doc/posix-functions/vsnprintf.texi: Likewise.
38585         * doc/posix-functions/vsprintf.texi: Likewise.
38586         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
38587         platforms with F_DUPFD_CLOEXEC problems.
38588         * doc/posix-functions/glob.texi: Mention which platforms are affected
38589         by the problem with symbolic links.
38590         * doc/posix-functions/linkat.texi: Mention the problem with
38591         AT_SYMLINK_FOLLOW on Linux.
38593 2012-04-22  Bruno Haible  <bruno@clisp.org>
38595         pwrite: Don't replace on all platforms.
38596         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
38598 2012-04-22  Bruno Haible  <bruno@clisp.org>
38600         rint* tests: Avoid gcc warnings.
38601         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
38602         * tests/test-rintf.c (INFINITY, NAN): Likewise.
38603         * tests/test-rintl.c (INFINITY, NAN): Likewise.
38605 2012-04-21  Bruno Haible  <bruno@clisp.org>
38607         users.txt: Update.
38608         * users.txt: Add freedink, wdiff. Update URLs for projects that have
38609         switched from CVS to git, bzr, or svn.
38611 2012-04-21  Bruno Haible  <bruno@clisp.org>
38613         Large File Support for native Windows platforms.
38615         * m4/largefile.m4 (gl_LARGEFILE): New macro.
38616         * modules/largefile (configure.ac): Require gl_LARGEFILE.
38618         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
38619         type.
38620         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
38621         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
38622         * doc/posix-headers/sys_types.texi: Mention the effect of the
38623         'largefile' module.
38625         * lib/fcntl.in.h: Add comments about off_t.
38626         * modules/fcntl-h (Depends-on): Add sys_types.
38628         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
38629         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
38630         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
38631         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
38632         * modules/unistd (Depends-on): Add sys_types.
38633         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
38635         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
38636         instead of lseek.
38637         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
38638         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
38639         * modules/lseek (Depends-on): Add sys_types.
38641         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
38642         msvc-nothrow.h.
38643         (SetFileSize): New function.
38644         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
38645         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
38646         if Large File Support is requested.
38647         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
38648         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
38650         * lib/stdio.in.h: Add comments about off_t.
38651         * modules/stdio (Depends-on): Add sys_types.
38653         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
38654         instead of ftello.
38655         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
38656         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
38657         (gl_PREREQ_FTELLO): New macro.
38658         * modules/ftello (Depends-on): Add sys_types.
38659         (configure.ac): Incoke gl_PREREQ_FTELLO.
38661         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
38662         instead of fseeko.
38663         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
38664         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
38665         (gl_PREREQ_FSEEKO): New macro.
38666         * modules/fseeko (Depends-on): Add sys_types.
38667         (configure.ac): Invoke gl_PREREQ_FSEEKO.
38669         * lib/sys_stat.in.h: Add comments about off_t.
38670         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
38671         64-bit integer for st_size in 'struct stat'.
38672         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
38673         Define _GL_WINDOWS_64_BIT_ST_SIZE.
38674         * modules/sys_stat (Depends-on): Add sys_types.
38675         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
38677         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
38678         instead of stat or _stat.
38680         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
38681         'struct _stati64' instead of fstat and 'struct stat'.
38682         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
38683         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
38685         Reported by Ray Satiro <raysatiro@yahoo.com>.
38687 2012-04-19  Eric Blake  <eblake@redhat.com>
38689         bootstrap: accommodate older libtool
38690         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
38691         Reported by Daniel P. Berrange.
38693 2012-04-19  Jim Meyering  <meyering@redhat.com>
38695         announce-gen: avoid failure due to lack of Digest::SHA1
38696         Even with the preferred Digest::SHA available, this script
38697         would fail when the backup module, Digest::SHA1, was not installed.
38698         * build-aux/announce-gen: Quote the conditional use of "use".
38699         Reported by Reuben Thomas in:
38700         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
38702         bootstrap: don't let a user's CDPATH setting affect this script
38703         When CDPATH is set, cd will sometimes generate output.
38704         When "cd" is run in a subshell whose output matters, that
38705         surprising-to-some output can cause malfunction.
38706         Unsetting CDPATH turns off this shell "feature."
38707         * build-aux/bootstrap (CDPATH): Unset.
38708         Reported by Reuben Thomas in:
38709         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
38710         and inspired by his patch here:
38711         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
38713 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
38714         and Jim Meyering  <meyering@redhat.com>
38716         maint.mk: catch "see @xref{}" and similar
38717         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
38718         prohibit "See also @xref{", "Also see @pxref{", and similar.
38720 2012-04-16  Jim Meyering  <meyering@redhat.com>
38722         bootstrap: really use gnulib's po/Makefile.in.in
38723         * build-aux/bootstrap: Correct the source file name in previous change.
38724         Reported by Akim Demaille.
38726         configmake: correct minor inconsistency in Makefile rule
38727         * modules/configmake (Makefile.am): All other rules like this one
38728         run the final "mv -f ..." in the same backslash-continued command
38729         as the one that does everything else.  This one put the mv -f ...
38730         command on a separate, non-backslash-continued line.
38731         Make it like the others.
38733         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
38734         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
38735         the one from gettext.  Reported by Akim Demaille.
38737 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
38739         Fix recursion of install-* into po directories.
38740         Bison's install-pdf bug reported by Hans Aberg at
38741         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
38742         * build-aux/po/Makefile.in.in (install-dvi, install-html)
38743         (install-info, install-pdf, install-ps): New targets.
38745 2012-04-16  Jim Meyering  <meyering@redhat.com>
38747         maint: avoid spurious "make sc_maint" failure
38748         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
38749         exempt all *.class file names, for lib/javaversion.class.
38751 2012-04-15  Bruno Haible  <bruno@clisp.org>
38753         lseek: Make configure test independent of environment.
38754         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
38755         Windows, we know that lseek() on pipes is broken; skip the runtime
38756         test.
38758 2012-04-14  Bruno Haible  <bruno@clisp.org>
38760         stat: Bypass buggy override in mingw64.
38761         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
38762         * lib/stat.c (stat) [mingw64]: Define to _stat.
38763         * doc/posix-functions/stat.texi: Mention mingw64 bug.
38765 2012-04-14  Bruno Haible  <bruno@clisp.org>
38767         pathmax: Fix compilation error on MSVC 9.
38768         * modules/pathmax (Depends-on): Add unistd.
38770 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
38772         README: document pointer comparison assumption
38773         * README (Portability guidelines): Document assumption about
38774         pointer comparisons, in response to a recent bug-gnulib comment by
38775         Jeffrey Kegler.
38777 2012-04-12  Bruno Haible  <bruno@clisp.org>
38779         Tests for module 'getrusage'.
38780         * modules/getrusage-tests: New file.
38781         * tests/test-getrusage.c: New file.
38783         New module 'getrusage'.
38784         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
38785         warn-on-use.h.
38786         (getrusage): New declaration.
38787         * lib/getrusage.c: New file.
38788         * m4/getrusage.m4: New file.
38789         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
38790         is declared.
38791         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
38792         HAVE_GETRUSAGE.
38793         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
38794         snippet/c++defs, snippet/warn-on-use.
38795         (Makefile.am): Update generation of sys/resource.h. Substitute
38796         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
38797         * modules/getrusage: New file.
38798         * doc/posix-functions/getrusage.texi: Mention the new module.
38800 2012-04-12  Bruno Haible  <bruno@clisp.org>
38802         Tests for module 'sys_resource'.
38803         * modules/sys_resource-tests: New file.
38804         * tests/test-sys_resource.c: New file.
38806         New module 'sys_resource'.
38807         * lib/sys_resource.in.h: New file.
38808         * m4/sys_resource_h.m4: New file.
38809         * modules/sys_resource: New file.
38810         * doc/posix-headers/sys_resource.texi: Mention the new module.
38812 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
38814         ioctl: Fix compilation error on mingw.
38815         * lib/ioctl.c: Include <windows.h>.
38816         Also reported by Ray Satiro <raysatiro@yahoo.com>.
38818 2012-04-04  Jim Meyering  <meyering@redhat.com>
38820         regex: correct #pragma guard expression
38821         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
38822         not 4.3.  Correct its cpp guard expression.
38824 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
38826         regex: remove unnecessary type punning
38827         Problem reported by Vladimir Serbinenko in
38828         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
38829         * lib/regex.h (struct re_pattern_buffer): Change the type of
38830         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
38831         Fix comment to match code.
38832         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
38833         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
38834         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
38835         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
38836         (set_regs):
38837         Omit no-longer-necessary casts.
38839 2012-04-03  Bruno Haible  <bruno@clisp.org>
38841         Tests for module 'ilogbl'.
38842         * modules/ilogbl-tests: New file.
38843         * tests/test-ilogbl.c: New file.
38845         New module 'ilogbl'.
38846         * lib/math.in.h (ilogbl): New declaration.
38847         * lib/ilogbl.c: New file.
38848         * m4/ilogbl.m4: New file.
38849         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
38850         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
38851         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
38852         Split sed invocation, to avoid the limit of 100 substitutions of
38853         HP-UX 'sed'.
38854         * modules/ilogbl: New file.
38855         * tests/test-math-c++.cc: Check the declaration of ilogbl.
38856         * doc/posix-functions/ilogbl.texi: Mention the new module.
38858 2012-04-03  Bruno Haible  <bruno@clisp.org>
38860         Tests for module 'ilogbf'.
38861         * modules/ilogbf-tests: New file.
38862         * tests/test-ilogbf.c: New file.
38864         New module 'ilogbf'.
38865         * lib/math.in.h (ilogbf): New declaration.
38866         * lib/ilogbf.c: New file.
38867         * m4/ilogbf.m4: New file.
38868         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
38869         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
38870         REPLACE_ILOGBF.
38871         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
38872         REPLACE_ILOGBF.
38873         * modules/ilogbf: New file.
38874         * tests/test-math-c++.cc: Check the declaration of ilogbf.
38875         * doc/posix-functions/ilogbf.texi: Mention the new module.
38877 2012-04-03  Bruno Haible  <bruno@clisp.org>
38879         Tests for module 'ilogb'.
38880         * modules/ilogb-tests: New file.
38881         * tests/test-ilogb.c: New file.
38882         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
38883         tests/test-logb-ieee.h.
38885         New module 'ilogb'.
38886         * lib/math.in.h (ilogb): New declaration.
38887         * lib/ilogb.c: New file.
38888         * m4/ilogb.m4: New file.
38889         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
38890         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
38891         REPLACE_ILOGB.
38892         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
38893         REPLACE_ILOGB.
38894         * modules/ilogb: New file.
38895         * tests/test-math-c++.cc: Check the declaration of ilogb.
38896         * doc/posix-functions/ilogb.texi: Mention the new module.
38898 2012-04-03  Bruno Haible  <bruno@clisp.org>
38900         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
38901         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
38902         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
38903         (main): Check their values.
38904         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
38905         problem.
38907 2012-04-03  Bruno Haible  <bruno@clisp.org>
38909         Tests for module 'logbl-ieee'.
38910         * modules/logbl-ieee-tests: New file.
38911         * tests/test-logbl-ieee.c: New file.
38913         New module 'logbl-ieee'.
38914         * modules/logbl-ieee: New file.
38916         Tests for module 'logb-ieee'.
38917         * modules/logb-ieee-tests: New file.
38918         * tests/test-logb-ieee.c: New file.
38920         New module 'logb-ieee'.
38921         * modules/logb-ieee: New file.
38923         Tests for module 'logbf-ieee'.
38924         * modules/logbf-ieee-tests: New file.
38925         * tests/test-logbf-ieee.c: New file.
38926         * tests/test-logb-ieee.h: New file.
38928         New module 'logbf-ieee'.
38929         * modules/logbf-ieee: New file.
38931 2012-04-03  Bruno Haible  <bruno@clisp.org>
38933         Tests for module 'logbl'.
38934         * modules/logbl-tests: New file.
38935         * tests/test-logbl.c: New file.
38937         New module 'logbl'.
38938         * lib/math.in.h (logbl): New declaration.
38939         * lib/logbl.c: New file.
38940         * m4/logbl.m4: New file.
38941         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
38942         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
38943         REPLACE_LOGBL.
38944         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
38945         REPLACE_LOGBL.
38946         * modules/logbl: New file.
38947         * tests/test-math-c++.cc: Check the declaration of logbl.
38948         * doc/posix-functions/logbl.texi: Mention the new module.
38950 2012-04-02  Bruno Haible  <bruno@clisp.org>
38952         Tests for module 'logbf'.
38953         * modules/logbf-tests: New file.
38954         * tests/test-logbf.c: New file.
38956         New module 'logbf'.
38957         * lib/math.in.h (logbf): New declaration.
38958         * lib/logbf.c: New file.
38959         * m4/logbf.m4: New file.
38960         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
38961         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
38962         REPLACE_LOGBF.
38963         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
38964         REPLACE_LOGBF.
38965         * modules/logbf: New file.
38966         * tests/test-math-c++.cc: Check the declaration of logbf.
38967         * doc/posix-functions/logbf.texi: Mention the new module.
38969 2012-04-02  Bruno Haible  <bruno@clisp.org>
38971         logb tests: More tests.
38972         * tests/test-logb.h: New file, based on tests/test-logb.c and
38973         tests/test-frexp.h.
38974         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
38975         (main): Just invoke test_function.
38976         * modules/logb-tests (Files): Add tests/test-logb.h,
38977         tests/minus-zero.h, tests/randomd.c.
38978         (Makefile.am): Add randomd.c to test_logb_SOURCES.
38980         logb: Provide replacement and workarounds.
38981         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
38982         is 1.
38983         * lib/logb.c: New file.
38984         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
38985         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
38986         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
38987         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
38988         * modules/logb (Files): Add lib/logb.c.
38989         (Depends-on): Add isfinite, frexp, isnand.
38990         (configure.ac): Compile the replacement code logb.c if needed.
38991         * tests/test-math-c++.cc: Check the declaration of logb.
38992         * doc/posix-functions/logb.texi: Mention the replacement and the bug
38993         with subnormal numbers.
38995 2012-04-02  Bruno Haible  <bruno@clisp.org>
38997         log10* tests: Speed up.
38998         * tests/test-log10.h (test_function): Reduce amount of random numbers
38999         to test.
39001 2012-04-01  Bruno Haible  <bruno@clisp.org>
39003         logf-ieee: Fix test whether logf works.
39004         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
39006 2012-04-01  Bruno Haible  <bruno@clisp.org>
39008         log10l: Work around log10l-ieee test failure on IRIX 6.5.
39009         * lib/log10l.c: Include <float.h>
39010         (log10l): On IRIX, normalize the +Infinity value.
39011         * modules/log10l (Depends-on): Add 'float'.
39012         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
39013         +Infinity.
39015         log10f-ieee: Work around test failure on NetBSD 5.1.
39016         * m4/log10f-ieee.m4: New file.
39017         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
39018         test whether log10f works with a negative argument. Replace it if not.
39019         * lib/log10f.c (log10f): For negative arguments, return NaN.
39020         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
39021         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
39022         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
39024         log10f-ieee: Work around test failure on Solaris 9.
39025         * modules/log10f-ieee (Depends-on): Add log10-ieee.
39026         (configure.ac): Require gl_FUNC_LOG10F.
39028         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
39029         * m4/log10-ieee.m4: New file.
39030         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
39031         whether log10 works with a negative argument. Replace it if not.
39032         * lib/log10.c (log10): For negative arguments, return NaN.
39033         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
39034         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
39035         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
39037         Tests for module 'log10l-ieee'.
39038         * modules/log10l-ieee-tests: New file.
39039         * tests/test-log10l-ieee.c: New file.
39041         New module 'log10l-ieee'.
39042         * modules/log10l-ieee: New file.
39044         Tests for module 'log10-ieee'.
39045         * modules/log10-ieee-tests: New file.
39046         * tests/test-log10-ieee.c: New file.
39048         New module 'log10-ieee'.
39049         * modules/log10-ieee: New file.
39051         Tests for module 'log10f-ieee'.
39052         * modules/log10f-ieee-tests: New file.
39053         * tests/test-log10f-ieee.c: New file.
39054         * tests/test-log10-ieee.h: New file.
39056         New module 'log10f-ieee'.
39057         * modules/log10f-ieee: New file.
39059 2012-04-01  Bruno Haible  <bruno@clisp.org>
39061         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
39062         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
39063         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
39064         workaround.
39065         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
39066         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
39067         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
39068         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
39069         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
39070         (Depends-on): Update conditions.
39071         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
39072         IRIX 6.5, OSF/1 5.1 problems.
39074 2012-04-01  Bruno Haible  <bruno@clisp.org>
39076         log10f: Work around OSF/1 5.1 bug.
39077         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
39078         * lib/log10f.c (log10f): If logf exists, use it and provide just the
39079         workaround.
39080         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
39081         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
39082         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
39083         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
39084         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
39085         (Depends-on): Update conditions.
39086         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
39088 2012-04-01  Bruno Haible  <bruno@clisp.org>
39090         log10: Work around OSF/1 5.1 bug.
39091         * lib/math.in.h (log10): New declaration.
39092         * lib/log10.c: New file.
39093         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
39094         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
39095         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
39096         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
39097         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
39098         * modules/log10 (Files): Add lib/log10.c.
39099         (Depends-on): Add math.
39100         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
39101         * tests/test-math-c++.cc: Check the declaration of log10.
39102         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
39104 2012-03-31  Bruno Haible  <bruno@clisp.org>
39106         log10l tests: More tests.
39107         * modules/log10l-tests (Files): Add tests/test-log10l.h,
39108         tests/minus-zero.h, tests/randoml.c.
39109         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
39110         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
39111         (main): Invoke test_function.
39113         log10f tests: More tests.
39114         * modules/log10f-tests (Files): Add tests/test-log10.h,
39115         tests/minus-zero.h, tests/randomf.c.
39116         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
39117         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
39118         (main): Invoke test_function.
39120         log10 tests: More tests.
39121         * tests/test-log10.h: New file.
39122         * modules/log10-tests (Files): Add tests/test-log10.h,
39123         tests/minus-zero.h, tests/randomd.c.
39124         (Makefile.am): Add randomd.c to test_log10_SOURCES.
39125         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
39126         (main): Invoke test_function.
39128 2012-03-31  Simon Josefsson  <simon@josefsson.org>
39130         fflush: Fix syntax error.
39131         * lib/fflush.c: Include unused-parameter.h, needed for
39132         _GL_UNUSED_PARAMETER.
39133         * modules/fflush (Depends-on): Add snippet/unused-parameter.
39135 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
39137         regex: pacify GCC when compiling GRUB
39138         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
39139         a diagnostic.  Reported by Vladimir Serbinenko in
39140         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
39142 2012-03-29  Eric Blake  <eblake@redhat.com>
39144         stdio: don't assume gets any more
39145         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
39146         support.
39147         * modules/stdio (Makefile.am): Likewise.
39148         * lib/stdio-read.c (gets): Likewise.
39149         * tests/test-stdio-c++.cc: Likewise.
39150         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
39151         * lib/stdio.in.h (gets): Make warning occur in more places.
39152         * doc/posix-functions/gets.texi (gets): Update documentation.
39153         Reported by Christer Solskogen.
39155         maint.mk: fix syntax checks without exclusions
39156         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
39157         Reported by Daniel P. Berrange.
39159         strerror_r: avoid compiler warning
39160         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
39161         level.
39163         fflush: avoid compiler warning
39164         * lib/fflush.c (update_fpos_cache): Mark variables that are
39165         potentially unused.
39167 2012-03-25  Bruno Haible  <bruno@clisp.org>
39169         Tests for module 'localeconv'.
39170         * modules/localeconv-tests: New file.
39171         * tests/test-localeconv.c: New file.
39173         New module 'localeconv'.
39174         * lib/locale.in.h (localeconv): New declaration.
39175         * lib/localeconv.c: New file.
39176         * m4/localeconv.m4: New file.
39177         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
39178         REPLACE_LOCALECONV.
39179         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
39180         REPLACE_LOCALECONV.
39181         * modules/localeconv: New file.
39182         * modules/nl_langinfo (Depends-on): Add localeconv.
39183         * modules/human (Depends-on): Likewise.
39184         * doc/posix-functions/localeconv.texi: Mention the new module.
39186 2012-03-25  Bruno Haible  <bruno@clisp.org>
39188         locale: Provide a complete 'struct lconv'.
39189         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
39190         'struct lconv' does not contain int_p_cs_precedes.
39191         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
39192         * doc/posix-headers/locale.texi: Update.
39194         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
39195         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
39196         * doc/posix-headers/locale.texi: Update.
39198         locale: Provide a working 'struct lconv'.
39199         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
39200         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
39201         'struct lconv' does not even contain decimal_point.
39202         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
39203         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
39204         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
39205         * doc/posix-headers/locale.texi: Mention the problems with
39206         'struct lconv'.
39207         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
39209 2012-03-24  Bruno Haible  <bruno@clisp.org>
39211         Enable common subexpression optimization in GCC.
39212         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
39213         macros.
39214         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
39215         GCC attribute 'const'.
39216         (uc_locale_language): Declare with GCC attribute 'pure'.
39217         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
39218         with GCC attribute 'const'.
39219         * lib/unictype.in.h (uc_is_general_category_withtable,
39220         uc_combining_class, uc_combining_class_name,
39221         uc_combining_class_long_name, uc_bidi_class_name,
39222         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
39223         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
39224         uc_decimal_value, uc_digit_value, uc_numeric_value,
39225         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
39226         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
39227         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
39228         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
39229         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
39230         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
39231         Declare with GCC attribute 'const'.
39232         (uc_general_category_name, uc_general_category_long_name,
39233         uc_general_category_byname, uc_general_category,
39234         uc_is_general_category, uc_combining_class_byname,
39235         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
39236         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
39237         Declare with GCC attribute 'pure'.
39238         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
39239         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
39240         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
39241         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
39242         with GCC attribute 'pure'.
39243         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
39244         'const'.
39245         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
39246         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
39247         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
39248         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
39249         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
39250         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
39251         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
39252         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
39253         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
39254         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
39255         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
39256         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
39257         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
39258         GCC attribute 'pure'.
39259         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
39260         'const'.
39261         * lib/uniwidth.in.h (uc_width): Simplify declaration.
39262         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
39263         u32_strwidth): Declare with GCC attribute 'pure'.
39265         Enable common subexpression optimization in GCC.
39266         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
39267         (alphasort): Declare with GCC attribute 'pure'.
39268         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
39269         (atoll): Declare with GCC attribute 'pure'.
39270         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
39271         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
39272         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
39273         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
39274         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
39275         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
39276         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
39278 2012-03-24  Bruno Haible  <bruno@clisp.org>
39280         gnulib-tool: Avoid unintended error output from 'cmp'.
39281         * gnulib-tool (func_add_file, func_update_file, func_import): Use
39282         "cmp -s", not "cmp > /dev/null".
39284 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
39286         gnulib-tool: fix imprecise comments w.r.t. an automake bug
39288         It's not just Automake versions < 1.9b that creates an empty
39289         pkgdatadir at installation time if pkgdata_DATA is specified
39290         to empty; modern automake versions do this as well, at least
39291         until automake 1.11.4 (not yet released at the moment of writing,
39292         but soon to appear).  That behaviour was generally considered a
39293         feature rather than a bug, at least until this discussion:
39294         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
39296         See also automake bugs #10997 and #11030.
39298         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
39299         reference to relevant automake bug numbers.
39300         (func_emit_tests_Makefile_am): Likewise.
39302 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
39304         announce-gen: use Digest::SHA when possible
39305         * build-aux/announce-gen: Use Digest::SHA when possible, falling
39306         back to Digest::SHA1 if necessary.
39308 2012-03-20  Jim Meyering  <meyering@redhat.com>
39310         tests: avoid gcc warnings about argv vs. const initializers
39311         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
39312         warnings about discarding 'const' qualifier from pointer target type.
39313         * tests/test-posix_spawn2.c (main): Likewise.
39315 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
39317         README-release: simplify slightly
39318         * top/README-release: Run "git checkout master" only once.
39320 2012-03-15  Mark Wielaard  <mark@klomp.org>
39322         git-merge-changelog: add specific example on how to use with hg.
39323         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
39325 2012-03-18  Mark Wielaard  <mark@klomp.org>
39327         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
39329 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
39331         git-version-gen: don't let "prefix" envvar cause trouble
39332         * build-aux/git-version-gen (prefix): Initialize properly,
39333         so as not to use a value specified via the environment.
39334         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
39336 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
39338         regex: diagnose too-large repeat counts in EREs
39339         Previously, the code did not diagnose the too-large repeat count
39340         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
39341         as if it were 'b\{1000000000}', which is unexpected.
39342         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
39343         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
39344         is a reasonable one for this problem.  Another option would be to
39345         create a new REG_OVERFLOW error for repeat counts that are too large.
39346         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
39347         count is too large, so that the caller can distinguish the two cases.
39348         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
39349         "Too large" return code, and that repeat counts are one example of this.
39351 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
39353         doc: some glibc x32 integer width issues
39354         * doc/posix-headers/sys_types.texi (sys/types.h):
39355         * doc/posix-headers/time.texi (time.h):
39356         Mention that glibc x32 does not conform to POSIX in a couple of
39357         areas related to integer widths.
39359 2012-03-15  Bruno Haible  <bruno@clisp.org>
39361         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
39362         * lib/fma.c (VOLATILE): New macro.
39363         (FUNC): Use it to work around a GCC compiler bug.
39365 2012-03-13  Bruno Haible  <bruno@clisp.org>
39367         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39368         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
39369         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
39370         REPLACE_HYPOTL to 1.
39371         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
39373 2012-03-13  Bruno Haible  <bruno@clisp.org>
39375         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39376         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
39377         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
39378         REPLACE_REMAINDERL to 1.
39379         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
39380         bug.
39382 2012-03-13  Bruno Haible  <bruno@clisp.org>
39384         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39385         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
39386         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
39387         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
39388         too big rounding errors.
39389         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
39390         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
39391         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
39392         (Depends-on): Update conditions.
39393         * tests/test-sqrtl.c (my_ldexpl): New function.
39394         (main): Add test of a particular value.
39395         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
39397 2012-03-13  Pádraig Brady  <P@draigBrady.com>
39399         doc: Update timer_* platform portability notes.
39400         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
39401         that always return ENOSYS.
39402         * doc/posix-functions/timer_delete.texi: Likewise.
39403         * doc/posix-functions/timer_gettime.texi: Likewise.
39404         * doc/posix-functions/timer_settime.texi: Likewise.
39406 2012-03-13  Bruno Haible  <bruno@clisp.org>
39408         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
39409         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
39410         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
39411         REPLACE_CBRTL to 1.
39412         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
39414 2012-03-13  Bruno Haible  <bruno@clisp.org>
39416         remainderl: Avoid compilation error on AIX >= 5.2.
39417         * lib/math.in.h (remainderl): Undefine macro from the system header.
39419 2012-03-13  Bruno Haible  <bruno@clisp.org>
39421         Avoid compilation errors with MSVC option -fp:strict.
39422         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
39423         * lib/cbrtf.c: Likewise.
39424         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
39426 2012-03-12  Bruno Haible  <bruno@clisp.org>
39428         uninorm: Don't crash in out-of-memory conditions.
39429         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
39430         gracefully.
39431         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
39432         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
39434 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
39436         quote: fix syntax-check
39437         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
39438         also exports quote_quoting_options.
39440 2012-03-12  Simon Josefsson  <simon@josefsson.org>
39442         Collapse list of copyright years to ranges.  See
39443         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
39444         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
39445         build-aux/csharpexec.sh.in, build-aux/gnupload,
39446         build-aux/install-reloc, build-aux/javacomp.sh.in,
39447         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
39448         build-aux/move-if-change, build-aux/reloc-ldflags,
39449         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
39451 2012-03-11  Bruno Haible  <bruno@clisp.org>
39453         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
39454         * m4/log2f-ieee.m4: New file.
39455         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
39456         whether log2f works with a minus zero argument. Replace it if not.
39457         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
39458         (Depends-on): Add log2-ieee.
39459         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
39460         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
39462         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
39463         * m4/log2-ieee.m4: New file.
39464         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
39465         whether log2 works with a minus zero argument. Replace it if not.
39466         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
39467         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
39468         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
39470         Tests for module 'log2l-ieee'.
39471         * modules/log2l-ieee-tests: New file.
39472         * tests/test-log2l-ieee.c: New file.
39474         New module 'log2l-ieee'.
39475         * modules/log2l-ieee: New file.
39477         Tests for module 'log2-ieee'.
39478         * modules/log2-ieee-tests: New file.
39479         * tests/test-log2-ieee.c: New file.
39481         New module 'log2-ieee'.
39482         * modules/log2-ieee: New file.
39484         Tests for module 'log2f-ieee'.
39485         * modules/log2f-ieee-tests: New file.
39486         * tests/test-log2f-ieee.c: New file.
39487         * tests/test-log2-ieee.h: New file.
39489         New module 'log2f-ieee'.
39490         * modules/log2f-ieee: New file.
39492 2012-03-11  Bruno Haible  <bruno@clisp.org>
39494         Tests for module 'log2l'.
39495         * modules/log2l-tests: New file.
39496         * tests/test-log2l.c: New file.
39498         New module 'log2l'.
39499         * lib/math.in.h (log2l): New declaration.
39500         * lib/log2l.c: New file.
39501         * m4/log2l.m4: New file.
39502         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
39503         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
39504         REPLACE_LOG2L.
39505         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
39506         REPLACE_LOG2L.
39507         * modules/log2l: New file.
39508         * tests/test-math-c++.cc: Check the declaration of log2l.
39509         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
39510         and OSF/1 problems.
39512 2012-03-11  Bruno Haible  <bruno@clisp.org>
39514         Tests for module 'log2f'.
39515         * modules/log2f-tests: New file.
39516         * tests/test-log2f.c: New file.
39518         New module 'log2f'.
39519         * lib/math.in.h (log2f): New declaration.
39520         * lib/log2f.c: New file.
39521         * m4/log2f.m4: New file.
39522         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
39523         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
39524         REPLACE_LOG2F.
39525         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
39526         REPLACE_LOG2F.
39527         * modules/log2f: New file.
39528         * tests/test-math-c++.cc: Check the declaration of log2f.
39529         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
39530         and OSF/1 and Cygwin problems.
39532 2012-03-11  Bruno Haible  <bruno@clisp.org>
39534         Tests for module 'log2'.
39535         * modules/log2-tests: New file.
39536         * tests/test-log2.c: New file.
39537         * tests/test-log2.h: New file.
39539         New module 'log2'.
39540         * lib/math.in.h (log2): New declaration.
39541         * lib/log2.c: New file.
39542         * m4/log2.m4: New file.
39543         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
39544         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
39545         REPLACE_LOG2.
39546         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
39547         REPLACE_LOG2.
39548         * modules/log2: New file.
39549         * tests/test-math-c++.cc: Check the declaration of log2.
39550         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
39551         and OSF/1 and Cygwin problems.
39553 2012-03-11  Bruno Haible  <bruno@clisp.org>
39555         exp2* tests: More tests.
39556         * tests/test-exp2.h (test_function): Test all integral arguments that
39557         don't need to overflow or denormalized numbers.
39558         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
39559         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
39560         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
39562 2012-03-10  Bruno Haible  <bruno@clisp.org>
39564         log1pl-ieee: Work around test failure on AIX 7.1.
39565         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
39567         log1pl-ieee: Work around test failure on IRIX 6.5.
39568         * m4/log1pl-ieee.m4: New file.
39569         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
39570         test whether log1pl works with a minus zero argument. Replace it if
39571         not.
39572         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
39573         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
39574         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
39575         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
39576         (Depends-on): Update conditions.
39577         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
39578         m4/signbit.m4.
39579         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
39580         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
39582         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
39583         * m4/log1pf-ieee.m4: New file.
39584         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
39585         test whether log1pf works with a minus zero argument. Replace it if
39586         not.
39587         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
39588         m4/signbit.m4.
39589         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
39590         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
39592         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
39593         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
39594         (configure.ac): Require gl_FUNC_LOG1PF.
39596         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
39597         * m4/log1p-ieee.m4: New file.
39598         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
39599         whether log1p works with a minus zero argument. Replace it if not.
39600         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
39601         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
39602         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
39603         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
39604         (Depends-on): Update conditions.
39605         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
39606         m4/signbit.m4.
39607         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
39608         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
39610         Tests for module 'log1pl-ieee'.
39611         * modules/log1pl-ieee-tests: New file.
39612         * tests/test-log1pl-ieee.c: New file.
39614         New module 'log1pl-ieee'.
39615         * modules/log1pl-ieee: New file.
39617         Tests for module 'log1p-ieee'.
39618         * modules/log1p-ieee-tests: New file.
39619         * tests/test-log1p-ieee.c: New file.
39621         New module 'log1p-ieee'.
39622         * modules/log1p-ieee: New file.
39624         Tests for module 'log1pf-ieee'.
39625         * modules/log1pf-ieee-tests: New file.
39626         * tests/test-log1pf-ieee.c: New file.
39627         * tests/test-log1p-ieee.h: New file.
39629         New module 'log1pf-ieee'.
39630         * modules/log1pf-ieee: New file.
39632 2012-03-10  Bruno Haible  <bruno@clisp.org>
39634         Tests for module 'log1pl'.
39635         * modules/log1pl-tests: New file.
39636         * tests/test-log1pl.c: New file.
39638         New module 'log1pl'.
39639         * lib/math.in.h (log1pl): New declaration.
39640         * lib/log1pl.c: New file.
39641         * m4/log1pl.m4: New file.
39642         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
39643         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
39644         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
39645         * modules/log1pl: New file.
39646         * tests/test-math-c++.cc: Check the declaration of log1pl.
39647         * doc/posix-functions/log1pl.texi: Mention the new module.
39649 2012-03-10  Bruno Haible  <bruno@clisp.org>
39651         Tests for module 'log1pf'.
39652         * modules/log1pf-tests: New file.
39653         * tests/test-log1pf.c: New file.
39655         New module 'log1pf'.
39656         * lib/math.in.h (log1pf): New declaration.
39657         * lib/log1pf.c: New file.
39658         * m4/log1pf.m4: New file.
39659         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
39660         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
39661         REPLACE_LOG1PF.
39662         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
39663         REPLACE_LOG1PF.
39664         * modules/log1pf: New file.
39665         * tests/test-math-c++.cc: Check the declaration of log1pf.
39666         * doc/posix-functions/log1pf.texi: Mention the new module.
39668 2012-03-10  Bruno Haible  <bruno@clisp.org>
39670         log1p tests: More tests.
39671         * tests/test-log1p.h: New file.
39672         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
39673         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
39674         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
39675         (main): Invoke test_function.
39677         log1p: Provide replacement for Minix and MSVC.
39678         * lib/math.in.h (log1p): New declaration.
39679         * lib/log1p.c: New file.
39680         * m4/log1p.m4: New file.
39681         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
39682         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
39683         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
39684         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
39685         (Depends-on): Add math, isnand, log, round.
39686         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
39687         HAVE_LOG1P is 0.
39688         * tests/test-math-c++.cc: Check the declaration of log1p.
39689         * doc/posix-functions/log1p.texi: Mention the replacement.
39691 2012-03-10  Bruno Haible  <bruno@clisp.org>
39693         math tests: Small simplification.
39694         * tests/test-exp.h (test_function): Use the same err_bound for
39695         'double' on platforms with sizeof (long double) == sizeof (double)
39696         than on platforms with sizeof (long double) > sizeof (double).
39697         * tests/test-exp2.h (test_function): Likewise.
39698         * tests/test-expm1.h (test_function): Likewise.
39699         * tests/test-log.h (test_function): Likewise.
39701 2012-03-10  Bruno Haible  <bruno@clisp.org>
39703         Fix some comments.
39704         * lib/expl.c: Fix an ambiguous comment.
39705         * lib/expm1.c: Likewise.
39706         * lib/expm1l.c: Likewise.
39707         * lib/exp2.c: Likewise.
39708         * lib/exp2l.c: Likewise.
39710 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
39712         regex: allow inclusion of <regex.h> before <limits.h>
39713         Without this patch, portable programs had to include <limits.h> before
39714         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
39715         I ran into this problem with a test version of GNU grep on Solaris 8.
39716         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
39717         This is done conditionally so that this change can be merged
39718         back to glibc.
39719         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
39720         using the included regex.
39722         fts: depend on fdopendir
39723         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
39724         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
39725         problem was introduced when fdopendir was split out.
39727 2012-03-10  Bruno Haible  <bruno@clisp.org>
39729         Remove unused variables.
39730         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
39731         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
39733 2012-03-10  Bruno Haible  <bruno@clisp.org>
39735         isnanf-nolibm: Fix last commit.
39736         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
39738         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
39739         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
39741 2012-03-10  Bruno Haible  <bruno@clisp.org>
39743         logf-ieee: Work around test failure on NetBSD 5.1.
39744         * m4/logf-ieee.m4: New file.
39745         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
39746         whether logf works with a negative argument. Replace it if not.
39747         * lib/logf.c (logf): For negative arguments, return NaN.
39748         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
39749         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
39750         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
39752         logf-ieee: Work around test failure on Solaris 9.
39753         * modules/logf-ieee (Depends-on): Add log-ieee.
39754         (configure.ac): Require gl_FUNC_LOGF.
39756         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
39757         * m4/log-ieee.m4: New file.
39758         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
39759         log works with a negative argument. Replace it if not.
39760         * lib/log.c (log): For negative arguments, return NaN.
39761         * modules/log-ieee (Files): Add m4/log-ieee.m4.
39762         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
39763         * doc/posix-functions/log.texi: Mention the log-ieee module.
39765         Tests for module 'logl-ieee'.
39766         * modules/logl-ieee-tests: New file.
39767         * tests/test-logl-ieee.c: New file.
39769         New module 'logl-ieee'.
39770         * modules/logl-ieee: New file.
39772         Tests for module 'log-ieee'.
39773         * modules/log-ieee-tests: New file.
39774         * tests/test-log-ieee.c: New file.
39776         New module 'log-ieee'.
39777         * modules/log-ieee: New file.
39779         Tests for module 'logf-ieee'.
39780         * modules/logf-ieee-tests: New file.
39781         * tests/test-logf-ieee.c: New file.
39782         * tests/test-log-ieee.h: New file.
39784         New module 'logf-ieee'.
39785         * modules/logf-ieee: New file.
39787 2012-03-10  Bruno Haible  <bruno@clisp.org>
39789         log: Fix bug introduced on 2012-03-09.
39790         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
39792 2012-03-10  Pádraig Brady  <P@draigBrady.com>
39794         timer-time: link explicitly with pthreads on glibc
39795         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
39796         to support static linking, when newer glibc is
39797         detected, as that contains pthread emulation of
39798         POSIX timer functions where required.
39799         * modules/timer-time: Depend on threadlib to
39800         pull in the appropriate library to link.
39802 2012-03-10  Bruno Haible  <bruno@clisp.org>
39804         log* tests: More tests.
39805         * tests/test-log.h: New file.
39806         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
39807         (main): Invoke test_function.
39808         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
39809         (main): Invoke test_function.
39810         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
39811         (main): Invoke test_function.
39812         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
39813         tests/randomd.c.
39814         (Makefile.am): Add randomd.c to test_log_SOURCES.
39815         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
39816         tests/randomf.c.
39817         (Makefile.am): Add randomf.c to test_logf_SOURCES.
39818         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
39819         tests/randoml.c.
39820         (Depends-on): Add 'float'.
39821         (Makefile.am): Add randoml.c to test_logl_SOURCES.
39823 2012-03-09  Bruno Haible  <bruno@clisp.org>
39825         logl: Work around OSF/1 5.1 bug.
39826         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
39827         * lib/logl.c (logl): If logl exists, use it and provide just the
39828         workaround.
39829         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
39830         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
39831         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
39832         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
39833         * modules/logl (configure.ac): Consider REPLACE_LOGL.
39834         (Depends-on): Update conditions.
39835         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
39837 2012-03-09  Bruno Haible  <bruno@clisp.org>
39839         logf: Work around OSF/1 5.1 bug.
39840         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
39841         * lib/logf.c (logf): If logf exists, use it and provide just the
39842         workaround.
39843         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
39844         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
39845         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
39846         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
39847         * modules/logf (configure.ac): Consider REPLACE_LOGF.
39848         (Depends-on): Update conditions.
39849         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
39851 2012-03-09  Bruno Haible  <bruno@clisp.org>
39853         log: Work around OSF/1 5.1 bug.
39854         * lib/math.in.h (log): New declaration.
39855         * lib/log.c: New file.
39856         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
39857         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
39858         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
39859         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
39860         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
39861         * modules/log (Files): Add lib/log.c.
39862         (Depends-on): Add math.
39863         (configure.ac): If REPLACE_LOG is 1, compile an override.
39864         * tests/test-math-c++.cc: Check the declaration of log.
39865         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
39867 2012-03-09  Jim Meyering  <meyering@redhat.com>
39869         readtokens.c: adjust wording in a comment
39870         * lib/readtokens.c: Insert omitted "that" in a comment.
39872 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
39874         modechange: add notations +40, 00440, etc.
39875         * lib/modechange.c (mode_compile): Support new notations
39876         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
39878 2012-03-08  Bruno Haible  <bruno@clisp.org>
39880         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
39881         * m4/exp2l-ieee.m4: New file.
39882         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
39883         test whether exp2l works with a NaN argument and with a negative
39884         infinity argument. Replace it if not.
39885         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
39886         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
39887         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
39888         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
39889         (Depends-on): Update conditions.
39890         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
39891         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
39892         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
39894         Tests for module 'exp2l-ieee'.
39895         * modules/exp2l-ieee-tests: New file.
39896         * tests/test-exp2l-ieee.c: New file.
39898         New module 'exp2l-ieee'.
39899         * modules/exp2l-ieee: New file.
39901         Tests for module 'exp2-ieee'.
39902         * modules/exp2-ieee-tests: New file.
39903         * tests/test-exp2-ieee.c: New file.
39905         New module 'exp2-ieee'.
39906         * modules/exp2-ieee: New file.
39908         Tests for module 'exp2f-ieee'.
39909         * modules/exp2f-ieee-tests: New file.
39910         * tests/test-exp2f-ieee.c: New file.
39911         * tests/test-exp2-ieee.h: New file.
39913         New module 'exp2f-ieee'.
39914         * modules/exp2f-ieee: New file.
39916 2012-03-08  Bruno Haible  <bruno@clisp.org>
39918         Tests for module 'exp2l'.
39919         * modules/exp2l-tests: New file.
39920         * tests/test-exp2l.c: New file.
39922         New module 'exp2l'.
39923         * lib/math.in.h (exp2l): New declaration.
39924         * lib/exp2l.c: New file.
39925         * lib/expl-table.c: New file, extracted from lib/expl.c.
39926         * lib/expl.c (gl_expl_table): New declaration.
39927         (expl): Remove expl_table. Update reference.
39928         * m4/exp2l.m4: New file.
39929         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
39930         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
39931         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
39932         * modules/exp2l: New file.
39933         * modules/expl (Files): Add lib/expl-table.c.
39934         (configure.ac): Compile also expl-table.c.
39935         * tests/test-math-c++.cc: Check the declaration of exp2l.
39936         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
39937         problem.
39939 2012-03-08  Bruno Haible  <bruno@clisp.org>
39941         Tests for module 'exp2f'.
39942         * modules/exp2f-tests: New file.
39943         * tests/test-exp2f.c: New file.
39945         New module 'exp2f'.
39946         * lib/math.in.h (exp2f): New declaration.
39947         * lib/exp2f.c: New file.
39948         * m4/exp2f.m4: New file.
39949         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
39950         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
39951         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
39952         * modules/exp2f: New file.
39953         * tests/test-math-c++.cc: Check the declaration of exp2f.
39954         * doc/posix-functions/exp2f.texi: Mention the new module and the
39955         IRIX problem.
39957 2012-03-08  Bruno Haible  <bruno@clisp.org>
39959         Tests for module 'exp2'.
39960         * modules/exp2-tests: New file.
39961         * tests/test-exp2.c: New file.
39962         * tests/test-exp2.h: New file.
39964         New module 'exp2'.
39965         * lib/math.in.h (exp2): New declaration.
39966         * lib/exp2.c: New file.
39967         * m4/exp2.m4: New file.
39968         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
39969         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
39970         REPLACE_EXP2.
39971         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
39972         REPLACE_EXP2.
39973         * modules/exp2: New file.
39974         * tests/test-math-c++.cc: Check the declaration of exp2.
39975         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
39976         and OpenBSD problems.
39978 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
39980         savedir: fix comment typo
39981         * lib/savedir.c (savedirstream): Fix typo in comment.
39983 2012-03-08  Bruno Haible  <bruno@clisp.org>
39985         test-readtokens.c: use const; remove unwarranted cast
39986         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
39988 2012-03-08  Bruno Haible  <bruno@clisp.org>
39990         fmal: Avoid compilation error on AIX.
39991         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
39992         AIX 5.2..7.1.
39994 2012-03-08  Bruno Haible  <bruno@clisp.org>
39996         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
39997         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
39998         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
39999         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
40000         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
40001         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
40002         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
40004 2012-03-08  Bruno Haible  <bruno@clisp.org>
40006         remainderf: Override buggy system function on IRIX 6.5.
40007         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
40008         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
40009         when it exists.
40010         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
40012 2012-03-08  Jim Meyering  <meyering@redhat.com>
40014         test-readtokens.c: avoid const-related compilation warnings
40015         * tests/test-readtokens.c: Avoid const-related compilation warnings.
40017 2012-03-07  Jim Meyering  <meyering@redhat.com>
40018             Bruno Haible  <bruno@clisp.org>
40020         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
40021         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
40022         tests/randomd.c.
40023         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
40024         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
40025         tests/randoml.c.
40026         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
40028 2012-03-07  Bruno Haible  <bruno@clisp.org>
40030         expm1l: Avoid compilation error on AIX.
40031         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
40032         AIX 5.2..7.1.
40034 2012-03-07  Bruno Haible  <bruno@clisp.org>
40036         expm1l: Don't override undeclared system function on IRIX 6.5.
40037         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
40038         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
40039         it exists. Set HAVE_DECL_EXPM1L.
40040         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
40041         HAVE_EXPM1L.
40042         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
40043         HAVE_EXPM1L.
40044         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
40046 2012-03-07  Bruno Haible  <bruno@clisp.org>
40048         remainderl: Don't override undeclared system function on IRIX 6.5.
40049         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
40050         HAVE_REMAINDERL.
40051         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
40052         declared when it exists. Set HAVE_DECL_REMAINDERL.
40053         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
40054         not HAVE_REMAINDERL.
40055         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
40056         HAVE_REMAINDERL.
40057         * doc/posix-functions/remainderl.texi: Mention missing declaration
40058         problem.
40060 2012-03-07  Bruno Haible  <bruno@clisp.org>
40062         rintf: Don't override undeclared system function on IRIX 6.5.
40063         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
40064         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
40065         exists. Set HAVE_DECL_RINTF.
40066         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
40067         HAVE_RINTF.
40068         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
40069         HAVE_RINTF.
40070         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
40072 2012-03-07  Bruno Haible  <bruno@clisp.org>
40074         roundl: Avoid compilation error on AIX.
40075         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
40076         AIX 5.2..7.1.
40078 2012-03-07  Bruno Haible  <bruno@clisp.org>
40080         roundl: Don't override undeclared system function on IRIX 6.5.
40081         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
40082         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
40083         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
40084         * modules/roundl (configure.ac): For replacement code, test
40085         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
40086         (Depends-on): Update conditions.
40087         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
40089 2012-03-07  Bruno Haible  <bruno@clisp.org>
40091         roundf: Don't override undeclared system function on IRIX 6.5.
40092         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
40093         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
40094         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
40095         * modules/roundf (configure.ac): For replacement code, test
40096         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
40097         (Depends-on): Update conditions.
40098         * modules/roundf-ieee (Depends-on): Update conditions.
40099         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
40101 2012-03-07  Bruno Haible  <bruno@clisp.org>
40103         round: Don't override undeclared system function on IRIX 6.5.
40104         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
40105         argument.
40106         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
40107         also when it is not declared. Set HAVE_ROUND. For replacement code,
40108         test HAVE_ROUND, not HAVE_DECL_ROUND.
40109         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
40110         not HAVE_DECL_ROUND.
40111         (Depends-on): Update conditions.
40112         * modules/round-ieee (Depends-on): Update conditions.
40113         * doc/posix-functions/round.texi: Mention the IRIX problem.
40115 2012-03-07  Bruno Haible  <bruno@clisp.org>
40117         copysignf: Don't override undeclared system function on IRIX 6.5.
40118         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
40119         HAVE_COPYSIGNF.
40120         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
40121         declared when it exists. Set HAVE_DECL_COPYSIGNF.
40122         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
40123         not HAVE_COPYSIGNF.
40124         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
40125         HAVE_COPYSIGNF.
40126         * doc/posix-functions/copysignf.texi: Mention missing declaration
40127         problem.
40129 2012-03-07  Jim Meyering  <meyering@redhat.com>
40131         readtokens: add tests
40132         * modules/readtokens-tests: New file.
40133         * tests/test-readtokens.c: New file.
40135 2012-03-07  Jim Meyering  <meyering@redhat.com>
40137         quotearg: the module must now include quote.h
40138         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
40139         So must the module.
40140         * modules/quotearg (Files): Add quote.h.
40142 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
40144         readtokens: avoid core dumps with unusual calling patterns
40145         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
40146         * lib/readtokens.c: Include limits.h.
40147         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
40148         (readtoken): Don't cache the delimiters; the cache code was buggy
40149         if !delim && saved_delim, or if the new n_delim differs from the old.
40150         Also, it wasn't thread-safe.
40152 2012-03-07  Bruno Haible  <bruno@clisp.org>
40154         quote: Adhere to common module description layout.
40155         * modules/quote (Makefile.am): Add back empty section.
40157 2012-03-06  Akim Demaille  <demaille@gostai.com>
40159         quote: fuse into quotearg
40160         This patch is made for the benefit of Bison.
40161         quote does not leave the choice of the quoting style to the user.
40162         quoting_style provides poor customizability, yet quoting_options,
40163         which is very rich, is hidden inside quotearg.c.  So in order to
40164         allow quote customization, move its implementation to quotearg.c.
40165         * lib/quote.c: Remove.
40166         * modules/quote: Adjust.
40167         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
40168         warning: provide all the members of literal structs.
40169         (quote_quoting_options): New.
40170         (quote, quote_n): Import implementation from quote.c.
40171         * lib/quote.h: Import the comments from quote.c.
40172         (quote_quoting_options): New.
40174 2012-03-06  Bruno Haible  <bruno@clisp.org>
40176         Tests for module 'expm1l-ieee'.
40177         * modules/expm1l-ieee-tests: New file.
40178         * tests/test-expm1l-ieee.c: New file.
40180         New module 'expm1l-ieee'.
40181         * modules/expm1l-ieee: New file.
40183         Tests for module 'expm1f-ieee'.
40184         * modules/expm1f-ieee-tests: New file.
40185         * tests/test-expm1f-ieee.c: New file.
40187         New module 'expm1f-ieee'.
40188         * modules/expm1f-ieee: New file.
40190         Tests for module 'expm1-ieee'.
40191         * modules/expm1-ieee-tests: New file.
40192         * tests/test-expm1-ieee.c: New file.
40193         * tests/test-expm1-ieee.h: New file.
40195         New module 'expm1-ieee'.
40196         * modules/expm1-ieee: New file.
40197         * m4/expm1-ieee.m4: New file.
40198         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
40199         whether expm1 works with a minus zero argument. Replace it if not.
40200         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
40201         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
40202         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
40203         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
40204         (Depends-on): Update conditions.
40205         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
40206         AIX problem.
40208 2012-03-06  Bruno Haible  <bruno@clisp.org>
40210         Work around expm1f bug on IRIX 6.5.
40211         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
40212         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
40213         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
40214         not work.
40215         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
40216         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
40217         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
40218         (Depends-on): Update conditions.
40219         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
40221 2012-03-06  Bruno Haible  <bruno@clisp.org>
40223         Tests for module 'expm1l'.
40224         * modules/expm1l-tests: New file.
40225         * tests/test-expm1l.c: New file.
40227         New module 'expm1l'.
40228         * lib/math.in.h (expm1l): New declaration.
40229         * lib/expm1l.c: New file.
40230         * m4/expm1l.m4: New file.
40231         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
40232         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
40233         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
40234         * modules/expm1l: New file.
40235         * tests/test-math-c++.cc: Check the declaration of expm1l.
40236         * doc/posix-functions/expm1l.texi: Mention the new module.
40238 2012-03-06  Bruno Haible  <bruno@clisp.org>
40240         Tests for module 'expm1f'.
40241         * modules/expm1f-tests: New file.
40242         * tests/test-expm1f.c: New file.
40244         New module 'expm1f'.
40245         * lib/math.in.h (expm1f): New declaration.
40246         * lib/expm1f.c: New file.
40247         * m4/expm1f.m4: New file.
40248         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
40249         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
40250         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
40251         * modules/expm1f: New file.
40252         * tests/test-math-c++.cc: Check the declaration of expm1f.
40253         * doc/posix-functions/expm1f.texi: Mention the new module.
40255 2012-03-06  Bruno Haible  <bruno@clisp.org>
40257         Tests for module 'expm1'.
40258         * modules/expm1-tests: New file.
40259         * tests/test-expm1.c: New file.
40260         * tests/test-expm1.h: New file.
40262         New module 'expm1'.
40263         * lib/math.in.h (expm1): New declaration.
40264         * lib/expm1.c: New file.
40265         * m4/expm1.m4: New file.
40266         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
40267         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
40268         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
40269         * modules/expm1: New file.
40270         * tests/test-math-c++.cc: Check the declaration of expm1.
40271         * doc/posix-functions/expm1.texi: Mention the new module.
40273 2012-03-06  Bruno Haible  <bruno@clisp.org>
40275         math: Ensure declarations of math functions.
40276         * modules/acosf (Depends-on): Add 'extensions'.
40277         * modules/asinf (Depends-on): Likewise.
40278         * modules/atan2f (Depends-on): Likewise.
40279         * modules/atanf (Depends-on): Likewise.
40280         * modules/cbrt (Depends-on): Likewise.
40281         * modules/cbrtf (Depends-on): Likewise.
40282         * modules/cbrtl (Depends-on): Likewise.
40283         * modules/copysignf (Depends-on): Likewise.
40284         * modules/copysignl (Depends-on): Likewise.
40285         * modules/cosf (Depends-on): Likewise.
40286         * modules/coshf (Depends-on): Likewise.
40287         * modules/expf (Depends-on): Likewise.
40288         * modules/fabsf (Depends-on): Likewise.
40289         * modules/fabsl (Depends-on): Likewise.
40290         * modules/fmaf (Depends-on): Likewise.
40291         * modules/fmal (Depends-on): Likewise.
40292         * modules/fmodf (Depends-on): Likewise.
40293         * modules/fmodl (Depends-on): Likewise.
40294         * modules/frexpf (Depends-on): Likewise.
40295         * modules/frexpl (Depends-on): Likewise.
40296         * modules/hypot (Depends-on): Likewise.
40297         * modules/hypotf (Depends-on): Likewise.
40298         * modules/hypotl (Depends-on): Likewise.
40299         * modules/ldexpf (Depends-on): Likewise.
40300         * modules/ldexpl (Depends-on): Likewise.
40301         * modules/log10f (Depends-on): Likewise.
40302         * modules/log10l (Depends-on): Likewise.
40303         * modules/log1p (Depends-on): Likewise.
40304         * modules/logb (Depends-on): Likewise.
40305         * modules/logf (Depends-on): Likewise.
40306         * modules/modff (Depends-on): Likewise.
40307         * modules/modfl (Depends-on): Likewise.
40308         * modules/powf (Depends-on): Likewise.
40309         * modules/remainderf (Depends-on): Likewise.
40310         * modules/remainderl (Depends-on): Likewise.
40311         * modules/rintf (Depends-on): Likewise.
40312         * modules/rintl (Depends-on): Likewise.
40313         * modules/sinf (Depends-on): Likewise.
40314         * modules/sinhf (Depends-on): Likewise.
40315         * modules/sqrtf (Depends-on): Likewise.
40316         * modules/tanf (Depends-on): Likewise.
40317         * modules/tanhf (Depends-on): Likewise.
40318         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
40319         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
40320         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
40321         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
40322         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
40323         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
40324         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
40325         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
40326         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
40327         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
40328         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
40329         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
40330         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
40331         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
40332         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
40333         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
40334         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
40335         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
40336         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
40337         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
40338         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
40339         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
40340         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
40341         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
40342         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
40343         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
40344         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
40345         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
40346         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
40347         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
40348         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
40349         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
40350         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
40351         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
40352         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
40353         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
40354         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
40355         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
40356         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
40357         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
40358         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
40360 2012-03-06  Bruno Haible  <bruno@clisp.org>
40362         math: Update module names in warnings.
40363         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
40364         tanl): Use specific module name in warn-on-use warning.
40366 2012-03-06  Bruno Haible  <bruno@clisp.org>
40368         expl: Simplify computation.
40369         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
40371 2012-03-05  Bruno Haible  <bruno@clisp.org>
40373         exp* tests: More tests.
40374         * tests/test-exp.h: New file.
40375         * tests/test-exp.c: Include <float.h> and test-exp.h.
40376         (main): Invoke test_function.
40377         * tests/test-expf.c: Include <float.h> and test-exp.h.
40378         (main): Invoke test_function.
40379         * tests/test-expl.c: Include <float.h> and test-exp.h.
40380         (main): Invoke test_function.
40381         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
40382         (Makefile.am): Add randomd.c to test_exp_SOURCES.
40383         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
40384         (Makefile.am): Add randomf.c to test_expf_SOURCES.
40385         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
40386         (Depends-on): Add 'float'.
40387         (Makefile.am): Add randoml.c to test_expl_SOURCES.
40389         expl: Fix precision of computed result.
40390         * lib/expl.c: Completely rewritten.
40391         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
40392         (Maintainer): Add me.
40393         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
40395 2012-03-05  Bruno Haible  <bruno@clisp.org>
40397         cbrt* tests: More tests.
40398         * tests/test-cbrt.h: New file.
40399         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
40400         (main): Invoke test_function.
40401         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
40402         (main): Invoke test_function.
40403         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
40404         (main): Invoke test_function.
40405         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
40406         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
40407         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
40408         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
40409         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
40410         (Depends-on): Add 'float'.
40411         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
40413 2012-03-05  Bruno Haible  <bruno@clisp.org>
40415         hypot* tests: More tests.
40416         * tests/test-hypot.h: New file, partially extracted from
40417         tests/test-hypotl.c.
40418         * tests/test-hypot.c: Include test-hypot.h.
40419         (main): Invoke test_function.
40420         * tests/test-hypotf.c: Include test-hypot.h.
40421         (main): Invoke test_function.
40422         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
40423         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
40424         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
40425         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
40426         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
40427         tests/randomf.c.
40428         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
40429         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
40430         tests/randoml.c.
40431         (Depends-on): Add 'fpucw', 'float'.
40432         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
40434 2012-03-05  Bruno Haible  <bruno@clisp.org>
40436         fpucw: Doc about FreeBSD.
40437         * lib/fpucw.h: Mention FreeBSD in comments.
40439 2012-03-04  Bruno Haible  <bruno@clisp.org>
40441         sqrt* tests: More tests.
40442         * tests/test-sqrt.h: New file.
40443         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
40444         (main): Invoke test_function.
40445         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
40446         (main): Invoke test_function.
40447         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
40448         (main): Invoke test_function.
40449         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
40450         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
40451         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
40452         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
40453         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
40454         (Depends-on): Add 'float'.
40455         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
40457 2012-03-04  Bruno Haible  <bruno@clisp.org>
40459         remainder* tests: More tests.
40460         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
40461         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
40462         (main): Invoke test_function.
40463         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
40464         (main): Invoke test_function.
40465         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
40466         (main): Invoke test_function.
40467         * modules/remainder-tests (Files): Add tests/test-remainder.h,
40468         tests/randomd.c.
40469         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
40470         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
40471         tests/randomf.c.
40472         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
40473         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
40474         tests/randoml.c.
40475         (Depends-on): Add 'float'.
40476         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
40478 2012-03-04  Bruno Haible  <bruno@clisp.org>
40480         remainder, remainderf, remainderl: Fix computation for large quotients.
40481         * lib/remainder.c: Completely rewritten.
40482         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
40483         USE_FLOAT.
40484         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
40485         USE_LONG_DOUBLE.
40486         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
40487         isnand, isinf. Remove round, fma.
40488         * modules/remainderf (Files): Add lib/remainder.c.
40489         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
40490         Remove roundf, fmaf.
40491         * modules/remainderl (Files): Add lib/remainder.c.
40492         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
40493         isinf. Remove roundl, fmal.
40494         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
40495         REMAINDER_LIBM.
40496         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
40497         REMAINDERF_LIBM.
40498         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
40499         REMAINDERL_LIBM.
40501 2012-03-04  Bruno Haible  <bruno@clisp.org>
40503         fmod* tests: More tests.
40504         * tests/test-fmod.h (my_ldexp): New function.
40505         (test_function): Reduce amount of random numbers to test. Add tests
40506         of very large quotients x / y.
40507         * tests/test-fmod.c (MAX_EXP): New macro.
40508         * tests/test-fmodf.c (MAX_EXP): Likewise.
40509         * tests/test-fmodl.c (MAX_EXP): Likewise.
40511 2012-03-04  Bruno Haible  <bruno@clisp.org>
40513         fmod, fmodl: Fix computation for large quotients x / y.
40514         * lib/fmod.c: Completely rewritten.
40515         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
40516         USE_LONG_DOUBLE.
40517         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
40518         isnand. Remove fma.
40519         * modules/fmodl (Files): Add lib/fmod.c.
40520         (Depends-on): Add float, isfinite, signbit, fabsl,
40521         frexpl, ldexpl, isnanl. Remove fma.
40522         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
40523         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
40525 2012-03-03  Bruno Haible  <bruno@clisp.org>
40527         fmod* tests: More tests.
40528         * tests/test-fmod.h: New file.
40529         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
40530         (main): Invoke test_function.
40531         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
40532         (main): Invoke test_function.
40533         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
40534         (main): Invoke test_function.
40535         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
40536         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
40537         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
40538         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
40539         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
40540         (Depends-on): Add 'float'.
40541         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
40543 2012-03-03  Bruno Haible  <bruno@clisp.org>
40545         rint* tests: More tests.
40546         * tests/test-rint.h: New file, partially extracted from
40547         tests/test-rintl.c.
40548         * tests/test-rint.c: Include test-rint.h.
40549         (main): Invoke test_function.
40550         * tests/test-rintf.c: Include test-rint.h.
40551         (main): Invoke test_function.
40552         * tests/test-rintl.c: Include test-rint.h.
40553         (main): Invoke test_function.
40554         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
40555         (Makefile.am): Add randomd.c to test_rint_SOURCES.
40556         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
40557         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
40558         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
40559         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
40561 2012-03-03  Bruno Haible  <bruno@clisp.org>
40563         modf* tests: More tests.
40564         * tests/test-modf.h: New file.
40565         * tests/test-modf.c: Include <float.h> and test-modf.h.
40566         (main): Invoke test_function.
40567         * tests/test-modff.c: Include <float.h> and test-modf.h.
40568         (main): Invoke test_function.
40569         * tests/test-modfl.c: Include <float.h> and test-modf.h.
40570         (main): Invoke test_function.
40571         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
40572         (Makefile.am): Add randomd.c to test_modf_SOURCES.
40573         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
40574         (Makefile.am): Add randomf.c to test_modff_SOURCES.
40575         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
40576         (Depends-on): Add 'float'.
40577         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
40579 2012-03-03  Bruno Haible  <bruno@clisp.org>
40581         fabs* tests: More tests.
40582         * tests/test-fabs.h: New file, partially extracted from
40583         tests/test-fabsl.c.
40584         * tests/test-fabs.c (RANDOM): New macro.
40585         * tests/test-fabsf.c (RANDOM): New macro.
40586         * tests/test-fabsl.c (RANDOM): New macro.
40587         * modules/fabs-tests (Files): Add tests/randomd.c.
40588         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
40589         * modules/fabsf-tests (Files): Add tests/randomf.c.
40590         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
40591         * modules/fabsl-tests (Files): Add tests/randoml.c.
40592         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
40594 2012-03-03  Bruno Haible  <bruno@clisp.org>
40596         ldexp* tests: More tests.
40597         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
40598         * tests/test-ldexp.c (RANDOM): New macro.
40599         * tests/test-ldexpf.c (RANDOM): New macro.
40600         * tests/test-ldexpl.c (RANDOM): New macro.
40601         * modules/ldexp-tests (Files): Add tests/randomd.c.
40602         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
40603         * modules/ldexpf-tests (Files): Add tests/randomf.c.
40604         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
40605         * modules/ldexpl-tests (Files): Add tests/randoml.c.
40606         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
40608 2012-03-03  Bruno Haible  <bruno@clisp.org>
40610         frexp* tests: More tests.
40611         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
40612         * tests/test-frexp.c (RANDOM): New macro.
40613         * tests/test-frexpf.c (RANDOM): New macro.
40614         * tests/test-frexpl.c (RANDOM): New macro.
40615         * modules/frexp-tests (Files): Add tests/randomd.c.
40616         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
40617         * modules/frexpf-tests (Files): Add tests/randomf.c.
40618         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
40619         * modules/frexpl-tests (Files): Add tests/randoml.c.
40620         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
40622 2012-03-03  Bruno Haible  <bruno@clisp.org>
40624         Support for pseudo-random numbers in tests.
40625         * tests/randomf.c: New file.
40626         * tests/randomd.c: New file.
40627         * tests/randoml.c: New file.
40628         * tests/macros.h (randomf, randomd, randoml): New declarations.
40630 2012-03-03  Bruno Haible  <bruno@clisp.org>
40632         frexp* tests: Refactor.
40633         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
40634         * tests/test-frexp.c: Include and use it.
40635         * tests/test-frexpf.c: Likewise.
40636         * tests/test-frexpl.c: Likewise.
40637         * modules/frexp-tests (Files): Add tests/test-frexp.h.
40638         * modules/frexpf-tests (Files): Likewise.
40639         * modules/frexpl-tests (Files): Likewise.
40641 2012-03-02  Jim Meyering  <meyering@redhat.com>
40643         maint: don't specify XZ_OPT=-9ev in dist-related rule
40644         Using xz's -9 option is warranted only if you have a very large
40645         tarball (see xz's documentation for the sizes vs. presets), and
40646         requires 64MiB of memory at decompression time.
40647         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
40648         Automake's default of just "-e" is fine.  Override on a
40649         per-package basis by setting XZ_OPT e.g., in cfg.mk.
40651 2012-03-01  Eric Blake  <eblake@redhat.com>
40653         maint.mk: allow announcement for non-gnulib project
40654         * maint.mk (announcement): Skip gnulib version if not used.
40656 2012-03-01  Jim Meyering  <meyering@redhat.com>
40658         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
40659         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
40660         envvar settings cannot interfere.  Otherwise, setting envvars like
40661         prohibit=foo require=bar, etc. would cause spurious test failures.
40663 2012-03-01  Eric Blake  <eblake@redhat.com>
40665         maint.mk: add per-line exclusions to prohibitions
40666         * maint.mk (_sc_search_regexp): Add $exclude parameter.
40667         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
40668         (sc_const_long_option): Use it.
40670 2012-03-01  Bruno Haible  <bruno@clisp.org>
40672         Tests for module 'expl-ieee'.
40673         * modules/expl-ieee-tests: New file.
40674         * tests/test-expl-ieee.c: New file.
40676         New module 'expl-ieee'.
40677         * modules/expl-ieee: New file.
40679         Tests for module 'exp-ieee'.
40680         * modules/exp-ieee-tests: New file.
40681         * tests/test-exp-ieee.c: New file.
40683         New module 'exp-ieee'.
40684         * modules/exp-ieee: New file.
40686         Tests for module 'expf-ieee'.
40687         * modules/expf-ieee-tests: New file.
40688         * tests/test-expf-ieee.c: New file.
40689         * tests/test-exp-ieee.h: New file.
40691         New module 'expf-ieee'.
40692         * modules/expf-ieee: New file.
40694 2012-02-29  Bruno Haible  <bruno@clisp.org>
40696         cbrtl-ieee: Work around test failure on IRIX 6.5.
40697         * m4/cbrtl-ieee.m4: New file.
40698         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
40699         test whether cbrtl works with a minus zero argument. Replace it if not.
40700         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
40701         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
40702         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
40703         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
40704         (Depends-on): Update conditions.
40705         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
40706         m4/signbit.m4.
40707         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
40708         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
40709         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
40711         Tests for module 'cbrtl-ieee'.
40712         * modules/cbrtl-ieee-tests: New file.
40713         * tests/test-cbrtl-ieee.c: New file.
40715         New module 'cbrtl-ieee'.
40716         * modules/cbrtl-ieee: New file.
40718         Tests for module 'cbrt-ieee'.
40719         * modules/cbrt-ieee-tests: New file.
40720         * tests/test-cbrt-ieee.c: New file.
40722         New module 'cbrt-ieee'.
40723         * modules/cbrt-ieee: New file.
40725         Tests for module 'cbrtf-ieee'.
40726         * modules/cbrtf-ieee-tests: New file.
40727         * tests/test-cbrtf-ieee.c: New file.
40728         * tests/test-cbrt-ieee.h: New file.
40730         New module 'cbrtf-ieee'.
40731         * modules/cbrtf-ieee: New file.
40733 2012-02-29  Bruno Haible  <bruno@clisp.org>
40735         cbrtf: Work around bug in IRIX 6.5 system function.
40736         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
40737         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
40738         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
40739         work.
40740         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
40741         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
40742         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
40743         (Depends-on): Update conditions.
40744         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
40746 2012-02-29  Bruno Haible  <bruno@clisp.org>
40748         Tests for module 'cbrtl'.
40749         * modules/cbrtl-tests: New file.
40750         * tests/test-cbrtl.c: New file.
40752         New module 'cbrtl'.
40753         * lib/math.in.h (cbrtl): New declaration.
40754         * lib/cbrtl.c: New file.
40755         * m4/cbrtl.m4: New file.
40756         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
40757         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
40758         HAVE_DECL_CBRTL.
40759         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
40760         HAVE_DECL_CBRTL.
40761         * modules/cbrtl: New file.
40762         * tests/test-math-c++.cc: Check the declaration of cbrtl.
40763         * doc/posix-functions/cbrtl.texi: Mention the new module.
40765 2012-02-29  Bruno Haible  <bruno@clisp.org>
40767         Tests for module 'cbrtf'.
40768         * modules/cbrtf-tests: New file.
40769         * tests/test-cbrtf.c: New file.
40771         New module 'cbrtf'.
40772         * lib/math.in.h (cbrtf): New declaration.
40773         * lib/cbrtf.c: New file.
40774         * m4/cbrtf.m4: New file.
40775         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
40776         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
40777         HAVE_DECL_CBRTF.
40778         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
40779         HAVE_DECL_CBRTF.
40780         * modules/cbrtf: New file.
40781         * tests/test-math-c++.cc: Check the declaration of cbrtf.
40782         * doc/posix-functions/cbrtf.texi: Mention the new module.
40784 2012-02-29  Bruno Haible  <bruno@clisp.org>
40786         cbrt: Provide replacement on MSVC and Minix.
40787         * lib/math.in.h (cbrt): New declaration.
40788         * lib/cbrt.c: New file.
40789         * m4/cbrt.m4: New file.
40790         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
40791         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
40792         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
40793         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
40794         (Depends-on): Add dependencies.
40795         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
40796         * tests/test-math-c++.cc: Check the declaration of cbrt.
40797         * doc/posix-functions/cbrt.texi: Mention that the module provides a
40798         replacement.
40800 2012-02-29  Bruno Haible  <bruno@clisp.org>
40802         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
40803         * m4/hypotl-ieee.m4: New file.
40804         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
40805         test whether hypotl works with mixed NaN and Infinity arguments.
40806         Replace it if not.
40807         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
40808         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
40809         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
40810         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
40811         (Depends-on): Update conditions.
40812         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
40813         (Depends-on): Add hypot-ieee.
40814         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
40815         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
40817         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
40818         * m4/hypotf-ieee.m4: New file.
40819         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
40820         test whether hypotf works with mixed NaN and Infinity arguments.
40821         Replace it if not.
40822         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
40823         (Depends-on): Add hypot-ieee.
40824         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
40825         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
40827         hypot-ieee: Work around test failure on OSF/1 and native Windows.
40828         * lib/math.in.h (hypot): New declaration.
40829         * lib/hypot.c: New file.
40830         * m4/hypot-ieee.m4: New file.
40831         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
40832         whether hypot works with mixed NaN and Infinity arguments. Replace it
40833         if not.
40834         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
40835         REPLACE_HYPOT.
40836         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
40837         * modules/hypot (Files): Add lib/hypot.c.
40838         (Depends-on): Add dependencies.
40839         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
40840         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
40841         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
40842         * tests/test-math-c++.cc: Check the declaration of hypot.
40843         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
40845         Tests for module 'hypotl-ieee'.
40846         * modules/hypotl-ieee-tests: New file.
40847         * tests/test-hypotl-ieee.c: New file.
40849         New module 'hypotl-ieee'.
40850         * modules/hypotl-ieee: New file.
40852         Tests for module 'hypot-ieee'.
40853         * modules/hypot-ieee-tests: New file.
40854         * tests/test-hypot-ieee.c: New file.
40856         New module 'hypot-ieee'.
40857         * modules/hypot-ieee: New file.
40859         Tests for module 'hypotf-ieee'.
40860         * modules/hypotf-ieee-tests: New file.
40861         * tests/test-hypotf-ieee.c: New file.
40862         * tests/test-hypot-ieee.h: New file.
40864         New module 'hypotf-ieee'.
40865         * modules/hypotf-ieee: New file.
40867 2012-02-29  Bruno Haible  <bruno@clisp.org>
40869         Remove unused variables.
40870         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
40871         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
40872         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
40873         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
40875 2012-02-29  Eric Blake  <eblake@redhat.com>
40877         termios: fix pid_t always, not just for tcgetsid
40878         * doc/posix-headers/termios.texi (termios.h): Mention problem.
40879         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
40880         just when building tcgetsid.
40882 2012-02-29  Bruno Haible  <bruno@clisp.org>
40884         Tests for module 'hypotl'.
40885         * modules/hypotl-tests: New file.
40886         * tests/test-hypotl.c: New file.
40888         New module 'hypotl'.
40889         * lib/math.in.h (hypotl): New declaration.
40890         * lib/hypotl.c: New file.
40891         * m4/hypotl.m4: New file.
40892         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
40893         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
40894         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
40895         * modules/hypotl: New file.
40896         * tests/test-math-c++.cc: Check the hypotl declaration.
40897         * doc/posix-functions/hypotl.texi: Mention the new module.
40899 2012-02-29  Eric Blake  <eblake@redhat.com>
40901         tcgetsid: fix cygwin header bug
40902         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
40904         docs: update cygwin progress
40905         * doc/posix-functions/llround.texi (llround): Added in cygwin
40906         1.7.8.
40907         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
40908         * doc/glibc-functions/program_invocation_name.texi
40909         (program_invocation_name): Likewise.
40910         * doc/glibc-functions/program_invocation_short_name.texi
40911         (program_invocation_short_name): Likewise.
40912         * doc/glibc-functions/madvise.texi (madvise): Likewise.
40913         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
40914         Likewise.
40915         * doc/posix-functions/pthread_spin_destroy.texi
40916         (pthread_spin_destroy): Added in cygwin 1.7.10.
40917         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
40918         Likewise.
40919         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
40920         Likewise.
40921         * doc/posix-functions/pthread_spin_trylock.texi
40922         (pthread_spin_trylock): Likewise.
40923         * doc/posix-functions/pthread_spin_unlock.texi
40924         (pthread_spin_unlock): Likewise.
40925         * doc/posix-functions/pthread_setschedprio.texi
40926         (pthread_setschedprio): Likewise.
40927         * doc/posix-functions/pthread_attr_getstack.texi
40928         (pthread_attr_getstack): Likewise.
40929         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
40930         (pthread_attr_getstackaddr): Likewise.
40931         * doc/glibc-functions/pthread_getattr_np.texi
40932         (pthread_getattr_np): Likewise.
40933         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
40934         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
40935         * doc/posix-functions/clock_settime.texi (clock_settime):
40936         Likewise.
40937         * doc/posix-functions/pthread_attr_getguardsize.texi
40938         (pthread_attr_getguardsize): Likewise.
40939         * doc/posix-functions/pthread_attr_setguardsize.texi
40940         (pthread_attr_setguardsize): Likewise.
40941         * doc/posix-functions/pthread_attr_setstack.texi
40942         (pthread_attr_setstack): Likewise.
40943         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
40944         (pthread_attr_setstackaddr): Likewise.
40945         * doc/posix-functions/clock_getcpuclockid.texi
40946         (clock_getcpuclockid): Likewise.
40947         * doc/posix-functions/pthread_getcpuclockid.texi
40948         (pthread_getcpuclockid): Likewise.
40949         * doc/glibc-functions/error.texi (error): Likewise.
40950         * doc/glibc-functions/error_at_line.texi (error_at_line):
40951         Likewise.
40952         * doc/glibc-functions/error_message_count.texi
40953         (error_message_count): Likewise.
40954         * doc/glibc-functions/error_one_per_line.texi
40955         (error_one_per_line): Likewise.
40956         * doc/glibc-functions/error_print_progname.texi
40957         (error_print_progname): Likewise.
40958         * doc/posix-functions/pthread_condattr_getclock.texi
40959         (pthread_condattr_getclock): Likewise.
40960         * doc/posix-functions/pthread_condattr_setclock.texi
40961         (pthread_condattr_setclock): Likewise.
40962         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
40963         Likewise.
40964         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
40965         * doc/glibc-functions/getpt.texi (getpt): Likewise.
40966         * doc/glibc-functions/get_current_dir_name.texi
40967         (get_current_dir_name): Likewise.
40968         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
40969         Likewise.
40970         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
40971         wrong return type.
40972         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
40973         1.7.11.
40975 2012-02-29  Bruno Haible  <bruno@clisp.org>
40977         Tests for module 'hypotf'.
40978         * modules/hypotf-tests: New file.
40979         * tests/test-hypotf.c: New file.
40981         New module 'hypotf'.
40982         * lib/math.in.h (hypotf): New declaration.
40983         * lib/hypotf.c: New file.
40984         * m4/hypotf.m4: New file.
40985         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
40986         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
40987         REPLACE_HYPOTF.
40988         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
40989         REPLACE_HYPOTF.
40990         * modules/hypotf: New file.
40991         * tests/test-math-c++.cc: Check the hypotf declaration.
40992         * doc/posix-functions/hypotf.texi: Mention the new module.
40994         hypot: Prepare for hypotf module.
40995         * m4/hypot.m4: New file.
40996         * modules/hypot (Files): Add m4/hypot.m4.
40997         (configure.ac): Invoke gl_FUNC_HYPOT.
40999 2012-02-29  Bruno Haible  <bruno@clisp.org>
41001         hypot tests: More tests.
41002         * tests/test-hypot.c: Include <float.h>.
41003         (main): Add tests about overflow and underflow.
41005 2012-02-29  Bruno Haible  <bruno@clisp.org>
41007         math code: Add comments.
41008         * lib/acosl.c: Add comment about related glibc source files.
41009         * lib/asinl.c: Likewise.
41010         * lib/atanl.c: Likewise.
41011         * lib/expl.c: Likewise.
41012         * lib/logl.c: Likewise.
41013         * lib/sincosl.c: Likewise.
41014         * lib/sinl.c: Likewise.
41015         * lib/tanl.c: Likewise.
41016         * lib/trigl.c: Likewise.
41017         * lib/cosl.c: Likewise. Fix comments.
41019 2012-02-28  Bruno Haible  <bruno@clisp.org>
41021         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
41022         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
41023         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
41024         HUGE_VALL are defined.
41025         (numeric_equald): Renamed from numeric_equal.
41026         (numeric_equalf, numeric_equall): New functions.
41027         (main): Check also HUGE_VALF, HUGE_VALL.
41028         * modules/math-tests (Files): Add tests/macros.h.
41029         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
41030         HUGE_VALL.
41032 2012-02-28  Bruno Haible  <bruno@clisp.org>
41034         doc: Move ISO C11 feature notes into POSIX chapters.
41035         * doc/posix-functions/aligned_alloc.texi: Renamed from
41036         doc/glibc-functions/aligned_alloc.texi.
41037         * doc/posix-functions/quick_exit.texi: Renamed from
41038         doc/glibc-functions/quick_exit.texi.
41039         * doc/posix-headers/uchar.texi: Renamed from
41040         doc/glibc-headers/uchar.texi.
41041         * doc/posix-functions/c16rtomb.texi: Renamed from
41042         doc/glibc-functions/c16rtomb.texi.
41043         * doc/posix-functions/c32rtomb.texi: Renamed from
41044         doc/glibc-functions/c32rtomb.texi.
41045         * doc/posix-functions/mbrtoc16.texi: Renamed from
41046         doc/glibc-functions/mbrtoc16.texi.
41047         * doc/posix-functions/mbrtoc32.texi: Renamed from
41048         doc/glibc-functions/mbrtoc32.texi.
41049         * doc/gnulib.texi: Update.
41050         (Glibc uchar.h): Remove section.
41051         Suggested by Eric Blake.
41053 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
41055         stdnoreturn: port to MSVC better
41056         MSVC standard headers use __declspec(noreturn), so #define noreturn
41057         to empty on that platform.  Reported by Bruno Haible in
41058         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
41059         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
41060         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
41062 2012-02-28  Bruno Haible  <bruno@clisp.org>
41064         doc: Mention new glibc headers and functions.
41065         * doc/glibc-headers/uchar.texi: New file.
41066         * doc/glibc-functions/aligned_alloc.texi: New file.
41067         * doc/glibc-functions/c16rtomb.texi: New file.
41068         * doc/glibc-functions/c32rtomb.texi: New file.
41069         * doc/glibc-functions/clock_adjtime.texi: New file.
41070         * doc/glibc-functions/fanotify_init.texi: New file.
41071         * doc/glibc-functions/fanotify_mark.texi: New file.
41072         * doc/glibc-functions/inet6_opt_append.texi: New file.
41073         * doc/glibc-functions/inet6_opt_find.texi: New file.
41074         * doc/glibc-functions/inet6_opt_finish.texi: New file.
41075         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
41076         * doc/glibc-functions/inet6_opt_init.texi: New file.
41077         * doc/glibc-functions/inet6_opt_next.texi: New file.
41078         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
41079         * doc/glibc-functions/inet6_rth_add.texi: New file.
41080         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
41081         * doc/glibc-functions/inet6_rth_init.texi: New file.
41082         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
41083         * doc/glibc-functions/inet6_rth_segments.texi: New file.
41084         * doc/glibc-functions/inet6_rth_space.texi: New file.
41085         * doc/glibc-functions/login.texi: New file.
41086         * doc/glibc-functions/mbrtoc16.texi: New file.
41087         * doc/glibc-functions/mbrtoc32.texi: New file.
41088         * doc/glibc-functions/name_to_handle_at.texi: New file.
41089         * doc/glibc-functions/ntp_gettimex.texi: New file.
41090         * doc/glibc-functions/open_by_handle_at.texi: New file.
41091         * doc/glibc-functions/prlimit.texi: New file.
41092         * doc/glibc-functions/process_vm_readv.texi: New file.
41093         * doc/glibc-functions/process_vm_writev.texi: New file.
41094         * doc/glibc-functions/recvmmsg.texi: New file.
41095         * doc/glibc-functions/scandirat.texi: New file.
41096         * doc/glibc-functions/sendmmsg.texi: New file.
41097         * doc/glibc-functions/setns.texi: New file.
41098         * doc/glibc-functions/timespec_get.texi: New file.
41099         * doc/gnulib.texi: Include them.
41100         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
41101         sections.
41102         Reported by Eric Blake.
41104 2012-02-28  Bruno Haible  <bruno@clisp.org>
41106         Avoid compilation errors with MSVC option -fp:strict.
41107         * lib/floor.c: Use MSVC specific pragma fenv_access.
41108         * lib/ceil.c: Likewise.
41109         * lib/trunc.c: Likewise.
41110         * lib/round.c: Likewise.
41111         * lib/rint.c: Likewise.
41112         * lib/fma.c: Likewise.
41113         * lib/integer_length.c: Likewise.
41114         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41115         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41116         * tests/test-floor2.c: Likewise.
41117         * tests/test-floorf2.c: Likewise.
41118         * tests/test-ceil2.c: Likewise.
41119         * tests/test-ceilf2.c: Likewise.
41120         * tests/test-trunc2.c: Likewise.
41121         * tests/test-truncf2.c: Likewise.
41122         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
41124 2012-02-27  Bruno Haible  <bruno@clisp.org>
41126         Tests for module 'sqrtl-ieee'.
41127         * modules/sqrtl-ieee-tests: New file.
41128         * tests/test-sqrtl-ieee.c: New file.
41130         New module 'sqrtl-ieee'.
41131         * modules/sqrtl-ieee: New file.
41133         Tests for module 'sqrt-ieee'.
41134         * modules/sqrt-ieee-tests: New file.
41135         * tests/test-sqrt-ieee.c: New file.
41137         New module 'sqrt-ieee'.
41138         * modules/sqrt-ieee: New file.
41140         Tests for module 'sqrtf-ieee'.
41141         * modules/sqrtf-ieee-tests: New file.
41142         * tests/test-sqrtf-ieee.c: New file.
41143         * tests/test-sqrt-ieee.h: New file.
41145         New module 'sqrtf-ieee'.
41146         * modules/sqrtf-ieee: New file.
41148 2012-02-27  Bruno Haible  <bruno@clisp.org>
41150         remainderl-ieee: Work around test failure on OSF/1.
41151         * m4/remainderl-ieee.m4: New file.
41152         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
41153         present, test whether remainderl works with a zero second argument.
41154         Replace it if not.
41155         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
41156         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
41157         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
41158         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
41159         (Depends-on): Update conditions.
41160         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
41161         (Depends-on): Add remainder-ieee.
41162         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
41163         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
41164         module.
41166         remainderf-ieee: Work around test failure on OSF/1.
41167         * m4/remainderf-ieee.m4: New file.
41168         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
41169         present, test whether remainderf works with a zero second argument.
41170         Replace it if not.
41171         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
41172         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
41173         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
41174         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
41175         (Depends-on): Update conditions.
41176         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
41177         (Depends-on): Add remainder-ieee.
41178         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
41179         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
41180         module.
41182         remainder-ieee: Work around test failure on OSF/1.
41183         * m4/remainder-ieee.m4: New file.
41184         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
41185         present, test whether remainder works with a zero second argument.
41186         Replace it if not.
41187         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
41188         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
41189         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
41190         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
41191         (Depends-on): Update dependencies.
41192         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
41193         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
41194         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
41196         Tests for module 'remainderl-ieee'.
41197         * modules/remainderl-ieee-tests: New file.
41198         * tests/test-remainderl-ieee.c: New file.
41200         New module 'remainderl-ieee'.
41201         * modules/remainderl-ieee: New file.
41203         Tests for module 'remainder-ieee'.
41204         * modules/remainder-ieee-tests: New file.
41205         * tests/test-remainder-ieee.c: New file.
41207         New module 'remainder-ieee'.
41208         * modules/remainder-ieee: New file.
41210         Tests for module 'remainderf-ieee'.
41211         * modules/remainderf-ieee-tests: New file.
41212         * tests/test-remainderf-ieee.c: New file.
41213         * tests/test-remainder-ieee.h: New file.
41215         New module 'remainderf-ieee'.
41216         * modules/remainderf-ieee: New file.
41218 2012-02-27  Bruno Haible  <bruno@clisp.org>
41220         modff, modfl: Fix configure syntax error.
41221         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
41222         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
41224 2012-02-27  Bruno Haible  <bruno@clisp.org>
41226         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
41227         * m4/fmodl-ieee.m4: New file.
41228         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
41229         whether fmodl works with zero arguments. Replace it if not.
41230         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
41231         (Depends-on): Add fmod-ieee.
41232         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
41233         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
41235         fmodf-ieee: Work around test failure on OSF/1.
41236         * m4/fmodf-ieee.m4: New file.
41237         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
41238         whether fmodf works with zero arguments. Replace it if not.
41239         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
41240         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
41241         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
41242         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
41243         (Depends-on): Update dependencies.
41244         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
41245         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
41246         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
41248         fmodf-ieee: Work around test failure on MSVC 9.
41249         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
41250         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
41252         fmod-ieee: Work around test failures on OSF/1, mingw.
41253         * m4/fmod-ieee.m4: New file.
41254         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
41255         whether fmod works with zero arguments. Replace it if not.
41256         * lib/math.in.h (fmod): New declaration.
41257         * lib/fmod.c: New file.
41258         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
41259         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
41260         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
41261         * modules/fmod (Files): Add lib/fmod.c.
41262         (Depends-on): Add math, isinf, trunc, fma.
41263         (configure.ac): Arrange to compile lib/fmod.c if needed.
41264         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
41265         m4/signbit.m4.
41266         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
41267         * tests/test-math-c++.cc: Check the declaration of fmod.
41268         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
41270         fmodl-ieee: Fix test failures.
41271         * lib/fmodl.c (fmodl): Treat Inf specially.
41272         * modules/fmodl (Depends-on): Add isinf.
41274         Tests for module 'fmodl-ieee'.
41275         * modules/fmodl-ieee-tests: New file.
41276         * tests/test-fmodl-ieee.c: New file.
41278         New module 'fmodl-ieee'.
41279         * modules/fmodl-ieee: New file.
41281         Tests for module 'fmod-ieee'.
41282         * modules/fmod-ieee-tests: New file.
41283         * tests/test-fmod-ieee.c: New file.
41285         New module 'fmod-ieee'.
41286         * modules/fmod-ieee: New file.
41288         Tests for module 'fmodf-ieee'.
41289         * modules/fmodf-ieee-tests: New file.
41290         * tests/test-fmodf-ieee.c: New file.
41291         * tests/test-fmod-ieee.h: New file.
41293         New module 'fmodf-ieee'.
41294         * modules/fmodf-ieee: New file.
41296 2012-02-27  Bruno Haible  <bruno@clisp.org>
41298         Tests for module 'rintl-ieee'.
41299         * modules/rintl-ieee-tests: New file.
41300         * tests/test-rintl-ieee.c: New file.
41302         New module 'rintl-ieee'.
41303         * modules/rintl-ieee: New file.
41305         Tests for module 'rint-ieee'.
41306         * modules/rint-ieee-tests: New file.
41307         * tests/test-rint-ieee.c: New file.
41309         New module 'rint-ieee'.
41310         * modules/rint-ieee: New file.
41312         Tests for module 'rintf-ieee'.
41313         * modules/rintf-ieee-tests: New file.
41314         * tests/test-rintf-ieee.c: New file.
41315         * tests/test-rint-ieee.h: New file.
41317         New module 'rintf-ieee'.
41318         * modules/rintf-ieee: New file.
41320 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
41322         regex: re_search etc. should return -2 when memory exhausted
41323         This bug was uncovered when testing 'grep'.  Without the fix,
41324         re_search and friends return -1 when memory is exhausted, but -1
41325         means no match, and this causes grep to falsely report no-match
41326         instead of memory-exhaustion.  See
41327         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
41328         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
41329         trouble; this can occur if re_search_internal ran out of memory.
41331 2012-02-26  Bruno Haible  <bruno@clisp.org>
41333         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
41334         * m4/modfl-ieee.m4: New file.
41335         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
41336         whether modfl works with Inf. Replace it if not.
41337         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
41338         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
41339         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
41340         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
41341         (Depends-on): Update dependencies.
41342         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
41343         m4/signbit.m4.
41344         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
41345         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
41347         modfl-ieee: Fix dependencies.
41348         * modules/modfl-ieee (Depends-on): Add modf-ieee.
41350         modfl-ieee: Fix test failures.
41351         * lib/modfl.c (modfl): Treat NaN and Inf specially.
41352         * modules/modfl (Depends-on): Add isfinite, isinf.
41354         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
41355         * m4/modff-ieee.m4: New file.
41356         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
41357         whether modff works with NaN and Inf. Replace it if not.
41358         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
41359         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
41360         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
41361         * modules/modff (configure.ac): Consider REPLACE_MODFF.
41362         (Depends-on): Update dependencies.
41363         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
41364         m4/signbit.m4.
41365         (Depends-on): Add modf-ieee.
41366         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
41367         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
41369         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
41370         * m4/modf-ieee.m4: New file.
41371         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
41372         whether modf works with NaN and Inf. Replace it if not.
41373         * lib/math.in.h (modf): New declaration.
41374         * lib/modf.c: New file.
41375         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
41376         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
41377         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
41378         * modules/modf (Files): Add lib/modf.c.
41379         (Depends-on): Add math, isfinite, trunc, isinf.
41380         (configure.ac): Addrange to compile lib/modf.c if needed.
41381         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
41382         m4/signbit.m4.
41383         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
41384         * tests/test-math-c++.cc: Check the declaration of modf.
41385         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
41387         Tests for module 'modfl-ieee'.
41388         * modules/modfl-ieee-tests: New file.
41389         * tests/test-modfl-ieee.c: New file.
41391         New module 'modfl-ieee'.
41392         * modules/modfl-ieee: New file.
41394         Tests for module 'modf-ieee'.
41395         * modules/modf-ieee-tests: New file.
41396         * tests/test-modf-ieee.c: New file.
41398         New module 'modf-ieee'.
41399         * modules/modf-ieee: New file.
41401         Tests for module 'modff-ieee'.
41402         * modules/modff-ieee-tests: New file.
41403         * tests/test-modff-ieee.c: New file.
41404         * tests/test-modf-ieee.h: New file.
41406         New module 'modff-ieee'.
41407         * modules/modff-ieee: New file.
41409 2012-02-26  Bruno Haible  <bruno@clisp.org>
41411         Tests for module 'fabsl-ieee'.
41412         * modules/fabsl-ieee-tests: New file.
41413         * tests/test-fabsl-ieee.c: New file.
41415         New module 'fabsl-ieee'.
41416         * modules/fabsl-ieee: New file.
41418         Tests for module 'fabs-ieee'.
41419         * modules/fabs-ieee-tests: New file.
41420         * tests/test-fabs-ieee.c: New file.
41422         New module 'fabs-ieee'.
41423         * modules/fabs-ieee: New file.
41425         Tests for module 'fabsf-ieee'.
41426         * modules/fabsf-ieee-tests: New file.
41427         * tests/test-fabsf-ieee.c: New file.
41428         * tests/test-fabs-ieee.h: New file.
41430         New module 'fabsf-ieee'.
41431         * modules/fabsf-ieee: New file.
41433 2012-02-26  Bruno Haible  <bruno@clisp.org>
41435         Tests for module 'fmal-ieee'.
41436         * modules/fmal-ieee-tests: New file.
41437         * tests/test-fmal-ieee.c: New file.
41439         New module 'fmal-ieee'.
41440         * modules/fmal-ieee: New file.
41442         Tests for module 'fma-ieee'.
41443         * modules/fma-ieee-tests: New file.
41444         * tests/test-fma-ieee.c: New file.
41446         New module 'fma-ieee'.
41447         * modules/fma-ieee: New file.
41449         Tests for module 'fmaf-ieee'.
41450         * modules/fmaf-ieee-tests: New file.
41451         * tests/test-fmaf-ieee.c: New file.
41452         * tests/test-fma-ieee.h: New file.
41454         New module 'fmaf-ieee'.
41455         * modules/fmaf-ieee: New file.
41457 2012-02-26  Bruno Haible  <bruno@clisp.org>
41459         Tests for module 'ldexpl-ieee'.
41460         * modules/ldexpl-ieee-tests: New file.
41461         * tests/test-ldexpl-ieee.c: New file.
41463         New module 'ldexpl-ieee'.
41464         * modules/ldexpl-ieee: New file.
41466         Tests for module 'ldexp-ieee'.
41467         * modules/ldexp-ieee-tests: New file.
41468         * tests/test-ldexp-ieee.c: New file.
41470         New module 'ldexp-ieee'.
41471         * modules/ldexp-ieee: New file.
41473         Tests for module 'ldexpf-ieee'.
41474         * modules/ldexpf-ieee-tests: New file.
41475         * tests/test-ldexpf-ieee.c: New file.
41476         * tests/test-ldexp-ieee.h: New file.
41478         New module 'ldexpf-ieee'.
41479         * modules/ldexpf-ieee: New file.
41481 2012-02-26  Bruno Haible  <bruno@clisp.org>
41483         Refactor frexp*-ieee tests.
41484         * tests/test-frexp-ieee.h: New file.
41485         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
41486         (main): Just call test_function.
41487         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
41488         (main): Just call test_function.
41489         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
41490         (main): Just call test_function.
41491         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
41492         * modules/frexp-ieee-tests (Files): Likewise.
41493         * modules/frexpl-ieee-tests (Files): Likewise.
41495         Tests for module 'frexpl-ieee'.
41496         * modules/frexpl-ieee-tests: New file.
41497         * tests/test-frexpl-ieee.c: New file.
41499         New module 'frexpl-ieee'.
41500         * modules/frexpl-ieee: New file.
41502         Tests for module 'frexp-ieee'.
41503         * modules/frexp-ieee-tests: New file.
41504         * tests/test-frexp-ieee.c: New file.
41506         New module 'frexp-ieee'.
41507         * modules/frexp-ieee: New file.
41509         Tests for module 'frexpf-ieee'.
41510         * modules/frexpf-ieee-tests: New file.
41511         * tests/test-frexpf-ieee.c: New file.
41513         New module 'frexpf-ieee'.
41514         * modules/frexpf-ieee: New file.
41516 2012-02-26  Bruno Haible  <bruno@clisp.org>
41518         roundl-ieee tests: More tests.
41519         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
41520         (main): Add tests for [MX] shaded specification in POSIX.
41521         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41522         (Depends-on): Add isnanl-nolibm.
41524         round-ieee tests: More tests.
41525         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
41526         (main): Add tests for [MX] shaded specification in POSIX.
41527         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41528         (Depends-on): Add isnand-nolibm.
41530         roundf-ieee tests: More tests.
41531         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
41532         (main): Add tests for [MX] shaded specification in POSIX.
41533         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41534         (Depends-on): Add isnanf-nolibm.
41536         truncl-ieee tests: More tests.
41537         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
41538         (main): Add tests for [MX] shaded specification in POSIX.
41539         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41540         (Depends-on): Add isnanl-nolibm.
41542         trunc-ieee tests: More tests.
41543         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
41544         (main): Add tests for [MX] shaded specification in POSIX.
41545         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41546         (Depends-on): Add isnand-nolibm.
41548         truncf-ieee tests: More tests.
41549         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
41550         (main): Add tests for [MX] shaded specification in POSIX.
41551         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41552         (Depends-on): Add isnanf-nolibm.
41554         ceill-ieee tests: More tests.
41555         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
41556         (main): Add tests for [MX] shaded specification in POSIX.
41557         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41558         (Depends-on): Add isnanl-nolibm.
41560         ceil-ieee tests: More tests.
41561         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
41562         (main): Add tests for [MX] shaded specification in POSIX.
41563         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41564         (Depends-on): Add isnand-nolibm.
41566         ceilf-ieee tests: More tests.
41567         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
41568         (main): Add tests for [MX] shaded specification in POSIX.
41569         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41570         (Depends-on): Add isnanf-nolibm.
41572         floorl-ieee tests: More tests.
41573         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
41574         (main): Add tests for [MX] shaded specification in POSIX.
41575         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41576         (Depends-on): Add isnanl-nolibm.
41578         floor-ieee tests: More tests.
41579         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
41580         (main): Add tests for [MX] shaded specification in POSIX.
41581         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41582         (Depends-on): Add isnand-nolibm.
41584         floorf-ieee tests: More tests.
41585         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
41586         (main): Add tests for [MX] shaded specification in POSIX.
41587         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
41588         (Depends-on): Add isnanf-nolibm.
41590 2012-02-26  Bruno Haible  <bruno@clisp.org>
41592         fpieee: More comments.
41593         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
41595 2012-02-25  Bruno Haible  <bruno@clisp.org>
41597         Tests for module 'log10l'.
41598         * modules/log10l-tests: New file.
41599         * tests/test-log10l.c: New file.
41600         * tests/test-math-c++.cc: Check the declaration of log10l.
41602         New module 'log10l'.
41603         * lib/math.in.h (log10l): New declaration.
41604         * lib/log10l.c: New file.
41605         * m4/log10l.m4: New file.
41606         * modules/log10l: New file.
41607         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
41608         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
41609         HAVE_DECL_LOG10L.
41610         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
41611         HAVE_DECL_LOG10L.
41612         * doc/posix-functions/log10l.texi: Mention the new module.
41614 2012-02-25  Bruno Haible  <bruno@clisp.org>
41616         fmodl, remainder*: Avoid wrong results due to rounding errors.
41617         * lib/fmodl.c (fmodl): Correct the result if it is not within the
41618         expected bounds.
41619         * lib/remainderf.c (remainderf): Likewise.
41620         * lib/remainder.c (remainder): Likewise.
41621         * lib/remainderl.c (remainderl): Likewise.
41623 2012-02-25  Bruno Haible  <bruno@clisp.org>
41625         Tests for module 'remainderl'.
41626         * modules/remainderl-tests: New file.
41627         * tests/test-remainderl.c: New file.
41628         * tests/test-math-c++.cc: Check the declaration of remainderl.
41630         New module 'remainderl'.
41631         * lib/math.in.h (remainderl): New declaration.
41632         * lib/remainderl.c: New file.
41633         * m4/remainderl.m4: New file.
41634         * modules/remainderl: New file.
41635         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
41636         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
41637         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
41638         HAVE_REMAINDERL.
41639         * doc/posix-functions/remainderl.texi: Mention the new module.
41641 2012-02-25  Bruno Haible  <bruno@clisp.org>
41643         Tests for module 'remainderf'.
41644         * modules/remainderf-tests: New file.
41645         * tests/test-remainderf.c: New file.
41646         * tests/test-math-c++.cc: Check the declaration of remainderf.
41648         New module 'remainderf'.
41649         * lib/math.in.h (remainderf): New declaration.
41650         * lib/remainderf.c: New file.
41651         * m4/remainderf.m4: New file.
41652         * modules/remainderf: New file.
41653         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
41654         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
41655         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
41656         HAVE_REMAINDERF.
41657         * doc/posix-functions/remainderf.texi: Mention the new module.
41659 2012-02-25  Bruno Haible  <bruno@clisp.org>
41661         remainder: Support for MSVC.
41662         * lib/math.in.h (remainder): New declaration.
41663         * lib/remainder.c: New file.
41664         * m4/remainder.m4: New file.
41665         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
41666         (Depends-on): Add math, round, fma.
41667         (configure.ac): Use results of gl_FUNC_REMAINDER.
41668         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
41669         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
41670         HAVE_DECL_REMAINDER.
41671         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
41672         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
41673         * tests/test-math-c++.cc: Check the declaration of remainder.
41674         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
41675         problems are fixed.
41677 2012-02-25  Bruno Haible  <bruno@clisp.org>
41679         Tests for module 'fmodl'.
41680         * modules/fmodl-tests: New file.
41681         * tests/test-fmodl.c: New file.
41682         * tests/test-math-c++.cc: Check the declaration of fmodl.
41684         New module 'fmodl'.
41685         * lib/math.in.h (fmodl): New declaration.
41686         * lib/fmodl.c: New file.
41687         * m4/fmodl.m4: New file.
41688         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
41689         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
41690         REPLACE_FMODL.
41691         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
41692         REPLACE_FMODL.
41693         * modules/fmodl: New file.
41694         * doc/posix-functions/fmodl.texi: Mention the new module.
41696 2012-02-25  Bruno Haible  <bruno@clisp.org>
41698         Tests for module 'modfl'.
41699         * modules/modfl-tests: New file.
41700         * tests/test-modfl.c: New file.
41701         * tests/test-math-c++.cc: Check the declaration of modfl.
41703         New module 'modfl'.
41704         * lib/math.in.h (modfl): New declaration.
41705         * lib/modfl.c: New file.
41706         * m4/modfl.m4: New file.
41707         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
41708         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
41709         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
41710         * modules/modfl: New file.
41711         * doc/posix-functions/modfl.texi: Mention the new module.
41713 2012-02-25  Bruno Haible  <bruno@clisp.org>
41715         Tests for module 'fabsl'.
41716         * modules/fabsl-tests: New file.
41717         * tests/test-fabsl.c: New file.
41718         * tests/test-math-c++.cc: Check the declaration of fabsl.
41720         New module 'fabsl'.
41721         * lib/math.in.h (fabsl): New declaration.
41722         * lib/fabsl.c: New file.
41723         * m4/fabsl.m4: New file.
41724         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
41725         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
41726         REPLACE_FABSL.
41727         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
41728         REPLACE_FABSL.
41729         * modules/fabsl: New file.
41730         * doc/posix-functions/fabsl.texi: Mention the new module.
41732 2012-02-25  Bruno Haible  <bruno@clisp.org>
41734         fabs tests: More tests.
41735         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
41736         (zero): New variable.
41737         (main): Add tests for signed zero.
41738         * modules/fabs-tests (Files): Add tests/minus-zero.h.
41740         fabsf tests: More tests.
41741         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
41742         (zero): New variable.
41743         (main): Add tests for signed zero.
41744         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
41746 2012-02-24  Bruno Haible  <bruno@clisp.org>
41748         atanl: Provide function definition on MSVC.
41749         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
41750         function pointer.
41751         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
41753 2012-02-24  Bruno Haible  <bruno@clisp.org>
41755         acosl: Provide function definition on MSVC.
41756         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
41757         function pointer.
41758         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
41760 2012-02-24  Bruno Haible  <bruno@clisp.org>
41762         asinl: Provide function definition on MSVC.
41763         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
41764         function pointer.
41765         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
41767 2012-02-24  Bruno Haible  <bruno@clisp.org>
41769         tanl: Provide function definition on MSVC.
41770         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
41771         function pointer.
41772         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
41774 2012-02-24  Bruno Haible  <bruno@clisp.org>
41776         cosl: Provide function definition on MSVC.
41777         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
41778         function pointer.
41779         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
41781 2012-02-24  Bruno Haible  <bruno@clisp.org>
41783         sinl: Provide function definition on MSVC.
41784         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
41785         function pointer.
41786         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
41788 2012-02-24  Bruno Haible  <bruno@clisp.org>
41790         logl: Provide function definition on MSVC.
41791         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
41792         function pointer.
41793         * lib/math.in.h (logl): Undefine if it does not exist as a function.
41795 2012-02-24  Bruno Haible  <bruno@clisp.org>
41797         expl: Provide function definition on MSVC.
41798         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
41799         function pointer.
41800         * lib/math.in.h (expl): Undefine if it does not exist as a function.
41802 2012-02-24  Bruno Haible  <bruno@clisp.org>
41804         sqrtl: Provide function definition on MSVC.
41805         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
41806         a function pointer.
41807         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
41809 2012-02-24  Bruno Haible  <bruno@clisp.org>
41811         ceill: Provide function definition on MSVC.
41812         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
41813         used as a function pointer.
41814         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
41816 2012-02-24  Bruno Haible  <bruno@clisp.org>
41818         floorl: Provide function definition on MSVC.
41819         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
41820         used as a function pointer.
41821         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
41823 2012-02-24  Bruno Haible  <bruno@clisp.org>
41825         ceilf: Provide function definition on MSVC.
41826         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
41827         used as a function pointer.
41828         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
41830 2012-02-24  Bruno Haible  <bruno@clisp.org>
41832         floorf: Provide function definition on MSVC.
41833         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
41834         used as a function pointer.
41835         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
41837 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
41839         stdnoreturn: new module
41840         This implements a replacement for C11's <stdnoreturn.h>.
41841         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
41842         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
41843         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
41844         * tests/test-stdnoreturn.c: New files.
41846 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
41848         regex: fix false multibyte matches in some regular expressions
41849         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
41850         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
41851         * lib/regex_internal.c (re_string_skip_chars):
41852         Fix miscomputation of remain_len that may cause incomplete
41853         multi-byte character and false match.
41855 2012-02-24  Jim Meyering  <meyering@redhat.com>
41857         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
41858         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
41859         uses with "==" *before* the call, e.g., 0 == strcmp (...)
41860         Remove now-unnecessary str''cmp obfuscation.
41861         Suggested by Akim Demaille.
41863 2012-02-24  Bruno Haible  <bruno@clisp.org>
41865         streq: Rename macro.
41866         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
41867         * NEWS: Mention the change.
41868         * lib/mbrtowc.c (mbrtowc): Update.
41869         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
41870         * lib/wcwidth.c (wcwidth): Update.
41871         Suggested by Akim Demaille and Jim Meyering.
41873 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
41875         regex: fix typo in definition of MIN
41876         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
41877         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
41879 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
41880             Bruno Haible  <bruno@clisp.org>
41882         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
41883         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
41884         entries into a stack-allocated buffer directly.
41885         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
41887 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
41888             Bruno Haible  <bruno@clisp.org>
41890         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
41892          - There were several instances of this pattern:
41894              for (;;) {
41895                n = acl (f, GETACLCNT, 0, NULL);
41896                [ allocate an array A of size N ]
41897                if (acl (f, GETACL, n, a) == n)
41898                  break;
41899              }
41901            This loop might never terminate if some other process is constantly
41902            manipulating the file's ACL.  The loop should be rewritten to
41903            terminate.
41905          - The acl (... GETACLNT ...) call is merely an optimization; its value
41906            is merely a hint as to how big to make the array.  A better
41907            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
41908            and just guess a reasonably-big size, growing the size and trying
41909            again if it's not large enough.  This guarantees termination, and
41910            saves a system call.
41912         * lib/acl-internal.h: Include <limits.h>.
41913         (MIN, SIZE_MAX): New macros.
41914         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
41915         a stack-allocated buffer, and use malloc if it does not fit. Don't
41916         use GETACLCNT.
41917         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
41919 2012-02-19  Bruno Haible  <bruno@clisp.org>
41921         acl: Fix endless loop on Solaris with vxfs.
41922         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
41923         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
41924         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
41925         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
41926         * tests/test-sameacls.c (main)[Solaris]: Likewise.
41927         Reported by Bill Jones in
41928         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
41930 2012-02-19  Bruno Haible  <bruno@clisp.org>
41932         acl: Fix copy-acl test failure on Solaris 11.0.
41933         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
41934         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
41935         that this function returns 0 in some more cases.
41937 2012-02-19  Bruno Haible  <bruno@clisp.org>
41939         acl: Update doc references.
41940         * doc/acl-resources.txt: Update links to Solaris documentation.
41942 2012-02-19  Bruno Haible  <bruno@clisp.org>
41944         Fix test failure in many locales on Solaris 11.
41945         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
41946         'tr' arguments.
41947         * tests/test-pipe-filter-ii1.c (main): Likewise.
41948         * build-aux/bootstrap (check_versions): Run 'tr' command with range
41949         expressions in the C locale.
41950         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
41951         * m4/host-os.m4 (gl_HOST_OS): Likewise.
41953 2012-02-19  Bruno Haible  <bruno@clisp.org>
41955         gnulib-tool: Improve usage message.
41956         * gnulib-tool (func_usage): Move doc of --help and --version to the
41957         section "Operation modes".
41959 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
41961         README-release: make it easier to execute commands
41962         * top/README-release: break commands out on to separate lines.
41964 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
41966         GNUmakefile: simplify detection of unconfigured trees
41967         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
41968         whether the tree make is being run from is already configured or
41969         not.  Related simplifications.
41971 2012-02-13  Simon Josefsson  <simon@josefsson.org>
41973         * gnulib-tool (func_usage): Document --help and --version.
41975 2012-02-11  Jim Meyering  <meyering@redhat.com>
41977         bootstrap: don't exit 0 upon gnulib-tool failure
41978         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
41979         its exit status, not 0.
41981 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
41983         README-release: various improvements
41984         * top/README-release: Give a command to push changes for the
41985         release.  Add "distcheck" to list of other pre-release checks.
41986         Fix instance of "make stable" which should be "make TYPE".
41988 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
41990         maint: replace FSF snail-mail addresses with URLs
41991         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
41992         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
41993         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
41994         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
41995         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
41996         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
41997         * lib/check-version.c, lib/check-version.h, lib/config.charset:
41998         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
41999         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
42000         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
42001         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
42002         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
42003         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
42004         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
42005         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
42006         * lib/glthread/thread.c, lib/glthread/thread.h:
42007         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
42008         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
42009         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
42010         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
42011         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
42012         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
42013         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
42014         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
42015         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
42016         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
42017         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
42018         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
42019         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
42020         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
42021         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
42022         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
42023         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
42024         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
42025         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
42026         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
42027         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
42028         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
42029         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
42030         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
42031         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
42032         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
42033         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
42034         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
42035         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
42036         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
42037         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
42038         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
42039         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
42040         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
42041         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
42042         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
42043         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
42044         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
42045         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
42046         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
42047         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
42048         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
42049         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
42050         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
42051         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
42052         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
42053         * tests/test-poll.c, tests/test-quotearg-simple.c:
42054         * tests/test-quotearg.c, tests/test-quotearg.h:
42055         * tests/test-round-ieee.c, tests/test-round1.c:
42056         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
42057         * tests/test-roundl-ieee.c, tests/test-roundl.c:
42058         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
42059         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
42060         * tests/test-strerror.c, tests/test-strerror_r.c:
42061         * tests/test-strsignal.c, tests/test-strverscmp.c:
42062         * tests/test-xmemdup0.c:
42063         Replace FSF snail mail addresses with URLs, as per GNU coding
42064         standards.  See glibc bug
42065         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
42067 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
42069         README-release: capitalize a word and split a line
42070         * top/README-release: Fix punctuation and spacing.
42072 2012-02-08  Akim Demaille  <demaille@gostai.com>
42074         fatal-signal: use C prototypes (with explicit void).
42075         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
42076         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
42078 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
42080         regex: spelling fix
42081         * lib/regexec.c: spelling fix
42083         regex: rely on stdint.h for SIZE_MAX
42084         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
42086 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
42088         regex: merge glibc changes
42090         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
42091         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
42092         (init_word_char): Work even if bitset words are not exactly 32 or
42093         64 bits wide.  Don't assume there are no padding bits.
42094         * lib/regex.c [_LIBC]: Do not include <config.h>.
42095         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
42096         and -Wtype-limits.
42097         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
42098         needless disagreement with glibc.  All uses changed.  Define it to
42099         1 only if _GNU_SOURCE, to match glibc.
42100         (_REG_RM_NAME): Remove; no longer needed, since the names in
42101         question are now all protected by __USE_GNU.
42102         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
42103         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
42104         * lib/regex_internal.h (MIN): New macro.
42106         2012-01-03 Ulrich Drepper <drepper@gmail.com>
42107         * lib/regcomp.c (init_word_char): Optimize regex a bit.
42109         2011-12-30 Jakub Jelinek <jakub@redhat.com>
42110         * lib/regex_internal.c (re_string_fetch_byte_case):
42111         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
42112         is miscompiled, and it turns out it is because of an incorrect
42113         attribute on re_string_fetch_byte_case.  Unlike
42114         re_string_peek_byte_case, this one is really not pure, it modifies
42115         memory (increments pstr->cur_idx), and with the pure attribute GCC
42116         assumed it doesn't and it cached the presumed value of
42117         regexp->cur_idx in a variable across the
42118          for (;; ++i)
42119            {
42120              if (i >= BRACKET_NAME_BUF_SIZE)
42121                return REG_EBRACK;
42122              if (token->type == OP_OPEN_CHAR_CLASS)
42123                ch = re_string_fetch_byte_case (regexp);
42124              else
42125                ch = re_string_fetch_byte (regexp);
42126              if (re_string_eoi(regexp))
42127                return REG_EBRACK;
42128              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
42129                break;
42130              elem->opr.name[i] = ch;
42131            }
42133         2011-11-29 Andreas Schwab <schwab@redhat.com>
42134         * lib/regcomp.c (build_equiv_class):
42135         Fix access after end of search string in regex matcher.
42137         2011-11-12 Ulrich Drepper <drepper@redhat.com>
42138         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
42140         2011-10-12 Ulrich Drepper <drepper@redhat.com>
42141         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
42143         2011-10-11 Ulrich Drepper <drepper@redhat.com>
42144         * lib/regcomp.c (parse_branch, parse_sub_exp):
42145         More regex memory leak fixes and tests.
42146         (parse_sub_exp, parse_bracket_exp):
42147         Fix memory leak for some invalid regular expressions.
42149         2011-05-28 Ulrich Drepper <drepper@gmail.com>
42150         * lib/regex_internal.c, lib/regexec.c:
42151         Fix unnecessary overallocation due to incomplete character.  When
42152         incomplete characters are found at the end of a string the code
42153         ran amok and allocated lots of memory.  Stricter limits are now in
42154         place.
42156         2011-05-20 Reuben Thomas <rrt@sc3d.org>
42157         * lib/regex.h: Update documentation.
42159         2011-05-16 Aharon Robbins <arnold@skeeve.com>
42160         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
42162         2010-05-05 Andreas Schwab <schwab@redhat.com>
42163         * lib/regexec.c (find_collation_sequence_value):
42164         Fix lookup of collation sequence value during regexp matching.
42166         2010-01-22 Ulrich Drepper <drepper@redhat.com>
42167         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
42169         2008-01-16 Ulrich Drepper <drepper@redhat.com>
42170         * lib/regex.h: Cleanup namespace.
42172         2007-11-26 Ulrich Drepper <drepper@redhat.com>
42173         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
42175         2007-08-26 Ulrich Drepper <drepper@redhat.com>
42176         * lib/regex_internal.h: Prevent some declarations and definitions
42177         to be seen when used in tests.
42179         2005-05-06 Ulrich Drepper <drepper@redhat.com>
42180         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
42181         __libc_lock_* macros if not _LIBC.
42182         (struct re_dfa_t): Add lock.
42184 2012-02-07  Eric Blake  <eblake@redhat.com>
42186         maint.mk: also prohibit lower-case @var@
42187         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
42188         lower case, like @top_srcdir@.
42190 2012-02-04  Eric Blake  <eblake@redhat.com>
42192         canonicalize: avoid uninitialized memory use
42193         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
42194         random '/' left in dest.
42195         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
42197 2012-02-04  Bruno Haible  <bruno@clisp.org>
42199         isatty: Fix test failure of ptsname_r on native Windows.
42200         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
42201         and don't set errno.
42202         (isatty): Test first whether fd is valid. Set errno when returning 0.
42204 2012-02-04  Bruno Haible  <bruno@clisp.org>
42206         spawn-pipe tests: Fix a NULL program name in a diagnostic.
42207         * tests/test-spawn-pipe-main.c: Include progname.h.
42208         (main): Invoke set_program_name.
42209         * modules/spawn-pipe-tests (Depends-on): Add progname.
42211         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
42212         * tests/test-nonblocking-socket-main.c: Include progname.h.
42213         (main): Invoke set_program_name.
42214         * modules/nonblocking-socket-tests (Depends-on): Add progname.
42216         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
42217         * tests/test-nonblocking-pipe-main.c: Include progname.h.
42218         (main): Invoke set_program_name.
42219         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
42221 2012-02-04  Eric Blake  <eblake@redhat.com>
42223         canonicalize-lgpl: fix // handling
42224         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
42226         canonicalize: fix // handling
42227         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
42228         /// to //, since only // is special.
42230 2012-02-04  Bruno Haible  <bruno@clisp.org>
42232         ioctl: Fix test failure on native Windows.
42233         * lib/ioctl.c: Include msvc-nothrow.h.
42234         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
42236 2012-02-04  Bruno Haible  <bruno@clisp.org>
42238         fsync: Avoid test failure on native Windows.
42239         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
42240         read-only.
42242 2012-02-04  Bruno Haible  <bruno@clisp.org>
42244         sys_select: Avoid syntax error on OpenBSD 5.0.
42245         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
42246         currently being included, just include the system's <sys/select.h>.
42248 2012-02-04  Bruno Haible  <bruno@clisp.org>
42250         sys_select: Avoid syntax error on OpenBSD 5.0.
42251         * lib/sys_select.in.h: Include <signal.h> only after the include_next
42252         <sys/select.h>, not before.
42253         Reported by Jiri B <jirib@devio.us>.
42255 2012-02-04  Bruno Haible  <bruno@clisp.org>
42257         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
42258         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
42259         global variables.
42260         * tests/test-get-rusage-data.c (main): Likewise.
42261         Reported by Jim Meyering.
42263 2012-02-04  Bruno Haible  <bruno@clisp.org>
42265         stdioext: Fix last commit.
42266         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
42268 2012-02-03  Bruno Haible  <bruno@clisp.org>
42270         stdioext: Add tentative support for Plan9.
42271         * lib/stdio-impl.h: Include <errno.h>.
42272         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
42273         * lib/freadable.c (freadable): Likewise.
42274         * lib/fwritable.c (fwritable): Likewise.
42275         * lib/fbufmode.c (fbufmode): Likewise.
42276         * lib/freading.c (freading): Likewise.
42277         * lib/fwriting.c (fwriting): Likewise.
42278         * lib/freadptr.c (freadptr): Likewise.
42279         * lib/freadseek.c (freadptrinc): Likewise.
42280         * lib/freadahead.c (freadahead): Likewise.
42281         * lib/fpurge.c (fpurge): Likewise.
42282         * lib/fseeko.c (rpl_fseeko): Likewise.
42283         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
42284         Reported by Jens Staal <staal1978@gmail.com>.
42286 2012-02-02  Jim Meyering  <meyering@redhat.com>
42288         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
42289         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
42290         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
42291         not even to try to add the attribute.  Instead, add a pragma to suppress
42292         the suggestion/warning.
42294 2012-01-31  Karl Berry  <karl@gnu.org>
42296         setstate doc: typo.
42297         * doc/posix-functions/setstate.texi (setstate): { not (.
42299 2012-01-31  Bruno Haible  <bruno@clisp.org>
42301         popen: Make more robust on Windows.
42302         * lib/popen.c: On native Windows, use the _popen based code even if
42303         HAVE_POPEN is set.
42304         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
42305         environment variable on native Windows.
42307 2012-01-30  Bruno Haible  <bruno@clisp.org>
42309         pclose: Fix typo.
42310         * lib/stdio.in.h (pclose): Fix typo in warning message.
42312 2012-01-30  Bruno Haible  <bruno@clisp.org>
42314         doc about getlogin_r, setstate.
42315         * doc/posix-functions/getlogin_r.texi: List the incompatible
42316         declaration problem under "not fixed by gnulib".
42317         * doc/posix-functions/setstate.texi: Mention incompatible declaration
42318         problem on Solaris 11 and other platforms.
42320 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
42321             Bruno Haible  <bruno@clisp.org>
42323         poll tests: Make test more robust.
42324         * tests/test-poll.c: Include macros.h.
42325         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
42326         return value of various I/O operations.
42327         * modules/poll-tests (Files): Add tests/macros.h.
42329 2012-01-30  Bruno Haible  <bruno@clisp.org>
42331         sys_stat: Fix support for mingw64 and MSVC.
42332         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
42333         header files already do it.
42334         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
42335         stat itself.
42336         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
42338 2012-01-30  Bruno Haible  <bruno@clisp.org>
42340         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
42341         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
42342         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
42344 2012-01-29  Bruno Haible  <bruno@clisp.org>
42346         quotearg: Fix test failure on MacOS X 10.5.
42347         * tests/test-quotearg-simple.c: Include localcharset.h.
42348         (main): If the locale encoding is not ASCII, bypass the tests of
42349         locale_quoting_style and clocale_quoting_style.
42350         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
42352 2012-01-29  Jim Meyering  <meyering@redhat.com>
42354         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
42355         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
42356         detect uses of canonicalize_file_name.
42358 2012-01-28  Bruno Haible  <bruno@clisp.org>
42360         test-framework-sh: Fix test failure with AIX 7.1 diff.
42361         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
42362         in column 1, like 'diff -c' does.
42363         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
42364         whether 'diff -u' is used. Instead, test whether the output contains
42365         some '@' character.
42367 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
42369         strtoimax: eliminate need for stdint.h, inttypes.h checks
42370         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
42371         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
42372         the prerequisites for a recently-introduced strtoimax test.
42373         I guess this might cause strtoimax to be replaced when not
42374         strictly necessary on older hosts, but this shouldn't introduce
42375         any bugs and it should make Emacs 'configure' faster on typical
42376         modern hosts.  Problem discovered when importing the latest gnulib
42377         to an Emacs test version.
42378         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
42380 2012-01-28  Bruno Haible  <bruno@clisp.org>
42382         sys_time: Override 'struct timeval' on some native Windows platforms.
42383         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
42384         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
42385         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
42386         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
42387         needs to be overridden.
42388         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
42389         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
42390         * tests/test-sys_select.c: Check that the tv_sec member has the same
42391         size as a 'time_t'.
42392         * tests/test-sys_time.c: Likewise.
42393         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
42394         is set, set also REPLACE_GETTIMEOFDAY.
42395         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
42396         convert the resulting 'struct timeval' before returning.
42397         * lib/select.c: Include <sys/time.h>.
42398         (select, timeval): Undefine at the right place.
42399         * modules/select (Depends-on): Add sys_time.
42400         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
42401         some Windows platforms.
42402         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
42404 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
42406         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
42407         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
42408         an integer.
42409         * lib/fcntl.c (dupfd): Likewise.
42410         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
42412 2012-01-28  Bruno Haible  <bruno@clisp.org>
42414         fcntl: Avoid compilation error on native Windows.
42415         * modules/fcntl (Depends-on): Add 'close'.
42417 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
42419         select, poll, isatty: Avoid warnings on x86_64 mingw64.
42420         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
42421         pointer to an integer.
42422         * lib/poll.c (IsConsoleHandle): Likewise.
42423         * lib/isatty.c (IsConsoleHandle): Likewise.
42425 2012-01-28  Jim Meyering  <meyering@redhat.com>
42427         doc: clarify README-release
42428         * top/README-release: Clarify: you should make a point to have
42429         the latest stable versions of build tools in your PATH, and the
42430         reference to buildreq is solely for its list of tool names, not
42431         for its minimal-functional version numbers.
42432         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
42434         maint.mk: use more readable (yet functionally equivalent) quoting
42435         It is common to quote a single quote in a single quoted string like
42436         this:  '...'\''...'.  Unless you know the idiom, that looks like
42437         gibberish, so prefer to double-quote the string when possible.
42438         Then you can use a more readable, lone single quote: "...'..."
42439         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
42440         "don't" is more readable than the equivalent 'don'\''t'.
42441         (sc_cast_of_x_alloc_return_value): Likewise.
42442         (sc_cast_of_alloca_return_value): Likewise.
42443         (sc_makefile_path_separator_check): Similar: use ":" in '...',
42444         rather than '\'':'\''.
42446 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
42448         stdalign: relax _Alignof and tighten _Alignas test
42449         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
42450         as it was too strict: alignof must divide offsetof, but it need
42451         not equal offsetof.  Inspired by Joseph S. Myers's comment
42452         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
42453         Conversely, tighten the _Alignas test a bit, as the resulting
42454         alignment must be exactly 8.
42456 2012-01-27  Bruno Haible  <bruno@clisp.org>
42458         stdalign: Document the last change.
42459         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
42461 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
42463         stdalign: check that alignof and offsetof are consistent
42464         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
42465         Problem reported for gnulib by Richard W.M. Jones in
42466         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
42468 2012-01-27  Jim Meyering  <meyering@redhat.com>
42470         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
42471         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
42472         convert a sequence with gaps to the minimal containing range.
42473         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
42474         * tests/test-update-copyright.sh: Test for this.
42475         The FSF confirmed it is ok to do this, assuming there is at
42476         least one significant change per year in the affected range:
42477         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
42479 2012-01-26  Bruno Haible  <bruno@clisp.org>
42481         pipe2: refine doc about thread-safety
42482         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
42483         multithread-safety problem.
42484         * doc/glibc-functions/accept4.texi: Likewise.
42486 2012-01-26  Bruno Haible  <bruno@clisp.org>
42488         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
42489         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
42490         In the test program, include <fcntl.h>, for O_RDONLY.
42492 2012-01-26  Eric Blake  <eblake@redhat.com>
42494         pipe2: document lack of thread-safety in replacement
42495         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
42496         issue in replacement.
42497         * doc/glibc-functions/accept4.texi (accept4): Likewise.
42498         Based on a report by Eric Wong.
42500 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
42501             Bruno Haible  <bruno@clisp.org>
42503         malloca: Avoid warnings on x86_64 mingw64.
42504         * lib/malloca.c: Include <stdint.h>.
42505         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
42506         * modules/malloca (Depends-on): Add stdint.
42507         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
42509 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
42511         obstack: remove __STDC__ conditionals
42512         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
42513         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
42514         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
42515         m4/include_next.m4 as the only gnulib-maintained places that still
42516         refer to __STDC__.
42518 2012-01-24  Bruno Haible  <bruno@clisp.org>
42520         havelib: Modern quoting.
42521         * build-aux/config.rpath: Quote 'like this', not `like this', as per
42522         the recent change to the GNU coding standards.
42524 2012-01-24  Bruno Haible  <bruno@clisp.org>
42526         stdint: Improve support for Android.
42527         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
42528         Reported by Simon Josefsson <simon@josefsson.org>.
42530 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
42532         doc: omit trailing empty lines from INSTALL etc.
42533         * doc/Makefile (INSTALL): Omit trailing empty lines.
42534         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
42535         omit trailing empty lines.  This simplifies the build procedure.
42537 2012-01-23  Jim Meyering  <meyering@redhat.com>
42539         tests: avoid spurious warnings about gl_sockets_startup
42540         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
42541         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
42542         reporting a "statement with no effect".
42543         * tests/test-accept.c (main): Mark as "(void)".
42544         * tests/test-accept4.c (main): Likewise.
42545         * tests/test-bind.c (main): Likewise.
42546         * tests/test-connect.c (main): Likewise.
42547         * tests/test-getpeername.c (main): Likewise.
42548         * tests/test-getsockname.c (main): Likewise.
42549         * tests/test-getsockopt.c (main): Likewise.
42550         * tests/test-listen.c (main): Likewise.
42551         * tests/test-recv.c (main): Likewise.
42552         * tests/test-recvfrom.c (main): Likewise.
42553         * tests/test-send.c (main): Likewise.
42554         * tests/test-sendto.c (main): Likewise.
42555         * tests/test-setsockopt.c (main): Likewise.
42556         * tests/test-shutdown.c (main): Likewise.
42558 2012-01-21  Bruno Haible  <bruno@clisp.org>
42560         locale-fr.m4: Fix for Android.
42561         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
42562         failure of the test program on Bionic libc.
42564 2012-01-21  Jim Meyering  <meyering@redhat.com>
42566         bootstrap: fail when bootstrap_post_import_hook fails
42567         Otherwise, it's far too easy to miss diagnostics emitted
42568         between gnulib-tool's output and that of running configure.
42569         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
42571 2012-01-17  Jim Meyering  <meyering@redhat.com>
42573         maint: enable sc_trailing_blank
42574         * build-aux/pmccabe.css: Remove trailing blanks.
42575         * doc/acl-cygwin.txt: Likewise.
42576         * doc/gnu-oids.texi: Likewise
42577         * cfg.mk: Enable sc_trailing_blank.
42578         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
42580 2012-01-17  Jim Meyering  <meyering@redhat.com>
42582         maint: enable sc_prohibit_openat_without_use
42583         * cfg.mk: Enable sc_prohibit_openat_without_use.
42584         Exempt lib/selinux-at.c.
42586 2012-01-17  Jim Meyering  <meyering@redhat.com>
42588         maint: enable sc_prohibit_cloexec_without_use
42589         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
42590         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
42592 2012-01-17  Jim Meyering  <meyering@redhat.com>
42594         maint: enable sc_prohibit_intprops_without_use
42595         * cfg.mk: Enable sc_prohibit_intprops_without_use
42596         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
42598 2012-01-17  Jim Meyering  <meyering@redhat.com>
42600         maint: enable sc_prohibit_hash_pjw_without_use
42601         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
42602         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
42603         to match any use of \<hash_pjw\>, i.e., not necessarily with a
42604         following " (".
42606 2012-01-17  Jim Meyering  <meyering@redhat.com>
42608         maint: enable double-word-prohibiting rule
42609         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
42610         Exempt three files.
42612 2012-01-17  Jim Meyering  <meyering@redhat.com>
42614         maint: remove empty lines at EOF, but excluding modules/*
42615         Apply syntax rules at home as well as abroad.  Most changes
42616         were induced by running this:
42617           make srcdir=. _build-aux=build-aux -f top/maint.mk \
42618             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
42619             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
42620         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
42621         Exempt modules/* and two binary files.
42622         Also exempt doc/INSTALL*, per request from Bruno Haible.
42623         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
42624         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
42625         * doc/Copyright/request-assign.future: Likewise.
42626         * doc/Copyright/request-disclaim.changes: Likewise.
42627         * doc/INSTALL: Likewise.
42628         * doc/INSTALL.ISO: Likewise.
42629         * doc/INSTALL.UTF-8: Likewise.
42630         * doc/acl-cygwin.txt: Likewise.
42631         * doc/acl-resources.txt: Likewise.
42632         * doc/fdl-1.2.texi: Likewise.
42633         * doc/fdl-1.3.texi: Likewise.
42634         * doc/fdl.texi: Likewise.
42635         * lib/argp-pin.c: Likewise.
42636         * lib/round.c: Likewise.
42637         * lib/unicase/u16-totitle.c: Likewise.
42638         * lib/unictype/block_test.c: Likewise.
42639         * lib/uninorm/canonical-decomposition.c: Likewise.
42640         * m4/README: Likewise.
42641         * m4/relocatable-lib.m4: Likewise.
42642         * tests/test-isnand-nolibm.c: Likewise.
42643         * tests/test-isnand.c: Likewise.
42644         * tests/uninorm/NormalizationTest.txt: Likewise.
42646 2012-01-17  Jim Meyering  <meyering@redhat.com>
42648         maint: add framework to run syntax-check rules against gnulib sources
42649         * cfg.mk: New file, to disable all currently-failing tests.
42650         We'll enable them one by one, as they are made to pass.
42651         * Makefile (sc_maint): New rule.
42653 2012-01-21  Bruno Haible  <bruno@clisp.org>
42655         stdint: Add support for Android.
42656         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
42657         include the system's <stdint.h>.
42658         Reported by Simon Josefsson <simon@josefsson.org>.
42660 2012-01-19  Jim Meyering  <meyering@redhat.com>
42662         bootstrap: add bootstrap_post_import_hook
42663         Bison does still need something like the gnulib_mk_hook whose
42664         invocation I had to remove along with slurp in commit 767ccd40.
42665         Technically, we could get along without it, but doing so would
42666         have required living with a warning and a mandatory post-bootstrap
42667         automake rerun.
42668         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
42669         (bootstrap_post_import_hook): New function.
42670         Invoke it after gnulib-tool --import and before autoreconf.
42672 2012-01-18  Jim Meyering  <meyering@redhat.com>
42674         gitlog-to-changelog: don't use "no_"-prefixed variable name
42675         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
42676         to enable both --cluster and --no-cluster.  Change variable name,
42677         s/\$no_cluster/$cluster/, and reverse usage to match.
42679         gitlog-to-changelog: use "||", not "or" in expressions
42680         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
42681         expressions.
42683 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
42685         gitlog-to-changelog: new option --no-cluster
42686         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
42687         clustering of adjacent commit messages.
42689 2012-01-17  Jim Meyering  <meyering@redhat.com>
42691         maint: spell file systems with two words, not one
42692         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
42693         two words, not one.
42695 2012-01-16  Jim Meyering  <meyering@redhat.com>
42697         bootstrap: add a FIXME comment to ensure we eventually remove the hack
42698         * build-aux/bootstrap (gnulib_tool_options): Add comment.
42700 2012-01-16  Eric Blake  <eblake@redhat.com>
42702         bootstrap: cater to autoconf 2.59
42703         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
42704         is not available.
42706         bootstrap: properly check for libtool
42707         * build-aux/bootstrap (libtoolize): Also run libtool when older
42708         usage is detected.
42710 2012-01-15  Bruno Haible  <bruno@clisp.org>
42712         Improve support for MSVC 9.
42713         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
42714         clashes on MSVC.
42715         * lib/fcntl.in.h: Likewise.
42716         * lib/stdlib.in.h: Likewise.
42717         * lib/sys_stat.in.h: Likewise.
42719 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
42721         gnupload: we hold the master copy of this script now
42722         For motivation and more information, see:
42723         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
42724         * build-aux/gnupload: Make it clear in the heading comments that the
42725         master copy of this file is maintained by gnulib.  Since we are at
42726         it, bump its copyright year and ...
42727         ($scriptversion): ... the date in its version.
42728         ($usage): Patches and bug reports should be sent to the gnulib list,
42729         not the automake one.
42730         * config/srclist.txt: Don't try to sync 'gnupload' from automake
42731         anymore.
42733 2012-01-15  Bruno Haible  <bruno@clisp.org>
42735         Fix module 'random'.
42736         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
42737         initstate, setstate are declared.
42739 2012-01-14  Bruno Haible  <bruno@clisp.org>
42741         Tests for module 'random'.
42742         * modules/random-tests: New file.
42743         * tests/test-random.c: New file, based on tests/test-random_r.c.
42745         New module 'random'.
42746         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
42747         declarations.
42748         * lib/random.c: New file, based on glibc/stdlib/random.c.
42749         * m4/random.m4: New file.
42750         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
42751         HAVE_RANDOM.
42752         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
42753         * modules/random: New file.
42754         * config/srclist.txt: Add an entry for random.c.
42755         * doc/posix-functions/random.texi: Mention the 'random' module.
42756         * doc/posix-functions/initstate.texi: Likewise.
42757         * doc/posix-functions/setstate.texi: Likewise.
42758         * doc/posix-functions/srandom.texi: Likewise.
42760 2012-01-12  Bruno Haible  <bruno@clisp.org>
42762         random_r: Use common idioms.
42763         * lib/random_r.c: Include <stdlib.h> first.
42765         random_r: Override incompatible API on AIX, OSF/1.
42766         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
42767         Override the system function if REPLACE_RANDOM_R is 1.
42768         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
42769         and OSF/1, set REPLACE_RANDOM_R.
42770         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
42771         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
42772         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
42773         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
42774         * doc/glibc-functions/random_r.texi: Likewise.
42775         * doc/glibc-functions/setstate_r.texi: Likewise.
42777         random_r: Support for MSVC 9.
42778         * lib/random_r.c: Include stdint.h, not inttypes.h.
42780 2012-01-12  Eric Blake  <eblake@redhat.com>
42782         inet_ntop: guard extra work by IF_LINT
42783         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
42784         better code generation when not checking for warnings.
42785         Suggested by Paul Eggert and Jim Meyering.
42787         strptime: fix regression on mingw
42788         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
42789         Fix regression.  Reported by Bruno Haible.
42791 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
42792             Bruno Haible  <bruno@clisp.org>
42794         copy-file: add error-code-returning variant.
42795         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
42796         (qcopy_file_preserving): New declaration.
42797         * lib/copy-file.c (qcopy_file_preserving): Renamed from
42798         copy_file_preserving. Change return type to 'int'. Don't emit an error
42799         message here.
42800         (copy_file_preserving): New function.
42801         * tests/test-copy-file.c: Include <stdlib.h>.
42802         (main): Test qcopy_file_preserving if the environment variable
42803         NO_STDERR_OUTPUT is set.
42804         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
42805         with NO_STDERR_OUTPUT
42806         * tests/test-copy-file-2.sh: Likewise.
42808 2012-01-10  Bruno Haible  <bruno@clisp.org>
42810         copy-file: Use 'quote' module consistently.
42811         * lib/copy-file.c (copy_file_preserving): Use quote().
42813         copy-file: Refactor.
42814         * lib/copy-file.c: Include quote.h.
42815         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
42816         message here.
42817         * modules/copy-file (Depends-on): Add quote.
42819         acl: Export qcopy_acl.
42820         * lib/acl.h (qcopy_acl): New declaration.
42821         * lib/copy-acl.c (qcopy_acl): Make non-static.
42823         acl: Rename a local variable.
42824         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
42826         acl: Align return values of copy_acl and qcopy_acl.
42827         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
42828         maybe < -1.
42830 2012-01-11  Eric Blake  <eblake@redhat.com>
42832         strptime: silence gcc warnings
42833         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
42834         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
42835         Reported by Daniel P. Berrange.
42837         inet_ntop: silence gcc warning
42838         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
42839         Reported by Daniel P. Berrange.
42841 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
42843         getloadavg test: skip the test on GNU/Linux without /proc mounted
42844         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
42845         file.  When /proc is not mounted, it always fails with ENOENT.
42846         * tests/test-getloadavg.c (main): Treat ENOENT return code from
42847         getloadavg(3) the same way as ENOSYS and ENOTSUP.
42849 2012-01-10  Bruno Haible  <bruno@clisp.org>
42851         regex: Avoid link error on MSVC 9.
42852         * modules/regex (Depends-on): Add wctype.
42854 2012-01-10  Bruno Haible  <bruno@clisp.org>
42856         doc: Mention --with-tests option.
42857         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
42858         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
42859         --with-tests.
42860         Reported by Reuben Thomas.
42862 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
42864         users.txt: order package names lexicographically.
42865         * users.txt: Order package names lexicographically.
42867 2012-01-10  Jim Meyering  <meyering@redhat.com>
42869         maint.mk: fix description in comment
42870         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
42872         ignore-value: remove deprecated ignore_ptr function
42873         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
42874         * NEWS: Note this.
42876 2012-01-09  Jim Meyering  <meyering@redhat.com>
42878         test-init.sh: avoid a subshell
42879         * tests/test-init.sh: Remove protective subshell.
42880         Suggested by Bernhard Voelker.  While a subshell is normally
42881         required to protect against older shells (Solaris, FreeBSD) that
42882         warn about a missing program before performing redirection, the
42883         shell-selection tests performed by init.sh probably exclude any
42884         offending shell.
42886 2012-01-08  Bruno Haible  <bruno@clisp.org>
42888         setlocale tests: Avoid test failure on Solaris 11.0.
42889         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
42890         variable.
42892 2012-01-08  Bruno Haible  <bruno@clisp.org>
42894         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
42895         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
42896         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
42897         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
42898         macro.
42899         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
42900         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
42901         * lib/spawn_faction_addopen.c: Add workaround implementation if
42902         HAVE_WORKING_POSIX_SPAWN.
42903         * modules/spawn (Makefile): Substitute
42904         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
42905         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
42906         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
42907         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
42908         (Depends-on): Update conditions.
42909         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
42910         the Solaris 11 bug.
42912 2012-01-08  Bruno Haible  <bruno@clisp.org>
42914         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
42915         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
42916         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
42917         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
42918         macro.
42919         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
42920         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
42921         * lib/spawn_faction_adddup2.c: Add workaround implementation if
42922         HAVE_WORKING_POSIX_SPAWN.
42923         * modules/spawn (Makefile): Substitute
42924         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
42925         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
42926         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
42927         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
42928         (Depends-on): Update conditions.
42929         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
42930         the Solaris 11 bug.
42932 2012-01-08  Bruno Haible  <bruno@clisp.org>
42934         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
42935         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
42936         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
42937         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
42938         HAVE_WORKING_POSIX_SPAWN.
42939         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
42940         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
42941         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
42942         * lib/spawn_faction_addclose.c: Add workaround implementation if
42943         HAVE_WORKING_POSIX_SPAWN.
42944         * modules/spawn (Makefile): Substitute
42945         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
42946         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
42947         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
42948         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
42949         (Depends-on): Update conditions.
42950         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
42951         the Solaris 11 bug.
42953 2012-01-08  Bruno Haible  <bruno@clisp.org>
42955         doc: Update for Solaris 11.0.
42956         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
42957         * m4/printf.m4: Update comments.
42959 2012-01-08  Bruno Haible  <bruno@clisp.org>
42961         mktime: Avoid compilation error on Solaris 11.
42962         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
42964 2012-01-08  Bruno Haible  <bruno@clisp.org>
42966         doc: Small fix.
42967         * doc/posix-headers/nl_types.texi: Correct platforms list.
42969 2012-01-08  Simon Josefsson  <simon@josefsson.org>
42971         Add lgpl-3.0 module.
42972         * MODULES.html.sh (Support for building documentation): Add
42973         lgpl-3.0.
42974         * modules/lgpl-3.0: New file.
42976 2012-01-08  Jim Meyering  <meyering@redhat.com>
42978         select.c: indent with spaces, not TABs
42979         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
42981 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
42983         quotearg: do not use grave accent for left quote
42984         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
42985         locale_quoting_style.
42986         (quotearg_buffer_restyled): Fix example.
42987         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
42989 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
42991         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
42992         Most programs do not have translation catalogs for English and much
42993         less separate catalogs for British and American English.  Drop the
42994         suggestion to translators about these two, and provide it
42995         automatically for Unicode locales.  Like most programs, even those
42996         using American English, we use single quotation marks.  This conflicts
42997         with the American typographic convention, but works better when you
42998         cite the entire error message within double quotes.  It also tries not
42999         to clash with established practice and with what non-gnulib programs
43000         will usually do.
43001         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
43002         using an UTF-8 or GB-18030 locale.  The list of other locales with
43003         quotes was provided by Bruno Haible.
43004         (quotearg_buffer_restyled): Adjust instructions to translators.
43005         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
43006         text, since this would be wrong when using Unicode.
43007         * modules/quotearg: Depend on c-strcaseeq.
43009 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
43011         quotearg: fix Wikipedia link
43012         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
43014 2012-01-07  Simon Josefsson  <simon@josefsson.org>
43016         Fix for mingw with MSVC9.
43017         * m4/ld-version-script.m4: Check that compiler rejects version
43018         scripts with syntax errors.  Reported by Bruno Haible
43019         <bruno@clisp.org>.
43021 2012-01-06  Bruno Haible  <bruno@clisp.org>
43023         Talk about "native Windows API", not "Woe32".
43024         * lib/accept4.c: Update comments to mention native Windows.
43025         * lib/execute.c: Likewise.
43026         * lib/fatal-signal.c: Likewise.
43027         * lib/localcharset.c: Likewise.
43028         * lib/nanosleep.c: Likewise.
43029         * lib/nl_langinfo.c: Likewise.
43030         * lib/pclose.c: Likewise.
43031         * lib/pipe-filter-gi.c: Likewise.
43032         * lib/pipe-filter-ii.c: Likewise.
43033         * lib/pipe.c: Likewise.
43034         * lib/pipe2.c: Likewise.
43035         * lib/popen.c: Likewise.
43036         * lib/progreloc.c: Likewise.
43037         * lib/relocatable.c: Likewise.
43038         * lib/sigaction.c: Likewise.
43039         * lib/sigprocmask.c: Likewise.
43040         * lib/spawn-pipe.h: Likewise.
43041         * lib/spawn-pipe.c: Likewise.
43042         * lib/spawni.c: Likewise.
43043         * lib/stat-time.h: Likewise.
43044         * lib/w32spawn.h: Likewise.
43045         * tests/test-isatty.c: Likewise.
43046         * lib/config.charset: More comments.
43047         * doc/gnulib-intro.texi: Mention native Windows.
43048         * doc/posix-functions/_Exit_C99.texi: Likewise.
43049         * doc/posix-headers/fcntl.texi: Likewise.
43051 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
43053         argp: Avoid crash if translator uses % characters in a translation.
43054         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
43055         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
43057 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
43059         doc: C11 and C++11 are now official
43060         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
43061         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
43062         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
43063         * modules/stdalign:
43064         Replace references to draft C1X to C11, and to draft C++0X to C++11.
43066 2012-01-06  Bruno Haible  <bruno@clisp.org>
43068         uc-is-grapheme-break tests: Tweak.
43069         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
43070         message.
43072 2012-01-06  Bruno Haible  <bruno@clisp.org>
43074         test-init.sh: correct the test for diff -u
43075         * tests/test-init.sh: Also redirect stdout to /dev/null.
43077 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
43079         Use ', not `, for quoting output.
43080         * build-aux/announce-gen (usage, sizes, print_news_deltas)
43081         (print_changelog_deltas, get_tool_versions, main program):
43082         * build-aux/git-version-gen:
43083         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
43084         * build-aux/move-if-change (help):
43085         * build-aux/useless-if-before-free (usage, main program):
43086         * check-module (parse_module_file, usage)
43087         (find_included_lib_files, check_module):
43088         * lib/argmatch.c (main) [TEST]:
43089         * lib/argp-help.c (_help):
43090         * lib/getopt1.c (main) [TEST]:
43091         * lib/git-merge-changelog.c (usage):
43092         * lib/xstrtol-error.c (xstrtol_error):
43093         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
43094         * m4/argz.m4 (gl_FUNC_ARGZ):
43095         * m4/bison.m4 (gl_BISON):
43096         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
43097         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
43098         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
43099         * m4/fpending.m4 (gl_PREREQ_FPENDING):
43100         * m4/gc-random.m4 (gl_GC_RANDOM):
43101         * m4/intl.m4 (gt_CHECK_DECL):
43102         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
43103         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
43104         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
43105         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
43106         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
43107         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
43108         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
43109         * tests/test-dirname.c (main):
43110         * tests/test-getpass.c (main):
43111         * tests/test-iconvme.c (main):
43112         * tests/test-parse-datetime.c (LOG):
43113         * tests/test-xstrtoimax.sh:
43114         * tests/test-xstrtol.sh:
43115         * tests/test-xstrtoll.sh:
43116         * tests/test-xstrtoumax.sh:
43117         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
43118         * top/GNUmakefile (abort-due-to-no-makefile):
43119         Quote 'like this', not `like this', as per the recent change to
43120         the GNU coding standards.
43122 2012-01-05  Bruno Haible  <bruno@clisp.org>
43124         strtoimax: Don't force a replacement on systems where intmax_t is int.
43125         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
43126         'intmax_t' is not larger than 'int'.
43127         Reported by Pádraig Brady <P@draigBrady.com>.
43129 2012-01-05  Bruno Haible  <bruno@clisp.org>
43131         doc: Mention NetBSD bugs.
43132         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
43133         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
43135 2012-01-05  Bruno Haible  <bruno@clisp.org>
43137         strtoumax tests: Enhance tests.
43138         * tests/test-strtoumax.c (main): Add tests for large values.
43140 2012-01-05  Bruno Haible  <bruno@clisp.org>
43142         strtoimax: Work around AIX 5.1 bug.
43143         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
43144         definition.
43145         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
43146         Set HAVE_STRTOIMAX.
43147         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
43148         REPLACE_STRTOIMAX.
43149         * modules/inttypes-incomplete (Makefile.am): Substitute
43150         REPLACE_STRTOIMAX.
43151         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
43152         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
43153         (Depends-on): Update conditions.
43154         * tests/test-strtoimax.c (main): Add tests for large values.
43155         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
43157 2012-01-05  Bruno Haible  <bruno@clisp.org>
43159         inttypes: Modernize.
43160         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
43161         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
43162         (Makefile.am): Update inttypes.h rule.
43164 2012-01-05  Jim Meyering  <meyering@redhat.com>
43166         init.sh: don't waste a subshell just to redirect stderr
43167         * tests/init.sh: In testing for diff -u and diff -c, use a
43168         stderr-redirecting exec inside `...` rather than a subshell.
43170         test-init.sh: avoid failure on HP-UX 11.00
43171         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
43172         resolves to diff -c or cmp.  Reported by Bruno Haible.
43174 2012-01-05  Bruno Haible  <bruno@clisp.org>
43176         Tests for module 'strtoull'.
43177         * modules/strtoull-tests: New file.
43178         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
43180 2012-01-05  Bruno Haible  <bruno@clisp.org>
43182         Tests for module 'strtoll'.
43183         * modules/strtoll-tests: New file.
43184         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
43186 2012-01-05  Bruno Haible  <bruno@clisp.org>
43188         Tests for module 'strtoul'.
43189         * modules/strtoul-tests: New file.
43190         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
43192 2012-01-05  Bruno Haible  <bruno@clisp.org>
43194         Tests for module 'strtol'.
43195         * modules/strtol-tests: New file.
43196         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
43198 2012-01-04  Jim Meyering  <meyering@redhat.com>
43200         test-init.sh: accommodate Solaris 5.10's different diff -u output
43201         * tests/test-init.sh: Also exempt @@ lines from the comparison
43202         of diff output, since Solaris 5.10 and GNU diff formats differ.
43203         Reported by Stefano Lattarini.
43205 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
43207         test-posixtm: don't assume signed integer wraparound
43208         * tests/test-posixtm.c (main): Don't assume wraparound semantics
43209         after signed integer overflow.  Inspired by (though it may not
43210         fix) Bruno Haible's bug report in
43211         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
43213         Spell out "Windows 9x" and "Windows XP".
43214         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
43215         "Windows 9x" and "WinXP" with "Windows XP".
43217 2012-01-04  Jim Meyering  <meyering@redhat.com>
43219         test-vc-list-files-cvs.sh: remove obsolete comment
43220         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
43221         double exit.  Now that's all encapsulated via skip_ and Exit.
43223 2012-01-04  Bruno Haible  <bruno@clisp.org>
43225         Talk about "native Windows API", not "Win32".
43226         * lib/classpath.c: Update comments to mention native Windows.
43227         * lib/csharpexec.c: Likewise.
43228         * lib/dup2.c: Likewise.
43229         * lib/error.c: Likewise.
43230         * lib/fcntl.c: Likewise.
43231         * lib/filename.h: Likewise.
43232         * lib/findprog.c: Likewise.
43233         * lib/get-rusage-as.c: Likewise.
43234         * lib/get-rusage-data.c: Likewise.
43235         * lib/getpagesize.c: Likewise.
43236         * lib/javaexec.c: Likewise.
43237         * lib/msvc-inval.c: Likewise.
43238         * lib/msvc-nothrow.c: Likewise.
43239         * lib/nanosleep.c: Likewise.
43240         * lib/nonblocking.c: Likewise.
43241         * lib/printf-parse.c: Likewise.
43242         * lib/setlocale.c: Likewise.
43243         * lib/sigaction.c: Likewise.
43244         * lib/strerror_r.c: Likewise.
43245         * lib/tmpdir.c: Likewise.
43246         * lib/vasnprintf.c: Likewise.
43247         * lib/w32spawn.h: Likewise.
43248         * lib/waitpid.c: Likewise.
43249         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
43250         * m4/locale-ar.m4: Likewise.
43251         * m4/locale-fr.m4: Likewise.
43252         * m4/locale-ja.m4: Likewise.
43253         * m4/locale-tr.m4: Likewise.
43254         * m4/locale-zh.m4: Likewise.
43255         * m4/printf.m4: Likewise.
43256         * tests/test-cloexec.c: Likewise.
43257         * tests/test-copy-acl.sh: Likewise.
43258         * tests/test-copy-file.sh: Likewise.
43259         * tests/test-file-has-acl.sh: Likewise.
43260         * tests/test-set-mode-acl.sh: Likewise.
43261         * tests/test-dup-safer.c: Likewise.
43262         * tests/test-dup2.c: Likewise.
43263         * tests/test-dup3.c: Likewise.
43264         * tests/test-fcntl.c: Likewise.
43265         * tests/test-nonblocking-pipe.h: Likewise.
43266         * tests/test-nonblocking-socket.h: Likewise.
43267         * tests/test-pipe.c: Likewise.
43268         * tests/test-pipe2.c: Likewise.
43269         * tests/test-spawn-pipe-child.c: Likewise.
43270         * doc/acl-resources.txt: Likewise.
43271         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
43272         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
43273         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
43274         * lib/localcharset.c: Update comments to mention native Windows.
43275         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
43276         * lib/localename.c: Likewise.
43277         * lib/progreloc.c: Likewise.
43278         * lib/relocatable.c: Likewise.
43279         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
43280         (windows_compute_revents): Renamed from win32_compute_revents.
43281         (windows_compute_revents_socket): Renamed from
43282         win32_compute_revents_socket.
43283         * lib/select.c: Update comments to mention native Windows.
43284         (windows_poll_handle): Renamed from win32_poll_handle.
43285         * m4/threadlib.m4: Update comments to mention native Windows.
43286         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
43287         --enable-threads=windows instead of --enable-threads=win32. Set
43288         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
43289         * lib/glthread/lock.h: Update comments to mention native Windows.
43290         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
43291         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
43292         USE_WIN32_THREADS.
43293         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
43294         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
43295         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
43296         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
43297         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
43298         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
43299         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
43300         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
43301         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
43302         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
43303         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
43304         * tests/test-tls.c: Likewise.
43305         Rationale:
43306         Microsoft renamed the "Win32 API" to "Windows API", as it is available
43307         on both 32-bit and 64-bit Windows systems.
43308         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
43309         line of distinction is between "native Windows" on one side and Unix/
43310         POSIX systems on the other side. More details in
43311         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
43312         Suggested by Paul Eggert.
43314 2012-01-03  Bruno Haible  <bruno@clisp.org>
43316         isatty: Support for MSVC 9.
43317         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
43318         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
43319         (_isatty_nothrow): New function.
43320         (isatty): Use it instead of _isatty.
43321         (IsConsoleHandle): Add comment, from Paolo Bonzini.
43322         * lib/poll.c (IsConsoleHandle): Likewise.
43323         * lib/select.c (IsConsoleHandle): Likewise.
43324         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
43325         (gl_PREREQ_ISATTY): New macro.
43326         * modules/isatty (Depends-on): Add msvc-inval.
43327         (configure.ac): Invoke gl_PREREQ_ISATTY.
43329 2012-01-03  Jim Meyering  <meyering@redhat.com>
43331         maint.mk: remove temporary transition aid from over 1.5 years ago
43332         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
43333         purpose was to aid in the transition (avoiding silent malfunction)
43334         from that old name to the new _sc_search_regexp.  This shim was
43335         added by commit 219c504b.
43337         init.sh: do not try to accommodate compare arguments starting with "-"
43338         * tests/init.sh (compare_dev_null_): Do not try to accommodate
43339         compare arguments that start with "-".  Besides, we do not worry
43340         about this when invoking diff or cmp; why start now with sed?
43341         Using "--" to separate options from argument would trigger sed
43342         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
43343         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
43345 2012-01-02  Bruno Haible  <bruno@clisp.org>
43347         Enhance tests for module 'isatty'.
43348         * modules/isatty-tests (Depends-on): Add pipe-posix.
43349         * tests/test-isatty.c: Include <fcntl.h>.
43350         (DEV_NULL): New macro.
43351         (main): Test the resut of isatty() also on regular files, pipes, and
43352         /dev/null.
43354         New module 'isatty'.
43355         * lib/unistd.in.h (isatty): New declaration.
43356         * lib/isatty.c: New file, based on an idea of
43357         Bastien Roucariès <roucaries.bastien@gmail.com>.
43358         * m4/isatty.m4: New file.
43359         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
43360         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
43361         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
43362         REPLACE_ISATTY.
43363         * modules/isatty: New file.
43364         * doc/posix-functions/isatty.texi: Mention the new module.
43365         Suggested by Paolo Bonzini.
43367 2012-01-02  Bruno Haible  <bruno@clisp.org>
43369         canonicalize: Tweak 2011-12-29 commit.
43370         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
43371         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
43373 2012-01-02  Jim Meyering  <meyering@redhat.com>
43375         gitlog-to-changelog: describe input syntax in --help output
43376         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
43378         gitlog-to-changelog: fix typo in --help: show backslash before email @
43379         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
43380         in sources, but not in actual output.
43382 2011-12-30  Jim Meyering  <meyering@redhat.com>
43384         gitlog-to-changelog: don't malfunction when name contains %-directive
43385         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
43386         in a name string cause trouble.  E.g., with a user name of "%s",
43387         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
43389 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
43391         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
43392         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
43393         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
43394         the "  (tiny change)" notation that is appended to the standard
43395         ChangeLog "date  name  email" header line.
43397 2012-01-01  Jim Meyering  <meyering@redhat.com>
43399         test-framework-sh: init.sh: fix "make dist" failure
43400         When using gnulib-tool's --with-tests option and any module that
43401         depends on test-framework-sh, "make dist" would fail due to the
43402         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
43403         in the gltests directory, and not in the gllib/ directory.
43404         One way to work around that is to move the EXTRA_DIST += init.sh
43405         from the primary module to the -tests one:
43406         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
43407         * modules/test-framework-sh (Makefile.am): ...not here.
43408         Reported by Tom G. Christensen in
43409         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
43411         version-etc: update copyright year reported by --version
43412         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
43414 2011-12-31  Pádraig Brady  <P@draigBrady.com>
43416         canonicalize: only stat() if required
43417         * lib/canonicalize.c (canonicalize_filename_mode):
43418         Avoid calling l?stat() when both CAN_MISSING,
43419         and CAN_NOLINKS are set, as we neither need
43420         to resolve symlinks or test component existence.
43422 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
43424         doc: cover st_ino issues once; add OpenVMS etc.
43425         * doc/posix-functions/stat.texi (stat):
43426         * doc/posix-functions/lstat.texi (lstat):
43427         * doc/posix-functions/fstatat.texi (fstatat):
43428         * doc/posix-functions/fstat.texi (fstat):
43429         Move general 'struct stat' stuff to sys_stat.texi,
43430         leaving behind a pointer.
43431         * doc/posix-headers/sys_stat.texi (sys/stat.h):
43432         Merge duplicate info about 'struct stat' problems into here.
43433         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
43434         and suggest partial workarounds.
43436         same-inode: port to OpenVMS
43437         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
43438         three st_ino values.
43440 2011-12-30  Pádraig Brady  <P@draigBrady.com>
43442         canonicalize: fix references to stat() and lstat()
43443         * lib/canonicalize.c (canonicalize_filename_mode):
43444         Ensure references always resolve to a replacement
43445         function if required (even via a macro).
43447 2011-12-30  Jim Meyering  <meyering@redhat.com>
43449         gitlog-to-changelog: remove a little duplication
43450         * build-aux/gitlog-to-changelog (main): Grep @lines once,
43451         rather than twice.
43453 2011-12-29  Pádraig Brady  <P@draigBrady.com>
43455         canonicalize: add support for not resolving symlinks
43456         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
43457         indicate we don't want to follow symlinks.  Also
43458         provide CAN_MODE_MASK to aid setting these existing
43459         mutually exclusive values.
43460         * lib/canonicalize.c (canonicalize_filename_mode):
43461         Extract the flags from can_mode parameter, which
43462         are currently just used to select between stat()
43463         and lstat().  Also ensure that mutually exclusive
43464         values are flagged immediately as invalid.
43465         * tests/test-canonicalize.c: Verify symlinks are
43466         not followed, and that invalid flag combinations
43467         are diagnosed.
43469 2011-12-25  Jim Meyering  <meyering@redhat.com>
43471         gitlog-to-changelog: do not clump multi-paragraph entries
43472         Identical header lines (date,name,email+coauthors) are suppressed,
43473         thus putting all entries with those same characteristics under
43474         a single header.  However, when a log entry consists of two or
43475         more paragraphs, it may not be clear where it starts and ends.
43476         This change makes it so that such an entry is always separated
43477         from others by a header line, even when that header would
43478         otherwise be suppressed.
43479         * build-aux/gitlog-to-changelog: Implement the above.
43480         Inspired by a related request from Stefano Lattarini in
43481         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
43483 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43485         announce-gen: fix `cmd' typo in diagnostic
43486         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
43487         diagnostic: a missing '$' meant that the command was not output.
43489 2011-12-23  Jim Meyering  <meyering@redhat.com>
43491         test-framework-sh: distribute init.sh
43492         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
43493         Otherwise, "make -C gnulib-tests check" (at least in grep) would
43494         fail due to the lack of init.sh.
43496         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
43497         * modules/atexit-tests: Rather than listing tests/init.sh,
43498         now that there's a module for it, simply depend on that new module.
43499         * modules/closein-tests: Likewise.
43500         * modules/exclude-tests: Likewise.
43501         * modules/getcwd-tests: Likewise.
43502         * modules/perror-tests: Likewise.
43503         * modules/pread-tests: Likewise.
43504         * modules/pwrite-tests: Likewise.
43505         * modules/vc-list-files-tests: Likewise.
43506         * modules/verify-tests: Likewise.
43507         * modules/xalloc-die-tests: Likewise.
43508         * modules/xstrtoimax-tests: Likewise.
43509         * modules/xstrtol-tests: Likewise.
43510         * modules/xstrtoll-tests: Likewise.
43511         * modules/xstrtoumax-tests: Likewise.
43512         * modules/yesno-tests: Likewise.
43514 2011-12-22  Jim Meyering  <meyering@redhat.com>
43516         test-framework-sh: add minimal tests of init.sh's compare function
43517         * modules/test-framework-sh-tests: New file.
43518         * tests/test-init.sh: New file.
43520         test-framework-sh: new module
43521         * modules/test-framework-sh: New file.
43522         * MODULES.html.sh (Support for maintaining and releasing projects):
43523         List it.
43525         init.sh: do not emit simulated diff output to stderr
43526         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
43528 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
43530         .gitignore: ignore gnulib.dvi and regex.info
43531         * doc/.gitignore:add gnulib.dvi and regex.info
43533 2011-12-22  Jim Meyering  <meyering@redhat.com>
43535         init.sh: correct previous change
43536         * tests/init.sh (compare): My previous change was wrong.
43537         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
43539         init.sh: avoid unwarranted test failure when using "set -e"
43540         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
43541         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
43542         a use like "compare exp out" would get evoke an unconditional failure.
43544 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
43546         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
43547         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
43548         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
43549         autoreconf that did not.
43550         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
43551         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
43553 2011-12-17  Jim Meyering  <meyering@redhat.com>
43555         bootstrap: remove some now-unneeded code
43556         This script arose back when gnulib-tool was young.
43557         Since then, it has seen improvements that render much of this
43558         script unnecessary.  In particular, it can now make symlinks
43559         to the files it uses.  Also, I no longer see as much value in
43560         marking files as read-only via comments.
43561         If you relied on the symlink-creation feature of the preceding
43562         version of this script, you can get most of that functionality
43563         by adding the --symlink option to the definition of
43564         gnulib_tool_option_extras in your bootstrap.conf file.
43565         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
43566         Run autopoint and libtoolize *before* gnulib-tool.
43567         After it, run an abbreviated autoreconf, rather than a loop around
43568         all tools.
43569         (slirp, bt_mark_as_generated): Remove functions.
43571 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
43573         ftoastr: fix typo
43574         * lib/ftoastr.h: Fix misspelling in comment.
43576 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
43578         * top/README-release: fix punctuation.
43580 2011-12-17  Jim Meyering  <meyering@redhat.com>
43582         bootstrap: correct the recent buildreq change
43583         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
43584         had no effect.
43585         * build-aux/bootstrap (buildreq): Bracket each search term with
43586         "*...*", so that the shell "case" statement works as intended.
43587         Add comments.
43589 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
43591         build: let bootstrap resort to wget when downloading .po files
43592         * build-aux/bootstrap (download_po_files): Fallback to wget when
43593         downloading the .po files via rsync fails.  This is necessary to
43594         bootstrap from behind a strict firewall.
43596 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
43598         stdint: don't assume C++11 when compiling with g++
43599         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
43600         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
43601         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
43602         work also in C++ before C++11, as that improperly inhibits
43603         generating a substitute stdint.h for that case.
43605 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
43607         alloca: protect comment from gnulib-tool
43608         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
43609         that gnulib-tool doesn't think it's a license, and munge it to
43610         say "GCC version 3".
43612 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
43614         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
43615         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
43616         $(abs_top_builddir) instead of $(top_builddir).
43618 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
43620         strftime-tests: also test nanoseconds
43621         * tests/test-strftime.c (T): Add a test of %N.
43623 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
43625         inttypes, stdint: add C++11 support
43626         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
43627         when including inttypes.h and stdint.h.  Support this change to
43628         the standard.
43629         * doc/posix-headers/inttypes.texi (inttypes.h):
43630         * doc/posix-headers/stdint.texi (stdint.h): Document this.
43631         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
43632         Define if not defined already, for the benefit of pre-C++11 hosts.
43633         Define the standard format macros (e.g., PRId8) always.
43634         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
43635         Likewise, if __cpluspus.  Define the standard constant and limit
43636         macros (e.g., INT8_C, INT8_MAX) always.
43637         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
43638         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
43639         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
43640         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
43641         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
43642         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
43643         Likewise.
43645 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
43647         nonblocking tests: Fix test failure on Linux/PPC.
43648         Suggested by Prerna Saxena in
43649         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
43650         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
43651         Set to 1100000.
43653 2011-12-12  Jim Meyering  <meyering@redhat.com>
43655         argmatch: don't hard-code `' when listing valid option arguments
43656         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
43657         use the quote function to add quotes.  Use fputs rather than
43658         fprintf for the format string with no format directive.
43660 2011-12-07  Eric Blake  <eblake@redhat.com>
43662         bootstrap: detect tools required by gnulib-tool
43663         * build-aux/bootstrap (buildreq): Provide minimum implicit
43664         dependencies.
43665         * DEPENDENCIES: Mention patch as a prereq.
43667 2011-12-04  Bruno Haible  <bruno@clisp.org>
43669         sethostname: Port to Windows platforms.
43670         * lib/sethostname.c: Provide an alternate implementation for Windows
43671         platforms.
43672         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
43673         (main): Skip the test if sethostname() fails with EPERM. On Windows
43674         platforms, don't check the result of gethostname().
43676 2011-12-04  Bruno Haible  <bruno@clisp.org>
43677             Jim Meyering  <meyering@redhat.com>
43679         tests: Avoid spurious error message on platforms without mktemp program.
43680         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
43682 2011-12-04  Bruno Haible  <bruno@clisp.org>
43684         sethostname: Fix documentation.
43685         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
43686         "not fixed" section.
43688 2011-12-03  Bruno Haible  <bruno@clisp.org>
43690         gnulib-tool: Verify that the License field is present and non-empty.
43691         * gnulib-tool (func_get_license_raw): New function, extracted from
43692         func_get_license.
43693         (func_get_license): Use it. Warn if the module is not a test module and
43694         has no license.
43695         Suggested by Jim Meyering.
43697 2011-12-03  Bruno Haible  <bruno@clisp.org>
43699         sethostname tests: Fix link error on mingw.
43700         * tests/test-sethostname1.c: New file, extracted from
43701         tests/test-sethostname.c.
43702         * tests/test-sethostname2.c: New file, extracted from
43703         tests/test-sethostname.c.
43704         * tests/test-sethostname.c: Remove file.
43705         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
43706         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
43707         (Depends-on): Add gethostname.
43708         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
43709         Link the latter with $(GETHOSTNAME_LIB).
43711         sethostname tests: Fix compilation error on mingw.
43712         * tests/test-sethostname.c: Don't include <sys/types.h>.
43713         (geteuid): Use a dummy value without uid_t.
43714         * modules/sethostname-tests (Depends-on): Remove sys_types.
43716         sethostname tests: Avoid a gcc warning.
43717         * tests/test-sethostname.c (main): Remove an unused variable.
43719         Tweak last commit.
43720         * modules/sethostname-tests (Files): Sort by decreasing importance.
43721         (configure.ac): Check for geteuid.
43722         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
43723         the test when there's nothing to test. Drop an unnecessary cast.
43724         Improve an error message. Verify that the final sethostname() call
43725         succeeds.
43727 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
43729         Add a test suite for the sethostname module.
43730         * modules/sethostname-tests: New file.  A test program
43731         for the sethostname module.
43732         * tests/test-sethostname.c: Likewise.
43734 2011-12-03  Bruno Haible  <bruno@clisp.org>
43736         Tweak last commit.
43737         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
43738         Fix preprocessor directives indentation. Fix typos.
43739         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
43740         * modules/unistd (Makefile): Likewise.
43742 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
43744         Integrate the sethostname module into unistd.
43745         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
43746         into the unistd.h header.
43747         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
43748         preprocessor directives.
43749         * modules/unistd: Setup the Makefile substitutions of the
43750         SETHOSTNAME preprocessor directives.
43752 2011-12-03  Bruno Haible  <bruno@clisp.org>
43754         Tweak last commit.
43755         * lib/sethostname.c: Don't include <string.h>.
43756         (sethostname): No need to copy the argument string to the stack. Don't
43757         call clearerr. Preserve errno when fprintf failed.
43758         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
43759         Don't invoke AC_REPLACE_FUNCS.
43760         * modules/sethostname (Link): Remove empty section.
43761         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
43762         failure problem.
43764 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
43766         New module 'sethostname'.
43767         * lib/sethostname.c (sethostname): New file.  Provide sethostname
43768         for systems that lack it.
43769         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
43770         sethostname declaration and function.
43771         * modules/sethostname: New file.  Define the sethostname module.
43773 2011-12-03  Bruno Haible  <bruno@clisp.org>
43775         Tweak last commit.
43776         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
43778 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
43780         Split the HOST_NAME_MAX detection into a separate m4 macro.
43781         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
43782         macro so it can be used by the pending sethostname module.
43784 2011-12-03  Bruno Haible  <bruno@clisp.org>
43786         Fix module descriptions syntax.
43787         * modules/argv-iter (License): Fix syntax.
43788         * modules/di-set (License): Likewise.
43789         * modules/ino-map (License): Likewise.
43790         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
43792 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
43794         stdalign: port to Clang 3.0
43795         Problem reported by Simon Josefsson in
43796         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
43797         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
43798         which has <stdalign.h> but which does not define alignof.
43799         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
43801 2011-12-01  Eric Blake  <eblake@redhat.com>
43803         mktempd: silence dd usage
43804         * build-aux/mktempd (rand_bytes): Silence dd.
43806 2011-11-30  Simon Josefsson  <simon@josefsson.org>
43808         manywarnings: Don't mention gcc version in docstring.
43809         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
43810         Jim Meyering <meyering@redhat.com>.
43812 2011-11-30  Jim Meyering  <meyering@redhat.com>
43814         hash: mark a few floating point constants with "f" suffix
43815         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
43816         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
43817         floating point constants with "f", since they're destined to be
43818         saved/used as "float"s.
43820 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
43822         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
43823         * tests/test-float.c (test_long_double): Correct and re-enable the
43824         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
43826 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
43828         Avoid subtracting two pointers that don't point into the same block.
43829         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
43830         only pointers into the same memory block are subtracted. We cannot
43831         assume that sizeof (ptrdiff_t) == sizeof (void *).
43833 2011-11-29  Eric Blake  <eblake@redhat.com>
43835         maint.mk: add syntax check for use of compare from init.sh
43836         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
43837         moved here from coreutils.
43839         manywarnings: drop -Wunsuffixed-float-constants
43840         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
43841         '1.0D', which is the only way to silence this warning for 'double'.
43843 2011-11-29  Jim Meyering  <meyering@redhat.com>
43845         hash: mark compute_bucket_size with the pure attribute
43846         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
43848         quotearg, propername: correct pragma guard expression
43849         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
43850         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
43852 2011-11-28  Jim Meyering  <meyering@redhat.com>
43854         propername: do not mark proper_name with the const attribute
43855         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
43856         since it examines data pointed to by its parameter.
43857         * lib/propername.c (proper_name): Instead, add a pragma to suppress
43858         the suggestion from -Wsuggest-attribute=const.
43860         propername: mark one more function as const
43861         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
43863 2011-11-27  Jim Meyering  <meyering@redhat.com>
43865         mark functions with const and pure attributes
43867         Mark functions per suggestions from gcc-4.6 when using these options:
43868         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
43869         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
43870         Follow these guidelines: when possible, apply the attribute to
43871         an extern declaration, not to its definition.  Apply it to the
43872         definition only when the definition is static.
43873         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
43874         * lib/argv-iter.h (argv_iter_n_args): Likewise.
43875         * lib/base64.h (isbase64): Likewise.
43876         * lib/basename-lgpl.c (last_component, base_len): Likewise.
43877         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
43878         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
43879         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
43880         (c_tolower, c_toupper): Likewise.
43881         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
43882         * lib/chdir-long.c (find_non_slash): Likewise.
43883         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
43884         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
43885         * lib/file-type.h (file_type): Likewise.
43886         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
43887         * lib/filevercmp.c (verrevcmp): Likewise.
43888         * lib/freadahead.h (freadahead): Likewise.
43889         * lib/fts.c (fts_maxarglen): Likewise.
43890         * lib/hash-pjw.h (hash_pjw): Likewise.
43891         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
43892         * lib/hash.c (is_prime, next_prime): Likewise.
43893         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
43894         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
43895         (hash_table_ok, hash_get_first, hash_string): Likewise.
43896         (compute_bucket_size): Likewise.
43897         * lib/i-ring.h (i_ring_empty): Likewise.
43898         * lib/isnan.c (isnanl): Likewise.
43899         * lib/math.h (isnanl, rpl_isnanl): Likewise.
43900         * lib/memcasecmp.h (memcasecmp): Likewise.
43901         * lib/memchr2.h (memchr2): Likewise.
43902         * lib/memcmp2.h (memcmp2): Likewise.
43903         * lib/parse-datetime.y (lookup_zone): Likewise.
43904         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
43905         [!WINDOWS_SOCKETS]: Likewise.
43906         * lib/strnlen1.h (strnlen1): Likewise.
43907         * lib/uniwidth.in.h (uc_width): Likewise.
43908         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
43909         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
43910         (quoting_options_from_style): Add a comment.
43911         * lib/propername.h (proper_name): Add a comment.
43913 2011-11-27  Bruno Haible  <bruno@clisp.org>
43915         Remove unused macros from !_LIBC code in glibc-borrowed files.
43916         * lib/fnmatch.c (STRCOLL): Remove macro.
43917         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
43918         * lib/glob.c (__stat, __readdir64): Remove macros.
43919         * lib/tempname.c (__open64, __xstat64): Remove macros.
43920         Suggested by Paul Eggert.
43922 2011-11-27  Bruno Haible  <bruno@clisp.org>
43924         getcwd: Fix link error on MSVC 9.
43925         * modules/getcwd (Depends-on): Add readdir, rewinddir.
43927 2011-11-27  Bruno Haible  <bruno@clisp.org>
43929         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
43930         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
43931         HAVE_OPENDIR is 0.
43932         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
43933         HAVE_CLOSEDIR is 0.
43934         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
43935         is 0.
43936         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
43938 2011-11-27  Bruno Haible  <bruno@clisp.org>
43940         getcwd: Fix bug from 2011-08-17.
43941         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
43942         platforms that need it.
43943         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
43944         code of 4 to be a failure, not a success. This ensures that
43945         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
43947 2011-11-27  Bruno Haible  <bruno@clisp.org>
43949         binary-io tests: Avoid test failure on mingw when libtool is used.
43950         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
43951         Don't verify the size of t-bin-out1.tmp here.
43952         * tests/test-binary-io.sh: Verify it here.
43953         Reported by Simon Josefsson.
43955 2011-11-26  Bruno Haible  <bruno@clisp.org>
43957         Fix conflict between two instantiations of module 'unistd'.
43958         * gnulib-tool (func_emit_autoconf_snippet): Substitute
43959         ${include_guard_prefix} also in the autoconf snippet.
43960         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
43961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
43962         GNULIB_UNISTD_H_GETOPT.
43963         * modules/getopt-posix (configure.ac): Set the
43964         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
43965         * modules/getopt-gnu (configure.ac): Likewise.
43966         * modules/unistd (Makefile.am): Change the substitution value of
43967         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
43968         Reported by Simon Josefsson.
43970 2011-11-25  Bruno Haible  <bruno@clisp.org>
43972         pagealign_alloc: Doc and comments.
43973         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
43974         module.
43975         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
43977 2011-11-25  Jim Meyering  <meyering@redhat.com>
43979         test-update-copyright.sh: avoid false-positive failure
43980         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
43981         around false positive failure on Cygwin/Windows.  The latter was
43982         matching erroneously-created files with names like
43983         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
43985 2011-11-25  Simon Josefsson  <simon@josefsson.org>
43987         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
43988         * m4/valgrind-tests.m4: Check that the parameters that will be
43989         used works, not just a subset of them.  Reported by Bruno Haible
43990         <bruno@clisp.org>.
43992 2011-11-24  Jim Meyering  <meyering@redhat.com>
43994         test-stdalign.c: comment out long double tests
43995         * tests/test-stdalign.c: Don't try to reduce alignment of long double
43996         variables.  That provokes errors like this from gcc-4.7.0 20111124:
43997         error: '_Alignas' specifiers cannot reduce alignment of \
43998         'static_longdouble_alignas'.
44000 2011-11-22  Jim Meyering  <meyering@redhat.com>
44002         init.sh: make "compare /dev/null FILE" output more readable
44003         * tests/init.sh (compare_): Document the preferred order of arguments.
44004         (emit_diff_u_header_): New function.
44005         (compare_dev_null_): Emit a simulated diff, rather than just the
44006         contents of the unexpected file.  Suggestion from Bruno Haible.
44008 2011-11-21  Jim Meyering  <meyering@redhat.com>
44009             Eric Blake  <eblake@redhat.com>
44011         init.sh: work around OSF/1 5.1's mishandling of /dev/null
44012         * tests/init.sh: Make our compare function slightly more portable.
44013         Reported by Bruno Haible in
44014         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
44016 2011-11-21  Simon Josefsson  <simon@josefsson.org>
44018         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
44019         before using it, in code that ends up in config.h.
44021 2011-11-20  Bruno Haible  <bruno@clisp.org>
44023         getcwd: Work around getcwd bug on AIX 5..7.
44024         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
44025         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
44026         Use a different value for gl_cv_func_getcwd_path_max. Move the
44027         definition of HAVE_PARTLY_WORKING_GETCWD from here...
44028         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
44029         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
44030         Define HAVE_MINIMALLY_WORKING_GETCWD.
44031         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
44032         where it is not even minimally working, that is, on AIX.
44033         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
44034         m4/getcwd-path-max.m4.
44035         (main): Update exit code computation.
44036         * doc/posix-functions/getcwd.texi: Mention list of platforms where
44037         getcwd does not handle long file names.
44039 2011-11-20  Bruno Haible  <bruno@clisp.org>
44041         getcwd: Fix bug from 2009-09-10.
44042         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
44043         like "no".
44045 2011-11-20  Simon Josefsson  <simon@josefsson.org>
44047         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
44049 2011-11-20  Bruno Haible  <bruno@clisp.org>
44051         fma tests: Avoid shadowing local variables.
44052         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
44053         expected.
44055 2011-11-20  Bruno Haible  <bruno@clisp.org>
44057         copysignf tests: Fix.
44058         * tests/test-copysignf.c: Fix signature check.
44060 2011-11-20  Bruno Haible  <bruno@clisp.org>
44062         fma: Remove unused code.
44063         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
44064         unused macros.
44066 2011-11-20  Bruno Haible  <bruno@clisp.org>
44068         sethostname: Fix doc about AIX.
44069         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
44070         sethostname; it has it.
44072         sethostname: Mention more portability problems.
44073         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
44074         problem.
44075         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
44077 2011-11-19  Bruno Haible  <bruno@clisp.org>
44079         Depend on module fcntl-h when AT_FDCWD is used.
44080         * modules/utimens (Depends-on): Add fcntl-h.
44081         * modules/areadlinkat (Depends-on): Likewise.
44082         * modules/areadlinkat-with-size (Depends-on): Likewise.
44083         * modules/faccessat (Depends-on): Likewise.
44084         * modules/fchmodat (Depends-on): Likewise.
44085         * modules/fchownat (Depends-on): Likewise.
44086         * modules/getcwd (Depends-on): Likewise.
44087         * modules/mkdirat (Depends-on): Likewise.
44088         * modules/mkfifoat (Depends-on): Likewise.
44089         * modules/readlinkat (Depends-on): Likewise.
44090         * modules/symlinkat (Depends-on): Likewise.
44091         * modules/dup2-tests (Depends-on): Likewise.
44092         * modules/fdutimensat-tests (Depends-on): Likewise.
44093         * modules/futimens-tests (Depends-on): Likewise.
44095 2011-11-19  Bruno Haible  <bruno@clisp.org>
44097         euidaccess: Update a comment.
44098         * lib/euidaccess.c: Update comment about platforms with faccessat.
44100 2011-11-19  Bruno Haible  <bruno@clisp.org>
44102         openat: Fix file list.
44103         * modules/openat (Files): Remove lib/at-func.c.
44105 2011-11-19  Bruno Haible  <bruno@clisp.org>
44107         fstatat: Simplify.
44108         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
44109         gnulib should define rpl_fstatat, there is a
44110         "#define fstatat rpl_fstatat" in <sys/stat.h>.
44112 2011-11-19  Bruno Haible  <bruno@clisp.org>
44114         Ensure 'inline' can be used in tests/test-utimens-common.h.
44115         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
44116         * modules/futimens-tests (configure.ac): Likewise.
44117         * modules/utimens-tests (configure.ac): Likewise.
44118         * modules/utimensat-tests (configure.ac): Likewise.
44120 2011-11-19  Simon Josefsson  <simon@josefsson.org>
44122         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
44123         not hash_insert0.
44124         (hash_insert_if_absent): Doc fix.
44126 2011-11-19  Simon Josefsson  <simon@josefsson.org>
44128         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
44130 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
44132         test-getcwd: disambiguate exit status
44133         * tests/test-getcwd.c (test_long_name): Return 0..7.
44134         (main): Exit with an unambiguous exit status.  The old
44135         code yielded a mysterious mixture of two failure codes.
44137         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
44138         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
44139         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
44140         rpl_fstatat or fstatat.  This should fix the other problem
44141         reported by Kai Habel in
44142         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
44143         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
44144         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
44145         and I reproduced it on a Solaris 8 host we still have in production.
44147 2011-11-18  Jim Meyering  <meyering@redhat.com>
44149         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
44150         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
44151         Add a sentence to the comment.
44152         (hash_insert0): New function that simply calls hash_insert_if_absent.
44153         * lib/hash.h (hash_insert_if_absent): Declare it.
44154         (hash_insert0): Add deprecation attribute.
44155         (_GL_ATTRIBUTE_DEPRECATED): Define.
44156         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
44157         not hash_insert0.
44158         * NEWS: Mention it, even though it's not really an incompatible change.
44160 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
44162         openat: avoid compilation failure due to lack of <errno.h> inclusion
44163         * lib/openat.c: Include <errno.h>.
44165 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
44167         * modules/getcwd (Depends-on): Add fdopendir.
44168         This fixes one of the two problems reported by Kai Habel in
44169         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
44171         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
44172         stdalign problem reported by Ian Beckwith in
44173         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
44174         * modules/crypto/gc-arcfour (Depends-on):
44175         Depend conditionally on crypto/arcfour.
44176         * modules/crypto/gc-arctwo (Depends-on):
44177         Depend conditionally on crypto/arctwo.
44178         * modules/crypto/gc-des (Depends-on):
44179         Depend conditionally on crypto/des.
44180         * modules/crypto/gc-hmac-md5 (Depends-on):
44181         Depend conditionally on crypto/hmac-md5.
44182         * modules/crypto/gc-hmac-sha1 (Depends-on):
44183         Depend conditionally on crypto/hmac-sha1.
44184         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
44185         * modules/crypto/gc-md4 (Depends-on):
44186         Depend conditionally on crypto/md4.
44187         * modules/crypto/gc-md5 (Depends-on):
44188         Depend conditionally on crypto/md5.
44189         * modules/crypto/gc-rijndael (Depends-on):
44190         Depend conditionally on crypto/rijndael.
44191         * modules/crypto/gc-sha1 (Depends-on):
44192         Depend conditionally on crypto/sha1.
44193         * modules/crypto/gc-arcfour:
44194         * modules/crypto/gc-arctwo:
44195         * modules/crypto/gc-des:
44196         * modules/crypto/gc-hmac-md5:
44197         * modules/crypto/gc-hmac-sha1:
44198         * modules/crypto/gc-md2:
44199         * modules/crypto/gc-md4:
44200         * modules/crypto/gc-md5:
44201         * modules/crypto/gc-rijndael:
44202         * modules/crypto/gc-sha1:
44203         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
44204         now that the conditional dependencies do the work for us.
44206 2011-11-17  Jim Meyering  <meyering@redhat.com>
44208         tests: factor st_ctime-comparison out of two headers
44209         * tests/test-utimens-common.h (ctime_compare): Define.
44210         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
44211         * tests/test-lutimens.h (test_lutimens): Likewise.
44212         * tests/test-utimens.h (test_utimens): Likewise.
44214         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
44215         Invoke the test program via an init.sh-using wrapper.
44216         * tests/test-getcwd.sh: New file.
44217         * modules/getcwd-tests (Files): Add it.
44218         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
44220 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
44222         gitlog-to-changelog: support multi-author commits.
44223         The FSF cares about keeping track of all authors of patches to its
44224         projects, but Git doesn't provide obvious support for multi-author
44225         changesets. Consensus seems to be forming around the use of extra
44226         Signed-off-by inspired lines in the log message formatted as
44227         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
44228         multi-author commits between version control systems.
44229         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
44230         log message and output in standard ChangeLog multi-author format.
44231         Reported by Peter Rosin <peda@lysator.liu.se>
44233 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
44234             Bruno Haible  <bruno@clisp.org>
44236         Fix some modules' file list.
44237         * modules/fstatat (Files): Add m4/lstat.m4.
44238         * modules/openat (Files): Likewise.
44239         * modules/unlinkat (Files): Likewise.
44241 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
44243         maint.mk: fix tight-scope.mk generation in VPATH builds.
44244         * top/maint.mk (tight-scope.mk): Make sure to prefix file
44245         reference with $(srcdir) so that the file is found correctly even
44246         when running `make syntax-check' in a VPATH build.
44248 2011-11-13  Bruno Haible  <bruno@clisp.org>
44249             Jim Meyering  <meyering@redhat.com>
44251         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
44252         * tests/init.sh (compare): Remove "No differences encountered" or
44253         synonymous output from the 'diff' program.
44255 2011-11-13  Bruno Haible  <bruno@clisp.org>
44257         Makefile: Tweak indentation.
44258         * Makefile: Use tab as first character in every line that contains rule
44259         commands.
44261 2011-11-13  Bruno Haible  <bruno@clisp.org>
44263         Syntax check for copyright statements.
44264         * check-copyright: New file.
44265         * Makefile (sc_check_copyright): New rule.
44267 2011-11-13  Simon Josefsson  <simon@josefsson.org>
44269         * build-aux/git-version-gen: Add --prefix to configure the tag
44270         match string.
44272 2011-11-13  Simon Josefsson  <simon@josefsson.org>
44274         * build-aux/git-version-gen: Add --help and --version.
44276 2011-11-12  Jim Meyering  <meyering@redhat.com>
44278         revamp the other test-exclude?.sh scripts to use init.sh, too
44279         * tests/test-exclude1.sh: Use init.sh.
44280         * tests/test-exclude2.sh: Likewise.
44281         * tests/test-exclude3.sh: Likewise.
44282         * tests/test-exclude4.sh: Likewise.
44283         * tests/test-exclude5.sh: Likewise.
44284         * tests/test-exclude6.sh: Likewise.
44285         * tests/test-exclude7.sh: Likewise.
44286         * tests/test-exclude8.sh: Likewise.
44287         * modules/exclude-tests (Files): List init.sh.
44289         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
44290         These shell scripts ignored failure of the binary test-exclude,
44291         so making the latter return 77 didn't cause them to be skipped.
44292         * tests/test-exclude5.sh: Exit with test-exclude's error status
44293         when that program fails.  Revamp to use init.sh.
44294         * tests/test-exclude2.sh: Likewise.
44296         test-exclude: fix a typo
44297         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
44299 2011-11-11  Bruno Haible  <bruno@clisp.org>
44301         obstack: Fix compilation error on MSVC 9.
44302         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
44304 2011-11-11  Jim Meyering  <meyering@redhat.com>
44306         test-exclude: skip tests rather than failing on deficient systems
44307         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
44308         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
44309         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
44310         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
44312 2011-11-10  Bruno Haible  <bruno@clisp.org>
44314         ptsname_r test: Avoid gcc warning on glibc systems.
44315         * tests/test-ptsname_r.c (null_ptr): New function.
44316         (test_errors): Use it.
44318 2011-11-10  Bruno Haible  <bruno@clisp.org>
44320         ptsname_r: Avoid compilation error on OSF/1 5.1.
44321         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
44322         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
44323         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
44324         function is not declared or incompatibly declared.
44325         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
44326         * modules/ptsname_r (Depends-on, configure.ac): Update.
44327         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
44329 2011-11-10  Bruno Haible  <bruno@clisp.org>
44331         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
44332         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
44333         When cross-compiling, guess yes on all platforms except AIX.
44334         Reported by Ludovic Courtès <ludo@gnu.org>.
44336 2011-11-09  Bruno Haible  <bruno@clisp.org>
44338         ptsname_r tests: Fix bugs.
44339         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
44340         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
44342 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
44344         fstatat: work with cross-compilation
44345         Problem reported by Ludovic Courtès in
44346         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
44347         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
44348         "cross-compiling" and assume the bug is present.  Replace
44349         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
44350         an inverted sense, to be more conservative about our assumptions.
44351         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
44353 2011-11-09  Bruno Haible  <bruno@clisp.org>
44355         Improve MODULES.html output.
44356         * modules/mkfifoat (Description): Use the word "function".
44357         * modules/readlinkat (Description): Likewise.
44358         * modules/symlinkat (Description): Likewise.
44360 2011-11-09  Eric Blake  <eblake@redhat.com>
44362         ptsname_r-tests: new test module
44363         * modules/ptsname_r-tests: New module.
44364         * tests/test-ptsname_r.c: New file.
44366         ptsname_r: new module
44367         * modules/ptsname_r: New module.
44368         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
44369         * lib/ptsname.c (__ptsname_r): Split...
44370         * lib/ptsname_r.c: ...into new file.
44371         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
44372         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
44373         * modules/stdlib (Makefile.am): Substitute witnesses.
44374         * lib/stdlib.in.h (ptsname_r): Declare it.
44375         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
44376         * MODULES.html.sh (Misc): Likewise.
44377         * modules/ptsname (Depends-on): Alter dependency.
44378         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
44380 2011-11-09  Jim Meyering  <meyering@redhat.com>
44382         announce-gen: be more concise when there's only one URL+tarball
44383         * build-aux/announce-gen (get_tool_versions): When you distribute
44384         only one type of tarball, combine the first two "Here are..."
44385         sections and make the key-checking grammar independent of
44386         how many tarballs there are.
44388 2011-11-09  Eric Blake  <eblake@redhat.com>
44390         openpty: provide a stub on mingw
44391         * lib/pty.in.h (includes): Provide forward declarations.
44392         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
44394         raise: fix mingw handling of SIGPIPE
44395         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
44397 2011-11-08  Bruno Haible  <bruno@clisp.org>
44399         More conditional dependencies.
44400         * modules/faccessat (Depends-on): Add conditions.
44401         * modules/fchmodat (Depends-on): Likewise.
44402         * modules/fchownat (Depends-on): Likewise.
44403         * modules/fstatat (Depends-on): Likewise.
44404         * modules/mkfifoat (Depends-on): Likewise.
44405         * modules/readlinkat (Depends-on): Likewise.
44406         * modules/symlinkat (Depends-on): Likewise.
44407         * modules/unlinkat (Depends-on): Likewise.
44408         * modules/utimensat (Depends-on): Likewise.
44409         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
44410         * modules/linkat (Depends-on): Refine the conditions.
44411         * modules/renameat (Depends-on): Likewise.
44413 2011-11-08  Bruno Haible  <bruno@clisp.org>
44415         faccessat: Move AC_LIBOBJ invocation to module description.
44416         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
44417         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
44418         invocation from here...
44419         * modules/faccessat (configure.ac): ... to here. Invoke
44420         gl_PREREQ_FACCESSAT.
44422 2011-11-08  Bruno Haible  <bruno@clisp.org>
44424         faccessat: Simplify autoconf macro.
44425         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
44426         gl_FUNC_EUIDACCESS.
44428 2011-11-08  Bruno Haible  <bruno@clisp.org>
44430         renameat: Fix dependencies.
44431         * modules/renameat (Depends-on): Add stdbool.
44433 2011-11-08  Bruno Haible  <bruno@clisp.org>
44435         mkfifoat: Fix module description.
44436         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
44437         not gl_UNISTD_MODULE_INDICATOR.
44439 2011-11-08  Bruno Haible  <bruno@clisp.org>
44441         fstatat: Remove unused dependency.
44442         * modules/fstatat (Depends-on): Remove fstat.
44444 2011-11-08  Simon Josefsson  <simon@josefsson.org>
44446         GNUmakefile: behave when Makefile is missing.
44447         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
44449 2011-11-08  Bruno Haible  <bruno@clisp.org>
44451         openat: Conditionalize dependencies.
44452         * lib/openat.c: Reduce the scope of some #includes.
44453         * modules/openat (Depends-on): Add conditions.
44455 2011-11-07  Jim Meyering  <meyering@redhat.com>
44457         maint.mk: extract GPG key ID without using a temporary file
44458         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
44459         without using a temporary file.  Based on a suggestion from Werner Koch
44460         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
44462 2011-11-07  Eric Blake  <eblake@redhat.com>
44464         grantpt: fix typo
44465         * lib/stdlib.in.h (grantpt): Check correct function.
44467         maint.mk: silence new syntax check
44468         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
44470 2011-11-06  Bruno Haible  <bruno@clisp.org>
44472         Doc about floating-point and math API.
44473         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
44474         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
44476 2011-11-06  Bruno Haible  <bruno@clisp.org>
44478         stdalign tests: Skip the test when compiled by Sun C.
44479         * tests/test-stdalign.c (main): Skip the test on Sun C.
44481 2011-11-06  Bruno Haible  <bruno@clisp.org>
44483         ansi-c++-opt: Complete the 2011-06-05 change.
44484         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
44485         does not support namespaces, set the variable to "no", not to ":".
44487 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
44489         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
44491 2011-11-06  Bruno Haible  <bruno@clisp.org>
44493         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
44494         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
44495         (minus_zerol) [HP-UX]: New macro.
44496         (unary_minus) [HP-UX]: New function.
44497         (copysignl) [HP-UX]: Use unary_minus function.
44499 2011-11-06  Bruno Haible  <bruno@clisp.org>
44501         ldexp, ldexpf, ldexpl: Enhance tests.
44502         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
44503         and tests/test-ldexpl.c.
44504         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
44505         LDEXP, MIN_EXP, MAX_EXP): New macros.
44506         Include test-ldexp.h.
44507         (main): Just call test_function.
44508         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
44509         infinity.h, nan.h.
44510         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
44511         MAX_EXP): New macros.
44512         Include test-ldexp.h.
44513         (x, y): Remove variables.
44514         (main): Just call test_function.
44515         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
44516         infinity.h, nan.h.
44517         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
44518         MAX_EXP): New macros.
44519         Include test-ldexp.h.
44520         (x, y): Remove variables.
44521         (main): Just call test_function.
44522         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
44523         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
44524         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
44525         (Depends-on): Add isnand-nolibm, signbit, float.
44526         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
44527         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
44528         (Depends-on): Add isnanf-nolibm, signbit, float.
44530 2011-11-06  Bruno Haible  <bruno@clisp.org>
44532         math tests: Cosmetics.
44533         * tests/test-math-c++.cc: Reorder declarations.
44535 2011-11-05  Bruno Haible  <bruno@clisp.org>
44537         fma*: Simplify test.
44538         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
44539         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
44541         Tests for module 'fmal'.
44542         * modules/fmal-tests: New file.
44543         * tests/test-fmal1.c: New file.
44544         * tests/test-fmal2.c: New file.
44546         New module 'fmal'.
44547         * lib/math.in.h (fmal): New declaration.
44548         * lib/fmal.c: New file.
44549         * m4/fmal.m4: New file.
44550         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
44551         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
44552         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
44553         REPLACE_FMAL.
44554         * modules/fmal: New file.
44555         * doc/posix-functions/fmal.texi: Mention the new module and the various
44556         bugs.
44558         Tests for module 'fmaf'.
44559         * modules/fmaf-tests: New file.
44560         * tests/test-fmaf1.c: New file.
44561         * tests/test-fmaf2.c: New file.
44563         New module 'fmaf'.
44564         * lib/math.in.h (fmaf): New declaration.
44565         * lib/fmaf.c: New file.
44566         * m4/fmaf.m4: New file.
44567         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
44568         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
44569         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
44570         REPLACE_FMAF.
44571         * modules/fmaf: New file.
44572         * doc/posix-functions/fmaf.texi: Mention the new module and the various
44573         bugs.
44575         Tests for module 'fma'.
44576         * modules/fma-tests: New file.
44577         * tests/test-fma1.c: New file.
44578         * tests/test-fma1.h: New file.
44579         * tests/test-fma2.c: New file.
44580         * tests/test-fma2.h: New file.
44582         New module 'fma'.
44583         * lib/math.in.h (fma): New declaration.
44584         * lib/fma.c: New file.
44585         * m4/fma.m4: New file.
44586         * m4/fegetround.m4: New file.
44587         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
44588         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
44589         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
44590         REPLACE_FMA.
44591         * modules/fma: New file.
44592         * doc/posix-functions/fma.texi: Mention the new module and the various
44593         bugs.
44595         Extend gl_MATHFUNC.
44596         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
44597         Support 'void' as argument type.
44598         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
44600 2011-11-05  Jim Meyering  <meyering@redhat.com>
44602         maint.mk: also prohibit inclusion of dirent.h without use
44603         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
44605 2011-11-05  Bruno Haible  <bruno@clisp.org>
44607         ldexpl tests: Avoid test failure on MSVC 9.
44608         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
44609         value. Needed in order to enforce the conversion from a value greater
44610         than LDBL_MAX to Infinity.
44612 2011-11-05  Bruno Haible  <bruno@clisp.org>
44614         New modules 'at-internal', 'openat-h', split off from module 'openat'.
44615         * modules/at-internal: New file, extracted from modules/openat.
44616         * modules/openat-h: New file.
44617         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
44618         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
44619         * modules/openat (Description): Add reference to POSIX function.
44620         (Files): Remove lib/openat.h, lib/openat-proc.c.
44621         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
44622         intprops, unistd.
44623         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
44624         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
44625         gl_FCNTL_MODULE_INDICATOR.
44626         (Include): Remove unistd.h, openat.h.
44627         * modules/areadlinkat (Files): Add lib/at-func.c.
44628         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
44629         openat-die, openat-h, save-cwd.
44630         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
44631         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
44632         openat-die, openat-h, save-cwd, unistd.
44633         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
44634         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
44635         openat-h, save-cwd. Remove fcntl-h, openat.
44636         * modules/fchmodat (Files): Remove lib/openat.h.
44637         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
44638         openat, stdbool, unistd.
44639         * modules/fchownat (Files): Remove lib/openat.h.
44640         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
44641         openat, stdbool, sys_stat.
44642         * modules/fdopendir (Files): Remove lib/openat-priv.h,
44643         lib/openat-proc.c.
44644         (Depends-on): Add at-internal.
44645         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
44646         * modules/fstatat (Files): Remove lib/openat.h.
44647         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
44648         stdbool, unistd.
44649         * modules/fts (Depends-on): Add openat-h.
44650         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
44651         openat.
44652         * modules/mkdirat (Files): Remove lib/openat.h.
44653         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
44654         openat, stdbool, sys_stat.
44655         * modules/mkfifoat (Files): Add lib/at-func.c.
44656         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
44657         openat-h, save-cwd. Remove fcntl-h, openat.
44658         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
44659         * modules/readlinkat (Files): Add lib/at-func.c.
44660         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
44661         openat-h, save-cwd. Remove fcntl-h, openat.
44662         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
44663         openat.
44664         * modules/selinux-at (Files): Add lib/at-func.c.
44665         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
44666         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
44667         * modules/symlinkat (Files): Add lib/at-func.c.
44668         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
44669         openat-h, save-cwd. Remove fcntl-h, openat.
44670         * modules/unlinkat (Files): Remove lib/openat.h.
44671         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
44672         stdbool.
44673         * modules/utimensat (Files): Add lib/at-func.c.
44674         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
44675         openat-die, openat-h, save-cwd.
44676         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
44677         * modules/fdutimensat-tests (Depends-on): Add openat.
44678         * modules/fstatat-tests (Depends-on): Add openat-h.
44679         * modules/readlinkat-tests (Depends-on): Add openat.
44680         * modules/symlinkat-tests (Depends-on): Add openat.
44682 2011-11-05  Bruno Haible  <bruno@clisp.org>
44684         openat: Include <stdbool.h>.
44685         * lib/openat.c: Include <stdbool.h>.
44687 2011-11-04  Bruno Haible  <bruno@clisp.org>
44689         fchownat, renameat, unlinkat: Fix dependencies.
44690         * modules/fchownat (Depends-on): Add fstatat.
44691         * modules/renameat (Depends-on): Likewise.
44692         * modules/unlinkat (Depends-on): Likewise.
44694 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
44696         openat: remove direct dependency on dirent
44697         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
44698         and hasn't been needed ever since fdopendir was split into its own
44699         module on 2009-08-31.
44700         * modules/openat (Depends-on): Remove dirent.
44702 2011-11-04  Bruno Haible  <bruno@clisp.org>
44704         renameat: Optimize code size.
44705         * modules/renameat (configure.ac): Don't compile at-func2.c if
44706         REPLACE_RENAMEAT is 1.
44708 2011-11-04  Bruno Haible  <bruno@clisp.org>
44710         openat tests: Fix file list.
44711         * modules/openat-tests (Files): Add tests/test-open.h.
44713 2011-11-04  Bruno Haible  <bruno@clisp.org>
44715         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
44716         * modules/fchmodat (Depends-on): Add openat-die.
44717         * modules/fchownat (Depends-on): Likewise.
44718         * modules/linkat (Depends-on): Likewise.
44719         * modules/renameat (Depends-on): Likewise.
44720         * modules/openat (Depends-on): Add dirent.
44722 2011-11-04  Jim Meyering  <meyering@redhat.com>
44724         at-func*.c: fix comments
44725         * lib/at-func2.c: Correct/improve first-line comment.
44726         * lib/at-func.c: Correct grammar in first-line comment.
44728 2011-11-04  Bruno Haible  <bruno@clisp.org>
44730         New module 'mkdirat', split off from module 'openat'.
44731         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
44732         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
44733         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
44734         * modules/mkdirat: New file, extracted from modules/openat.
44735         * modules/openat (Files): Remove lib/mkdirat.c.
44736         (Depends-on): Remove mkdir.
44737         (configure.ac): Remove AC_LIBOBJ of mkdirat.
44738         (Include): Remove <sys/stat.h>.
44739         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
44740         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
44741         tests/test-mkdir.h.
44742         (Depends-on): Remove ignore-value.
44743         (Makefile.am): Remove rules for test-mkdirat.
44744         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
44745         of module 'openat'.
44746         * NEWS: Mention the change.
44748 2011-11-04  Bruno Haible  <bruno@clisp.org>
44750         closedir: Avoid warning on mingw.
44751         * lib/closedir.c: Include <unistd.h>.
44753 2011-11-04  Bruno Haible  <bruno@clisp.org>
44755         New module 'fstatat', split off from module 'openat'.
44756         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
44757         defined.
44758         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
44759         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
44760         gl_FUNC_FSTATAT.
44761         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
44762         * modules/fstatat: New file, extracted from modules/openat.
44763         * modules/openat (Files): Remove lib/fstatat.c.
44764         (Depends-on): Remove lstat.
44765         (configure.ac): Remove AC_LIBOBJ of fstatat.
44766         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
44767         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
44768         tests/test-lstat.h, tests/test-stat.h.
44769         (Depends-on): Remove getcwd-lgpl.
44770         (Makefile.am): Remove rules for test-fstatat.
44771         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
44772         of module 'openat'.
44773         * NEWS: Mention the change.
44774         * modules/getcwd (Depends-on): Add fstatat.
44775         * modules/linkat (Depends-on): Likewise.
44776         * modules/mkfifoat-tests (Depends-on): Likewise.
44777         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
44779 2011-11-03  Bruno Haible  <bruno@clisp.org>
44781         New module 'unlinkat', split off from module 'openat'.
44782         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
44783         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
44784         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
44785         * modules/unlinkat: New file, extracted from modules/openat. Correct
44786         the dependency conditions.
44787         * modules/openat (Files): Remove lib/unlinkat.c.
44788         (Depends-on): Remove rmdir, unlink.
44789         (configure.ac): Remove AC_LIBOBJ of unlinkat.
44790         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
44791         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
44792         tests/test-rmdir.h, tests/test-unlink.h.
44793         (Depends-on): Remove unlinkdir.
44794         (Makefile.am): Remove rules for test-unlinkat.
44795         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
44796         of module 'openat'.
44797         * NEWS: Mention the change.
44798         * modules/linkat-tests (Depends-on): Add unlinkat.
44799         * modules/mkfifoat-tests (Depends-on): Likewise.
44800         * modules/readlinkat-tests (Depends-on): Likewise.
44802 2011-11-02  Bruno Haible  <bruno@clisp.org>
44804         New module 'fchmodat', split off from module 'openat'.
44805         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
44806         defined.
44807         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
44808         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
44809         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
44810         * modules/fchmodat: New file, extracted from modules/openat.
44811         * modules/openat (Files): Remove lib/fchmodat.c.
44812         (configure.ac): Remove AC_LIBOBJ of fchmodat.
44813         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
44814         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
44815         (Makefile.am): Remove rules for test-fchmodat.
44816         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
44817         of module 'openat'.
44818         * NEWS: Mention the change.
44820 2011-11-02  Jim Meyering  <meyering@redhat.com>
44822         putenv: indent #definition of "environ" to placate cppi
44823         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
44825         gitlog-to-changelog: provide a ChangeLog-repair mechanism
44826         Git logs are often treated as immutable, because editing them
44827         changes the SHA1 checksums of all descendants.  Thus, errors in
44828         git logs tend to stay there forever.  However, when we generate
44829         a ChangeLog file -- typically for distribution -- from that git log,
44830         we can actually make corrections in the generated file.  The key
44831         lies in recording in machine-readable/applicable form the desired
44832         corrections.  See --help for description and an example.
44833         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
44834         (usage): Describe it; alphabetize option descriptions.
44835         (main): Honor the new option, carefully.
44837 2011-11-01  Jim Meyering  <meyering@redhat.com>
44839         gitlog-to-changelog: avoid an infloop
44840         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
44841         that ends up being empty.
44843 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
44845         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
44846         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
44847         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
44848         contains (possibly-quoted) backslashes.  This should avoid
44849         all-too-common shell bugs if COMPLICATED contains backslashes in
44850         the "wrong" places.  Reported by David Evans in
44851         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
44852         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
44853         because we want ASCII ranges.  Is there some reason we don't use
44854         the C locale everywhere in this script?
44855         (func_module, top level): Avoid unwanted pathname expansion when
44856         $repo_url_prefix or $repo_url_suffix_repl contain shell
44857         metacharacters like '?' and '*'.
44859 2011-11-01  Bruno Haible  <bruno@clisp.org>
44861         fchownat: Improve description.
44862         * modules/fchownat (Description): Add link to function.
44864 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
44866         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
44867         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
44868         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
44869         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
44871 2011-11-01  Bruno Haible  <bruno@clisp.org>
44873         alignof: Avoid collision with stdalign module.
44874         * lib/alignof.h (alignof): Remove macro.
44875         * NEWS: Mention the change.
44876         Reported by Paul Eggert.
44878 2011-11-01  Bruno Haible  <bruno@clisp.org>
44880         New module 'fchownat', split off from module 'openat'.
44881         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
44882         defined.
44883         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
44884         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
44885         invoke gl_FUNC_FCHOWNAT.
44886         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
44887         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
44888         * modules/fchownat: New file, extracted from modules/openat.
44889         * modules/openat (Files): Remove lib/fchownat.c.
44890         (Depends-on): Remove lchown.
44891         (configure.ac): Remove AC_LIBOBJ of fchownat.
44892         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
44893         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
44894         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
44895         (Depends-on): Remove mgetgroups, usleep, stat-time.
44896         (configure.ac): Remove test for getegid.
44897         (Makefile.am): Remove rules for test-fchownat.
44898         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
44899         of module 'openat'.
44900         * NEWS: Mention the change.
44902 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
44904         stdalign: port better to MSVC and to Sun C 5.11
44905         This fixes some of the problems reported by Bruno Haible in
44906         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
44907         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
44908         shortcomings of MSVC and of Sun C 5.11.
44909         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
44910         around __declspec arg.
44911         * modules/stdalign-tests (Files): Add tests/macros.h.
44912         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
44913         Include macros.h, for ASSERT.
44914         (DECLARE_ALIGNED): Remove.
44915         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
44916         to catch bug), and to 1 if not (simplifies the rest of the code).
44917         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
44918         (CHECK_AUTO): Remove.
44919         (CHECK_ALIGNED): Check only the alignment of the static vars,
44920         since auto var alignment isn't supported by Sun C 5.11.
44921         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
44922         ASSERT failures are easier to diagnose.
44924 2011-10-31  Bruno Haible  <bruno@clisp.org>
44926         doc about some IRIX 5.3 problems.
44927         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
44928         on IRIX 5.3.
44929         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
44930         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
44931         5.3.
44932         * doc/posix-functions/grantpt.texi: Likewise.
44933         * doc/posix-functions/unlockpt.texi: Likewise.
44934         * doc/posix-functions/lgamma.texi: Likewise.
44935         * doc/posix-functions/nextafter.texi: Likewise.
44936         * doc/posix-functions/remainder.texi: Likewise.
44937         * doc/posix-functions/select.texi: Mention misplaced declaration on
44938         IRIX 5.3.
44939         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44941 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
44943         gitlog-to-changelog: fix git-log invocation.
44944         git-log mishandles date strings before 1970-01-01 UTC, and there is
44945         no use to specify --since=1970-01-01 by default anyway.
44946         * build-aux/gitlog-to-changelog: By default, when no --since option
44947         was given, do not specify explicit --since option to git-log.
44949 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
44951         gitlog-to-changelog: new option --append-dot.
44952         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
44953         first non-blank line of each commit message terminated with a dot.
44955 2011-10-30  Bruno Haible  <bruno@clisp.org>
44957         ffsl, ffsll: Avoid compilation error due to 'restrict'.
44958         * lib/ffsl.h: Include <config.h>.
44959         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
44961 2011-10-30  Jim Meyering  <meyering@redhat.com>
44963         GNUmakefile: reenable "make syntax-check" for most projects
44964         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
44965         build-aux variable", "syntax-check" would do nothing but succeed with
44966         the "No version control files detected..." diagnostic (unless you
44967         happened to override _build-aux via cfg.mk).
44968         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
44969         to precede inclusion of maint.mk.  Otherwise, these variables would
44970         be used undefined in any project that does not override the default.
44972 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
44974         gitlog-to-changelog: treat a message with only blank lines as empty.
44975         * build-aux/gitlog-to-changelog: Move the code that removes leading and
44976         trailing blank lines before the code that issues a warning about an
44977         empty commit message.
44979 2011-10-30  Jim Meyering  <meyering@redhat.com>
44981         test-parse-datetime.c: avoid new DST-related false positive test failure
44982         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
44983         based on the time/date we'll convert, not the current time.
44984         Otherwise, the moment we cross a DST boundary like today's in
44985         Europe, (CEST to CET), that offset ends up being one hour off.
44987 2011-10-27  Bruno Haible  <bruno@clisp.org>
44989         fstat: Tweak documentation.
44990         * modules/fstat (Description): More precise description.
44992 2011-10-27  Bruno Haible  <bruno@clisp.org>
44994         Update documentation regarding 'largefile' module.
44995         * doc/posix-functions/fstat.texi: Tweak wording.
44996         * doc/posix-functions/opendir.texi: Mention that the module fixes the
44997         problems with huge directories and/or small ino_t types.
44998         * doc/posix-functions/readdir.texi: Likewise.
44999         * doc/posix-functions/rewinddir.texi: Likewise.
45001 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
45003         maint.mk: don't maintain a second build-aux variable.
45004         * maint.mk (build_aux): Removed.  The maintainer-makefile module
45005         depends on GNUmakefile, which already maintains a cfg.mk
45006         overridable $(_build-aux) for projects with a non-standard
45007         build-aux directory location, although without the $(srcdir)
45008         prefix.  Use that variable consistently instead of introducing a
45009         second one.  Adjust all call sites.
45011 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
45013         Add stdalign module and use it in other modules.
45014         This is based on a previous proposal by Bruno Haible
45015         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
45017         stdalign: new module
45018         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
45019         * modules/stdalign: New files.
45020         * MODULES.html.sh (c1x_core_properties): Add stdalign.
45021         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
45023         stdalign-tests: new module
45024         * modules/stdalign-tests, tests/test-stdalign.c: New files.
45026         argp: use stdalign
45027         * lib/argp-parse.c: Include <stdalign.h>.
45028         (alignof): Remove.
45029         * modules/argp (Depends-on): Add stdalign.
45031         crypto libraries: use stdalign
45032         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
45033         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
45034         Do not include <stdlib.h> twice, in md4.c.
45035         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
45036         because we are accessing a pointer's bit-pattern, not a size.
45037         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
45038         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
45039         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
45040         * modules/crypto/sha512: Likewise.
45042         sys_socket: use stdalign, not alignof
45043         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
45044         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
45046 2011-10-27  Bruno Haible  <bruno@clisp.org>
45048         raise test: Avoid a test failure on Linux/MIPS.
45049         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
45050         because 99 is a valid signal on Linux/MIPS.
45052 2011-10-27  Bruno Haible  <bruno@clisp.org>
45054         nonblocking tests: Fix test failure on Linux/MIPS.
45055         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
45056         Set to 270000.
45058 2011-10-27  Bruno Haible  <bruno@clisp.org>
45060         utimensat: Work around problem on Linux/hppa.
45061         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
45062         values.
45063         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
45065 2011-10-25  Jim Meyering  <meyering@redhat.com>
45067         maint.mk: fix a bug in sc_prohibit_stddef_without_use
45068         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
45069         after symbols like NULL, size_t, etc.
45070         Reported by Alfred M. Szmidt.
45072         maint.mk: exempt ENODATA from a syntax-check rule
45073         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
45074         from the sc_prohibit_always-defined_macros syntax-check rule.
45075         Add a comment.  See this for more details:
45076         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
45078 2011-10-23  Jim Meyering  <meyering@redhat.com>
45080         fts: close parent dir FD before returning from post-traversal fts_read
45081         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
45082         unlink A, even though an FD open on A remained.  This is suboptimal
45083         (holding a file descriptor open longer than needed), but otherwise not
45084         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
45085         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
45086         that represents a real problem: it causes the removal of A to fail
45087         with e.g., "rm: cannot remove `A': Device or resource busy"
45089         fts visits each directory twice and keeps a cache (fts_fd_ring) of
45090         directory file descriptors.  After completing the final, FTS_DP,
45091         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
45092         cache, but then proceeded to add a new FD to it via the subsequent
45093         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
45094         final file descriptor would be closed only via fts_close's call to
45095         fd_ring_clear.  Now, it is usually closed earlier, via the final
45096         FTS_DP-returning fts_read call.
45097         * lib/fts.c (restore_initial_cwd): New function, converted from
45098         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
45099         Update callers.
45100         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
45101         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
45103 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
45104             Bruno Haible  <bruno@clisp.org>
45105             Jim Meyering  <jim@meyering.net>
45107         readme-release: improve safety of release prep instructions.
45108         * README-release: Don't git pull all branches when only master
45109         is needed for the release process.
45110         Run make maintainer-clean before changing trees and merging.
45111         Don't try to run ./configure right after git pull in case files
45112         that influence the bootstrap process have changed, move the
45113         ./configure step to after running ./bootstrap.
45114         Don't bootstrap "one last time"... it's the first time!
45116 2011-10-22  Bruno Haible  <bruno@clisp.org>
45118         errno, strerror-override: Support for MSVC 10.
45119         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
45120         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
45121         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
45122         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
45123         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
45124         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
45125         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
45126         Assign values compatible with MSVC 10.
45127         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
45128         New macros.
45129         (GNULIB_defined_EWINSOCK): New macro.
45130         * lib/strerror-override.c (strerror_override): Update accordingly.
45131         * lib/strerror-override.h: Likewise.
45132         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
45133         longer equal to the corresponding errno value.
45134         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
45136 2011-10-22  Bruno Haible  <bruno@clisp.org>
45138         perror: Recognize when test program crashes.
45139         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
45140         strerror, set gl_cv_func_perror_works to no.
45141         Reported by Daniel Richard G. <skunk@iskunk.org>.
45143         perror: Fix indentation.
45144         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
45146 2011-10-22  Bruno Haible  <bruno@clisp.org>
45148         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
45149         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
45150         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
45151         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
45152         functions, not as a macro.
45153         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
45154         macros.
45155         (isfinite, isinf, isnan, signbit): Check overloaded functions and
45156         absence of macro.
45157         Suggested by Eric Blake.
45158         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
45160 2011-10-21  Bruno Haible  <bruno@clisp.org>
45162         relocatable-prog-wrapper: Don't leave object files behind.
45163         * build-aux/install-reloc: Re-synchronize list of .o files to be
45164         removed with list of compilation units.
45166 2011-10-20  Bruno Haible  <bruno@clisp.org>
45168         openpty, posix_openpt: Remove code duplication.
45169         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
45170         * lib/openpty.c: Include <stdlib.h>.
45171         (openpty): Use posix_openpt on all platforms except IRIX.
45172         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
45174 2011-10-20  Bruno Haible  <bruno@clisp.org>
45176         unlockpt: Detect invalid argument.
45177         * lib/unlockpt.c: Include <fcntl.h>.
45178         (unlockpt): Check whether fd is valid, using fcntl().
45179         * modules/unlockpt (Depends-on): Add fcntl-h.
45181 2011-10-20  Bruno Haible  <bruno@clisp.org>
45183         openpty: Avoid compilation error on AIX 6.1.
45184         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
45186 2011-10-20  Bruno Haible  <bruno@clisp.org>
45188         posix_openpt: Support for OpenBSD.
45189         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
45190         (posix_openpt) [OpenBSD]: New code.
45191         * lib/grantpt.c: Include <fcntl.h>.
45192         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
45193         * modules/grantpt (Depends-on): Add fcntl-h.
45195 2011-10-20  Bruno Haible  <bruno@clisp.org>
45197         posix_openpt test: Coding style.
45198         * tests/test-posix_openpt.c: Use GNU coding style.
45200 2011-10-20  Bruno Haible  <bruno@clisp.org>
45202         grantpt: Support --avoid=pt_chown.
45203         * modules/grantpt (Files): Add lib/pty-private.h.
45205 2011-10-20  Bruno Haible  <bruno@clisp.org>
45207         posix_openpt: Fix autoconf macro.
45208         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
45209         unneeded check for _getpty.
45211 2011-10-20  Bruno Haible  <bruno@clisp.org>
45213         openpty: Update comments.
45214         * lib/openpty.c: Add comments about Minix.
45216 2011-10-19  Eric Blake  <eblake@redhat.com>
45218         openpty: relax license
45219         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
45221         pt_chown: use configmake to simplify build
45222         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
45224         ptsname and others: relax license
45225         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
45226         * modules/unlockpt (License): Likewise.
45227         * modules/pt_chown (License): Likewise.
45228         * modules/ptsname (License): Likewise.
45229         * modules/ttyname_r (License): Likewise.
45231 2011-10-19  Jim Meyering  <meyering@redhat.com>
45233         posix_openpt: remove spurious #endif
45234         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
45236 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
45238         maint.mk: Respect $(build_aux) in web-manual rule.
45239         * top/maint.mk (web-manual): Find gen-announce script in user's
45240         $(build_aux) directory instead of hard-coding 'build-aux'.
45242 2011-10-19  Bruno Haible  <bruno@clisp.org>
45244         posix_openpt: Fix compilation error.
45245         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
45246         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
45247         Mention the openpty module as an alternative.
45249 2011-10-19  Bruno Haible  <bruno@clisp.org>
45251         Support for old NeXTstep 3.3 frexp().
45252         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
45253         execution time of the test to 5 seconds.
45254         Reported by Daniel Richard G. <skunk@iskunk.org>.
45256 2011-10-19  Bruno Haible  <bruno@clisp.org>
45258         Support for old NeXTstep 3.3 sed.
45259         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
45260         part, use /.../, not \|...|. Escape periods in the header file name.
45261         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
45262         Reported by Daniel Richard G. <skunk@iskunk.org>.
45264 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
45266         Support for old NeXTstep 3.3 gcc.
45267         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
45268         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
45269         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
45270         * lib/spawn.in.h (_Restrict_arr_): Likewise.
45271         * lib/regex.h (_Restrict_arr_): Likewise.
45272         * lib/regex_internal.h (re_token_t): Likewise.
45273         * lib/regexec.c (check_node_accept_bytes): Likewise.
45274         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
45276 2011-10-18  Eric Blake  <eblake@redhat.com>
45278         posix_openpt: new module
45279         * modules/posix_openpt: New module.
45280         * m4/posix_openpt.m4: New file.
45281         * lib/posix_openpt.c: Likewise.
45282         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
45283         (gl_STDLIB_H_DEFAULTS): Set defaults.
45284         * modules/stdlib (Makefile.am): Substitute macros.
45285         * lib/stdlib.in.h (posix_openpt): Declare.
45286         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
45287         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
45288         * modules/posix_openpt-tests: New test module.
45289         * tests/test-posix_openpt.c: New test.
45291 2011-10-15  Bruno Haible  <bruno@clisp.org>
45293         xstrtoll: Fix compilation failure.
45294         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
45295         from lib/strtol.c.
45296         * doc/posix-headers/limits.texi: Mention missing numerical limits on
45297         some platforms.
45298         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45300 2011-10-15  Bruno Haible  <bruno@clisp.org>
45302         vasnprintf: Optimize bit search operation.
45303         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
45304         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
45305         gl_DOUBLE_EXPONENT_LOCATION.
45306         * modules/vasnprintf (Files): Add m4/exponentd.m4.
45307         * modules/unistdio/u8-vasnprintf (Files): Likewise.
45308         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
45309         * modules/unistdio/u16-vasnprintf (Files): Likewise.
45310         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
45311         * modules/unistdio/u32-vasnprintf (Files): Likewise.
45312         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
45313         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
45314         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
45316 2011-10-15  Bruno Haible  <bruno@clisp.org>
45318         vasnprintf: Fix comments.
45319         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
45321 2011-10-14  Bruno Haible  <bruno@clisp.org>
45323         Tests for module 'integer_length_ll'.
45324         * modules/integer_length_ll-tests: New file.
45325         * tests/test-integer_length_ll.c: New file.
45327         New module 'integer_length_ll'.
45328         * lib/integer_length_ll.c: New file.
45329         * modules/integer_length_ll: New file.
45331 2011-10-14  Bruno Haible  <bruno@clisp.org>
45333         Tests for module 'integer_length_l'.
45334         * modules/integer_length_l-tests: New file.
45335         * tests/test-integer_length_l.c: New file.
45337         New module 'integer_length_l'.
45338         * lib/integer_length_l.c: New file.
45339         * modules/integer_length_l: New file.
45341 2011-10-14  Bruno Haible  <bruno@clisp.org>
45343         Tests for module 'integer_length'.
45344         * modules/integer_length-tests: New file.
45345         * tests/test-integer_length.c: New file.
45347         New module 'integer_length'.
45348         * lib/integer_length.h: New file.
45349         * lib/integer_length.c: New file.
45350         * modules/integer_length: New file.
45352 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
45354         popen: Fix dependency conditions.
45355         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
45357 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
45359         perror: Fix autoconf test.
45360         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
45361         <stdlib.h> and <string.h>.
45363 2011-10-14  Bruno Haible  <bruno@clisp.org>
45365         ffsl: Optimize on 64-bit platforms.
45366         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
45367         unrolling.
45369 2011-10-13  Bruno Haible  <bruno@clisp.org>
45371         ffsl: Optimize on 32-bit platforms.
45372         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
45373         use ffs() without a loop.
45375         ffsl, ffsll: Optimize for GCC.
45376         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
45377         * lib/ffsl.c (GCC_BUILTIN): New macro.
45378         * lib/ffsll.c (GCC_BUILTIN): Likewise.
45380 2011-10-13  Bruno Haible  <bruno@clisp.org>
45382         ffs, bcopy, memset: Support symbol renaming via config.h.
45383         * lib/ffs.c: Include <config.h>.
45384         * lib/bcopy.c: Likewise.
45385         * lib/memset.c: Likewise.
45387 2011-10-10  Bruno Haible  <bruno@clisp.org>
45389         atanl: Simplify for platforms where 'long double' == 'double'.
45390         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45391         alternative implementation.
45392         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45393         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45394         * modules/atanl (Depends-on): Add atan. Update conditions.
45396 2011-10-10  Bruno Haible  <bruno@clisp.org>
45398         acosl: Simplify for platforms where 'long double' == 'double'.
45399         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45400         alternative implementation.
45401         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45402         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45403         * modules/acosl (Depends-on): Add acos. Update conditions.
45405 2011-10-10  Bruno Haible  <bruno@clisp.org>
45407         asinl: Simplify for platforms where 'long double' == 'double'.
45408         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45409         alternative implementation.
45410         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45411         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45412         * modules/asinl (Depends-on): Add asin. Update conditions.
45414 2011-10-10  Bruno Haible  <bruno@clisp.org>
45416         tanl: Simplify for platforms where 'long double' == 'double'.
45417         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45418         implementation.
45419         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45420         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45421         * modules/tanl (Depends-on): Add tan. Update conditions.
45422         (configure.ac): Don't compile trigl.c if
45423         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45425 2011-10-10  Bruno Haible  <bruno@clisp.org>
45427         cosl: Simplify for platforms where 'long double' == 'double'.
45428         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45429         implementation.
45430         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45431         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45432         * modules/cosl (Depends-on): Add cos. Update conditions.
45433         (configure.ac): Don't compile sincosl.c and trigl.c if
45434         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45436 2011-10-10  Bruno Haible  <bruno@clisp.org>
45438         sinl: Simplify for platforms where 'long double' == 'double'.
45439         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45440         implementation.
45441         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45442         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45443         * modules/sinl (Depends-on): Add sin. Update conditions.
45444         (configure.ac): Don't compile sincosl.c and trigl.c if
45445         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45447 2011-10-10  Bruno Haible  <bruno@clisp.org>
45449         logl: Simplify for platforms where 'long double' == 'double'.
45450         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45451         implementation.
45452         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45453         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45454         * modules/logl (Depends-on): Add log. Update conditions.
45456 2011-10-10  Bruno Haible  <bruno@clisp.org>
45458         expl: Simplify for platforms where 'long double' == 'double'.
45459         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
45460         implementation.
45461         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45462         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45463         * modules/expl (Depends-on): Add exp. Update conditions.
45465 2011-10-10  Bruno Haible  <bruno@clisp.org>
45467         sqrtl: Simplify for platforms where 'long double' == 'double'.
45468         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45469         alternative implementation.
45470         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45471         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45472         * modules/sqrtl (Depends-on): Update conditions.
45474 2011-10-10  Bruno Haible  <bruno@clisp.org>
45476         ldexpl: Simplify for platforms where 'long double' == 'double'.
45477         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45478         alternative implementation.
45479         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45480         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45481         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
45483 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
45485         ffsll: set correct witness
45486         * modules/ffsll (configure.ac): Fix typo.
45488 2011-10-10  Bruno Haible  <bruno@clisp.org>
45490         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
45491         * lib/printf-frexpl.c: Include <config.h>.
45492         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45493         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
45494         second time.
45495         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
45496         gl_LONG_DOUBLE_VS_DOUBLE.
45497         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
45498         conditions.
45500 2011-10-10  Bruno Haible  <bruno@clisp.org>
45502         frexpl: Simplify for platforms where 'long double' == 'double'.
45503         * lib/frexpl.c: Include <config.h>.
45504         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45505         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45506         time.
45507         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45508         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45509         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
45510         * modules/frexpl (Depends-on): Add frexp. Update conditions.
45511         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
45512         conditions.
45514 2011-10-10  Jim Meyering  <meyering@redhat.com>
45516         test-renameat: don't leave behind a temporary file
45517         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
45518           ERROR: files left in build directory after distclean:
45519           ./gltests/test-renameat.too
45520           make[1]: *** [distcleancheck] Error 1
45521         Reported by Tom G. Christensen.
45523 2011-10-09  Bruno Haible  <bruno@clisp.org>
45525         rint: Determine RINT_LIBM correctly on AIX 7.
45526         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
45527         directly, not only through a function pointer. Also accept an optional
45528         4th argument with extra code.
45529         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
45530         rintf() call by gcc when optimizing.
45532         mathfunc.m4: Refactor.
45533         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
45534         m4 variable.
45536 2011-10-09  Bruno Haible  <bruno@clisp.org>
45538         rintl: Simplify for platforms where 'long double' == 'double'.
45539         * lib/rintl.c: Include <config.h>.
45540         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45541         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45542         time.
45543         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45544         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45545         * modules/rintl (Depends-on): Add rint. Update conditions.
45547 2011-10-09  Bruno Haible  <bruno@clisp.org>
45549         roundl: Simplify for platforms where 'long double' == 'double'.
45550         * lib/roundl.c: Include <config.h>.
45551         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45552         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45553         time.
45554         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45555         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45556         * modules/roundl (Depends-on): Add round. Update conditions.
45558 2011-10-09  Bruno Haible  <bruno@clisp.org>
45560         truncl: Simplify for platforms where 'long double' == 'double'.
45561         * lib/truncl.c: Include <config.h>.
45562         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45563         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45564         time.
45565         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45566         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45567         * modules/truncl (Depends-on): Add trunc. Update conditions.
45569 2011-10-09  Bruno Haible  <bruno@clisp.org>
45571         ceill: Simplify for platforms where 'long double' == 'double'.
45572         * lib/ceill.c: Include <config.h>.
45573         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45574         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45575         time.
45576         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45577         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45578         * modules/ceill (Depends-on): Add ceil. Update conditions.
45580 2011-10-09  Bruno Haible  <bruno@clisp.org>
45582         floorl: Simplify for platforms where 'long double' == 'double'.
45583         * lib/floorl.c: Include <config.h>.
45584         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
45585         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
45586         time.
45587         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45588         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45589         * modules/floorl (Depends-on): Add floor. Update conditions.
45591 2011-10-09  Bruno Haible  <bruno@clisp.org>
45593         rint: Fix ordering constraints.
45594         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
45595         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
45596         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
45598 2011-10-09  Bruno Haible  <bruno@clisp.org>
45600         copysignl: Simplify for platforms where 'long double' == 'double'.
45601         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
45602         alternative.
45603         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45604         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
45605         * modules/copysignl (Depends-on): Add copysign. Update conditions.
45607 2011-10-09  Bruno Haible  <bruno@clisp.org>
45609         Tests for module 'rintl'.
45610         * modules/rintl-tests: New file.
45611         * tests/test-rintl.c: New file.
45613         New module 'rintl'.
45614         * lib/math.in.h (rintl): New declaration.
45615         * lib/rintl.c: New file.
45616         * m4/rintl.m4: New file.
45617         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
45618         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
45619         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
45620         * modules/rintl: New file.
45621         * tests/test-math-c++.cc: Check the declaration of rintl.
45622         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
45623         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
45624         * doc/posix-functions/rintl.texi: Mention the new module.
45626 2011-10-09  Bruno Haible  <bruno@clisp.org>
45628         Tests for module 'rintf'.
45629         * modules/rintf-tests: New file.
45630         * tests/test-rintf.c: New file.
45632         New module 'rintf'.
45633         * lib/math.in.h (rintf): New declaration.
45634         * lib/rintf.c: New file.
45635         * m4/rintf.m4: New file.
45636         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
45637         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
45638         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
45639         * modules/rintf: New file.
45640         * tests/test-math-c++.cc: Check the declaration of rintf.
45641         * doc/posix-functions/rintf.texi: Mention the new module.
45643 2011-10-09  Bruno Haible  <bruno@clisp.org>
45645         rint: Support for MSVC.
45646         * lib/math.in.h (rint): New declaration.
45647         * lib/rint.c: New file.
45648         * m4/rint.m4: New file.
45649         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
45650         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
45651         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
45652         * modules/rint (Description): Fix.
45653         (Files): Add lib/rint.c, m4/rint.m4.
45654         (Depends-on): Add math.
45655         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
45656         gl_MATH_MODULE_INDICATOR.
45657         * tests/test-math-c++.cc: Check the declaration of rint.
45658         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
45659         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
45660         * doc/posix-functions/rint.texi: Mention the replacement provided by
45661         the module.
45663         rint tests: More tests.
45664         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
45665         minus-zero.h, infinity.h, nan.h.
45666         (main): Skip the test if the current rounding mode is not standard. Add
45667         tests for negative numbers, minus zero, infinity, NaN.
45668         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
45669         tests/nan.h.
45670         (Depends-on): Add isnand-nolibm.
45672 2011-10-09  Bruno Haible  <bruno@clisp.org>
45674         Tests for module 'copysignl'.
45675         * modules/copysignl-tests: New file.
45676         * tests/test-copysignl.c: New file.
45678         New module 'copysignl'.
45679         * lib/math.in.h (copysignl): New declaration.
45680         * lib/copysignl.c: New file.
45681         * m4/copysignl.m4: New file.
45682         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
45683         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
45684         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
45685         HAVE_COPYSIGNL.
45686         * modules/copysignl: New file.
45687         * tests/test-math-c++.cc: Check the declaration of copysignl.
45688         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
45689         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
45690         * doc/posix-functions/copysignl.texi: Mention the new module.
45692 2011-10-09  Bruno Haible  <bruno@clisp.org>
45694         Tests for module 'copysignf'.
45695         * modules/copysignf-tests: New file.
45696         * tests/test-copysignf.c: New file.
45698         New module 'copysignf'.
45699         * lib/math.in.h (copysignf): New declaration.
45700         * lib/copysignf.c: New file.
45701         * m4/copysignf.m4: New file.
45702         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
45703         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
45704         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
45705         HAVE_COPYSIGNF.
45706         * modules/copysignf: New file.
45707         * tests/test-math-c++.cc: Check the declaration of copysignf.
45708         * doc/posix-functions/copysignf.texi: Mention the new module.
45710 2011-10-09  Bruno Haible  <bruno@clisp.org>
45712         Ensure that HAVE_* variables are set to 1 before they are set to 0.
45713         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
45714         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
45715         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
45716         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
45717         gl_SIGNAL_H_DEFAULTS.
45719 2011-10-09  Bruno Haible  <bruno@clisp.org>
45721         poll: Make macro safer.
45722         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
45723         ac_cv_header_poll_h is not set.
45725 2011-10-09  Bruno Haible  <bruno@clisp.org>
45727         copysign: Provide replacement.
45728         * lib/math.in.h (copysign): New declaration.
45729         * lib/copysign.c: New file.
45730         * m4/copysign.m4: New file.
45731         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
45732         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
45733         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
45734         HAVE_COPYSIGN.
45735         * modules/copysign (Description): Clarify.
45736         (Files): Add lib/copysign.c, m4/copysign.m4.
45737         (Depends-on): Add math, signbit.
45738         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
45739         gl_MATH_MODULE_INDICATOR.
45740         * tests/test-math-c++.cc: Check the declaration of copysign.
45741         * doc/posix-functions/copysign.texi: Mention the effects of the module
45742         on Minix and MSVC.
45744 2011-10-09  Bruno Haible  <bruno@clisp.org>
45746         isinf: Ensure macro on AIX 5.1.
45747         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
45748         macro.
45749         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
45751 2011-10-09  Bruno Haible  <bruno@clisp.org>
45753         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
45754         * modules/snprintf-posix-tests (configure.ac): Require
45755         gl_LONG_DOUBLE_VS_DOUBLE.
45756         * modules/sprintf-posix-tests (configure.ac): Likewise.
45757         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
45758         * modules/vasprintf-posix-tests (configure.ac): Likewise.
45759         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
45760         * modules/vsprintf-posix-tests (configure.ac): Likewise.
45761         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
45762         tests on platforms where 'long double' is the same as 'double'.
45763         * tests/test-sprintf-posix.h (test_function): Likewise.
45764         * tests/test-vasnprintf-posix.c (test_function): Likewise.
45765         * tests/test-vasprintf-posix.c (test_function): Likewise.
45767         *printf: Fix for platforms where 'long double' == 'double'.
45768         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
45769         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
45770         * modules/dprintf-posix (Files): Add m4/math_h.m4.
45771         * modules/fprintf-posix (Files): Likewise.
45772         * modules/obstack-printf-posix (Files): Likewise.
45773         * modules/snprintf-posix (Files): Likewise.
45774         * modules/sprintf-posix (Files): Likewise.
45775         * modules/vasnprintf (Files): Likewise.
45776         * modules/vasnprintf-posix (Files): Likewise.
45777         * modules/vasprintf-posix (Files): Likewise.
45778         * modules/vdprintf-posix (Files): Likewise.
45779         * modules/vfprintf-posix (Files): Likewise.
45780         * modules/vsnprintf-posix (Files): Likewise.
45781         * modules/vsprintf-posix (Files): Likewise.
45782         * modules/unistdio/u8-vasnprintf (Files): Likewise.
45783         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
45784         * modules/unistdio/u16-vasnprintf (Files): Likewise.
45785         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
45786         * modules/unistdio/u32-vasnprintf (Files): Likewise.
45787         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
45788         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
45790         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
45791         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
45792         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
45793         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
45794         'long double'.
45795         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
45797         isinf: Fix for platforms where 'long double' == 'double'.
45798         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
45799         Don't blindly assume 80-bit 'long double'.
45801         isfinite: Fix for platforms where 'long double' == 'double'.
45802         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
45803         Don't blindly assume 80-bit 'long double'.
45805         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
45806         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
45807         * modules/isfinite-tests (configure.ac): Require
45808         gl_LONG_DOUBLE_VS_DOUBLE.
45809         * modules/isinf-tests (configure.ac): Likewise.
45810         * modules/isnan-tests (configure.ac): Likewise.
45811         * modules/isnanl-tests (configure.ac): Likewise.
45812         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
45813         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
45814         tests on platforms where 'long double' is the same as 'double'.
45815         * tests/test-isinf.c (test_isinfl): Likewise.
45816         * tests/test-isnan.c (test_long_double): Likewise.
45817         * tests/test-isnanl.h (main): Likewise.
45819 2011-10-08  Bruno Haible  <bruno@clisp.org>
45821         Tests for module 'tanhf'.
45822         * modules/tanhf-tests: New file.
45823         * tests/test-tanhf.c: New file.
45825         New module 'tanhf'.
45826         * lib/math.in.h (tanhf): New declaration.
45827         * lib/tanhf.c: New file.
45828         * m4/tanhf.m4: New file.
45829         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
45830         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
45831         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
45832         * modules/tanhf: New file.
45833         * tests/test-math-c++.cc: Check the declaration of tanhf.
45834         * doc/posix-functions/tanhf.texi: Mention the new module.
45836         tanh: Use a .m4 file.
45837         * m4/tanh.m4: New file.
45838         * modules/tanh (Files): Add it.
45839         (configure.ac): Just invoke gl_FUNC_TANH.
45841 2011-10-08  Bruno Haible  <bruno@clisp.org>
45843         Tests for module 'coshf'.
45844         * modules/coshf-tests: New file.
45845         * tests/test-coshf.c: New file.
45847         New module 'coshf'.
45848         * lib/math.in.h (coshf): New declaration.
45849         * lib/coshf.c: New file.
45850         * m4/coshf.m4: New file.
45851         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
45852         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
45853         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
45854         * modules/coshf: New file.
45855         * tests/test-math-c++.cc: Check the declaration of coshf.
45856         * doc/posix-functions/coshf.texi: Mention the new module.
45858         cosh: Use a .m4 file.
45859         * m4/cosh.m4: New file.
45860         * modules/cosh (Files): Add it.
45861         (configure.ac): Just invoke gl_FUNC_COSH.
45863 2011-10-08  Bruno Haible  <bruno@clisp.org>
45865         Tests for module 'sinhf'.
45866         * modules/sinhf-tests: New file.
45867         * tests/test-sinhf.c: New file.
45869         New module 'sinhf'.
45870         * lib/math.in.h (sinhf): New declaration.
45871         * lib/sinhf.c: New file.
45872         * m4/sinhf.m4: New file.
45873         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
45874         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
45875         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
45876         * modules/sinhf: New file.
45877         * tests/test-math-c++.cc: Check the declaration of sinhf.
45878         * doc/posix-functions/sinhf.texi: Mention the new module.
45880         sinh: Use a .m4 file.
45881         * m4/sinh.m4: New file.
45882         * modules/sinh (Files): Add it.
45883         (configure.ac): Just invoke gl_FUNC_SINH.
45885 2011-10-08  Bruno Haible  <bruno@clisp.org>
45887         Tests for module 'atan2f'.
45888         * modules/atan2f-tests: New file.
45889         * tests/test-atan2f.c: New file.
45891         New module 'atan2f'.
45892         * lib/math.in.h (atan2f): New declaration.
45893         * lib/atan2f.c: New file.
45894         * m4/atan2f.m4: New file.
45895         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
45896         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
45897         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
45898         * modules/atan2f: New file.
45899         * tests/test-math-c++.cc: Check the declaration of atan2f.
45900         * doc/posix-functions/atan2f.texi: Mention the new module.
45902         atan2: Use a .m4 file.
45903         * m4/atan2.m4: New file.
45904         * modules/atan2 (Files): Add it.
45905         (configure.ac): Just invoke gl_FUNC_ATAN2.
45907 2011-10-08  Bruno Haible  <bruno@clisp.org>
45909         Tests for module 'atanf'.
45910         * modules/atanf-tests: New file.
45911         * tests/test-atanf.c: New file.
45913         New module 'atanf'.
45914         * lib/math.in.h (atanf): New declaration.
45915         * lib/atanf.c: New file.
45916         * m4/atanf.m4: New file.
45917         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
45918         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
45919         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
45920         * modules/atanf: New file.
45921         * tests/test-math-c++.cc: Check the declaration of atanf.
45922         * doc/posix-functions/atanf.texi: Mention the new module.
45924         atan: Use a .m4 file.
45925         * m4/atan.m4: New file.
45926         * modules/atan (Files): Add it.
45927         (configure.ac): Just invoke gl_FUNC_ATAN.
45929 2011-10-08  Bruno Haible  <bruno@clisp.org>
45931         Tests for module 'acosf'.
45932         * modules/acosf-tests: New file.
45933         * tests/test-acosf.c: New file.
45935         New module 'acosf'.
45936         * lib/math.in.h (acosf): New declaration.
45937         * lib/acosf.c: New file.
45938         * m4/acosf.m4: New file.
45939         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
45940         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
45941         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
45942         * modules/acosf: New file.
45943         * tests/test-math-c++.cc: Check the declaration of acosf.
45944         * doc/posix-functions/acosf.texi: Mention the new module.
45946         acos: Use a .m4 file.
45947         * m4/acos.m4: New file.
45948         * modules/acos (Files): Add it.
45949         (configure.ac): Just invoke gl_FUNC_ACOS.
45951 2011-10-08  Bruno Haible  <bruno@clisp.org>
45953         Tests for module 'asinf'.
45954         * modules/asinf-tests: New file.
45955         * tests/test-asinf.c: New file.
45957         New module 'asinf'.
45958         * lib/math.in.h (asinf): New declaration.
45959         * lib/asinf.c: New file.
45960         * m4/asinf.m4: New file.
45961         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
45962         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
45963         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
45964         * modules/asinf: New file.
45965         * tests/test-math-c++.cc: Check the declaration of asinf.
45966         * doc/posix-functions/asinf.texi: Mention the new module.
45968         asin: Use a .m4 file.
45969         * m4/asin.m4: New file.
45970         * modules/asin (Files): Add it.
45971         (configure.ac): Just invoke gl_FUNC_ASIN.
45973 2011-10-08  Bruno Haible  <bruno@clisp.org>
45975         Tests for module 'tanf'.
45976         * modules/tanf-tests: New file.
45977         * tests/test-tanf.c: New file.
45979         New module 'tanf'.
45980         * lib/math.in.h (tanf): New declaration.
45981         * lib/tanf.c: New file.
45982         * m4/tanf.m4: New file.
45983         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
45984         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
45985         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
45986         * modules/tanf: New file.
45987         * tests/test-math-c++.cc: Check the declaration of tanf.
45988         * doc/posix-functions/tanf.texi: Mention the new module.
45990         tan: Use a .m4 file.
45991         * m4/tan.m4: New file.
45992         * modules/tan (Files): Add it.
45993         (configure.ac): Just invoke gl_FUNC_TAN.
45995 2011-10-08  Bruno Haible  <bruno@clisp.org>
45997         Tests for module 'cosf'.
45998         * modules/cosf-tests: New file.
45999         * tests/test-cosf.c: New file.
46001         New module 'cosf'.
46002         * lib/math.in.h (cosf): New declaration.
46003         * lib/cosf.c: New file.
46004         * m4/cosf.m4: New file.
46005         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
46006         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
46007         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
46008         * modules/cosf: New file.
46009         * tests/test-math-c++.cc: Check the declaration of cosf.
46010         * doc/posix-functions/cosf.texi: Mention the new module.
46012         cos: Use a .m4 file.
46013         * m4/cos.m4: New file.
46014         * modules/cos (Files): Add it.
46015         (configure.ac): Just invoke gl_FUNC_COS.
46017 2011-10-08  Bruno Haible  <bruno@clisp.org>
46019         Tests for module 'sinf'.
46020         * modules/sinf-tests: New file.
46021         * tests/test-sinf.c: New file.
46023         New module 'sinf'.
46024         * lib/math.in.h (sinf): New declaration.
46025         * lib/sinf.c: New file.
46026         * m4/sinf.m4: New file.
46027         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
46028         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
46029         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
46030         * modules/sinf: New file.
46031         * tests/test-math-c++.cc: Check the declaration of sinf.
46032         * doc/posix-functions/sinf.texi: Mention the new module.
46034         sin: Use a .m4 file.
46035         * m4/sin.m4: New file.
46036         * modules/sin (Files): Add it.
46037         (configure.ac): Just invoke gl_FUNC_SIN.
46039 2011-10-08  Bruno Haible  <bruno@clisp.org>
46041         Tests for module 'powf'.
46042         * modules/powf-tests: New file.
46043         * tests/test-powf.c: New file.
46045         New module 'powf'.
46046         * lib/math.in.h (powf): New declaration.
46047         * lib/powf.c: New file.
46048         * m4/powf.m4: New file.
46049         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
46050         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
46051         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
46052         * modules/powf: New file.
46053         * tests/test-math-c++.cc: Check the declaration of powf.
46054         * doc/posix-functions/powf.texi: Mention the new module.
46056         pow: Use a .m4 file.
46057         * m4/pow.m4: New file.
46058         * modules/pow (Files): Add it.
46059         (configure.ac): Just invoke gl_FUNC_POW.
46061 2011-10-08  Bruno Haible  <bruno@clisp.org>
46063         Tests for module 'log10f'.
46064         * modules/log10f-tests: New file.
46065         * tests/test-log10f.c: New file.
46067         New module 'log10f'.
46068         * lib/math.in.h (log10f): New declaration.
46069         * lib/log10f.c: New file.
46070         * m4/log10f.m4: New file.
46071         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
46072         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
46073         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
46074         * modules/log10f: New file.
46075         * tests/test-math-c++.cc: Check the declaration of log10f.
46076         * doc/posix-functions/log10f.texi: Mention the new module.
46078         log10: Use a .m4 file.
46079         * m4/log10.m4: New file.
46080         * modules/log10 (Files): Add it.
46081         (configure.ac): Just invoke gl_FUNC_LOG10.
46083 2011-10-08  Bruno Haible  <bruno@clisp.org>
46085         Tests for module 'logf'.
46086         * modules/logf-tests: New file.
46087         * tests/test-logf.c: New file.
46089         New module 'logf'.
46090         * lib/math.in.h (logf): New declaration.
46091         * lib/logf.c: New file.
46092         * m4/logf.m4: New file.
46093         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
46094         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
46095         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
46096         * modules/logf: New file.
46097         * tests/test-math-c++.cc: Check the declaration of logf.
46098         * doc/posix-functions/logf.texi: Mention the new module.
46100         log: Use a .m4 file.
46101         * m4/log.m4: New file.
46102         * modules/log (Files): Add it.
46103         (configure.ac): Just invoke gl_FUNC_LOG.
46105 2011-10-08  Bruno Haible  <bruno@clisp.org>
46107         Tests for module 'expf'.
46108         * modules/expf-tests: New file.
46109         * tests/test-expf.c: New file.
46111         New module 'expf'.
46112         * lib/math.in.h (expf): New declaration.
46113         * lib/expf.c: New file.
46114         * m4/expf.m4: New file.
46115         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
46116         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
46117         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
46118         * modules/expf: New file.
46119         * tests/test-math-c++.cc: Check the declaration of expf.
46120         * doc/posix-functions/expf.texi: Mention the new module.
46122         exp: Use a .m4 file.
46123         * m4/exp.m4: New file.
46124         * modules/exp (Files): Add it.
46125         (configure.ac): Just invoke gl_FUNC_EXP.
46127 2011-10-08  Bruno Haible  <bruno@clisp.org>
46129         Tests for module 'sqrtf'.
46130         * modules/sqrtf-tests: New file.
46131         * tests/test-sqrtf.c: New file.
46133         New module 'sqrtf'.
46134         * lib/math.in.h (sqrtf): New declaration.
46135         * lib/sqrtf.c: New file.
46136         * m4/sqrtf.m4: New file.
46137         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
46138         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
46139         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
46140         * modules/sqrtf: New file.
46141         * tests/test-math-c++.cc: Check the declaration of sqrtf.
46142         * doc/posix-functions/sqrtf.texi: Mention the new module.
46144 2011-10-08  Bruno Haible  <bruno@clisp.org>
46146         Tests: Avoid link failures w.r.t. libintl.
46147         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
46148         $(LIBINTL).
46149         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
46150         $(LIBINTL).
46151         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
46152         against $(LIBINTL).
46153         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
46154         $(LIBINTL).
46155         * modules/openat-tests (Makefile.am): Link test-fchmodat against
46156         $(LIBINTL).
46157         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
46159 2011-10-08  Bruno Haible  <bruno@clisp.org>
46161         pow tests: Defeat compiler optimizations.
46162         * tests/test-pow.c (main): Assign arguments to x and y before use.
46164 2011-10-08  Bruno Haible  <bruno@clisp.org>
46166         gnulib-tool: Improve last commit.
46167         * gnulib-tool (func_modules_transitive_closure): Simplify code.
46168         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
46169         ignore dependencies that are not among the modules list.
46171 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
46173         gnulib-tool: don't follow dependencies to avoided modules
46174         This fixes a bug that is related to the previous one.
46175         * gnulib-tool (func_modules_transitive_closure)
46176         (func_emit_autoconf_snippets):
46177         Check whether a dependency is acceptable before using it.
46178         (--extract-dependencies): Report an error if --avoid is also used,
46179         since this combination of options is not yet supported.
46181         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
46182         Problem reported by Peter Dyballa in
46183         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
46184         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
46185         when echoing "$condition".
46187 2011-10-07  Bruno Haible  <bruno@clisp.org>
46189         Fix documentation about math functions on MacOS X.
46190         * doc/posix-functions/exp2.texi: Don't say the function is missing on
46191         MacOS X 10.5.
46192         * doc/posix-functions/fdim.texi: Likewise.
46193         * doc/posix-functions/feclearexcept.texi: Likewise.
46194         * doc/posix-functions/fegetenv.texi: Likewise.
46195         * doc/posix-functions/fegetround.texi: Likewise.
46196         * doc/posix-functions/feholdexcept.texi: Likewise.
46197         * doc/posix-functions/feraiseexcept.texi: Likewise.
46198         * doc/posix-functions/fesetenv.texi: Likewise.
46199         * doc/posix-functions/fesetround.texi: Likewise.
46200         * doc/posix-functions/fetestexcept.texi: Likewise.
46201         * doc/posix-functions/feupdateenv.texi: Likewise.
46202         * doc/posix-functions/fmax.texi: Likewise.
46203         * doc/posix-functions/fmin.texi: Likewise.
46204         * doc/posix-functions/log2.texi: Likewise.
46205         * doc/posix-functions/modff.texi: Likewise.
46206         * doc/posix-functions/nan.texi: Likewise.
46207         * doc/posix-functions/nanf.texi: Likewise.
46208         * doc/posix-functions/nextafterf.texi: Likewise.
46209         * doc/posix-functions/remquo.texi: Likewise.
46211 2011-10-07  Bruno Haible  <bruno@clisp.org>
46213         modff: Drop assumption about library that defines modff.
46214         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
46215         AC_CHECK_FUNCS.
46216         * modules/modff (Files): Add m4/mathfunc.m4.
46218 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
46220         raise tests: Avoid a GCC warning.
46221         * tests/test-raise.c (handler): Use _Noreturn.
46223 2011-10-07  Bruno Haible  <bruno@clisp.org>
46225         Tests for module 'ldexpf'.
46226         * modules/ldexpf-tests: New file.
46227         * tests/test-ldexpf.c: New file.
46229         New module 'ldexpf'.
46230         * lib/math.in.h (ldexpf): New declaration.
46231         * lib/ldexpf.c: New file.
46232         * m4/ldexpf.m4: New file.
46233         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
46234         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
46235         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
46236         * modules/ldexpf: New file.
46237         * tests/test-math-c++.cc: Check the declaration of ldexpf.
46238         * doc/posix-functions/ldexpf.texi: Mention the new module.
46240 2011-10-06  Bruno Haible  <bruno@clisp.org>
46242         frexpf: Work around problems on IRIX and mingw.
46243         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
46244         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
46245         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
46246         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
46247         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
46248         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
46249         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
46251 2011-10-06  Bruno Haible  <bruno@clisp.org>
46253         fabsf: Drop assumption about library that defines fabsf.
46254         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
46255         AC_CHECK_FUNCS.
46256         * modules/fabsf (Files): Add m4/mathfunc.m4.
46258 2011-10-06  Bruno Haible  <bruno@clisp.org>
46260         frexpf: Drop assumption about library that defines frexpf.
46261         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
46262         'int *', 'float *', 'long double *', 'float', 'long double'.
46263         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
46264         AC_CHECK_FUNCS.
46265         * modules/frexpf (Files): Add m4/mathfunc.m4.
46267         Tests for module 'frexpf'.
46268         * modules/frexpf-tests: New file.
46269         * tests/test-frexpf.c: New file.
46271         New module 'frexpf'.
46272         * lib/math.in.h (frexpf): New declaration.
46273         * lib/frexpf.c: New file.
46274         * m4/frexpf.m4: New file.
46275         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
46276         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
46277         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
46278         * modules/frexpf: New file.
46279         * tests/test-math-c++.cc: Check the declaration of frexpf.
46280         * doc/posix-functions/frexpf.texi: Mention the new module.
46282 2011-10-06  Bruno Haible  <bruno@clisp.org>
46284         math: Sort function declarations of math.in.h.
46285         * lib/math.in.h (frexp, logb): Move declarations.
46287 2011-10-05  Bruno Haible  <bruno@clisp.org>
46289         Tests for module 'modff'.
46290         * modules/modff-tests: New file.
46291         * tests/test-modff.c: New file.
46293         New module 'modff'.
46294         * lib/math.in.h (modff): New declaration.
46295         * lib/modff.c: New file.
46296         * m4/modff.m4: New file.
46297         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
46298         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
46299         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
46300         * modules/modff: New file.
46301         * tests/test-math-c++.cc: Check the declaration of modff.
46302         * doc/posix-functions/modff.texi: Mention the new module.
46304         modf tests: Make test sharper.
46305         * tests/test-modf.c (main): Strengthen upper bound.
46307         modf: Use a .m4 file.
46308         * m4/modf.m4: New file.
46309         * modules/modf (Files): Add it.
46310         (configure.ac): Just invoke gl_FUNC_MODF.
46312 2011-10-05  Bruno Haible  <bruno@clisp.org>
46314         Tests for module 'fmodf'.
46315         * modules/fmodf-tests: New file.
46316         * tests/test-fmodf.c: New file.
46318         New module 'fmodf'.
46319         * lib/math.in.h (fmodf): New declaration.
46320         * lib/fmodf.c: New file.
46321         * m4/fmodf.m4: New file.
46322         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
46323         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
46324         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
46325         * modules/fmodf: New file.
46326         * tests/test-math-c++.cc: Check the declaration of fmodf.
46327         * doc/posix-functions/fmodf.texi: Mention the new module.
46329         fmod: Use a .m4 file.
46330         * m4/fmod.m4: New file.
46331         * modules/fmod (Files): Add it.
46332         (configure.ac): Just invoke gl_FUNC_FMOD.
46334 2011-10-05  Bruno Haible  <bruno@clisp.org>
46336         Tests for module 'fabsf'.
46337         * modules/fabsf-tests: New file.
46338         * tests/test-fabsf.c: New file.
46340         New module 'fabsf'.
46341         * lib/math.in.h (fabsf): New declaration.
46342         * lib/fabsf.c: New file.
46343         * m4/fabsf.m4: New file.
46344         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
46345         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
46346         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
46347         * modules/fabsf: New file.
46348         * tests/test-math-c++.cc: Check the declaration of fabsf.
46349         * doc/posix-functions/fabsf.texi: Mention the new module.
46351         fabs: Use a .m4 file.
46352         * m4/fabs.m4: New file.
46353         * modules/fabs (Files): Add it.
46354         (configure.ac): Just invoke gl_FUNC_FABS.
46356 2011-10-05  Jim Meyering  <meyering@redhat.com>
46358         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
46359         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
46360         ls -lL regression introduced in coreutils-8.12, it does so at the
46361         cost of an additional stat call in the common case.  Besides, now
46362         that the kernel change that prompted commit 95f7c57f has been reverted
46363         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
46364         we have no use for commit 95f7c57f, "file-has-acl: use
46365         acl_extended_file_nofollow if available".
46367 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
46369         file-has-acl: revert unintended change in behavior of ls -L
46370         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
46371         derived from...
46372         (file_has_acl): ...code here.  Call it.
46373         This problem was introduced with 2011-07-22 commit 95f7c57f,
46374         "file-has-acl: use acl_extended_file_nofollow if available".
46375         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
46377 2011-10-03  Bruno Haible  <bruno@clisp.org>
46379         poll: Avoid link errors on MSVC.
46380         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
46381         * modules/poll (Depends-on): Add sockets.
46382         (Link): New section.
46383         * NEWS: Mention the change.
46384         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
46385         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
46386         $(LIB_POLL) instead of $(LIBSOCKET).
46388 2011-10-03  Bruno Haible  <bruno@clisp.org>
46390         sys_select tests: Fix link error on MSVC 9.
46391         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
46392         with $(LIB_SELECT) instead of $(LIBSOCKET).
46394 2011-10-03  Bruno Haible  <bruno@clisp.org>
46396         sys_select: Fix compilation error on mingw.
46397         * lib/sys_select.in.h: On native Windows, include <io.h>.
46399 2011-10-03  Bruno Haible  <bruno@clisp.org>
46401         wmemset: Support for MSVC.
46402         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
46403         whether wmemset() exists.
46405 2011-10-03  Bruno Haible  <bruno@clisp.org>
46407         wmemmove: Support for MSVC.
46408         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
46409         whether wmemmove() exists.
46411 2011-10-03  Bruno Haible  <bruno@clisp.org>
46413         wmemcpy: Support for MSVC.
46414         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
46415         whether wmemcpy() exists.
46417 2011-10-03  Bruno Haible  <bruno@clisp.org>
46419         wmemcmp: Support for MSVC.
46420         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
46421         whether wmemcmp() exists.
46423 2011-10-03  Bruno Haible  <bruno@clisp.org>
46425         wmemchr: Support for MSVC.
46426         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
46427         whether wmemchr() exists.
46429 2011-10-03  Bruno Haible  <bruno@clisp.org>
46431         glthread/*, strsignal: Support for MSVC.
46432         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
46433         including <winsock.h> on MSVC 9.
46434         * lib/glthread/lock.h: Likewise.
46435         * lib/glthread/thread.h: Likewise.
46436         * lib/glthread/tls.h: Likewise.
46437         * lib/glthread/yield.h: Likewise.
46438         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
46439         if HAVE_UNISTD_H is false.
46440         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
46442 2011-10-03  Bruno Haible  <bruno@clisp.org>
46444         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
46445         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
46446         Set to 100000.
46448 2011-10-03  Bruno Haible  <bruno@clisp.org>
46450         acl: Fix specification.
46451         * lib/file-has-acl.c (file_has_acl): Fix specification.
46453 2011-10-03  Bruno Haible  <bruno@clisp.org>
46455         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
46456         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
46457         (compute_curr_prefix, shared_library_fullname,
46458         find_shared_library_fullname, get_shared_library_fullname, relocate):
46459         Use it together with PIC && INSTALLDIR.
46460         Reported by <jojelino@gmail.com>
46461         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
46463 2011-10-01  Jim Meyering  <meyering@redhat.com>
46465         maint.mk: adjust a release-related rule not to require use of gzip
46466         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
46467         Instead, check each file in $(DIST_ARCHIVES).  This is better for
46468         projects that build only .tar.xz files.  Also fix an erroneous test.
46470         test-linkat: don't leave behind a temporary file
46471         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
46472         Otherwise, coreutils' "make distcheck" would fail with this:
46473           Only in /c/cu/tests/torture/coreutils/test/\
46474             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
46475           make[2]: *** [my-distcheck] Error 1
46477         float, math: add omitted file
46478         * lib/itold.c: Add file, required for yesterday's float change.
46480 2011-10-01  Bruno Haible  <bruno@clisp.org>
46482         isinf: Fix for OpenBSD/x86.
46483         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
46484         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
46485         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
46487 2011-10-01  Bruno Haible  <bruno@clisp.org>
46489         isfinite: Fix syntax error in configure test.
46490         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
46492         isfinite: Fix typo.
46493         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
46494         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
46496 2011-10-01  Bruno Haible  <bruno@clisp.org>
46498         nonblocking tests: Fix test failure on Linux/IA-64.
46499         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
46500         Set to 270000.
46502 2011-10-01  Bruno Haible  <bruno@clisp.org>
46504         mkfifoat tests: Fix a test failure on mingw.
46505         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
46506         with error ENOSYS.
46508 2011-09-30  Bruno Haible  <bruno@clisp.org>
46510         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
46511         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
46512         'long double'. Set REPLACE_ITOLD.
46513         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
46514         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
46515         * lib/itold.c: New file.
46516         * modules/float (Files): Add lib/itold.c.
46517         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
46518         (Makefile.am): Substitute REPLACE_ITOLD.
46519         * modules/math (Depends-on): Add float.
46520         (Makefile.am): Substitute REPLACE_ITOLD.
46521         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
46522         * doc/posix-headers/math.texi: Likewise.
46523         * doc/posix-functions/logl.texi: Likewise.
46525 2011-09-30  Bruno Haible  <bruno@clisp.org>
46527         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
46528         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
46529         Set to 140000.
46531 2011-09-30  Bruno Haible  <bruno@clisp.org>
46533         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
46534         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
46535         invocation, say "right after AC_PROG_CC_STDC", not "right after
46536         AC_PROG_CC".
46537         Reported by Gary V. Vaughan <gary@gnu.org>.
46539 2011-09-30  Bruno Haible  <bruno@clisp.org>
46541         Centralize C99 requirement.
46542         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
46543         * modules/stdarg (configure.ac-early): Invoke it instead of
46544         AC_PROG_CC_STDC.
46545         Reported by Gary V. Vaughan and Paul Eggert.
46547 2011-09-29  Bruno Haible  <bruno@clisp.org>
46549         float: Fix LDBL_MAX value on Linux/PowerPC.
46550         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
46551         on Linux/PowerPC.
46552         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
46553         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
46554         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
46555         platform.
46556         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
46558 2011-09-29  Bruno Haible  <bruno@clisp.org>
46560         doc: Improve doc about gl_EARLY.
46561         * doc/gnulib-tool.texi (Initial import): Mention where to place an
46562         AC_PROG_CC_STDC invocation.
46563         Reported by Gary V. Vaughan <gary@gnu.org>.
46565 2011-09-28  Bruno Haible  <bruno@clisp.org>
46567         fgetc, fputc, fread, fwrite tests: Fix link error.
46568         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
46569         on non-MSVC platforms.
46570         * tests/test-fputc.c (main): Likewise.
46571         * tests/test-fread.c (main): Likewise.
46572         * tests/test-fwrite.c (main): Likewise.
46573         Reported by Jim Meyering.
46575 2011-09-27  Bruno Haible  <bruno@clisp.org>
46577         fputc, fwrite tests: Avoid test failure on MSVC.
46578         * tests/test-fgetc.c: Include msvc-inval.h.
46579         (main): Invoke gl_msvc_inval_ensure_handler.
46580         * tests/test-fputc.c: Include msvc-inval.h.
46581         (main): Invoke gl_msvc_inval_ensure_handler.
46582         * tests/test-fread.c: Include msvc-inval.h.
46583         (main): Invoke gl_msvc_inval_ensure_handler.
46584         * tests/test-fwrite.c: Include msvc-inval.h.
46585         (main): Invoke gl_msvc_inval_ensure_handler.
46586         * modules/fgetc-tests (Depends-on): Add msvc-inval.
46587         * modules/fputc-tests (Depends-on): Likewise.
46588         * modules/fread-tests (Depends-on): Likewise.
46589         * modules/fwrite-tests (Depends-on): Likewise.
46591 2011-09-27  Bruno Haible  <bruno@clisp.org>
46593         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
46594         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
46595         (raise): Remove older, duplicated declaration.
46596         (_gl_raise_SIGPIPE): New declaration.
46597         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
46598         (rpl_raise): Remove function.
46599         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
46600         a gnulib-defined SIGPIPE here.
46601         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
46602         'sigprocmask' has detected missing signal-blocking and the module
46603         'sigpipe' is enabled.
46604         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
46606 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
46608         base64-tests: avoid memory leak
46609         * tests/test-base64.c (main): Plug memory leak.
46611         base32: new module
46612         * modules/base32: New module.
46613         * lib/base32.c: New file.
46614         * lib/base32.h: Likewise.
46615         * m4/base32.m4: Likewise.
46616         * modules/base32-tests: New test.
46617         * tests/test-base32.c: Likewise.
46618         * MODULES.html.sh (Misc): Mention it.
46620 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
46622         gnulib: use more-standard license notice wording
46623         * gnulib-tool (func_emit_copyright_notice): When emitting a
46624         license notice into a file, use the standard wording as suggested
46625         by the current information for GNU maintainers, except say "file"
46626         rather than "program".  The new wording gives a license version
46627         number, which addresses an issue raised by Glenn Morris in
46628         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
46629         * m4/onceonly.m4: Use that same wording here, too.
46631         dup2: minor simplification
46632         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
46633         as lib/dup2.c no longer uses 'inline'.
46635 2011-09-25  Bruno Haible  <bruno@clisp.org>
46637         strings: Fix compilation error on MSVC.
46638         * lib/strings.in.h: Include <stddef.h> for size_t.
46640 2011-09-25  Bruno Haible  <bruno@clisp.org>
46642         fflush et al.: Document limitation on MSVC.
46643         * doc/posix-functions/fflush.texi: Document possible crash in handling
46644         mode other than DEFAULT_HANDLING.
46645         * doc/posix-functions/fgetc.texi: Likewise.
46646         * doc/posix-functions/fputc.texi: Likewise.
46647         * doc/posix-functions/fread.texi: Likewise.
46648         * doc/posix-functions/fwrite.texi: Likewise.
46650 2011-09-25  Bruno Haible  <bruno@clisp.org>
46652         msvc-inval: Allow three invalid parameter handling modes.
46653         * lib/msvc-inval.h: Don't include <stdlib.h> here.
46654         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
46655         macros.
46656         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
46657         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
46658         SANE_LIBRARY_HANDLING as a no-op.
46659         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
46660         <stdlib.h>.
46661         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
46663 2011-09-25  Bruno Haible  <bruno@clisp.org>
46665         msvc-inval: Make handler multithread-safe.
46666         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
46667         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
46668         declarations.
46669         (gl_msvc_inval_current): New declaration.
46670         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
46671         Operate on the structure returned by gl_msvc_inval_current().
46672         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
46673         Remove varaiables.
46674         (tls_index, tls_initialized): New variables.
46675         (not_per_thread): New variable.
46676         (gl_msvc_inval_current): New function.
46677         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
46678         returned by gl_msvc_inval_current().
46680 2011-09-25  Bruno Haible  <bruno@clisp.org>
46682         msvc-inval: Install handler globally.
46683         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
46684         !_MSC_VER.
46685         (gl_msvc_invalid_parameter_handler): Remove declaration.
46686         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
46687         declarations.
46688         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
46689         Install the handler globally, don't uninstall it.
46690         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
46691         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
46692         currently valid, call RaiseException instead.
46693         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
46694         for !_MSC_VER.
46696 2011-09-25  Bruno Haible  <bruno@clisp.org>
46698         strerror_r-posix: Fix for MSVC 9.
46699         * lib/strerror_r.c (local_snprintf): New function.
46700         (snprintf): Define to local_snprintf, not to _snprintf.
46702 2011-09-25  Bruno Haible  <bruno@clisp.org>
46704         ftruncate: Support for MSVC 9.
46705         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
46706         (chsize_nothrow): New function.
46707         (chsize): Redefine as a macro.
46708         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
46709         * modules/ftruncate (Depends-on): Add msvc-inval.
46711 2011-09-25  Bruno Haible  <bruno@clisp.org>
46713         New module 'fstat'.
46714         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
46715         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
46716         * lib/fchdir.c (rpl_fstat): Remove function.
46717         * m4/fstat.m4: New file.
46718         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
46719         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
46720         declared.
46721         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
46722         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
46723         * modules/fstat: New file.
46724         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
46725         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
46726         is set.
46727         * doc/posix-functions/fstat.texi: Mention the new module and the
46728         problem on MSVC.
46729         * NEWS: Mention the change.
46730         * modules/acl (Depends-on): Add fstat.
46731         * modules/chdir-safer (Depends-on): Likewise.
46732         * modules/chown (Depends-on): Likewise.
46733         * modules/copy-file (Depends-on): Likewise.
46734         * modules/fchdir (Depends-on): Likewise.
46735         * modules/fdopendir (Depends-on): Likewise.
46736         * modules/fopen (Depends-on): Likewise.
46737         * modules/fts (Depends-on): Likewise.
46738         * modules/getcwd (Depends-on): Likewise.
46739         * modules/isapipe (Depends-on): Likewise.
46740         * modules/linkat (Depends-on): Likewise.
46741         * modules/lseek (Depends-on): Likewise.
46742         * modules/mkdir-p (Depends-on): Likewise.
46743         * modules/open (Depends-on): Likewise.
46744         * modules/openat (Depends-on): Likewise.
46745         * modules/read-file (Depends-on): Likewise.
46746         * modules/renameat (Depends-on): Likewise.
46747         * modules/utimens (Depends-on): Likewise.
46749 2011-09-25  Bruno Haible  <bruno@clisp.org>
46751         linkat: Fix compilation on MSVC 9.
46752         * lib/linkat.c: Don't include <stdint.h>.
46754 2011-09-25  Bruno Haible  <bruno@clisp.org>
46756         fclose: Support for MSVC 9.
46757         * lib/fclose.c: Include msvc-inval.h.
46758         (fclose_nothrow): New function.
46759         (rpl_fclose): Use it.
46760         * modules/fclose (Depends-on): Add msvc-inval.
46761         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
46763 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
46765         dup2: minor simplifications
46766         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
46767         that it's a performance win.
46768         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
46769         ! defined __CYGWIN__)" to "ifdef F_GETFL".
46771 2011-09-24  Jim Meyering  <meyering@redhat.com>
46773         test-futimens: avoid a warning from gcc -Wshadow
46774         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
46775         to avoid a shadowing warning.
46777 2011-09-24  Bruno Haible  <bruno@clisp.org>
46779         fdopen: Support for MSVC 9.
46780         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
46781         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
46782         * lib/fdopen.c: Include msvc-inval.h.
46783         (fdopen_nothrow): New function.
46784         (rpl_fdopen): Use it.
46785         * modules/fdopen (Depends-on): Add msvc-inval.
46786         * modules/fclose-tests (Depends-on): Add fdopen.
46787         * modules/fflush-tests (Depends-on): Likewise.
46788         * modules/fgetc-tests (Depends-on): Likewise.
46789         * modules/fputc-tests (Depends-on): Likewise.
46790         * modules/fread-tests (Depends-on): Likewise.
46791         * modules/freopen-tests (Depends-on): Likewise.
46792         * modules/fseeko-tests (Depends-on): Likewise.
46793         * modules/ftello-tests (Depends-on): Likewise.
46794         * modules/fwrite-tests  (Depends-on): Likewise.
46795         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
46797 2011-09-24  Bruno Haible  <bruno@clisp.org>
46799         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
46800         * modules/fgetc-tests (Depends-on): Add unistd.
46801         * modules/fputc-tests (Depends-on): Likewise.
46802         * modules/fread-tests (Depends-on): Likewise.
46803         * modules/fwrite-tests (Depends-on): Likewise.
46805 2011-09-24  Bruno Haible  <bruno@clisp.org>
46807         dup: Simplify autoconf test.
46808         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
46809         on gl_MSVC_INVAL's result.
46811 2011-09-24  Bruno Haible  <bruno@clisp.org>
46813         Tests for function fwrite().
46814         * modules/fwrite-tests: New file.
46815         * tests/test-fwrite.c: New file.
46816         * modules/stdio-tests (Depends-on): Add fwrite-tests.
46818         Tests for function fread().
46819         * modules/fread-tests: New file.
46820         * tests/test-fread.c: New file.
46821         * modules/stdio-tests (Depends-on): Add fread-tests.
46823         Activate fputc tests.
46824         * modules/stdio-tests (Depends-on): Add fputc-tests.
46826         Enhance fgetc, fputc tests.
46827         * tests/test-fgetc.c (main): Also test the stream's error indicator.
46828         * tests/test-fputc.c (main): Likewise.
46830 2011-09-24  Bruno Haible  <bruno@clisp.org>
46832         write: Support for MSVC 9.
46833         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
46834         is not 1.
46835         * lib/write.c (write_nothrow): New function.
46836         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
46837         not 1. Use write_nothrow.
46838         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
46839         invalid parameter handler.
46840         (gl_PREREQ_WRITE): New macro.
46841         * modules/write (Depends-on): Add msvc-inval.
46842         (configure.ac): Invoke gl_PREREQ_WRITE.
46843         * doc/posix-functions/write.texi: Mention the problem on MSVC.
46845 2011-09-24  Bruno Haible  <bruno@clisp.org>
46847         read: Fix last commit.
46848         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
46850 2011-09-24  Bruno Haible  <bruno@clisp.org>
46852         dup2: Fix last commit.
46853         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
46854         (rpl_dup2): Disable fcntl workaround on native Windows.
46856         sigprocmask: Make code safer.
46857         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
46858         section that changes macro definitions for this compilation unit.
46860 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
46862         dup2: clarify by coalescing Windows-specific material
46863         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
46864         "msvc-nothrow.h"' to the Windows-specific section, so that the
46865         Emacs source need not contain these include files.
46866         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
46867         Windows-specific fixes into this function rather than just the
46868         nothrow fix, as this shortens and clarifies the code.  Always
46869         define as a function, as that's a bit cleaner than having it be
46870         sometimes a function and sometimes a macro.
46871         (rpl_dup2): Move the Windows-specific stuff out of here and into
46872         ms_windows_dup2.  Don't protect the Haiku-related fix with
46873         "#if !defined __linux__", as the same code also works around
46874         a Linux kernel bug, and it doesn't add any system calls on any
46875         platform.  Add comment about FreeBSD 6.1.
46877         sigprocmask: move #include directive
46878         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
46879         Windows-specific section, so that the Emacs source need not
46880         contain msvc-inval.h.
46882 2011-09-23  Bruno Haible  <bruno@clisp.org>
46884         read: Support for MSVC 9.
46885         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
46886         is not 1.
46887         * lib/read.c (read_nothrow): New function.
46888         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
46889         read_nothrow.
46890         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
46891         invalid parameter handler.
46892         (gl_PREREQ_READ): New macro.
46893         * modules/read (Depends-on): Add msvc-inval.
46894         (configure.ac): Invoke gl_PREREQ_READ.
46895         * doc/posix-functions/read.texi: Mention the problem on MSVC.
46897 2011-09-23  Bruno Haible  <bruno@clisp.org>
46899         close: Support for MSVC 9.
46900         * lib/close.c: Include <errno.h>, msvc-inval.h.
46901         (close_nothrow): New function.
46902         (rpl_close): Use it.
46903         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
46904         invalid parameter handler.
46905         * modules/close (Depends-on): Add msvc-inval.
46906         * modules/dup2-tests (Depends-on): Add close.
46907         * modules/dup3-tests (Depends-on): Likewise.
46908         * modules/fcntl-tests (Depends-on): Likewise.
46909         * modules/spawn-pipe-tests (Depends-on): Likewise.
46910         * modules/unistd-safer-tests (Depends-on): Likewise.
46911         * doc/posix-functions/close.texi: Mention the problem on MSVC.
46913 2011-09-23  Bruno Haible  <bruno@clisp.org>
46915         New module 'dup'.
46916         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
46917         Allow replacement.
46918         * lib/dup.c: New file.
46919         * lib/fchdir.c (rpl_dup): Remove function.
46920         * m4/dup.m4: New file.
46921         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
46922         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
46923         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
46924         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
46925         * modules/dup: New file.
46926         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
46927         'dup' module is in use.
46928         * modules/fdopendir (Depends-on): Add dup.
46929         * modules/fdutimensat-tests (Depends-on): Likewise.
46930         * modules/fts (Depends-on): Likewise.
46931         * modules/futimens-tests (Depends-on): Likewise.
46932         * modules/posix_spawnp-tests (Depends-on): Likewise.
46933         * modules/unistd-safer-tests (Depends-on): Likewise.
46934         * modules/utimens-tests (Depends-on): Likewise.
46935         * doc/posix-functions/dup.texi: Mention the new module and the problem
46936         on MSVC.
46938 2011-09-23  Bruno Haible  <bruno@clisp.org>
46940         getdtablesize: Support for MSVC 9.
46941         * lib/getdtablesize.c: Include msvc-inval.h.
46942         (_setmaxstdio_nothrow): New function.
46943         (_setmaxstdio): Redefine it.
46944         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
46945         * modules/getdtablesize (Depends-on): Add msvc-inval.
46946         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
46948 2011-09-23  Bruno Haible  <bruno@clisp.org>
46950         signal-h: Rename from signal.
46951         * modules/signal-h: Renamed from modules/signal.
46952         * modules/pthread_sigmask (Depends-on): Update.
46953         * modules/raise (Depends-on): Likewise.
46954         * modules/sigaction (Depends-on): Likewise.
46955         * modules/sigpipe (Depends-on): Likewise.
46956         * modules/sigprocmask (Depends-on): Likewise.
46957         * modules/sys_select (Depends-on): Likewise.
46958         * modules/signal-h-tests: Renamed from modules/signal-tests.
46959         (Files, Depends-on, Makefile.am): Update.
46960         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
46961         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
46962         (Files, Makefile.am): Update.
46963         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
46964         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
46965         * modules/signal: New placeholder file.
46966         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
46967         * doc/posix-headers/signal.texi: Update.
46968         * NEWS: Mention the change.
46970 2011-09-23  Bruno Haible  <bruno@clisp.org>
46972         sigprocmask: Avoid crashes through signal() on MSVC 9.
46973         * lib/sigprocmask.c: Include msvc-inval.h.
46974         (signal_nothrow): New function.
46975         (signal): Redefine it.
46976         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
46977         * modules/sigprocmask (Depends-on): Add msvc-inval.
46978         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
46980 2011-09-23  Bruno Haible  <bruno@clisp.org>
46982         Tests for module 'raise'.
46983         * modules/raise-tests: New file.
46984         * tests/test-raise.c: New file.
46986         raise: Support for MSVC.
46987         * lib/signal.in.h (raise): New declaration.
46988         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
46989         for native Windows platforms.
46990         * m4/raise.m4: New file.
46991         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
46992         HAVE_RAISE, REPLACE_RAISE.
46993         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
46994         REPLACE_RAISE.
46995         * modules/raise (Status, Notice): Remove fields.
46996         (Files): Add m4/raise.m4.
46997         (Depends-on): Add signal, msvc-inval.
46998         (configure.ac): Use the common idioms.
46999         (Maintainer): Add me.
47000         * tests/test-signal-c++.cc: Check the signature of raise.
47001         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
47003 2011-09-23  Bruno Haible  <bruno@clisp.org>
47005         pipe2: Fix compilation on pre-C99 compilers.
47006         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
47008 2011-09-23  Bruno Haible  <bruno@clisp.org>
47010         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
47011         * lib/msvc-nothrow.h: New file.
47012         * lib/msvc-nothrow.c: New file.
47013         * m4/msvc-nothrow.m4: New file.
47014         * modules/msvc-nothrow: New file.
47015         * lib/dup2.c: Include msvc-nothrow.h.
47016         (rpl_dup2): No need to protect _get_osfhandle call here.
47017         * lib/accept4.c: Include msvc-nothrow.h.
47018         * lib/error.c: Likewise.
47019         * lib/fcntl.c: Likewise.
47020         * lib/lseek.c: Likewise.
47021         * lib/nonblocking.c: Likewise.
47022         * lib/poll.c: Likewise.
47023         * lib/read.c: Likewise.
47024         * lib/select.c: Likewise.
47025         * lib/sockets.h: Likewise.
47026         * lib/sockets.c: Likewise.
47027         * lib/stdio-read.c: Likewise.
47028         * lib/stdio-write.c: Likewise.
47029         * lib/write.c: Likewise.
47030         * lib/w32sock.h: Likewise.
47031         * lib/w32spawn.h: Likewise.
47032         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
47033         * lib/fsync.c: Likewise.
47034         * lib/isapipe.c: Likewise.
47035         * modules/dup2 (Depends-on): Add msvc-nothrow.
47036         * modules/accept4 (Depends-on): Likewise.
47037         * modules/error (Depends-on): Likewise.
47038         * modules/fcntl (Depends-on): Likewise.
47039         * modules/lseek (Depends-on): Likewise.
47040         * modules/nonblocking (Depends-on): Likewise.
47041         * modules/poll (Depends-on): Likewise.
47042         * modules/read (Depends-on): Likewise.
47043         * modules/select (Depends-on): Likewise.
47044         * modules/sockets (Depends-on): Likewise.
47045         * modules/sigpipe (Depends-on): Likewise.
47046         * modules/write (Depends-on): Likewise.
47047         * modules/accept (Depends-on): Likewise.
47048         * modules/bind (Depends-on): Likewise.
47049         * modules/connect (Depends-on): Likewise.
47050         * modules/gethostname (Depends-on): Likewise.
47051         * modules/getpeername (Depends-on): Likewise.
47052         * modules/getsockname (Depends-on): Likewise.
47053         * modules/getsockopt (Depends-on): Likewise.
47054         * modules/ioctl (Depends-on): Likewise.
47055         * modules/listen (Depends-on): Likewise.
47056         * modules/recv (Depends-on): Likewise.
47057         * modules/recvfrom (Depends-on): Likewise.
47058         * modules/send (Depends-on): Likewise.
47059         * modules/sendto (Depends-on): Likewise.
47060         * modules/setsockopt (Depends-on): Likewise.
47061         * modules/shutdown (Depends-on): Likewise.
47062         * modules/socket (Depends-on): Likewise.
47063         * modules/execute (Depends-on): Likewise.
47064         * modules/spawn-pipe (Depends-on): Likewise.
47065         * modules/flock (Depends-on): Likewise.
47066         * modules/fsync (Depends-on): Likewise.
47067         * modules/isapipe (Depends-on): Likewise.
47068         * tests/test-cloexec.c: Include msvc-nothrow.h.
47069         * tests/test-dup-safer.c: Likewise.
47070         * tests/test-dup2.c: Likewise.
47071         * tests/test-dup3.c: Likewise.
47072         * tests/test-fcntl.c: Likewise.
47073         * tests/test-pipe.c: Likewise.
47074         * tests/test-pipe2.c: Likewise.
47075         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
47076         * modules/unistd-safer-tests (Depends-on): Likewise.
47077         * modules/dup2-tests (Depends-on): Likewise.
47078         * modules/dup3-tests (Depends-on): Likewise.
47079         * modules/fcntl-tests (Depends-on): Likewise.
47080         * modules/pipe-posix-tests (Depends-on): Likewise.
47081         * modules/pipe2-tests (Depends-on): Likewise.
47083 2011-09-23  Bruno Haible  <bruno@clisp.org>
47085         dup2: Make code more maintainable.
47086         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
47087         (rpl_dup2): Use it.
47088         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
47089         * modules/dup2 (configure.ac): Invoke it.
47090         Reported by Paul Eggert.
47092 2011-09-23  Bruno Haible  <bruno@clisp.org>
47094         msvc-inval: Fix compilation error.
47095         * lib/msvc-inval.h: Include <excpt.h>.
47097 2011-09-23  Bruno Haible  <bruno@clisp.org>
47099         mkdir: Tweak for MSVC 9.
47100         * lib/sys_stat.in.h: Update comments.
47101         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
47103         Tests for module 'chdir'.
47104         * modules/chdir-tests: New file.
47105         * tests/test-chdir.c: New file.
47107         New module 'chdir'.
47108         * modules/chdir: New file.
47109         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
47110         (chdir): New declaration.
47111         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
47112         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
47113         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
47114         * tests/test-unistd-c++.cc: Check signature of chdir.
47115         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
47116         * modules/chdir-long (Depends-on): Add chdir.
47117         * modules/fchdir (Depends-on): Likewise.
47118         * modules/rename (Depends-on): Likewise.
47119         * modules/savewd (Depends-on): Likewise.
47121         rmdir: Support for mingw, MSVC 9.
47122         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
47123         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
47125         getcwd: Tweak for MSVC 9.
47126         * lib/unistd.in.h: Update comments.
47127         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
47129 2011-09-22  Bruno Haible  <bruno@clisp.org>
47131         strerror_r-posix: Avoid a link error on MSVC.
47132         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
47133         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
47135 2011-09-22  Bruno Haible  <bruno@clisp.org>
47137         select: Avoid link errors on MSVC.
47138         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
47139         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
47140         * modules/pselect (Link): Likewise.
47141         * NEWS: Mention the change.
47142         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
47143         test-select-stdin against $(LIB_SELECT).
47144         * modules/pselect-tests (Makefile.am): Link test-pselect against
47145         $(LIB_SELECT).
47147 2011-09-22  Bruno Haible  <bruno@clisp.org>
47149         select: Avoid compilation error on MSVC.
47150         * lib/select.c: Don't include <stdbool.h>.
47152 2011-09-21  Bruno Haible  <bruno@clisp.org>
47154         Consolidate all uses of PATH_MAX in *.m4 files.
47155         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
47156         macros.
47157         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
47158         and gl_PATHMAX_SNIPPET.
47159         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
47160         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47161         * modules/chdir-long (Files): Add m4/pathmax.m4.
47162         * modules/getcwd (Files): Likewise.
47164 2011-09-21  Bruno Haible  <bruno@clisp.org>
47166         ftruncate: Un-deprecate, concentrate on Win32 support.
47167         * modules/ftruncate (Status, Notice): Remove sections.
47168         (Depends-on): Add largefile.
47169         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
47170         non-mingw platforms.
47171         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
47172         include <io.h>.
47173         * modules/perror-tests (Depends-on): Add ftruncate.
47174         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
47175         'ftruncate' module.
47177 2011-09-21  Bruno Haible  <bruno@clisp.org>
47179         Add dependencies to new dirent related modules.
47180         * modules/opendir (Depends-on): Add closedir.
47181         * modules/getcwd (Depends-on): Add opendir, closedir.
47182         * modules/dirent-safer-tests (Depends-on): Likewise.
47183         * modules/fdopendir-tests (Depends-on): Likewise.
47184         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
47185         * modules/renameat-tests (Depends-on): Likewise.
47187 2011-09-21  Bruno Haible  <bruno@clisp.org>
47189         opendir: Avoid compilation error on mingw.
47190         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
47191         * modules/opendir (Depends-on): Add unistd.
47193 2011-09-21  Bruno Haible  <bruno@clisp.org>
47195         ftruncate tests: Avoid a test failure on mingw.
47196         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
47198 2011-09-21  Bruno Haible  <bruno@clisp.org>
47200         select tests: Avoid test failures on OSF/1 5.1 and mingw.
47201         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
47202         native Windows.
47204 2011-09-21  Bruno Haible  <bruno@clisp.org>
47206         New module 'fdopen'.
47207         * lib/stdio.in.h (fdopen): New declaration.
47208         * lib/fdopen.c: New file.
47209         * m4/fdopen.m4: New file.
47210         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
47211         REPLACE_FDOPEN.
47212         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
47213         REPLACE_FDOPEN.
47214         * modules/fdopen: New file.
47215         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
47216         * tests/test-stdio-c++.cc: Check signature of fdopen.
47217         * doc/posix-functions/fdopen.texi: Mention the new module.
47219 2011-09-21  Bruno Haible  <bruno@clisp.org>
47221         unlockpt tests: Avoid test failure on NetBSD 5.1.
47222         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
47223         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
47225 2011-09-21  Bruno Haible  <bruno@clisp.org>
47227         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
47228         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
47229         * tests/test-getlogin_r.c (main): Likewise.
47231 2011-09-20  Bruno Haible  <bruno@clisp.org>
47233         time tests: Don't require pid_t.
47234         * doc/posix-headers/time.texi: Revert last change.
47235         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
47236         * tests/test-time.c: Comment out the check for pid_t.
47238 2011-09-20  Bruno Haible  <bruno@clisp.org>
47240         fsync tests: Avoid a test failure on mingw.
47241         * tests/test-fsync.c (main): Allow a failure with EIO.
47243 2011-09-20  Bruno Haible  <bruno@clisp.org>
47245         euidaccess: Update comments.
47246         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
47248 2011-09-20  Bruno Haible  <bruno@clisp.org>
47250         Ensure EBADF returns for socket functions on mingw.
47251         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
47252         descriptor is invalid.
47253         * lib/bind.c (rpl_bind): Likewise.
47254         * lib/connect.c (rpl_connect): Likewise.
47255         * lib/getpeername.c (rpl_getpeername): Likewise.
47256         * lib/getsockname.c (rpl_getsockname): Likewise.
47257         * lib/getsockopt.c (rpl_getsockopt): Likewise.
47258         * lib/listen.c (rpl_listen): Likewise.
47259         * lib/recv.c (rpl_recv): Likewise.
47260         * lib/recvfrom.c (rpl_recvfrom): Likewise.
47261         * lib/send.c (rpl_send): Likewise.
47262         * lib/sendto.c (rpl_sendto): Likewise.
47263         * lib/setsockopt.c (rpl_setsockopt): Likewise.
47264         * lib/shutdown.c (rpl_shutdown): Likewise.
47266 2011-09-20  Bruno Haible  <bruno@clisp.org>
47268         select tests: EBADF tests.
47269         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
47270         test_bad_fd): New functions.
47271         (test_function): Invoke also test_bad_fd.
47273 2011-09-20  Bruno Haible  <bruno@clisp.org>
47275         Tests for module 'posix_spawn_file_actions_addopen.
47276         * modules/posix_spawn_file_actions_addopen-tests: New file.
47277         * tests/test-posix_spawn_file_actions_addopen.c: New file.
47279         Tests for module 'posix_spawn_file_actions_adddup2'.
47280         * modules/posix_spawn_file_actions_adddup2-tests: New file.
47281         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
47283         Tests for module 'posix_spawn_file_actions_addclose'.
47284         * modules/posix_spawn_file_actions_addclose-tests: New file.
47285         * tests/test-posix_spawn_file_actions_addclose.c: New file.
47287 2011-09-20  Bruno Haible  <bruno@clisp.org>
47289         Tests for module 'unlockpt'.
47290         * modules/unlockpt-tests: New file.
47291         * tests/test-unlockpt.c: New file.
47292         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
47294         Tests for module 'grantpt'.
47295         * modules/grantpt-tests: New file.
47296         * tests/test-grantpt.c: New file.
47297         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
47299 2011-09-20  Bruno Haible  <bruno@clisp.org>
47301         freopen tests: EBADF tests.
47302         * tests/test-freopen.c: Include errno.h, unistd.h.
47303         (main): Add tests for EBADF, commented out for the moment.
47305         fclose tests: EBADF tests.
47306         * tests/test-fclose.c (main): Add tests for EBADF.
47308         fflush tests: EBADF tests.
47309         * tests/test-fflush.c: Include errno.h, macros.h.
47310         (main): Add tests for EBADF.
47312         ftello tests: EBADF tests.
47313         * tests/test-ftello4.sh: New file.
47314         * tests/test-ftello4.c: New file.
47315         * modules/ftello-tests (Files): Add them.
47316         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
47318         fseeko tests: EBADF tests.
47319         * tests/test-fseeko4.sh: New file.
47320         * tests/test-fseeko4.c: New file.
47321         * modules/fseeko-tests (Files): Add them.
47322         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
47324         Tests for function fputc().
47325         * modules/fputc-tests: New file.
47326         * tests/test-fputc.c: New file.
47327         * modules/stdio-tests (Depends-on): Add fputc-tests.
47329         Tests for function fgetc().
47330         * modules/fgetc-tests: New file.
47331         * tests/test-fgetc.c: New file.
47332         * modules/stdio-tests (Depends-on): Add fgetc-tests.
47334         Tests for function fdopen().
47335         * modules/fdopen-tests: New file.
47336         * tests/test-fdopen.c: New file.
47337         * modules/stdio-tests (Depends-on): Add fdopen-tests.
47339         Tests for module 'vdprintf'.
47340         * modules/vdprintf-tests: New file.
47341         * tests/test-vdprintf.c: New file.
47343         Tests for module 'dprintf'.
47344         * modules/dprintf-tests: New file.
47345         * tests/test-dprintf.c: New file.
47347 2011-09-20  Bruno Haible  <bruno@clisp.org>
47349         Tests for module 'ioctl'.
47350         * modules/ioctl-tests: New file.
47351         * tests/test-ioctl.c: New file.
47353 2011-09-20  Bruno Haible  <bruno@clisp.org>
47355         fcntl tests: EBADF tests.
47356         * tests/test-fcntl.c (main): Add more tests for EBADF.
47358 2011-09-20  Bruno Haible  <bruno@clisp.org>
47360         utimensat tests: EBADF tests.
47361         * tests/test-utimensat.c (main): Add tests for EBADF.
47363         renameat tests: EBADF tests.
47364         * tests/test-renameat.c (main): Add tests for EBADF.
47366         mkfifoat tests: EBADF tests.
47367         * tests/test-mkfifoat.c (main): Add tests for EBADF.
47369         readlinkat tests: EBADF tests.
47370         * tests/test-readlinkat.c (main): Add tests for EBADF.
47372         symlinkat tests: EBADF tests.
47373         * tests/test-symlinkat.c (main): Add tests for EBADF.
47375         linkat tests: EBADF tests.
47376         * tests/test-linkat.c (main): Add tests for EBADF.
47378         Tests for module 'faccessat'.
47379         * modules/faccessat-tests: New file.
47380         * tests/test-faccessat.c: New file.
47382         fdopendir tests: EBADF tests.
47383         * tests/test-fdopendir.c (main): Add more tests for EBADF.
47385         openat tests: EBADF tests.
47386         * tests/test-fchownat.c (main): Add tests for EBADF.
47387         * tests/test-fstatat.c (main): Likewise.
47388         * tests/test-mkdirat.c (main): Likewise.
47389         * tests/test-openat.c (main): Likewise.
47390         * tests/test-unlinkat.c (main): Likewise.
47391         * tests/test-fchmodat.c: New file.
47392         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
47393         (Makefile.am): Also run 'test-fchmodat'.
47395 2011-09-20  Bruno Haible  <bruno@clisp.org>
47397         utimens, futimens, fdutimensat tests: EBADF tests.
47398         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
47400         Tests for function fstat().
47401         * modules/fstat-tests: New file.
47402         * tests/test-fstat.c: New file.
47403         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
47405 2011-09-20  Bruno Haible  <bruno@clisp.org>
47407         test-ttyname_r tests: EBADF tests.
47408         * tests/test-ttyname_r.c (main): Add tests for EBADF.
47410         Tests for module 'isatty'.
47411         * modules/isatty-tests: New file.
47412         * tests/test-isatty.c: New file.
47414         Tests for module 'write'.
47415         * modules/write-tests: New file.
47416         * tests/test-write.c: New file.
47418         Tests for module 'read'.
47419         * modules/read-tests: New file.
47420         * tests/test-read.c: New file.
47422         pwrite tests: EBADF tests.
47423         * tests/test-pwrite.c (main): Add tests for EBADF.
47425         pread tests: EBADF tests.
47426         * tests/test-pread.c (main): Add tests for EBADF.
47428         lseek tests: EBADF tests.
47429         * tests/test-lseek.c (main): Add more tests for EBADF.
47431         Tests for module 'ftruncate'.
47432         * modules/ftruncate-tests: New file.
47433         * tests/test-ftruncate.sh: New file.
47434         * tests/test-ftruncate.c: New file.
47436         fsync tests: EBADF tests.
47437         * tests/test-fsync.c (main): Add more tests for EBADF.
47439         fdatasync tests: EBADF tests.
47440         * tests/test-fdatasync.c (main): Add more tests for EBADF.
47442         Tests for module 'fchown'.
47443         * modules/fchown-tests: New file.
47444         * tests/test-fchown.c: New file.
47446         Tests for module 'fchmod'.
47447         * modules/fchmod-tests: New file.
47448         * tests/test-fchmod.c: New file.
47450         fchdir tests: EBADF tests.
47451         * tests/test-fchdir.c (main): Add more tests for EBADF.
47453         dup2 tests: EBADF tests.
47454         * tests/test-dup2.c (main): Add more tests for EBADF.
47456         Tests for module 'dup'.
47457         * modules/dup-tests: New file.
47458         * tests/test-dup.c: New file.
47460         Tests for module 'close'.
47461         * modules/close-tests: New file.
47462         * tests/test-close.c: New file.
47464 2011-09-20  Bruno Haible  <bruno@clisp.org>
47466         Tests for module 'shutdown'.
47467         * modules/shutdown-tests: New file.
47468         * tests/test-shutdown.c: New file.
47470         Tests for module 'setsockopt'.
47471         * modules/setsockopt-tests: New file.
47472         * tests/test-setsockopt.c: New file.
47474         Tests for module 'sendto'.
47475         * modules/sendto-tests: New file.
47476         * tests/test-sendto.c: New file.
47478         Tests for module 'send'.
47479         * modules/send-tests: New file.
47480         * tests/test-send.c: New file.
47482         Tests for module 'recvfrom'.
47483         * modules/recvfrom-tests: New file.
47484         * tests/test-recvfrom.c: New file.
47486         Tests for module 'recv'.
47487         * modules/recv-tests: New file.
47488         * tests/test-recv.c: New file.
47490         Tests for module 'listen'.
47491         * modules/listen-tests: New file.
47492         * tests/test-listen.c: New file.
47494         Tests for module 'getsockopt'.
47495         * modules/getsockopt-tests: New file.
47496         * tests/test-getsockopt.c: New file.
47498         Tests for module 'getsockname'.
47499         * modules/getsockname-tests: New file.
47500         * tests/test-getsockname.c: New file.
47502         Tests for module 'getpeername'.
47503         * modules/getpeername-tests: New file.
47504         * tests/test-getpeername.c: New file.
47506         Tests for module 'connect'.
47507         * modules/connect-tests: New file.
47508         * tests/test-connect.c: New file.
47510         Tests for module 'bind'.
47511         * modules/bind-tests: New file.
47512         * tests/test-bind.c: New file.
47514         accept4 tests: Fix for native Windows.
47515         * tests/test-accept4.c: Include sockets.h.
47516         (main): Invoke gl_sockets_startup.
47517         * modules/accept4-tests (Depends-on): Add sockets.
47519         accept tests: Fix for native Windows.
47520         * tests/test-accept.c: Include sockets.h.
47521         (main): Invoke gl_sockets_startup.
47522         * modules/accept-tests (Depends-on): Add sockets.
47524 2011-09-19  Bruno Haible  <bruno@clisp.org>
47526         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
47527         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
47528         do...while(0).
47529         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
47530         Suggested by Paul Eggert.
47532 2011-09-19  Bruno Haible  <bruno@clisp.org>
47534         sched: Ensure pid_t is defined.
47535         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
47536         not define pid_t.
47537         * lib/sched.in.h: Include <sys/types.h>.
47538         * doc/posix-headers/sched.texi: Mention the pid_t problem.
47539         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47541 2011-09-19  Bruno Haible  <bruno@clisp.org>
47543         msvc-inval: Ensure the entire expansion is a single statement.
47544         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
47545         of braces.
47547 2011-09-19  Jim Meyering  <meyering@redhat.com>
47549         tests: use printf, not echo in init.sh's warn_ function
47550         * tests/init.sh (warn_): Use printf, not echo.  The latter would
47551         misbehave when given strings containing a backslash or starting
47552         with e.g., -n.  James Youngman suggested setting IFS.
47554 2011-09-19  Eric Blake  <eblake@redhat.com>
47556         futimens: enhance test
47557         * tests/test-futimens.h (test_futimens): Also check for EBADF on
47558         closed non-negative fd.
47560         date: accept 'hence' as opposite of 'ago'
47561         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
47562         * tests/test-parse-datetime.c (main): Enhance test.
47563         Suggested by Jesse Wilson.
47565 2011-09-19  Jim Meyering  <meyering@redhat.com>
47567         getcwd: don't fail in a deep directory on a system without openat
47568         Before this change, getcwd would fail when called from a directory
47569         of depth PATH_MAX / 3 or greater.  That was due to the fact that
47570         the non-openat implementation used "..", "../..", "../../..", etc.
47571         to access ancestor directories.  With too many, that string would
47572         be longer than PATH_MAX.
47573         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
47574         using gnulib's openat replacement.
47575         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
47576         we're using the replacement function.
47578 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
47580         maint.mk: avoid warnings from perl about missing files
47581         * top/maint.mk (def_sym_regex): Ignore files listed in
47582         $(gl_other_headers_) that do not exist, say because a project
47583         does not use a corresponding module.
47585 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
47587         stat: use pathmax.h only if needed
47588         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
47589         This is better for Emacs, which does not have a mingw port and
47590         therefore can avoid the pathmax module.
47592         utimens: remove dependency on dup2
47593         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
47594         to work around the Linux kernel bug.
47595         * modules/utimens (Depends-on): Remove dup2.
47597 2011-09-18  Bruno Haible  <bruno@clisp.org>
47599         inet_ntop, inet_pton: Look for it also in libresolv.
47600         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
47601         libnsl, search for it in libresolv.
47602         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
47603         Needed on Solaris 7.
47605 2011-09-18  Bruno Haible  <bruno@clisp.org>
47607         accept, accept4 tests: Avoid link error on Solaris.
47608         * modules/accept-tests (Makefile.am): Link test-accept against
47609         $(LIBSOCKET).
47610         * modules/accept4-tests (Makefile.am): Link test-accept4 against
47611         $(LIBSOCKET).
47613         accept4: Avoid link error on Solaris.
47614         * modules/accept4 (Link): New section.
47616         socket functions: Avoid link errors on Solaris.
47617         * modules/accept (Depends-on): Add socketlib.
47618         (Link): New section.
47619         * modules/bind (Depends-on): Add socketlib.
47620         (Link): New section.
47621         * modules/connect (Depends-on): Add socketlib.
47622         (Link): New section.
47623         * modules/getpeername (Depends-on): Add socketlib.
47624         (Link): New section.
47625         * modules/getsockname (Depends-on): Add socketlib.
47626         (Link): New section.
47627         * modules/getsockopt (Depends-on): Add socketlib.
47628         (Link): New section.
47629         * modules/listen (Depends-on): Add socketlib.
47630         (Link): New section.
47631         * modules/recv (Depends-on): Add socketlib.
47632         (Link): New section.
47633         * modules/recvfrom (Depends-on): Add socketlib.
47634         (Link): New section.
47635         * modules/send (Depends-on): Add socketlib.
47636         (Link): New section.
47637         * modules/sendto (Depends-on): Add socketlib.
47638         (Link): New section.
47639         * modules/setsockopt (Depends-on): Add socketlib.
47640         (Link): New section.
47641         * modules/shutdown (Depends-on): Add socketlib.
47642         (Link): New section.
47643         * modules/socket (Depends-on): Add socketlib.
47644         (Link): New section.
47646 2011-09-18  Bruno Haible  <bruno@clisp.org>
47648         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
47649         * tests/test-ptsname.c (main): Terminate the test if it takes longer
47650         than 5 seconds.
47651         * modules/ptsname-tests (configure.ac): Test for alarm.
47653 2011-09-18  Bruno Haible  <bruno@clisp.org>
47655         posix_spawn_file_actions_add*: Fix module dependencies.
47656         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
47657         posix_spawn_file_actions_init.
47658         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
47659         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
47661 2011-09-18  Bruno Haible  <bruno@clisp.org>
47663         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
47664         * tests/test-rename.h (test_rename): Allow error code EEXIST.
47665         * tests/test-renameat.c (main): Likewise.
47667 2011-09-18  Bruno Haible  <bruno@clisp.org>
47669         Tests for module 'accept4'.
47670         * modules/accept4-tests: New file.
47671         * tests/test-accept4.c: New file.
47673 2011-09-18  Bruno Haible  <bruno@clisp.org>
47675         Tests for module 'accept'.
47676         * modules/accept-tests: New file.
47677         * tests/test-accept.c: New file.
47679 2011-09-18  Bruno Haible  <bruno@clisp.org>
47681         dup2: Support for MSVC.
47682         * lib/dup2.c: Include msvc-inval.h.
47683         (rpl_dup2): Handle invalid parameter notifications during dup2 and
47684         _get_osfhandle calls.
47685         * modules/dup2 (Depends-on): Add msvc-inval.
47686         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
47688         New module 'msvc-inval'.
47689         * lib/msvc-inval.h: New file.
47690         * lib/msvc-inval.c: New file.
47691         * m4/msvc-inval.m4: New file.
47692         * modules/msvc-inval: New file.
47694 2011-09-17  Bruno Haible  <bruno@clisp.org>
47696         Tests for module 'pclose'.
47697         * modules/pclose-tests: New file.
47699         New module 'pclose'.
47700         * lib/stdio.in.h (pclose): New declaration.
47701         * lib/pclose.c: New file.
47702         * m4/pclose.m4: New file.
47703         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
47704         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
47705         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
47706         * modules/pclose: New file.
47707         * modules/popen-tests (Depends-on): Add pclose.
47708         * modules/popen-safer-tests (Depends-on): Likewise.
47709         * doc/posix-functions/pclose.texi: Mention the new module.
47711 2011-09-17  Bruno Haible  <bruno@clisp.org>
47713         popen: Support for MSVC.
47714         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
47715         * lib/popen.c (popen): Provide alternate definition for native Windows.
47716         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
47717         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
47718         * modules/popen (Depends-on, configure.ac): Update condition.
47719         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
47720         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
47721         fixed.
47723 2011-09-17  Bruno Haible  <bruno@clisp.org>
47725         isnanl, isnand, isnanf: Work around MSVC bug.
47726         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
47728 2011-09-17  Bruno Haible  <bruno@clisp.org>
47730         sys_socket tests: Fix recent mistake.
47731         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
47733 2011-09-17  Bruno Haible  <bruno@clisp.org>
47735         putenv: Support for MSVC.
47736         * modules/putenv (Depends-on): Add environ.
47737         * lib/putenv.c (environ): Disable declaration.
47738         * lib/unistd.in.h: Update comment.
47740 2011-09-17  Bruno Haible  <bruno@clisp.org>
47742         math: Avoid macro redefinition warnings on MSVC.
47743         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
47744         Undefine before redefining.
47746 2011-09-17  Bruno Haible  <bruno@clisp.org>
47748         doc: Mention functions which are declared as macros.
47749         * doc/posix-functions/*[fl].texi: Mention that some functions are
47750         defined as macros with arguments only.
47752 2011-09-17  Bruno Haible  <bruno@clisp.org>
47754         Add dependencies to new dirent related modules.
47755         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
47756         * modules/fts (Depends-on): Likewise.
47757         * modules/glob (Depends-on): Likewise.
47758         * modules/savedir (Depends-on): Likewise.
47759         * modules/scandir (Depends-on): Likewise.
47760         * modules/dirent-safer (Depends-on): Add opendir, closedir.
47761         * modules/fdopendir (Depends-on): Add opendir.
47763 2011-09-17  Bruno Haible  <bruno@clisp.org>
47765         inet_pton: Support for MSVC on Windows Vista or newer.
47766         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
47767         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
47768         HAVE_DECL_INET_PTON is defined.
47769         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
47770         On platforms with <winsock2.h>, test whether inet_pton is declared in
47771         <ws2tcpip.h>. If so, arrange to replace it.
47772         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
47773         REPLACE_INET_PTON.
47774         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
47775         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
47776         (Depends-on, configure.ac): Update condition.
47777         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
47779 2011-09-17  Bruno Haible  <bruno@clisp.org>
47781         inet_ntop: Support for MSVC on Windows Vista or newer.
47782         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
47783         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
47784         HAVE_DECL_INET_NTOP is defined.
47785         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
47786         On platforms with <winsock2.h>, test whether inet_ntop is declared in
47787         <ws2tcpip.h>. If so, arrange to replace it.
47788         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
47789         REPLACE_INET_NTOP.
47790         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
47791         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
47792         (Depends-on, configure.ac): Update condition.
47793         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
47795 2011-09-16  Eric Blake  <eblake@redhat.com>
47797         test-fsync: yet another enhancement
47798         * tests/test-fsync.c (main): Also test behavior on read-only text
47799         file.
47801 2011-09-16  Bruno Haible  <bruno@clisp.org>
47803         Enhance fsync, fdatasync tests.
47804         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
47805         * tests/test-fdatasync.c (main): Likewise.
47807 2011-09-16  Bruno Haible  <bruno@clisp.org>
47809         Support for MSVC compiler: Ensure mode_t gets defined.
47810         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
47811         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
47812         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
47813         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
47814         * tests/test-fcntl-h.c: Check that mode_t is defined.
47815         * tests/test-sys_stat.c: Likewise.
47816         * tests/test-sys_types.c: Likewise.
47817         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
47818         * doc/posix-headers/sys_stat.texi: Likewise.
47819         * doc/posix-headers/sys_types.texi: Likewise.
47821 2011-09-16  Bruno Haible  <bruno@clisp.org>
47823         sys_stat: Support for MSVC.
47824         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
47825         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
47826         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
47827         MSVC.
47829 2011-09-16  Bruno Haible  <bruno@clisp.org>
47831         Support for MSVC compiler: Ensure off_t gets defined.
47832         * lib/unistd.in.h: Include <sys/types.h>.
47833         * tests/test-fcntl-h.c: Check that off_t is defined.
47834         * tests/test-sys_stat.c: Likewise.
47835         * tests/test-sys_types.c: Likewise.
47837 2011-09-16  Eric Blake  <eblake@redhat.com>
47839         fdatasync: port to Solaris
47840         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
47841         * modules/fdatasync (Link): Document it.
47842         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
47844         fdatasync: port to MacOS X 10.7
47845         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
47846         declared.
47847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
47848         * modules/unistd (Makefile.am): Substitute it.
47849         * lib/unistd.in.h (fdatasync): Declare on MacOS.
47850         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
47852         fdatasync: minor improvements
47853         * modules/fdatasync (Depends-on): Add condition for fsync.
47854         * lib/fdatasync.c (fdatasync): Add comment.
47855         * tests/test-unistd-c++.cc: Test fdatasync.
47857         unistd: update refs to newer POSIX
47858         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
47859         Suggested by Bruno Haible.
47861         fdatasync: new module
47862         * modules/fsync (Description): Document difference to fdatasync.
47863         * modules/fdatasync: New module.
47864         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
47865         * lib/fdatasync.c (fdatasync): Likewise.
47866         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
47867         defaults.
47868         * modules/unistd (Makefile.am): Set witnesses.
47869         * lib/unistd.in.h (fdatasync): Declare.
47870         * MODULES.html.sh: Document it.
47871         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
47872         * modules/fdatasync-tests: New test.
47873         * tests/test-fdatasync.c: Likewise.
47875 2011-09-16  Eric Blake  <eblake@redhat.com>
47877         test-fsync: enhance tests
47878         * modules/fsync-tests (Depends-on): Add errno, for mingw.
47879         * tests/test-fsync.c (main): Enhance test.
47881 2011-09-15  Bruno Haible  <bruno@clisp.org>
47883         Support for MSVC compiler: Ensure ssize_t gets defined.
47884         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
47885         * doc/posix-headers/stdio.texi: Likewise.
47886         * modules/stdio (Depends-on): Add ssize_t.
47887         * modules/sys_socket (Depends-on): Likewise.
47888         * modules/sys_types (Depends-on): Likewise.
47889         * modules/sys_uio (Depends-on): Likewise.
47890         * modules/unistd (Depends-on): Likewise.
47891         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
47892         * tests/test-sys_types.c: Check that ssize_t is defined.
47894 2011-09-14  Bruno Haible  <bruno@clisp.org>
47896         Avoid using #, the m4 comment starter character, near brackets.
47897         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
47898         delimiter character in sed expressions.
47899         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
47900         Suggested by Eric Blake.
47902         Properly quote AC_CHECK_DECLS' 4th argument.
47903         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
47904         argument.
47905         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
47906         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
47907         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
47908         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
47909         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
47910         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
47911         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
47912         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
47913         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
47914         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
47915         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
47916         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
47917         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
47918         * m4/isinf.m4 (gl_ISINF): Likewise.
47919         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
47920         * m4/readutmp.m4 (gl_READUTMP): Likewise.
47921         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47922         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
47923         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
47924         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
47925         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
47926         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
47927         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
47928         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
47929         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
47930         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
47931         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
47932         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
47933         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47934         Reported by Eric Blake.
47936         Properly quote AC_CHECK_DECL's 4th argument.
47937         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
47938         argument.
47939         * m4/argp.m4 (gl_ARGP): Likewise.
47940         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
47941         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
47942         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
47943         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
47944         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
47945         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
47946         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
47947         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
47948         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
47949         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
47950         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
47951         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
47952         Reported by Eric Blake.
47954 2011-09-14  Eric Blake  <eblake@redhat.com>
47956         opendir: avoid compile warning
47957         * lib/opendir.c (includes): Always include errno.h.
47958         Reported by Tatsuro MATSUOKA.
47960 2011-09-14  Jim Meyering  <meyering@redhat.com>
47962         maint.mk: sc_tight_scope: propagate failure from sub-make
47963         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
47964         Reported by Martin von Gagern.
47966 2011-09-13  Bruno Haible  <bruno@clisp.org>
47968         tempname: Support for MSVC.
47969         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
47970         MSVC.
47971         * modules/tempname (Depends-on): Add fcntl-h.
47973 2011-09-13  Bruno Haible  <bruno@clisp.org>
47975         sys_time: Support for MSVC.
47976         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
47977         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
47978         include <winsock2.h>.
47979         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
47980         function declarations that collide with POSIX.
47981         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
47982         (Makefile.am): Substitute HAVE_WINSOCK2_H.
47984 2011-09-13  Bruno Haible  <bruno@clisp.org>
47986         stat: Support for MSVC.
47987         * lib/stat.c: Include pathmax.h.
47988         * modules/stat (Depends-on): Add pathmax.
47990         pathmax: Support for native Windows.
47991         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
47993 2011-09-12  Bruno Haible  <bruno@clisp.org>
47995         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
47996         * lib/dirent.in.h (struct dirent): New type.
47997         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
47998         DT_WHT): New macros.
47999         (DIR): New type.
48000         (opendir, closedir): Declare only if the module 'opendir' is enabled.
48001         (readdir, rewinddir): New declarations.
48002         * lib/dirent-private.h: New file.
48003         * lib/opendir.c: New file.
48004         * lib/readdir.c: New file.
48005         * lib/rewinddir.c: New file.
48006         * lib/closedir.c: New file.
48007         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
48008         * m4/opendir.m4: New file.
48009         * m4/readdir.m4: New file.
48010         * m4/rewinddir.m4: New file.
48011         * m4/closedir.m4: New file.
48012         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
48013         REPLACE_CLOSEDIR here.
48014         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
48015         readdir, rewinddir are declared.
48016         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
48017         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
48018         HAVE_REWINDDIR, HAVE_CLOSEDIR.
48019         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
48020         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
48021         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
48022         * modules/opendir: New file.
48023         * modules/readdir: New file.
48024         * modules/rewinddir: New file.
48025         * modules/closedir: New file.
48026         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
48027         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
48028         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
48029         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
48030         * NEWS: Mention the 'fchdir' change.
48032 2011-09-11  Bruno Haible  <bruno@clisp.org>
48034         asm-underscore.m4: Support for MSVC.
48035         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
48036         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
48038 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
48040         Doc about crypt functions.
48041         * doc/posix-functions/crypt.texi: Expand range of glibc versions
48042         needing for _GNU_SOURCE to get crypt.
48043         * doc/posix-functions/encrypt.texi: Likewise.
48044         * doc/posix-functions/setkey.texi: Likewise.
48046 2011-09-11  Bruno Haible  <bruno@clisp.org>
48048         doc: Update regarding MSVC 9.
48049         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
48050         tested".
48051         * doc/posix-functions/*.texi: Update with info about MSVC 9.
48052         * doc/posix-headers/*.texi: Likewise.
48053         * doc/pastposix-functions/*.texi: Likewise.
48054         * doc/glibc-functions/*.texi: Likewise.
48055         * doc/glibc-headers/*.texi: Likewise.
48057 2011-09-11  Bruno Haible  <bruno@clisp.org>
48059         unistd et al.: Don't assume <unistd.h> exists.
48060         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
48061         does not exist.
48062         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
48063         exist. But include <stdlib.h>.
48064         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
48065         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
48066         symlink() does not exist.
48067         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
48068         include <io.h> instead.
48069         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
48070         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
48071         include <direct.h> instead.
48072         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
48073         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
48074         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
48075         <io.h> instead.
48076         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
48077         correctly if the system does not have hard links.
48078         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
48079         <direct.h> instead.
48080         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
48081         it when looking for function declarations.
48082         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
48083         <direct.h> and <io.h> instead.
48084         * doc/posix-headers/unistd.texi: More details about MSVC problem.
48086 2011-09-11  Bruno Haible  <bruno@clisp.org>
48088         strcase: Support for MSVC.
48089         * modules/strcase (Status, Notice): Remove obsoletion mark.
48090         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
48091         * doc/posix-functions/strncasecmp.texi: Likewise.
48093         strings: Don't assume <strings.h> exists.
48094         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
48095         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
48096         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
48097         * doc/posix-headers/strings.texi: Mention the MSVC problem.
48099 2011-09-11  Bruno Haible  <bruno@clisp.org>
48101         dirent: Don't assume <dirent.h> exists.
48102         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
48103         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
48104         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
48105         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
48107 2011-09-11  Bruno Haible  <bruno@clisp.org>
48109         Fix wint_t on MSVC.
48110         * lib/wchar.in.h (wint_t): On MSVC, override it.
48111         * lib/wctype.in.h (wint_t): Likewise.
48112         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
48113         MSVC.
48114         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
48115         * doc/posix-headers/wctype.texi: Likewise.
48117 2011-09-11  Bruno Haible  <bruno@clisp.org>
48119         sys_types: Fix typo.
48120         * lib/sys_types.in.h: Fix typo in comment.
48121         Reported by Paul Eggert.
48123         Support for MSVC compiler: Ensure size_t gets defined.
48124         * modules/strings (Depends-on): Add 'sys_types'.
48125         * modules/sys_uio (Depends-on): Likewise.
48126         * lib/sys_uio.in.h: Update comment.
48128         C++ tests for module 'sys_types'.
48129         * modules/sys_types-c++-tests: New file.
48130         * tests/test-sys_types-c++.cc: New file.
48132         Tests for module 'sys_types'.
48133         * modules/sys_types-tests: New file.
48134         * tests/test-sys_types.c: New file.
48136         New module 'sys_types'.
48137         * lib/sys_types.in.h: New file.
48138         * m4/sys_types_h.m4: New file.
48139         * modules/sys_types: New file.
48140         * doc/posix-headers/sys_types.texi: Mention the new module and the
48141         size_t problem on MSVC 9.
48143 2011-09-11  Bruno Haible  <bruno@clisp.org>
48145         Support for MSVC compiler: Avoid division by a literal 0.
48146         * lib/math.in.h (NAN): Define through a function call also on MSVC.
48147         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
48148         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
48149         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
48150         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
48151         * tests/infinity.h: New file.
48152         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
48153         on MSVC.
48154         * tests/test-ceilf1.c: Include infinity.h.
48155         (main): Use Infinityf.
48156         * tests/test-ceil1.c: Include infinity.h.
48157         (main): Use Infinityd.
48158         * tests/test-ceill.c: Include infinity.h.
48159         (main): Use Infinityl.
48160         * tests/test-dprintf-posix.c: Include infinity.h.
48161         (test_function): Use Infinityd.
48162         * tests/test-floorf1.c: Include infinity.h.
48163         (main): Use Infinityf.
48164         * tests/test-floor1.c: Include infinity.h.
48165         (main): Use Infinityd.
48166         * tests/test-floorl.c: Include infinity.h.
48167         (main): Use Infinityl.
48168         * tests/test-fprintf-posix.c: Include infinity.h.
48169         (test_function): Use Infinityd.
48170         * tests/test-frexp.c: Include infinity.h.
48171         (main): Use Infinityd.
48172         * tests/test-frexpl.c: Include infinity.h.
48173         (main): Use Infinityl.
48174         * tests/test-isfinite.c: Include infinity.h.
48175         (test_isfinitef): Use Infinityf.
48176         (test_isfinited): Use Infinityd.
48177         (test_isfinitel): Use Infinityl.
48178         * tests/test-isinf.c: Include infinity.h.
48179         (test_isinff): Use Infinityf.
48180         (test_isinfd): Use Infinityd.
48181         (test_isinfl): Use Infinityl.
48182         * tests/test-isnan.c: Include infinity.h.
48183         (test_float): Use Infinityf.
48184         (test_double): Use Infinityd.
48185         (test_long_double): Use Infinityl.
48186         * tests/test-isnanf.h: Include infinity.h.
48187         (main): Use Infinityf.
48188         * tests/test-isnand.h: Include infinity.h.
48189         (main): Use Infinityd.
48190         * tests/test-isnanl.h: Include infinity.h.
48191         (main): Use Infinityl.
48192         * tests/test-ldexpl.c: Include infinity.h.
48193         (main): Use Infinityl.
48194         * tests/test-printf-posix.h: Include infinity.h.
48195         (test_function): Use Infinityd.
48196         * tests/test-roundf1.c: Include infinity.h.
48197         (main): Use Infinityf.
48198         * tests/test-round1.c: Include infinity.h.
48199         (main): Use Infinityd.
48200         * tests/test-roundl.c: Include infinity.h.
48201         (main): Use Infinityl.
48202         * tests/test-signbit.c: Include infinity.h.
48203         (test_signbitf): Use Infinityf.
48204         (test_signbitd): Use Infinityd.
48205         (test_signbitl): Use Infinityl.
48206         * tests/test-snprintf-posix.h: Include infinity.h.
48207         (test_function): Use Infinityd, Infinityl.
48208         * tests/test-sprintf-posix.h: Include infinity.h.
48209         (test_function): Use Infinityd, Infinityl.
48210         * tests/test-truncf1.c: Include infinity.h.
48211         (main): Use Infinityf.
48212         * tests/test-trunc1.c: Include infinity.h.
48213         (main): Use Infinityd.
48214         * tests/test-truncl.c: Include infinity.h.
48215         (main): Use Infinityl.
48216         * tests/test-vasnprintf-posix.c: Include infinity.h.
48217         (test_function): Use Infinityd, Infinityl.
48218         * tests/test-vasprintf-posix.c: Include infinity.h.
48219         (test_function): Use Infinityd, Infinityl.
48220         * modules/ceilf-tests (Files): Add tests/infinity.h.
48221         * modules/ceil-tests (Files): Likewise.
48222         * modules/ceill-tests (Files): Likewise.
48223         * modules/dprintf-posix-tests (Files): Likewise.
48224         * modules/floorf-tests (Files): Likewise.
48225         * modules/floor-tests (Files): Likewise.
48226         * modules/floorl-tests (Files): Likewise.
48227         * modules/fprintf-posix-tests (Files): Likewise.
48228         * modules/frexp-tests (Files): Likewise.
48229         * modules/frexp-nolibm-tests (Files): Likewise.
48230         * modules/frexpl-tests (Files): Likewise.
48231         * modules/frexpl-nolibm-tests (Files): Likewise.
48232         * modules/isfinite-tests (Files): Likewise.
48233         * modules/isinf-tests (Files): Likewise.
48234         * modules/isnan-tests (Files): Likewise.
48235         * modules/isnanf-tests (Files): Likewise.
48236         * modules/isnanf-nolibm-tests (Files): Likewise.
48237         * modules/isnand-tests (Files): Likewise.
48238         * modules/isnand-nolibm-tests (Files): Likewise.
48239         * modules/isnanl-tests (Files): Likewise.
48240         * modules/isnanl-nolibm-tests (Files): Likewise.
48241         * modules/ldexpl-tests (Files): Likewise.
48242         * modules/printf-posix-tests (Files): Likewise.
48243         * modules/roundf-tests (Files): Likewise.
48244         * modules/round-tests (Files): Likewise.
48245         * modules/roundl-tests (Files): Likewise.
48246         * modules/signbit-tests (Files): Likewise.
48247         * modules/snprintf-posix-tests (Files): Likewise.
48248         * modules/sprintf-posix-tests (Files): Likewise.
48249         * modules/truncf-tests (Files): Likewise.
48250         * modules/trunc-tests (Files): Likewise.
48251         * modules/truncl-tests (Files): Likewise.
48252         * modules/vasnprintf-posix-tests (Files): Likewise.
48253         * modules/vasprintf-posix-tests (Files): Likewise.
48254         * modules/vdprintf-posix-tests (Files): Likewise.
48255         * modules/vfprintf-posix-tests (Files): Likewise.
48256         * modules/vprintf-posix-tests (Files): Likewise.
48257         * modules/vsnprintf-posix-tests (Files): Likewise.
48258         * modules/vsprintf-posix-tests (Files): Likewise.
48259         * modules/xprintf-posix-tests (Files): Likewise.
48261 2011-09-11  Bruno Haible  <bruno@clisp.org>
48263         Ensure pid_t gets defined.
48264         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
48265         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
48266         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
48267         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
48268         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
48269         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
48270         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
48271         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
48272         * tests/test-fcntl-h.c: Check that pid_t is defined.
48273         * tests/test-sched.c: Likewise.
48274         * tests/test-termios.c: Likewise.
48275         * tests/test-time.c: Likewise.
48276         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
48277         * doc/posix-headers/signal.texi: Likewise.
48278         * doc/posix-headers/sys_types.texi: Likewise.
48279         * doc/posix-headers/time.texi: Likewise.
48281 2011-09-11  Bruno Haible  <bruno@clisp.org>
48283         acl: Fix compilation on Solaris 10 (older version).
48284         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
48285         of ACE_EVERYONE.
48286         * lib/set-mode-acl.c (qset_acl): Likewise.
48287         Reported by Christian Jullien <eligis@orange.fr>.
48289 2011-09-10  Bruno Haible  <bruno@clisp.org>
48291         iconv, unsetenv: Add support for MSVC compiler.
48292         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
48293         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
48295 2011-09-10  Bruno Haible  <bruno@clisp.org>
48297         *printf: Add support for MSVC compiler.
48298         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
48299         handles the exception caused by the %n directive. When cross-compiling,
48300         guess no on native Windows.
48301         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
48302         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
48303         emulate it through vsnprintf.
48304         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
48305         * doc/posix-functions/dprintf.texi: Update documentation regarding
48306         MSVC 9.
48307         * doc/posix-functions/fprintf.texi: Likewise.
48308         * doc/posix-functions/printf.texi: Likewise.
48309         * doc/posix-functions/snprintf.texi: Likewise.
48310         * doc/posix-functions/sprintf.texi: Likewise.
48311         * doc/posix-functions/swprintf.texi: Likewise.
48312         * doc/posix-functions/vdprintf.texi: Likewise.
48313         * doc/posix-functions/vfprintf.texi: Likewise.
48314         * doc/posix-functions/vprintf.texi: Likewise.
48315         * doc/posix-functions/vsnprintf.texi: Likewise.
48316         * doc/posix-functions/vsprintf.texi: Likewise.
48317         * doc/glibc-functions/asprintf.texi: Likewise.
48318         * doc/glibc-functions/obstack_printf.texi: Likewise.
48319         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
48320         * doc/glibc-functions/vasprintf.texi: Likewise.
48322 2011-09-10  Bruno Haible  <bruno@clisp.org>
48324         nocrash: Add support for native Windows.
48325         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
48327 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
48328             Bruno Haible  <bruno@clisp.org>
48330         absolute-header, include-next: Add support for MSVC compiler.
48331         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
48332         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
48333         directory separator in #line directives.
48334         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
48335         recognize also backslash as directory separator in #line directives.
48337 2011-09-08  Jim Meyering  <meyering@redhat.com>
48339         maint.mk: mark the post-release commit log with "maint: " prefix
48340         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
48341         one-line commit-log summary.
48343 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
48344             Bruno Haible  <bruno@clisp.org>
48346         Doc about crypt functions.
48347         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
48348         systems.
48349         * doc/posix-functions/encrypt.texi: Likewise.
48350         * doc/posix-functions/setkey.texi: Likewise.
48352 2011-09-08  Simon Josefsson  <simon@josefsson.org>
48354         * lib/gc.h: Fix copyright header.
48356 2011-09-07  Bruno Haible  <bruno@clisp.org>
48358         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
48359         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
48360         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
48362 2011-09-07  Bruno Haible  <bruno@clisp.org>
48364         openat: Work around compilation error with OSF/1 5.1 DTK cc.
48365         * lib/fopen.c: Use different syntax for include of <stdio.h>.
48366         * lib/freopen.c: Likewise.
48367         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
48368         * lib/lstat.c: Likewise.
48369         * lib/stat.c: Likewise.
48370         * lib/open.c: Use different syntax for include of <fcntl.h>.
48371         * lib/openat.c: Include fcntl.h again, explicitly.
48373 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
48375         parse-datetime: document the newly accepted format
48376         * doc/parse-datetime.texi (Combined date and time of day items):
48377         New section.
48379 2011-09-06  Bruno Haible  <bruno@clisp.org>
48381         acl: Fix a test failure on newer Solaris 10 with ZFS.
48382         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
48383         ENOSYS as no ACL.
48384         Reported by Jim Meyering.
48386 2011-09-06  Bruno Haible  <bruno@clisp.org>
48388         acl: Update for AIX >= 5.3 with NFS.
48389         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
48390         ENOSYS as no ACL.
48392         acl: Fix a test failure on AIX >= 5.3 with NFS.
48393         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
48394         as no ACL.
48396 2011-09-06  Bruno Haible  <bruno@clisp.org>
48398         acl: Fix a test failure on IRIX 6.5 with NFS.
48399         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
48400         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
48401         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
48402         * lib/copy-acl.c (qcopy_acl): Likewise.
48404 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
48406         openat: port to AIX 7.1 with large files
48407         AIX 7.1 does a "#define openat open64at" if large files are in use,
48408         so we can't simply #undef openat.  Use the orig_openat trick (similar
48409         to orig_open in lib/open.c) to work around the problem.  Problem
48410         reported by Kevin Brott for GNU tar, in the thread containing
48411         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
48412         * lib/openat.c (__need_system_fcntl_h): Define first.
48413         Include <fcntl.h> and <sys/types.h> before undefining.
48414         (orig_openat) [HAVE_OPENAT]: New inline function.
48415         (openat) [HAVE_OPENAT]: Do not undef.
48416         (rpl_openat): Use orig_openat, not openat.
48418 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
48419             Bruno Haible  <bruno@clisp.org>
48421         acl: Avoid errors on NonStop Kernel.
48422         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
48423         ENOTSUP errors.
48425 2011-09-05  Bruno Haible  <bruno@clisp.org>
48427         acl: Clean up Solaris code.
48428         * lib/acl-internal.h: Remove no-op #if.
48429         * lib/file-has-acl.c: Likewise.
48430         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
48431         * lib/copy-acl.c (qcopy_acl): Likewise.
48433 2011-09-05  Bruno Haible  <bruno@clisp.org>
48435         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
48436         binaries built on the original Solaris 10.
48437         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
48438         trivial.
48440 2011-09-05  Bruno Haible  <bruno@clisp.org>
48442         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
48443         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
48444         10.
48445         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
48446         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
48447         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
48448         instead of acl_get, facl_get, acl_set, facl_set.
48450 2011-09-05  Bruno Haible  <bruno@clisp.org>
48452         copy-file: Try unit tests on more file systems.
48453         * tests/test-copy-file-1.sh: New file.
48454         * tests/test-copy-file-2.sh: New file.
48455         * modules/copy-file-tests (Files): Add them.
48456         (Makefile.am): Add them to TESTS.
48458         acl: Try unit tests on more file systems.
48459         * tests/test-file-has-acl-1.sh: New file.
48460         * tests/test-file-has-acl-2.sh: New file.
48461         * tests/test-set-mode-acl-1.sh: New file.
48462         * tests/test-set-mode-acl-2.sh: New file.
48463         * tests/test-copy-acl-1.sh: New file.
48464         * tests/test-copy-acl-2.sh: New file.
48465         * modules/acl-tests (Files): Add them.
48466         (Makefile.am): Add them to TESTS.
48468 2011-09-04  Bruno Haible  <bruno@clisp.org>
48470         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
48471         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
48472         10.
48473         (OLD_ALLOW, OLD_DENY): New macros.
48474         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
48475         ACE_ACCESS_ALLOWED_ACE_TYPE.
48476         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
48477         ACE_ACCESS_DENIED_ACE_TYPE.
48478         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
48479         (NEW_ACE_EXECUTE): Fix value.
48480         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
48481         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
48482         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
48483         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
48484         NEW_ACE_SYNCHRONIZE): New macros.
48485         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
48486         instead of acl_fromtext, acl_set, facl_set.
48487         Fixes a coreutils/tests/cp/perm failure.
48489 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
48491         openat: test for fstatat (..., 0) bug
48492         Further testing with tar suggests that fstatat (..., 0)
48493         does not work in general, on AIX 7.1; see
48494         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
48495         So, give up entirely on AIX 7.1's fstatat, and fall back on our
48496         replacement fstatat (which is what older AIX releases were using
48497         anyway).
48498         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
48499         use is now changed to orig_fstatat.  This was probably the right
48500         thing to do anyway.
48501         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
48502         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
48503         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
48504         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
48505         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
48506         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
48507         if the bug is found.
48509         openat: test for fstatat (AT_FDCWD, ..., 0) bug
48510         This tests for another fstatat bug on AIX 7.1:
48511         fstatat (AT_FDCWD, ..., 0) does not work.  See
48512         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
48513         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
48514         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
48515         (rpl_fstatat): Adjust so that it works around either (or both)
48516         bugs if present.
48517         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
48519 2011-09-03  Karl Berry  <karl@gnu.org>
48521         * doc/regex.texi (Character Class Operators): Avoid literal ":"
48522         in index entries.
48524 2011-09-02  Bruno Haible  <bruno@clisp.org>
48526         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
48527         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
48528         values of AR, ARFLAGS, RANLIB.
48529         Reported by John W. Eaton <jwe@gnu.org> for Octave.
48531 2011-09-02  Bruno Haible  <bruno@clisp.org>
48533         Find 'ar' program that fits with --host argument.
48534         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
48536 2011-09-02  Bruno Haible  <bruno@clisp.org>
48538         tests: init.sh: Support any non-GNU diff.
48539         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
48540         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
48541         Solaris 8.
48543 2011-09-02  Bruno Haible  <bruno@clisp.org>
48545         tests: init.sh: work also with any non-GNU diff that supports -u
48546         * tests/init.sh: Relax check for diff -u support.
48547         Rather than checking for GNU diff via --version, simply check
48548         for support for -u itself.  Useful at least on OpenBSD 4.9,
48549         AIX 7.1, IRIX 6.5, and Solaris 10.
48551 2011-09-01  Bruno Haible  <bruno@clisp.org>
48553         strtoimax, strtoumax: Document problem on HP-UX 11.
48554         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
48555         * doc/posix-functions/strtoumax.texi: Likewise.
48557 2011-09-01  Bruno Haible  <bruno@clisp.org>
48559         strtoumax: Avoid link error on OSF/1 with DTK cc.
48560         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
48561         defined as a function.
48562         * modules/strtoumax (Depends-on, configure.ac): Test only whether
48563         strtoumax is defined, not whether it is declared.
48565 2011-09-01  Bruno Haible  <bruno@clisp.org>
48567         strtoimax: Avoid link error on OSF/1 with DTK cc.
48568         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
48569         defined as a function.
48570         * modules/strtoimax (Depends-on, configure.ac): Test only whether
48571         strtoimax is defined, not whether it is declared.
48573 2011-09-01  Bruno Haible  <bruno@clisp.org>
48575         imaxdiv: Avoid link error on OSF/1 with DTK cc.
48576         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
48577         as a function.
48578         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
48579         whether it is declared.
48581 2011-09-01  Bruno Haible  <bruno@clisp.org>
48583         imaxabs: Avoid link error on OSF/1 with DTK cc.
48584         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
48585         as a function.
48586         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
48587         whether it is declared.
48589 2011-09-01  Bruno Haible  <bruno@clisp.org>
48591         Tests for module 'strtoumax'.
48592         * modules/strtoumax-tests: New file.
48593         * tests/test-strtoumax.c: New file.
48595         Tests for module 'strtoimax'.
48596         * modules/strtoimax-tests: New file.
48597         * tests/test-strtoimax.c: New file.
48599         Tests for module 'imaxdiv'.
48600         * modules/imaxdiv-tests: New file.
48601         * tests/test-imaxdiv.c: New file.
48603         Tests for module 'imaxabs'.
48604         * modules/imaxabs-tests: New file.
48605         * tests/test-imaxabs.c: New file.
48607 2011-09-01  Bruno Haible  <bruno@clisp.org>
48609         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
48610         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
48611         pthread_create.
48613 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
48615         openat: work around AIX 7.1 fstatat issue
48616         This should fix the problem that was not properly fixed
48617         in the previous change, dated 2011-08-30.
48618         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
48619         __need_system_stat_h defined.
48620         (orig_fstatat) [HAVE_FSTATAT]: New function.
48621         (rpl_fstatat): Go back to the old way of doing things,
48622         except call orig_fstatat instead of fstatat.
48623         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
48624         Remove unnecessary check whether fstatat fills in st_size etc.
48626 2011-09-01  Bruno Haible  <bruno@clisp.org>
48628         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
48629         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
48630         just include the system's header.
48632 2011-08-31  Jim Meyering  <meyering@redhat.com>
48634         tests: avoid spurious assertion failure in test-float.c on ppc64
48635         * tests/test-float.c (test_long_double): Comment out an assertion,
48636         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
48637         with gcc-4.4.4.
48639         maint: indent with spaces, not TABs
48640         I need to get in the habit of running gnulib's "make check".
48641         Both of these would have been caught.
48642         * m4/largefile.m4: Indent with spaces, not TABs.
48643         * lib/parse-datetime.y (iso_8601_time): Likewise.
48644         Spotted by Pádraig Brady.
48646         test-parse-datetime.c: accommodate a relatively strict gcc warning
48647         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
48648         to avoid a warning from gcc's -Werror=missing-declarations.
48649         Insert a few spaces-before-funcall-parenthesis.
48651 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
48653         parse-datetime: accept ISO 8601 date and time rep with "T" separator
48654         The parser now accepts ISO 8601 date-time strings with "T" as the
48655         separator.  It has long parsed dates like "2004-02-29 16:21:42"
48656         with a space between the date and time strings.  Now it also parses
48657         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
48658         variants like "2004-02-29T16:21:42.333-07:00"
48659         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
48660         of day representation using the 'T' separator character.
48661         * doc/parse-datetime.texi (General date syntax): replace use of
48662         deprecated --iso-8601 option with --rfc-3339 in example of date
48663         command output formats that can be parsed.
48664         * tests/test-parse-datetime.c (tm_diff): New function, taken from
48665         lib/parse-datetime.y.
48666         (gmt_offset): New function.
48667         (main): Add additional test cases to validate ISO8601 extended
48668         date and time of day parsing.
48670 2011-08-31  Bruno Haible  <bruno@clisp.org>
48672         freopen: Documentation.
48673         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
48674         name.
48675         Reported by Claudio Bley <claudio.bley@gmail.com>.
48677 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
48679         freopen: Don't crash if the filename argument is NULL.
48680         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
48681         NULL.
48683 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
48685         openat: work around AIX 7.1 fstatat bug
48686         Problem reported by Kevin Brott for GNU tar, in the thread containing
48687         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
48688         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
48689         FSTATAT_ST_SIZE_ETC_BROKEN.
48690         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
48691         rpl_fstatat.
48692         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
48693         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
48694         AC_CHECK_FUNCS_ONCE for fstatat.
48695         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
48696         fchmodat, mkdirat, openat and unlinkat.
48698 2011-08-30  Bruno Haible  <bruno@clisp.org>
48700         Avoid endless recursions if config.h includes some header files.
48701         * lib/fopen.c (__need_FILE): Define already before including config.h.
48702         * lib/freopen.c (__need_FILE): Likewise.
48703         * lib/open.c (__need_system_fcntl_h): Likewise.
48704         * lib/stat.c (__need_system_sys_stat_h): Likewise.
48705         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
48706         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
48708 2011-08-25  Karl Berry  <karl@gnu.org>
48710         * config/srclist.txt (ylwrap): new try.
48711         * build-aux/ylwrap: new file.
48713 2011-08-23  Bruno Haible  <bruno@clisp.org>
48715         tmpdir: Use a good default directory on native Windows.
48716         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
48717         (P_tmpdir): Default to _P_tmpdir on native Windows.
48718         (path_search): On native Windows, try the value returned by GetTempPath
48719         before trying P_tmpdir.
48720         * modules/tmpdir (Depends-on): Add pathmax.
48721         Suggested by John Darrington <john@darrington.wattle.id.au>.
48723 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
48725         doc: fix typo in README-release
48726         * top/README-release: Capitalize first word of a sentence.
48728 2011-08-19  Jim Meyering  <meyering@redhat.com>
48730         fts: do not exhaust memory when processing million-entry directories
48731         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
48732         directory would require about 256*N bytes of memory.  Thus, it was
48733         easy to construct a directory too large to be processed by any of
48734         those tools.  With this change, fts' maximum memory utilization is
48735         now limited to around 30MB.
48736         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
48737         (fts_read): When we've processed the final entry (i.e., when
48738         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
48739         using the parent entry to read any remaining entries.  Dispatch
48740         depending on what fts_build returns:
48741         - NULL+stop, aka failure: stop
48742         - NULL otherwise: move up in the dir hierarchy
48743         - non-NULL: handle this new entry
48744         (fts_build): Declare and use new local, continue_readdir.
48745         Prepare to be called from fts_read, when the entries
48746         from a partially-read directory have just been exhausted.
48747         In that case, we'll skip the opendir and instead use the parent's
48748         fts_dirp and derive dir_fd from that.
48749         Finally, in the readdir loop, if we read max_entries entries,
48750         exit the loop ensuring *not* to call closedir.  This is required
48751         so that fts_dirp can be reused on a subsequent call.
48752         Prompted by Ben England's report of memory exhaustion in find
48753         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
48755         maint: fts: move decl of `dp' down into while loop; split a long line
48756         * lib/fts.c (fts_build): No semantic change.
48758         fts: add/use new struct member, fts_dirp
48759         We are about to use this to manage any directory with
48760         too many entries to read all of them into memory at once.
48761         To do that, we'll need to save the DIR* pointer in each
48762         affected FTSENT struct.
48763         * lib/fts_.h: Include <dirent.h>.
48764         (struct FTSENT) [fts_dirp]: New member.
48765         * lib/fts.c (closedir_and_clear): Define.
48766         Use it in place of closedir so that we are sure to
48767         clear the new fts_dirp member when done with it.
48768         (fts_alloc): Initialize the new member.
48769         (fts_lfree): Free, if needed.
48771         maint: fts: give __opendir2 a new parameter and rename
48772         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
48773         than surreptitiously using sole caller's "dir_fd".
48774         (fts_opendir): Rename from __opendir2.
48776         maint: fts.c: remove __opendir2's now-unused parameter, oflag
48777         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
48779         maint: fts.c: correct off-by-one indentation
48780         * lib/fts.c (fts_build): Correct indentation, change style
48781         of a couple of block comments, and bracing style.
48783         maint: fts.c: move __opendir2 #define "up" out of function body
48784         * lib/fts.c (__opendir2): Move "up".  No semantic change.
48786         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
48787         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
48788         out for a long time and besides was useful only on BSD systems.
48790 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
48792         regex: port to Stratus OpenVOS
48793         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
48794         define to empty, rather than attempting nonportable optimizations.
48795         Problem reported by Paul Green in:
48796         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
48797         and fix suggested by Eric Blake in:
48798         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
48800 2011-08-17  Eric Blake  <eblake@redhat.com>
48802         getcwd: fix test failures on mingw
48803         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
48804         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
48805         test if long directory cannot be created, and allow mingw errno.
48807         getcwd-lgpl: fix m4 to match relaxed test for BSD
48808         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
48809         (gl_FUNC_GETCWD_SIGNATURE): New macro.
48810         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
48811         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
48812         signature problem.
48814         getcwd: fix compilation on mingw64
48815         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
48816         getcwd.
48817         Reported by Marc-André Lureau.
48819         pipe2: silence compiler warning
48820         * lib/pipe2.c (pipe2): Hide label if it is not used.
48822 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
48824         relocatable-prog: fix link error
48825         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
48826         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
48827         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
48828         into modules/relocatable-lib without noticing that
48829         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
48830         also needs to build relocatable.c.
48832 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
48834         getaddrinfo: fix sh typo in gai_strerrorA decl checking
48835         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
48836         shell code: it contained a 'break' that was not in a loop.
48837         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
48838         via a shell-language loop; this may have been true in old Autoconf
48839         versions, but it's not true in Autoconf 2.68.  I found this bug
48840         when testing coreutils git on Solaris 8, whose shell complains
48841         about the syntax error.
48843 2011-08-12  Simon Josefsson  <simon@josefsson.org>
48845         * lib/base64.c: Fix comment to reference RFC 4648.
48846         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
48847         <gvtulder@gmail.com>.
48849 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
48851         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
48853         po/Makefile.in.in: fix make -q problem
48854         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
48855         rule, since there's no file named 'check-macro-version' and its
48856         use as a file breaks make -q.
48857         (all): Don't depend on check-macro-version.
48858         (CHECK_MACRO_VERSION): New macro.
48859         (stamp-po): Use it.
48861         configmake: fix make -q problem
48862         * modules/configmake (configmake.h): Update configmake.h's time stamp
48863         even if the file does not change.  Otherwise, 'make -q' fails.
48864         Problem reported by Simon Josefsson in
48865         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
48867 2011-08-11  Jim Meyering  <meyering@redhat.com>
48869         git-version-gen: correct the advice in a comment
48870         * build-aux/git-version-gen: Correct comment.
48871         Don't recommend to list .tarball-version in .gitignore.
48873 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48875         base64: fix off-by-one buffer size bug
48876         Problem and (trivial) fix reported by Gijs van Tulder in
48877         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
48878         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
48879         * tests/test-base64.c (main): Catch the bug.
48881 2011-08-10  Eric Blake  <eblake@redhat.com>
48883         closein: correct comments
48884         * lib/closein.c (close_stdin): Improve comments.
48886 2011-08-09  Bruno Haible  <bruno@clisp.org>
48888         More tests for 'fseeko'.
48889         * tests/test-fseeko3.c: New file, from Eric Blake.
48890         * tests/test-fseeko3.sh: New file.
48891         * modules/fseeko-tests (Files): Add them.
48892         (TESTS): Add test-fseeko3.sh.
48893         (check_PROGRAMS): Add test-fseeko3.
48895 2011-08-09  Eric Blake  <eblake@redhat.com>
48897         fseeko: remove unneeded hack
48898         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
48900         fseeko: fix bug on glibc
48901         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
48902         Reported by John W. Eaton.
48904 2011-08-08  Bruno Haible  <bruno@clisp.org>
48906         unictype/base: Fix interoperability with preinstalled libunistring.
48907         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
48908         Reported by Simon Josefsson.
48910 2011-08-08  Bruno Haible  <bruno@clisp.org>
48912         iswblank: Detect declaration correctly.
48913         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
48914         AC_CHECK_DECLS invocation.
48916 2011-08-08  Bruno Haible  <bruno@clisp.org>
48918         tcgetsid: Detect declaration correctly.
48919         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
48920         AC_CHECK_DECLS invocation.
48921         Reported by Simon Josefsson.
48923 2011-08-08  Eric Blake  <eblake@redhat.com>
48925         largefile: fix typo that regressed large file support
48926         * modules/largefile (configure.ac-early): Fix section name.
48928 2011-08-06  Karl Berry  <karl@gnu.org>
48930         * MODULES.html.sh (func_all_files): _Noreturn is no longer
48931         a separate module.
48933 2011-08-05  Simon Josefsson  <simon@josefsson.org>
48935         openat: Fix warnings and commens when building unlinkat.c on Hurd.
48936         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
48937         get prototype for free.
48939 2011-08-04  Bruno Haible  <bruno@clisp.org>
48941         Tests for module 'pathmax'.
48942         * modules/pathmax-tests: New file.
48943         * tests/test-pathmax.c: New file.
48945         canonicalize-lgpl: Support larger filenames on the Hurd.
48946         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
48947         Reported by Paul Eggert.
48949         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
48950         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
48951         * lib/chdir-long.h: Include pathmax.h.
48952         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
48953         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
48954         (PATH_MAX): Remove code that is done by pathmax.h.
48955         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
48956         * lib/tmpfile.c: Add a comment.
48957         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
48958         * modules/chdir-long (Depends-on): Add pathmax.
48959         * modules/getcwd (Depends-on): Add pathmax.
48960         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
48961         is not defined.
48962         * doc/posix-headers/limits.texi: Mention the pathmax module.
48963         * NEWS: Mention the change.
48965 2011-08-02  Bruno Haible  <bruno@clisp.org>
48967         pthread_sigmask: Actually use results of gl_THREADLIB.
48968         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
48969         gl_THREADLIB, not gl_[]THREADLIB.
48970         Reported by Eric Blake.
48972 2011-08-02  Jim Meyering  <meyering@redhat.com>
48974         maint.mk: relax the default _gl_TS_function_match regexp
48975         * top/maint.mk (_gl_TS_function_match): Don't require at least one
48976         space between function name and "(" in an "extern" declaration.
48977         That would fail to match a decl with no space there: extern void foo();
48979 2011-07-31  Iain Nicol  <iain@thenicols.net>
48981         git-version-gen: document that EXTRA_DIST must include .version
48982         * build-aux/git-version-gen: In the how-to-use comment, document
48983         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
48984         will fail when run from an unpacked distribution tarball.
48986 2011-08-01  Bruno Haible  <bruno@clisp.org>
48988         wctype-h: Fix last change.
48989         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
48990         REPLACE_TOWLOWER to 0.
48991         Reported by Sam Steingold <sds@gnu.org>.
48993 2011-07-31  Bruno Haible  <bruno@clisp.org>
48995         frexpl: Update autoconf test.
48996         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
48997         according to changes of 2011-06-20.
48999 2011-07-31  Bruno Haible  <bruno@clisp.org>
49001         sys_utsname: Add support for Minix.
49002         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
49003         <sys/utsname.h>.
49004         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
49005         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
49007 2011-07-31  Bruno Haible  <bruno@clisp.org>
49009         strings: Add support for Minix.
49010         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
49011         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
49012         * doc/posix-headers/strings.texi: Document the Minix problem.
49014 2011-07-31  Bruno Haible  <bruno@clisp.org>
49016         wctype-h: Add support for Minix.
49017         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
49018         REPLACE_TOWLOWER.
49019         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
49020         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
49021         REPLACE_ISWCNTRL.
49023 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
49025         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
49026         This is a performance improvement for 64-bit hosts: it causes the
49027         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
49029 2011-07-31  Bruno Haible  <bruno@clisp.org>
49031         stdioext: Add support for Minix.
49032         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
49033         * lib/fpurge.c (fpurge): Likewise.
49034         * lib/freadahead.c (freadahead): Likewise.
49035         * lib/freadable.c (freadable): Likewise.
49036         * lib/freading.c (freading): Likewise.
49037         * lib/freadptr.c (freadptr): Likewise.
49038         * lib/freadseek.c (freadptrinc): Likewise.
49039         * lib/fseeko.c (rpl_fseeko): Likewise.
49040         * lib/fseterr.c (fseterr): Likewise.
49041         * lib/fwritable.c (fwritable): Likewise.
49042         * lib/fwriting.c (fwriting): Likewise.
49043         * lib/fflush.c (clear_ungetc_buffer): Update comment.
49044         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
49046 2011-07-31  Bruno Haible  <bruno@clisp.org>
49048         errno: Port to Minix.
49049         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
49050         ECONNABORTED are defined.
49051         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
49052         GNULIB_defined_ECONNABORTED): New macros.
49053         * lib/strerror-override.h (strerror_override): Test also
49054         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
49055         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
49056         ECONNABORTED.
49057         * doc/posix-headers/errno.texi: Mention the Minix problem.
49059 2011-07-31  Bruno Haible  <bruno@clisp.org>
49061         Work around declaration collisions on Minix.
49062         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
49063         defined, set REPLACE_MBSINIT.
49064         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
49065         defined, set REPLACE_MBRTOWC.
49066         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
49067         set REPLACE_MBRLEN.
49068         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
49069         defined, set REPLACE_MBSRTOWCS.
49070         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
49071         defined, set REPLACE_WCRTOMB.
49072         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
49073         defined, set REPLACE_WCSRTOMBS.
49075 2011-07-31  Bruno Haible  <bruno@clisp.org>
49077         Add support for Minix with ACK compiler.
49078         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
49079         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
49080         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
49082 2011-07-31  Bruno Haible  <bruno@clisp.org>
49084         Documentation about Minix.
49085         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
49086         * doc/glibc-headers/*.texi: Likewise.
49087         * doc/posix-functions/*.texi: Likewise.
49088         * doc/glibc-functions/*.texi: Likewise.
49090 2011-07-31  Bruno Haible  <bruno@clisp.org>
49092         snippet/warn-on-use: Fix indentation.
49093         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
49095 2011-07-25  Jim Meyering  <meyering@redhat.com>
49097         tests: test-update-copyright.sh: remove unnecessary "rm" commands
49098         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
49099         commands.
49101 2011-07-27  Jim Meyering  <meyering@redhat.com>
49103         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
49104         * top/maint.mk (gl_extract_significant_defines_): Now that
49105         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
49106         gnulib/lib/signal.in.h, and now that we recommend to
49107         define-if-undefined those two symbols in application code,
49108         we must filter them out of the "significant" list.
49109         This avoids a "make syntax-check" failure in coreutils.
49111 2011-07-26  Eric Blake  <eblake@redhat.com>
49113         warnings: add comments about previous patch
49114         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
49115         * m4/include_next.m4: Likewise.
49116         * m4/warn-on-use.m4: Likewise.
49117         * m4/warnings.m4: Likewise, and simplify use.
49118         Suggested by Stefano Lattarini.
49120         include-next, warnings: support older autoconf
49121         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
49122         AS_VAR_PUSHDEF in a way that works with older autoconf.
49123         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
49124         Reported by Daniel P. Berrange.
49126 2011-07-25  Bruno Haible  <bruno@clisp.org>
49128         fseek, ftell: Fix doc.
49129         * doc/posix-functions/fseek.texi: Reword statement about
49130         AC_SYS_LARGEFILE.
49131         * doc/posix-functions/ftell.texi: Likewise.
49133 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
49134             Bruno Haible  <bruno@clisp.org>
49136         Add dependencies to the 'largefile' module.
49137         * modules/fopen (Depends-on): Add 'largefile'.
49138         * modules/freopen (Depends-on): Likewise.
49139         * modules/fseeko (Depends-on): Likewise.
49140         * modules/ftello (Depends-on): Likewise.
49141         * modules/glob (Depends-on): Likewise.
49142         * modules/lseek (Depends-on): Likewise.
49143         * modules/lstat (Depends-on): Likewise.
49144         * modules/mkostemp (Depends-on): Likewise.
49145         * modules/mkostemps (Depends-on): Likewise.
49146         * modules/mkstemp (Depends-on): Likewise.
49147         * modules/mkstemps (Depends-on): Likewise.
49148         * modules/open (Depends-on): Likewise.
49149         * modules/openat (Depends-on): Likewise.
49150         * modules/pread (Depends-on): Likewise.
49151         * modules/pwrite (Depends-on): Likewise.
49152         * modules/scandir (Depends-on): Likewise.
49153         * modules/stat (Depends-on): Likewise.
49154         * modules/tmpfile (Depends-on): Likewise.
49155         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
49156         since the containing module now depends on the largefile module.
49157         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
49158         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
49159         off_t is fixed by gnulib.
49160         * doc/posix-functions/freopen.texi: Likewise.
49161         * doc/posix-functions/fseeko.texi: Likewise.
49162         * doc/posix-functions/fstatat.texi: Likewise.
49163         * doc/posix-functions/ftello.texi: Likewise.
49164         * doc/posix-functions/glob.texi: Likewise.
49165         * doc/posix-functions/lseek.texi: Likewise.
49166         * doc/posix-functions/lstat.texi: Likewise.
49167         * doc/posix-functions/mkstemp.texi: Likewise.
49168         * doc/posix-functions/open.texi: Likewise.
49169         * doc/posix-functions/openat.texi: Likewise.
49170         * doc/posix-functions/pread.texi: Likewise.
49171         * doc/posix-functions/pwrite.texi: Likewise.
49172         * doc/posix-functions/scandir.texi: Likewise.
49173         * doc/posix-functions/stat.texi: Likewise.
49174         * doc/posix-functions/tmpfile.texi: Likewise.
49175         * doc/glibc-functions/mkostemp.texi: Likewise.
49176         * doc/glibc-functions/mkostemps.texi: Likewise.
49177         * doc/glibc-functions/mkstemps.texi: Likewise.
49179 2011-07-25  Bruno Haible  <bruno@clisp.org>
49181         fcntl: Move AC_LIBOBJ invocation to module description.
49182         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
49183         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
49185         fcntl: Remove call-in from fchdir.m4.
49186         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
49187         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
49189         dup3: Remove potential call-in from fchdir.m4.
49190         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
49191         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
49193         dup2: Move AC_LIBOBJ invocation to module description.
49194         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
49195         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
49196         Don't invoke AC_LIBOBJ.
49197         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
49199         dup2: Remove call-in from fchdir.m4.
49200         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
49201         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
49203         fclose: Move AC_LIBOBJ invocation to module description.
49204         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
49205         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
49206         to 1.
49207         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
49209         fclose: Remove call-in from close.m4.
49210         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
49211         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
49213         close: Move AC_LIBOBJ invocation to module description.
49214         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
49215         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
49216         1.
49217         * modules/close (configure.ac): Invoke AC_LIBOBJ.
49219         close: Remove call-in from fchdir.m4.
49220         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
49221         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
49223         open: Move AC_LIBOBJ invocation to module description.
49224         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
49225         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
49226         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
49228         open: Remove call-in from fchdir.m4.
49229         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
49230         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
49232         fchdir: Start to remove gl_REPLACE_* idiom.
49233         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
49234         (gl_FUNC_FCHDIR): Invoke it.
49236 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
49238         * lib/ftell.c (ftell): Comment out cast.
49240         close: use gl_REPLACE_FCLOSE only if defined
49241         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
49242         is defined.  The close module doesn't depend on the fclose module
49243         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
49244         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
49245         I reproduced the problem with "./gnulib-tool --test close sys_socket".
49247 2011-07-24  Jim Meyering  <meyering@redhat.com>
49249         test-select.h: avoid warning when using gcc's -Wmissing-declarations
49250         * tests/test-select.h (test_function): Declare as "static".
49252 2011-07-24  Bruno Haible  <bruno@clisp.org>
49254         doc: Mention the effects of AC_SYS_LARGEFILE.
49255         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
49256         on this function.
49257         * doc/posix-functions/aio_error.texi: Likewise.
49258         * doc/posix-functions/aio_fsync.texi: Likewise.
49259         * doc/posix-functions/aio_read.texi: Likewise.
49260         * doc/posix-functions/aio_return.texi: Likewise.
49261         * doc/posix-functions/aio_suspend.texi: Likewise.
49262         * doc/posix-functions/aio_write.texi: Likewise.
49263         * doc/posix-functions/fgetpos.texi: Likewise.
49264         * doc/posix-functions/fopen.texi: Likewise.
49265         * doc/posix-functions/freopen.texi: Likewise.
49266         * doc/posix-functions/fsetpos.texi: Likewise.
49267         * doc/posix-functions/fstatvfs.texi: Likewise.
49268         * doc/posix-functions/ftruncate.texi: Likewise.
49269         * doc/posix-functions/ftw.texi: Likewise.
49270         * doc/posix-functions/getrlimit.texi: Likewise.
49271         * doc/posix-functions/glob.texi: Likewise.
49272         * doc/posix-functions/lio_listio.texi: Likewise.
49273         * doc/posix-functions/lockf.texi: Likewise.
49274         * doc/posix-functions/mkstemp.texi: Likewise.
49275         * doc/posix-functions/mmap.texi: Likewise.
49276         * doc/posix-functions/nftw.texi: Likewise.
49277         * doc/posix-functions/openat.texi: Likewise.
49278         * doc/posix-functions/opendir.texi: Likewise.
49279         * doc/posix-functions/posix_fadvise.texi: Likewise.
49280         * doc/posix-functions/posix_fallocate.texi: Likewise.
49281         * doc/posix-functions/pread.texi: Likewise.
49282         * doc/posix-functions/pwrite.texi: Likewise.
49283         * doc/posix-functions/readdir.texi: Likewise.
49284         * doc/posix-functions/readdir_r.texi: Likewise.
49285         * doc/posix-functions/rewinddir.texi: Likewise.
49286         * doc/posix-functions/scandir.texi: Likewise.
49287         * doc/posix-functions/seekdir.texi: Likewise.
49288         * doc/posix-functions/setrlimit.texi: Likewise.
49289         * doc/posix-functions/statvfs.texi: Likewise.
49290         * doc/posix-functions/telldir.texi: Likewise.
49291         * doc/posix-functions/tmpfile.texi: Likewise.
49292         * doc/posix-functions/truncate.texi: Likewise.
49293         * doc/glibc-functions/fallocate.texi: Likewise.
49294         * doc/glibc-functions/fstatfs.texi: Likewise.
49295         * doc/glibc-functions/fts_children.texi: Likewise.
49296         * doc/glibc-functions/fts_read.texi: Likewise.
49297         * doc/glibc-functions/getdirentries.texi: Likewise.
49298         * doc/glibc-functions/mkostemp.texi: Likewise.
49299         * doc/glibc-functions/mkostemps.texi: Likewise.
49300         * doc/glibc-functions/mkstemps.texi: Likewise.
49301         * doc/glibc-functions/preadv.texi: Likewise.
49302         * doc/glibc-functions/pwritev.texi: Likewise.
49303         * doc/glibc-functions/sendfile.texi: Likewise.
49304         * doc/glibc-functions/statfs.texi: Likewise.
49306 2011-07-24  Bruno Haible  <bruno@clisp.org>
49308         doc: Fix typo.
49309         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
49311 2011-07-24  Bruno Haible  <bruno@clisp.org>
49313         doc: Mention fsusage.
49314         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
49316 2011-07-24  Bruno Haible  <bruno@clisp.org>
49318         doc: Mention new glibc headers and functions.
49319         * doc/glibc-headers/gshadow.texi: New file.
49320         * doc/glibc-functions/endsgent.texi: New file.
49321         * doc/glibc-functions/fgetsgent.texi: New file.
49322         * doc/glibc-functions/fgetsgent_r.texi: New file.
49323         * doc/glibc-functions/getsgent.texi: New file.
49324         * doc/glibc-functions/getsgent_r.texi: New file.
49325         * doc/glibc-functions/getsgnam.texi: New file.
49326         * doc/glibc-functions/getsgnam_r.texi: New file.
49327         * doc/glibc-functions/putsgent.texi: New file.
49328         * doc/glibc-functions/setsgent.texi: New file.
49329         * doc/glibc-functions/sgetsgent.texi: New file.
49330         * doc/glibc-functions/sgetsgent_r.texi: New file.
49331         * doc/glibc-functions/malloc_info.texi: New file.
49332         * doc/glibc-functions/preadv.texi: New file.
49333         * doc/glibc-functions/pwritev.texi: New file.
49334         * doc/glibc-functions/register_printf_modifier.texi: New file.
49335         * doc/glibc-functions/register_printf_specifier.texi: New file.
49336         * doc/glibc-functions/register_printf_type.texi: New file.
49337         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
49338         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
49339         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
49340         * doc/glibc-functions/pthread_getname_np.texi: New file.
49341         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
49342         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
49343         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
49344         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
49345         * doc/glibc-functions/pthread_setname_np.texi: New file.
49346         * doc/glibc-functions/pthread_sigqueue.texi: New file.
49347         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
49348         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
49349         * doc/glibc-functions/qsort_r.texi: New file.
49350         * doc/glibc-functions/quick_exit.texi: New file.
49351         * doc/glibc-functions/syncfs.texi: New file.
49352         * doc/gnulib.texi: Include them.
49353         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
49354         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
49355         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
49356         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
49357         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
49358         * doc/glibc-functions/execvpe.texi: Likewise.
49360 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
49362         ftell: don't include <unistd.h>
49363         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
49364         guaranteed to define off_t, and the ftell module depends on the
49365         stdio module.
49367         ftell: do not assume wraparound signed arithmetic
49368         * lib/ftell.c: Include <limits.h>.
49369         (ftell): Don't assume wraparound signed arithmetic.
49371 2011-07-24  Bruno Haible  <bruno@clisp.org>
49373         close: No longer depend on module 'fclose'.
49374         * modules/close (Depends-on): Remove fclose.
49375         * NEWS: Mention the change.
49376         Suggested by Sam Steingold <sds@gnu.org>.
49378 2011-07-24  Bruno Haible  <bruno@clisp.org>
49380         fsusage: Enable large volume support on AIX >= 5.2.
49381         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
49382         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
49383         instead of STAT_STATVFS.
49384         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
49386         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
49387         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
49388         f_blocks field only on MacOS X.
49390         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
49391         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
49392         * modules/fsusage (Depends-on): Add largefile.
49394 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
49396         * README: Modernize discussion of signed integers.
49397         Assuming overflow wraparound is no longer safe.
49398         Mention ones' complement and signed magnitude.
49400 2011-07-22  Bruno Haible  <bruno@clisp.org>
49402         select tests, pselect tests: Refactor.
49403         * tests/test-select.h: New file, extracted from tests/test-select.c.
49404         (select_fn): New type.
49405         (test, do_select, do_select_nowait, do_select_wait, test_tty,
49406         test_connect_first, test_accept_first, test_pair, test_socket_pair,
49407         test_pipe): Add my_select argument.
49408         (test_function): Renamed from main. Add my_select argument.
49409         * tests/test-select.c: Move most code to tests/test-select.h. Include
49410         test-select.h.
49411         * modules/select-tests (Files): Add tests/test-select.h.
49412         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
49413         (my_select, main): New functions.
49414         * modules/pselect-tests (Files): Add tests/test-select.h,
49415         tests/macros.h, tests/signature.h.
49416         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
49417         (configure.ac): Check for <sys/wait.h>.
49419 2011-07-22  Bruno Haible  <bruno@clisp.org>
49421         sys_select tests: Check the signature of FD_*.
49422         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
49423         signature tests from here...
49424         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
49425         here.
49426         * modules/sys_select-tests (Files): Add tests/signature.h.
49428 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
49430         largefile: new module, replacing large-inode
49431         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
49432         * MODULES.html.sh: Add largefile, remove large-inode.
49433         * modules/largefile, m4/largefile.m4: New files.
49434         * modules/large-inode, m4/large-inode.m4: Remove.
49436         fsusage: port to MacOS X 10.7 with 4 TiB file systems
49437         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
49438         implementations that use only 32 bits to count blocks.
49439         On typical hosts with 1024-byte blocks, this fails with file
49440         systems as small as 4 TiB.  Problem reported by Herb Wartens
49441         <http://debbugs.gnu.org/9140> and this should also fix a similar
49442         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
49444         large-inode: New module
49445         * MODULES.html.sh: Add it.
49446         * modules/large-inode, m4/large-inode.m4: New files.
49448         extensions: Enable extensions on MacOS X 10.5 and later.
49449         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
49451 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
49453         file-has-acl: use acl_extended_file_nofollow if available
49454         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
49455         (acl_extended_file): New macro.
49456         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
49457         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
49459 2011-07-21  Bruno Haible  <bruno@clisp.org>
49461         Declare system functions in a way that works with C++.
49462         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
49463         declare fdopendir as extern "C".
49464         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
49465         declare frexpl as extern "C".
49466         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
49467         declare gai_strerror as extern "C".
49468         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
49469         programs, declare gai_strerror as extern "C".
49470         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
49471         declare getlogin_r as extern "C".
49472         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
49473         as extern "C".
49474         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
49475         declare ldexpl as extern "C".
49476         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
49477         as extern "C".
49478         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
49479         program, declare getmntinfo as extern "C".
49480         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
49481         stpncpy as extern "C".
49482         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
49483         program, declare __xpg_strerror_r as extern "C".
49484         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
49485         strndup as extern "C".
49486         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
49487         declare memset and bzero as extern "C".
49488         Reported by Sam Steingold <sds@gnu.org>.
49490 2011-07-12  Jim Meyering  <meyering@redhat.com>
49492         maint.mk: prohibit inclusion of "verify.h" without use
49493         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
49495 2011-07-19  Pádraig Brady  <P@draigBrady.com>
49497         timer-time: A new module to check for timer_settime()
49498         * m4/timer_time.m4: Check for the posix function.
49499         * modules/timer-time: Add the new module.
49500         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
49501         Mention it.
49503 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
49504             Bruno Haible  <bruno@clisp.org>
49506         pthread_sigmask: assume POSIX threads if --avoid=threadlib
49507         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
49508         not defined, assume POSIX threads and look for pthread_sigmask in
49509         $LIBS, without changing $CPPFLAGS.
49511 2011-07-19  Bruno Haible  <bruno@clisp.org>
49513         strstr: Update cross-compilation guess.
49514         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
49515         CPUs, guess no, in view of glibc
49516         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
49517         Suggested by Eric Blake. Reported by Reuben Thomas.
49519 2011-07-19  Pádraig Brady  <P@draigBrady.com>
49521         getopt-gnu: suppress core dumps from detection code
49522         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
49523         to suppress core dumps that may well occur on glibc systems.
49524         * modules/getopt-gnu: Depend on nocrash.
49526 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
49528         pthread_sigmask: ensure usleep is declared
49529         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
49530         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
49532 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
49534         doc: Document NonStop portability issues.
49535         * doc/posix-functions/sigaction.texi (sigaction):
49536         * doc/posix-headers/signal.texi (signal.h):
49537         Document NonStop.  See Joachim Schmitz in
49538         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
49540 2011-07-15  Bruno Haible  <bruno@clisp.org>
49542         ffsl, ffsll: Avoid unportable behaviour.
49543         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
49545 2011-07-15  Bruno Haible  <bruno@clisp.org>
49547         ffs: More tests.
49548         * tests/test-ffs.c (NBITS): New macro.
49549         (main): Add more tests.
49550         * tests/test-ffsl.c (NBITS): New macro.
49551         (main): Add more tests.
49552         * tests/test-ffsll.c (NBITS): New macro.
49553         (main): Add more tests.
49555 2011-07-15  Eric Blake  <eblake@redhat.com>
49557         ffsl, ffsll: new modules
49558         * modules/ffsl: New file.
49559         * modules/ffsll: Likewise.
49560         * m4/ffsl.m4: Likewise.
49561         * m4/ffsll.m4: Likewise.
49562         * lib/ffsl.c: Likewise.
49563         * lib/ffsl.h: Likewise.
49564         * lib/ffsll.c: Likewise.
49565         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
49566         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
49567         * modules/string (Makefile.am): Substitute witnesses.
49568         * lib/strings.in.h (ffsl, ffsll): Declare.
49569         * modules/ffsl-tests: New test file.
49570         * modules/ffsll-tests: Likewise.
49571         * tests/test-ffsl.c: Likewise.
49572         * tests/test-ffsll.c: Likewise.
49573         * MODULES.html.sh (Integer arithmetic functions): Mention it.
49574         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
49575         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
49577         ffs: fix m4 prerequisite
49578         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
49580         ffs: avoid undefined behavior
49581         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
49582         * tests/test-ffs.c (naive, main): Avoid signed shifts.
49583         Reported by Bruno Haible.
49585 2011-07-12  Bruno Haible  <bruno@clisp.org>
49587         pthread_sigmask: Rely on module 'threadlib'.
49588         * modules/pthread_sigmask (Depends-on): Add threadlib.
49589         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
49590         is defined.
49592 2011-07-12  Bruno Haible  <bruno@clisp.org>
49594         regex: Depend on module 'strcase'.
49595         * modules/regex (Depends-on): Add strcase, for strcasecmp().
49597 2011-07-12  Jim Meyering  <meyering@redhat.com>
49599         warn-on-use: fix typo in file name
49600         * modules/snippet/warn-on-use (Files): Correct file name:
49601         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
49603 2011-07-12  Bruno Haible  <bruno@clisp.org>
49605         strings: Document module.
49606         * doc/posix-headers/strings.texi: Mention module 'strings'.
49608 2011-07-12  Bruno Haible  <bruno@clisp.org>
49610         Rename module '_Noreturn' to 'snippet/_Noreturn'.
49611         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
49612         (Files, Makefile.am): Update.
49613         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
49614         * modules/stdlib (Depends-on): Update.
49616 2011-07-12  Bruno Haible  <bruno@clisp.org>
49618         * NEWS: Mention the changes.
49620         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
49621         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
49622         (Files, Makefile.am): Update.
49623         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
49624         * modules/arpa_inet (Depends-on): Update.
49625         * modules/ctype (Depends-on): Update.
49626         * modules/dirent (Depends-on): Update.
49627         * modules/fcntl-h (Depends-on): Update.
49628         * modules/glob (Depends-on): Update.
49629         * modules/iconv-h (Depends-on): Update.
49630         * modules/inttypes-incomplete (Depends-on): Update.
49631         * modules/langinfo (Depends-on): Update.
49632         * modules/locale (Depends-on): Update.
49633         * modules/math (Depends-on): Update.
49634         * modules/netdb (Depends-on): Update.
49635         * modules/poll-h (Depends-on): Update.
49636         * modules/pty (Depends-on): Update.
49637         * modules/search (Depends-on): Update.
49638         * modules/signal (Depends-on): Update.
49639         * modules/spawn (Depends-on): Update.
49640         * modules/stdio (Depends-on): Update.
49641         * modules/stdlib (Depends-on): Update.
49642         * modules/string (Depends-on): Update.
49643         * modules/strings (Depends-on): Update.
49644         * modules/sys_file (Depends-on): Update.
49645         * modules/sys_ioctl (Depends-on): Update.
49646         * modules/sys_select (Depends-on): Update.
49647         * modules/sys_socket (Depends-on): Update.
49648         * modules/sys_stat (Depends-on): Update.
49649         * modules/sys_time (Depends-on): Update.
49650         * modules/sys_times (Depends-on): Update.
49651         * modules/sys_utsname (Depends-on): Update.
49652         * modules/sys_wait (Depends-on): Update.
49653         * modules/termios (Depends-on): Update.
49654         * modules/time (Depends-on): Update.
49655         * modules/unistd (Depends-on): Update.
49656         * modules/wchar (Depends-on): Update.
49657         * modules/wctype-h (Depends-on): Update.
49658         * MODULES.html.sh (Support for building libraries and executables):
49659         Update.
49661         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
49662         * modules/snippet/unused-parameter: Renamed from
49663         modules/unused-parameter.
49664         (Files, Makefile.am): Update.
49665         * build-aux/snippet/unused-parameter.h: Renamed from
49666         build-aux/unused-parameter.h.
49667         * modules/selinux-h (Depends-on): Update.
49668         * modules/unistr/base (Depends-on): Update.
49669         * MODULES.html.sh (Core language properties): Update.
49671         Rename module 'link-warning' to 'snippet/link-warning'.
49672         * modules/snippet/link-warning: Renamed from modules/link-warning.
49673         (Files, Makefile.am): Update.
49674         * build-aux/snippet/link-warning.h: Renamed from
49675         build-aux/link-warning.h.
49676         * MODULES.html.sh (Support for building libraries and executables):
49677         Update.
49679         Rename module 'c++defs' to 'snippet/c++defs'.
49680         * modules/snippet/c++defs: Renamed from modules/c++defs.
49681         (Files, Makefile.am): Update.
49682         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
49683         * modules/arpa_inet (Depends-on): Update.
49684         * modules/ctype (Depends-on): Update.
49685         * modules/dirent (Depends-on): Update.
49686         * modules/fcntl-h (Depends-on): Update.
49687         * modules/glob (Depends-on): Update.
49688         * modules/iconv-h (Depends-on): Update.
49689         * modules/langinfo (Depends-on): Update.
49690         * modules/locale (Depends-on): Update.
49691         * modules/math (Depends-on): Update.
49692         * modules/netdb (Depends-on): Update.
49693         * modules/poll-h (Depends-on): Update.
49694         * modules/pty (Depends-on): Update.
49695         * modules/search (Depends-on): Update.
49696         * modules/signal (Depends-on): Update.
49697         * modules/spawn (Depends-on): Update.
49698         * modules/stdio (Depends-on): Update.
49699         * modules/stdlib (Depends-on): Update.
49700         * modules/string (Depends-on): Update.
49701         * modules/strings (Depends-on): Update.
49702         * modules/sys_ioctl (Depends-on): Update.
49703         * modules/sys_select (Depends-on): Update.
49704         * modules/sys_socket (Depends-on): Update.
49705         * modules/sys_stat (Depends-on): Update.
49706         * modules/sys_time (Depends-on): Update.
49707         * modules/sys_wait (Depends-on): Update.
49708         * modules/termios (Depends-on): Update.
49709         * modules/time (Depends-on): Update.
49710         * modules/unistd (Depends-on): Update.
49711         * modules/wchar (Depends-on): Update.
49712         * modules/wctype-h (Depends-on): Update.
49714         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
49715         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
49716         (Files, Makefile.am): Update.
49717         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
49718         * modules/argv-iter (Depends-on): Update.
49719         * modules/arpa_inet (Depends-on): Update.
49720         * modules/dirent (Depends-on): Update.
49721         * modules/fcntl-h (Depends-on): Update.
49722         * modules/fnmatch (Depends-on): Update.
49723         * modules/getopt-posix (Depends-on): Update.
49724         * modules/glob (Depends-on): Update.
49725         * modules/iconv-h (Depends-on): Update.
49726         * modules/inttypes-incomplete (Depends-on): Update.
49727         * modules/locale (Depends-on): Update.
49728         * modules/math (Depends-on): Update.
49729         * modules/netdb (Depends-on): Update.
49730         * modules/search (Depends-on): Update.
49731         * modules/signal (Depends-on): Update.
49732         * modules/spawn (Depends-on): Update.
49733         * modules/stdio (Depends-on): Update.
49734         * modules/stdlib (Depends-on): Update.
49735         * modules/string (Depends-on): Update.
49736         * modules/strings (Depends-on): Update.
49737         * modules/sys_socket (Depends-on): Update.
49738         * modules/sys_stat (Depends-on): Update.
49739         * modules/sys_time (Depends-on): Update.
49740         * modules/sys_times (Depends-on): Update.
49741         * modules/sys_utsname (Depends-on): Update.
49742         * modules/time (Depends-on): Update.
49743         * modules/unistd (Depends-on): Update.
49744         * modules/wchar (Depends-on): Update.
49745         * MODULES.html.sh (Support for building libraries and executables):
49746         Update.
49748 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
49750         Improvements on _Noreturn and related modules.
49752         modules/_Exit-tests: test _Noreturn too
49753         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
49754         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
49755         (main): Use them.
49757         stdnoreturn, stdnoreturn-tests: remove modules
49758         They're not needed here and a bit premature for use elsewhere.  See
49759         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
49760         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
49761         * tests/test-stdnoreturn.c: Remove files.
49762         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
49763         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
49764         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
49765         and using noreturn.
49766         * modules/openat, modules/sigpipe-die, modules/xalloc:
49767         * modules/xmemdup0, modules/xstrtol:
49768         Remove dependency on stdnoreturn.
49770         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
49771         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
49772         Reparenthesize to avoid GCC warning.
49773         Support Microsoft's syntax.
49774         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
49776         _Noreturn-tests: remove module
49777         * modules/_Noreturn-tests: Remove.
49778         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
49779         * tests/test-_Noreturn.c: Remove.
49780         * tests/test-stdnoreturn.c: Merge from the old
49781         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
49783 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
49785         _Noreturn, stdnoreturn, and related modules.
49787         * top/maint.mk: Adjust to new noreturn support.
49788         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
49789         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
49791         xalloc: use stdnoreturn.h
49792         * lib/xalloc.h: Include <stdnoreturn.h>.
49793         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
49794         * modules/xalloc (Depends-on): Add stdnoreturn.
49796         xstrtol: use stdnoreturn.h
49797         * lib/xstrtol.h: Include <stdnoreturn.h>.
49798         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
49799         * modules/xstrtol (Depends-on): Add stdnoreturn.
49801         xmemdup0: use stdnoreturn.h
49802         * lib/xmemdup0.h: Include <stdnoreturn.h>.
49803         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
49804         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
49806         sigpipe-die: use stdnoreturn.h
49807         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
49808         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
49809         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
49811         openat: use stdnoreturn.h
49812         * lib/openat.h: Include <stdnoreturn.h>.
49813         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
49814         * modules/openat (Depends-on): Add stdnoreturn.
49816         * lib/openat-die.c (openat_save_fail): Modernize comment.
49818         * lib/xalloc-die.c (xalloc_die): Modernize comment.
49820         * lib/glthread/thread.h: Modernize comment.
49822         obstack: use _Noreturn
49823         * lib/obstack.c (__attribute__): Remove macro.
49824         (print_and_abort): Use _Noreturn.
49826         c-stack: use _Noreturn
49827         * lib/c-stack.c (die, overflow_handler, segv_handler):
49828         Use _Noreturn rather than __attribute__((noreturn)).
49830         argmatch-tests, exclude_tests: use _Noreturn
49831         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
49832         Remove.
49833         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
49835         stdlib: use _Noreturn
49836         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
49837         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
49838         * modules/stdlib (Depends-on): Add _Noreturn.
49839         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
49841         stdnoreturn-tests: new module
49842         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
49844         stdnoreturn: new module
49845         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
49846         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
49848         _Noreturn-tests: new module
49849         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
49851         _Noreturn: new module
49852         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
49853         New section, mentioning it.
49854         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
49856         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
49858 2011-07-11  Eric Blake  <eblake@redhat.com>
49860         ffs: new module
49861         * modules/ffs: New file.
49862         * m4/ffs.m4: Likewise.
49863         * lib/ffs.c: Likewise.
49864         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
49865         * modules/strings (Makefile.am): Substitute witness.
49866         (Depends-on): Add c++defs.
49867         * lib/strings.in.h (ffs): Declare.
49868         * modules/ffs-tests: New test file.
49869         * tests/test-ffs.c: Test new module.
49870         * MODULES.html.sh (Integer arithmetic functions): Mention it.
49871         * doc/posix-functions/ffs.texi (ffs): Likewise.
49873         regex: avoid compiler warning
49874         * lib/regex.c (includes): Include <strings.h>, for use of
49875         strcasecmp in regcomp.c.
49876         Reported by Joachim Schmitz.
49878 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
49880         stdint: respect system's intmax_t if INTMAX_MAX
49881         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
49882         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
49883         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
49884         long but int64_t is long long, and where we will clash with the
49885         system intmax_t if we override it.  See
49886         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
49887         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
49888         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
49889         similarly for UINTMAX_C.
49891 2011-07-08  Bruno Haible  <bruno@clisp.org>
49893         pthread_sigmask tests: Avoid a compiler warning.
49894         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
49895         non-zero.
49897         sigprocmask tests: A better way to avoid a compiler warning.
49898         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
49899         (main): Complain if system() returns non-zero.
49900         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
49902 2011-07-08  Bruno Haible  <bruno@clisp.org>
49904         pthread_sigmask: Work around IRIX bug.
49905         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
49906         bug.
49907         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
49908         there may be unblocked pending signals.
49909         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
49911 2011-07-08  Bruno Haible  <bruno@clisp.org>
49913         pthread_sigmask: Work around Cygwin bug.
49914         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
49915         bug.
49916         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
49917         the system's pthread_sigmask function.
49918         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
49920 2011-07-08  Bruno Haible  <bruno@clisp.org>
49922         pthread_sigmask: Work around bug in single-threaded implementation.
49923         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
49924         FreeBSD, HP-UX, Solaris bug.
49925         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
49926         * lib/pthread_sigmask.c: Include <stddef.h>.
49927         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
49928         the system's pthread_sigmask function.
49929         * modules/pthread_sigmask (configure.ac): Invoke
49930         gl_PREREQ_PTHREAD_SIGMASK.
49931         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
49932         HP-UX, Solaris.
49934 2011-07-08  Eric Blake  <eblake@redhat.com>
49936         test-sigprocmask: avoid compiler warning
49937         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
49938         * tests/test-sigprocmask.c (main): Use it to silence warning.
49939         Reported by Jim Meyering.
49941         test-snprintf: avoid compiler warning
49942         * tests/test-snprintf.c (main): Avoid shadowed declaration.
49943         * tests/test-vsnprintf.c (main): Likewise.
49944         Reported by Jim Meyering.
49946 2011-07-08  Bruno Haible  <bruno@clisp.org>
49948         Tests for module 'pthread_sigmask'.
49949         * modules/pthread_sigmask-tests: New file.
49950         * tests/test-pthread_sigmask1.c: New file, based on
49951         tests/test-sigprocmask.c.
49952         * tests/test-pthread_sigmask2.c: New file.
49954 2011-07-08  Jim Meyering  <meyering@redhat.com>
49956         test-getopt.h: avoid warning about an unused variable
49957         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
49959 2011-07-07  Jim Meyering  <meyering@redhat.com>
49961         maint: reduce list of files exempt from sc_prohibit_leading_TABs
49962         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
49963         now that it no longer contains leading TABs.
49964         Remove unused "url=FIXME" statement.
49966 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
49968         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
49969         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
49970         When gl_THREADLIB is not in use, assume that the POSIX sematics
49971         are desired.  This is better for Emacs, which uses POSIX semantics
49972         on GNUish and/or POSIXish platforms, and does not use threads at
49973         all otherwise.
49975         pthread_sigmask: fix typo when testing for libraries
49976         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
49977         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
49979 2011-07-08  Eric Blake  <eblake@redhat.com>
49981         fts: introduce FTS_NOATIME
49982         * lib/fts_.h (FTS_NOATIME): New bit flag.
49983         (FTS_OPTIONMASK): Adjust.
49984         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
49985         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
49987 2011-07-08  Bruno Haible  <bruno@clisp.org>
49989         Tests for module 'thread'.
49990         * modules/thread-tests: New file.
49991         * tests/test-thread_self.c: New file.
49992         * tests/test-thread_create.cc: New file.
49994 2011-07-08  Bruno Haible  <bruno@clisp.org>
49996         thread: Avoid gcc warnings when using gl_thread_self().
49997         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
49998         'void *'.
49999         (gl_thread_self_pointer): Update.
50001 2011-07-07  Bruno Haible  <bruno@clisp.org>
50003         signal-c++-tests: Check declaration of pthread_sigmask.
50004         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
50005         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
50006         $(LIB_PTHREAD_SIGMASK).
50008 2011-07-07  Bruno Haible  <bruno@clisp.org>
50010         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
50011         * lib/signal.in.h (pthread_sigmask): Override if
50012         REPLACE_PTHREAD_SIGMASK is 1.
50013         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
50014         REPLACE_PTHREAD_SIGMASK.
50015         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
50016         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
50017         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
50018         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
50019         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
50021 2011-07-07  Bruno Haible  <bruno@clisp.org>
50023         pthread_sigmask: Ensure declaration in <signal.h>.
50024         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
50025         include <pthread.h>.
50026         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
50027         problem.
50029 2011-07-07  Bruno Haible  <bruno@clisp.org>
50031         pthread_sigmask: Document the module.
50032         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
50034 2011-07-07  Bruno Haible  <bruno@clisp.org>
50036         pthread_sigmask: Follow gnulib conventions.
50037         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
50038         gl_PTHREAD_SIGMASK.
50039         * modules/pthread_sigmask (configure.ac): Update.
50041 2011-07-07  Bruno Haible  <bruno@clisp.org>
50043         pthread_sigmask: Make declaration C++ safe.
50044         * lib/signal.in.h: In two special conditions, just do an #include_next.
50045         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
50046         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
50047         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
50048         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
50049         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
50050         not REPLACE_PTHREAD_MASK.
50051         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
50052         not REPLACE_PTHREAD_MASK.
50053         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
50055 2011-07-07  Bruno Haible  <bruno@clisp.org>
50057         pthread_sigmask: Fix return value.
50058         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
50059         * lib/pthread_sigmask.c: New file.
50060         * modules/pthread_sigmask (Files): Add it.
50061         (configure.ac): Invoke AC_LIBOBJ.
50063 2011-07-07  Eric Blake  <eblake@redhat.com>
50065         getopt: more portable argv creation
50066         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
50067         const, use char arrays rather than strings.
50068         Suggested by Paul Eggert.
50070 2011-07-07  Bruno Haible  <bruno@clisp.org>
50072         Tests for module 'sigprocmask'.
50073         * modules/sigprocmask-tests: New file.
50074         * tests/test-sigprocmask.c: New file.
50076 2011-07-07  Bruno Haible  <bruno@clisp.org>
50078         float tests: Tweak.
50079         * tests/test-float.c (main): Tweak skip message.
50081 2011-07-07  Eric Blake  <eblake@redhat.com>
50083         getopt: avoid compiler warning during configure
50084         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
50085         assigning string literals to non-const pointer.
50087         getopt-gnu: avoid crash in glibc getopt
50088         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
50089         * tests/test-getopt.h (test_getopt): Enhance test.
50090         * tests/test-getopt_long.h (test_getopt_long): Likewise.
50091         * doc/posix-functions/getopt.texi (getopt): Document it.
50092         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
50093         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
50094         Likewise.
50096 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
50098         getopt: handle W; without long options in getopt [BZ #12922]
50099         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
50100         but no long options are defined, just return 'W'.
50102 2011-07-07  Bruno Haible  <bruno@clisp.org>
50104         Avoid literal tabs.
50105         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
50106         variable containing a tab instead of a literal tab.
50107         Reported by Jim Meyering.
50109 2011-07-07  Bruno Haible  <bruno@clisp.org>
50111         Comments.
50112         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
50114 2011-07-06  Bruno Haible  <bruno@clisp.org>
50116         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
50117         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
50118         <winsock2.h>.
50119         (rpl_fd_isset, FD_ISSET): New definitions, copied from
50120         lib/sys_socket.in.h.
50121         (close, gethostname): Hide declarations from <winsock2.h>.
50122         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
50123         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
50124         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
50125         (select): Don't override if gnulib's <sys/select.h> was already
50126         included.
50127         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
50128         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
50129         setsockopt, shutdown, select): Tweak indentation.
50131 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50133         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
50134         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
50135         in an application that does not use the sys_select module.
50137 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
50139         poll: do not return 0 on timeout=-1
50140         * lib/poll.c: Loop with yield if no events occurred.
50142 2011-07-06  Eric Blake  <eblake@redhat.com>
50144         pthread_sigmask: always replace when not using pthread
50145         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
50146         replacement when using some threading other than pthread.  Fix
50147         logic bug.
50149 2011-07-06  Bruno Haible  <bruno@clisp.org>
50151         Comments.
50152         * m4/printf.m4: Update comments about mingw.
50154 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
50156         sys_select: define sigset_t more portably
50157         * lib/sys_select.in.h: Always include <sys/types.h>, since
50158         we now need sigset_t and mingw defines it there.
50159         Include <signal.h> before split inclusion guard, to avoid
50160         mishaps on Solaris, whose <signal.h> eventually includes us.
50161         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
50162         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
50163         which come from ...
50164         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
50165         gl_CHECK_TYPE_SIGSET_T.
50166         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
50167         does the real work.
50168         * modules/sys_select (Depends-on): Add 'signal'.
50170         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
50171         Suggested by Bruno Haible.
50173         pselect: Use pthread_sigmask, not sigprocmask.
50174         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
50175         multithreaded apps better than sigprocmask does.
50176         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
50177         sigprocmask directly.
50179 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
50181         * lib/pselect.c (pselect): Use plain name, without "rpl_".
50182         Don't #undef,  since we don't need any underlying pselect.
50183         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
50184         (Depends-on): Add select.
50185         (Link): Add $(LIBSOCKET).
50186         These changes suggested by Bruno Haible.
50188         pselect: document better
50189         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
50190         * doc/posix-functions/pselect.texi (pselect): Document new module.
50192         pthread_sigmask: new module
50193         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
50194         * doc/posix-functions/pthread_sigmask.texi: Document new module.
50195         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
50196         This is done only as a macro; I don't know how well that'll
50197         work for C++.  Move <sys/types.h> include before the include_next,
50198         to avoid mishap on Solaris.
50199         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
50200         * modules/signal (Makefile.am): Substitute the check's results.
50201         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
50203         test-pselect: new module
50204         * modules/pselect-tests, tests/test-pselect.c: New files.
50205         * tests/test-select.c, tests/test-sys_select-c++.cc:
50206         If TEST_PSELECT is defined, test pselect instead of testing select.
50208         * tests/test-sys_select.c (sigset_t): Test for it, too.
50209         Suggested by Bruno Haible.
50211 2011-07-05  Eric Blake  <eblake@redhat.com>
50213         snprintf: guarantee %1$d, for libintl
50214         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
50215         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50216         * doc/posix-functions/snprintf.texi (snprintf): Update.
50217         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
50218         * tests/test-snprintf.c (main): Enhance test.
50219         * tests/test-vsnprintf.c (main): Likewise.
50221 2011-07-05  Jim Meyering  <meyering@redhat.com>
50223         maint: exempt stdio-read.c and stdio-write.c from the cppi check
50224         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
50225         per Bruno's request, to accommodate this idiom (no space after "#")
50226         even when the function is inside an #if block:
50227         char *
50228         gets (char *s)
50229         #undef gets
50230         {
50231           ...
50232         }
50234 2011-07-04  Jim Meyering  <meyering@redhat.com>
50236         maint: indent with spaces, not TABs, and add a rule to check this
50237         * tests/test-userspec.c: Indent with spaces, not TABs.
50238         * tests/test-argp.c: Likewise.
50239         * tests/test-c-stack2.sh: Likewise.
50240         * tests/test-parse-duration.sh: Likewise
50241         * m4/strtod.m4: Likewise.
50242         * m4/alloca.m4: Likewise.
50243         * m4/pselect.m4: Likewise.
50244         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
50246 2011-07-03  Jim Meyering  <meyering@redhat.com>
50248         maint.mk: correct omissions in prohibit_argmatch_without_use check
50249         This rule would mistakenly report that argmatch.h is included without
50250         use even when both the argmatch and invalid_arg macro were used.
50251         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
50252         of argmatch and invalid_arg.
50254 2011-07-03  Bruno Haible  <bruno@clisp.org>
50256         Comments about EINTR.
50257         * lib/safe-read.h: Explain the purpose of this module.
50258         * lib/safe-write.h: Likewise.
50259         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
50260         module.
50261         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
50262         module.
50263         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50265 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
50267         xnanosleep: Rewrite to use new dtotimespec module.
50268         It has the conversion code that used to be in xnanosleep.
50269         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
50270         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
50271         (TIME_T_MAX): Remove.
50272         (xnanosleep): Rewrite in terms of dtotimespec.
50273         * modules/xnanosleep (Depends-on): Add dtotimespec.
50274         Remove intprops, stdbool.
50276         timespec-add, timespec-sub: new modules
50277         * lib/timespec.h (timespec_add, timespec_sub): New decls.
50278         * lib/timespec-add.c, lib/timespec-sub.c:
50279         * modules/timespec-add, modules/timespec-sub: New files.
50281         dtotimespec: new module
50282         * lib/timespec.h (dtotimespec): New decl.
50283         * lib/dtotimespec.c, modules/dtotimespec: New files.
50285         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
50287         pselect: new module
50288         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
50289         (pselect): New decls.
50290         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
50291         since the standard pselect decl uses 'restrict'.
50292         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
50293         HAVE_PSELECT, REPLACE_PSELECT.
50294         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
50295         HAVE_PSELECT, REPLACE_PSELECT.
50296         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
50298         sys_select: don't depend on sys_socket
50299         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
50300         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
50301         This fix works on GNU and GNU-like platforms, but has not been tested
50302         on native Windows.
50303         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
50304         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
50305         gl_HEADER_SYS_SOCKET.
50306         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
50307         gl_PREREQ_SYS_H_WINSOCK2.
50309 2011-06-29  Eric Blake  <eblake@redhat.com>
50311         pipe2: fix C89 compile problem
50312         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
50313         Reported by Bruno Haible.
50315         pipe, pipe2: don't corrupt fd on error
50316         * lib/pipe.c (pipe): Leave fd unchanged on error.
50317         * lib/pipe2.c (pipe2): Likewise.
50318         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
50319         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
50321 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
50323         mmap-anon: do not use regular expressions inadvertently
50324         * m4/mmap-anon.m4: Remove trailing period from strings sought
50325         in the output.
50327 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
50329         nanosleep: fix integer overflow problem
50330         * lib/nanosleep.c (my_usleep): Don't assume signed integer
50331         arithmetic wraps around on overflow.
50333         nanosleep: simplify carrying
50334         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
50335         first call to the underyling nanosleep, not for the last one.
50336         This doesn't fix any bugs, but it simplifies the computation of
50337         the remaining delay.  Found while auditing integer overflow issues.
50339         dup2: remove test for existence of fcntl
50340         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
50341         "#if HAVE_FCNTL", in the configure-time test program.
50342         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
50343         and therefore speeds up "configure" a bit.  Found while
50344         adding the dup2 module to Emacs.
50346 2011-06-24  Eric Blake  <eblake@redhat.com>
50348         maint.mk: enhance useless header checks
50349         * top/maint.mk (_sc_header_without_use): Check both include
50350         styles.
50351         (sc_prohibit_assert_without_use)
50352         (sc_prohibit_close_stream_without_use)
50353         (sc_prohibit_getopt_without_use)
50354         (sc_prohibit_quotearg_without_use)
50355         (sc_prohibit_quote_without_use)
50356         (sc_prohibit_long_options_without_use)
50357         (sc_prohibit_inttostr_without_use)
50358         (sc_prohibit_ignore_value_without_use)
50359         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
50360         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
50361         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
50362         (sc_prohibit_hash_pjw_without_use)
50363         (sc_prohibit_safe_read_without_use)
50364         (sc_prohibit_argmatch_without_use)
50365         (sc_prohibit_canonicalize_without_use)
50366         (sc_prohibit_root_dev_ino_without_use)
50367         (sc_prohibit_openat_without_use)
50368         (sc_prohibit_c_ctype_without_use)
50369         (sc_prohibit_signal_without_use)
50370         (sc_prohibit_stdio--_without_use)
50371         (sc_prohibit_stdio-safer_without_use)
50372         (sc_prohibit_strings_without_use)
50373         (sc_prohibit_intprops_without_use)
50374         (sc_prohibit_stddef_without_use)
50375         (sc_prohibit_xfreopen_without_use): Update clients.
50377 2011-06-24  Jim Meyering  <meyering@redhat.com>
50379         syntax-check: keep one maint.mk rule in sync with its header
50380         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
50381         of the bug Eric has just fixed, with today's commit 25e4c2ec.
50382         I prefer to avoid temporary files here, so use <(...), but that
50383         is not supported by /bin/sh, so...
50384         (SHELL): Define to /bin/bash.
50386 2011-06-24  Eric Blake  <eblake@redhat.com>
50388         maint.mk: update sc_prohibit_intprops_without_use
50389         * top/maint.mk (_intprops_names): Match recent changes.
50391 2011-06-24  Bruno Haible  <bruno@clisp.org>
50393         strerror-override: No-op tweak.
50394         * lib/strerror-override.h (strerror_override): Reorder conditions,
50395         for consistency with lib/strerror-override.c.
50397 2011-06-23  Eric Blake  <eblake@redhat.com>
50399         maint.mk: test further PATH_MAX issues
50400         * top/maint.mk (sc_prohibit_path_max_array): Rename...
50401         (sc_prohibit_path_max_allocation): ...and also test alloca.
50402         Suggested by Jim Meyering.
50404 2011-06-22  Eric Blake  <eblake@redhat.com>
50406         maint.mk: add syntax-check to avoid char[PATH_MAX]
50407         * top/maint.mk (sc_prohibit_path_max_array): New rule.
50409         stat: be robust to PATH_MAX definition
50410         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
50411         * modules/stat (Depends-on): Add verify.
50413         link: work around IRIX bug
50414         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
50415         * lib/link.c (rpl_link): Work around it.
50416         * tests/test-link.h (test_link): Enhance test.
50417         * doc/posix-functions/link.texi (link): Document the bug.
50419         getopt: silence clang warning
50420         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
50421         dereference.
50422         Reported by Gustavo Martin Domato.
50424 2011-06-22  Jim Meyering  <meyering@redhat.com>
50426         bootstrap: do not insert a blank line into each .gitignore file
50427         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
50429 2011-06-21  Eric Blake  <eblake@redhat.com>
50431         perror: test for output mismatch
50432         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
50433         perror on IRIX.
50435         strerror_r: fix OpenBSD behavior on out-of-range
50436         * lib/strerror_r.c (strerror_r): Always use maximal string.
50437         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
50439         strerror_r: fix OpenBSD behavior on 0
50440         * lib/strerror-override.c (strerror_override): Also override 0
50441         when needed.
50442         * lib/strerror-override.h (strerror_override): Likewise.
50443         * lib/strerror.c (strerror): Simplify, now that 0 override is done
50444         earlier.
50445         * lib/strerror_r.c (strerror_r): Likewise.
50446         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
50447         behavior...
50448         (gl_FUNC_STRERROR_0): ...into new macro.
50449         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
50450         is overridden.
50451         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
50452         * modules/strerror-override (Files): Add strerror.m4.
50453         (configure.ac): Also provide override for 0 when needed.
50454         * doc/posix-functions/strerror.texi (strerror): Document this.
50455         * doc/posix-functions/perror.texi (perror): Likewise.
50457         perror: adjust array size
50458         * modules/perror (Depends-on): Add strerror-override.
50459         * lib/perror.c (perror): Use it to avoid magic number.
50461         strerror-override: reduce size
50462         * lib/strerror-override.c (strerror_override): Use fewer lines.
50464 2011-06-20  Bruno Haible  <bruno@clisp.org>
50466         pathmax: Ensure correct value for PATH_MAX on HP-UX.
50467         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
50469 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
50471         alloca: port to compilers that can optimize like GCC 4.6.0
50472         * lib/alloca.c (find_stack_direction): New signature, taken from
50473         Autoconf git.  This works with GCC 4.6.0.  This code should never
50474         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
50475         be used with other compilers that optimize as well as GCC 4.6.0 does.
50476         (alloca): Adjust to new signature.
50477         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
50478         New macro, which patches Autoconf in a similar way.
50480         c-stack: stop worrying about stack direction
50481         * lib/c-stack.c (find_stack_direction): Remove.
50482         (segv_handler): Don't worry about stack direction growth, as it's
50483         too much of a pain to configure this correctly, given how compilers
50484         are optimizing-away our stack-growth detection code.  Instead, assume
50485         that any access to just before or just after the stack is OK.
50486         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
50487         Don't require AC_FUNC_ALLOCA; no longer needed.
50489 2011-06-20  Eric Blake  <eblake@redhat.com>
50491         test-stat: don't allocate PATH_MAX bytes
50492         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
50493         PATH_MAX-sized buffer.
50494         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
50495         * modules/stat-tests (Depends-on): Likewise.
50496         * tests/test-fstatat.c (includes): Drop pathmax.h.
50497         * tests/test-stat.c (includes): Likewise.
50498         Reported by Bruno Haible.
50500 2011-06-20  Bruno Haible  <bruno@clisp.org>
50502         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
50503         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
50504         * lib/float.c: New file.
50505         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
50506         REPLACE_FLOAT_LDBL.
50507         * modules/float (Files): Add lib/float.c.
50508         (configure.ac): Invoke AC_LIBOBJ.
50509         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
50511 2011-06-20  Bruno Haible  <bruno@clisp.org>
50513         Tests for module 'float'.
50514         * modules/float-tests: New file.
50515         * tests/test-float.c: New file.
50517 2011-06-19  Bruno Haible  <bruno@clisp.org>
50519         isinf: Coding style.
50520         * lib/isinf.c: Use GNU coding style.
50522 2011-06-19  Bruno Haible  <bruno@clisp.org>
50524         linkat test: Avoid test failure on AIX 7.1.
50525         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
50526         * tests/test-link.h (test_link): Likewise.
50528 2011-06-19  Bruno Haible  <bruno@clisp.org>
50530         pread test: Avoid test failure on OpenBSD 4.9.
50531         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
50533 2011-06-19  Bruno Haible  <bruno@clisp.org>
50535         sprintf-posix: Fix test failure on AIX 7.1.
50536         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
50537         * doc/posix-functions/dprintf.texi: Mention limited precision problem
50538         on AIX.
50539         * doc/posix-functions/fprintf.texi: Likewise.
50540         * doc/posix-functions/printf.texi: Likewise.
50541         * doc/posix-functions/snprintf.texi: Likewise.
50542         * doc/posix-functions/sprintf.texi: Likewise.
50543         * doc/posix-functions/vdprintf.texi: Likewise.
50544         * doc/posix-functions/vfprintf.texi: Likewise.
50545         * doc/posix-functions/vprintf.texi: Likewise.
50546         * doc/posix-functions/vsnprintf.texi: Likewise.
50547         * doc/posix-functions/vsprintf.texi: Likewise.
50549 2011-06-19  Bruno Haible  <bruno@clisp.org>
50551         roundl-ieee: Fix test failure on AIX 7.1.
50552         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
50553         * doc/posix-functions/roundl.texi: Mention problem with negative
50554         arguments.
50556 2011-06-19  Bruno Haible  <bruno@clisp.org>
50558         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
50559         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
50560         * doc/posix-functions/round.texi: Mention problem with negative
50561         arguments.
50562         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
50564 2011-06-19  Bruno Haible  <bruno@clisp.org>
50566         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
50567         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
50568         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
50569         * doc/posix-functions/roundf.texi: Mention problem with negative
50570         arguments.
50571         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
50573 2011-06-19  Bruno Haible  <bruno@clisp.org>
50575         ceilf-ieee: Work around bug on MacOS X 10.5.
50576         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
50578         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
50579         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
50580         IEEE compliant, avoid compiler optimizations.
50581         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
50582         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
50583         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
50584         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
50585         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
50586         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
50587         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
50588         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
50589         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
50590         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
50592 2011-06-19  Bruno Haible  <bruno@clisp.org>
50594         ceilf-ieee: Work around bug on AIX 7.1.
50595         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
50596         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
50598 2011-06-19  Bruno Haible  <bruno@clisp.org>
50600         ceil-ieee: Work around bug on AIX 7.1.
50601         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
50602         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
50604 2011-06-18  Bruno Haible  <bruno@clisp.org>
50606         fsync test: Avoid test failure on MacOS X and AIX.
50607         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
50608         EINVAL.
50610 2011-06-18  Bruno Haible  <bruno@clisp.org>
50612         openat, fdopendir tests: Fix link errors.
50613         * modules/openat-tests (Depends-on): Add progname.
50614         * modules/fdopendir-tests (Depends-on): Likewise.
50615         * tests/test-fchownat.c: Include progname.h.
50616         (main): Call set_program_name.
50617         * tests/test-fstatat.c: Include progname.h.
50618         (main): Call set_program_name.
50619         * tests/test-mkdirat.c: Include progname.h.
50620         (main): Call set_program_name.
50621         * tests/test-openat.c: Include progname.h.
50622         (main): Call set_program_name.
50623         * tests/test-unlinkat.c: Include progname.h.
50624         (main): Call set_program_name.
50625         * tests/test-fdopendir.c: Include progname.h.
50626         (main): Call set_program_name.
50628 2011-06-18  Bruno Haible  <bruno@clisp.org>
50630         Doc update.
50631         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
50632         HP-UX.
50633         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
50635 2011-06-18  Bruno Haible  <bruno@clisp.org>
50637         getcwd tests: Avoid compilation error on HP-UX 11.31.
50638         * modules/getcwd-tests (Depends-on): Add pathmax.
50639         * tests/test-getcwd.c: Include pathmax.h.
50641 2011-06-18  Bruno Haible  <bruno@clisp.org>
50643         isfinite, isinf: Fix link error on AIX 6 and 7.
50644         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
50645         needed, also test the macro with a 'float' argument.
50646         * m4/isinf.m4 (gl_ISINF): Likewise.
50648 2011-06-18  Bruno Haible  <bruno@clisp.org>
50650         getloadavg: Don't clobber LIBS. Regression from previous commit.
50651         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
50652         AC_CHECK_LIB from here...
50653         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
50654         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
50655         gl_func_getloadavg_done.
50656         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50658 2011-06-18  Bruno Haible  <bruno@clisp.org>
50660         clean-temp: Improve documentation.
50661         * lib/clean-temp.h: Explain better how to use this module.
50662         Reported by John Darrington <john@darrington.wattle.id.au>.
50664 2011-06-17  Bruno Haible  <bruno@clisp.org>
50666         pread, pwrite: Avoid cc warning on AIX.
50667         * lib/unistd.in.h (pread): Undefine before defining as a macro.
50668         (pwrite): Likewise.
50670 2011-06-17  Bruno Haible  <bruno@clisp.org>
50672         spawn-pipe tests: Fix link error.
50673         * tests/test-spawn-pipe-child.c: Undefine fprintf.
50674         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50676 2011-06-17  Bruno Haible  <bruno@clisp.org>
50678         Tests: Remove unnecessary dependency.
50679         * modules/canonicalize-tests (Depends-on): Remove progname.
50680         * modules/chown-tests (Depends-on): Likewise.
50681         * modules/dirname-tests (Depends-on): Likewise.
50682         * modules/fdopendir-tests (Depends-on): Likewise.
50683         * modules/fdutimensat-tests (Depends-on): Likewise.
50684         * modules/hash-tests (Depends-on): Likewise.
50685         * modules/lchown-tests (Depends-on): Likewise.
50686         * modules/linkat-tests (Depends-on): Likewise.
50687         * modules/renameat-tests (Depends-on): Likewise.
50688         * modules/spawn-pipe-tests (Depends-on): Likewise.
50689         * modules/utimensat-tests (Depends-on): Likewise.
50691 2011-06-17  Bruno Haible  <bruno@clisp.org>
50693         spawn-pipe tests: Fix link error.
50694         * tests/test-spawn-pipe-child.c: Undefine fflush.
50696 2011-06-17  Bruno Haible  <bruno@clisp.org>
50698         Fix tests link errors.
50699         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
50700         * modules/chown-tests (Makefile.am): Don't link test-chown with
50701         LIBINTL.
50702         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
50703         LIBINTL.
50704         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
50705         LIBINTL.
50706         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
50707         LIBINTL.
50709 2011-06-16  Bruno Haible  <bruno@clisp.org>
50711         crypto/gc-sha1: Fix recent regression.
50712         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
50713         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
50715         crypto/gc-md5: Fix recent regression.
50716         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
50718         crypto/gc-md4: Fix recent regression.
50719         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
50720         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
50722         crypto/gc-arctwo: Fix recent regression.
50723         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
50724         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
50726         crypto/gc-rijndael: Fix recent regression.
50727         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
50728         (configure.ac): Invoke AC_LIBOBJ here.
50729         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
50730         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50732         crypto/gc-hmac-sha1: Fix recent regression.
50733         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
50734         (configure.ac): Invoke AC_LIBOBJ here.
50735         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
50736         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50738         crypto/gc-hmac-md5: Fix recent regression.
50739         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
50740         (configure.ac): Invoke AC_LIBOBJ here.
50741         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
50742         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50744         crypto/gc-des: Fix recent regression.
50745         * modules/crypto/gc-des (Files): Remove m4/des.m4.
50746         (configure.ac): Invoke AC_LIBOBJ here.
50747         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
50748         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50750         crypto/gc-arcfour: Fix recent regression.
50751         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
50752         (configure.ac): Invoke AC_LIBOBJ here.
50753         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
50754         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50756 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
50758         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
50759         After the 2011-05-21 change, this macro requires
50760         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
50761         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50763 2011-06-16  Bruno Haible  <bruno@clisp.org>
50765         fprintftime: Move AC_LIBOBJ invocations to module description.
50766         * m4/fprintftime.m4: Remove file.
50767         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
50768         (configure.ac): Remove gl_FPRINTFTIME call.
50769         (Makefile.am): Augment lib_SOURCES.
50770         Reported by Jim Meyering.
50772 2011-06-16  Bruno Haible  <bruno@clisp.org>
50774         tmpfile-safer: Finish 2011-05-23 commit.
50775         * m4/stdio-safer.m4: Really remove file.
50776         Reported by Jim Meyering.
50778 2011-06-16  Bruno Haible  <bruno@clisp.org>
50780         syntax-check: Fix typo.
50781         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
50782         printf-posix.m4.
50783         Reported by Jim Meyering.
50785 2011-06-13  Jim Meyering  <meyering@redhat.com>
50787         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
50788         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
50790 2011-05-23  Bruno Haible  <bruno@clisp.org>
50792         yesno: Move AC_LIBOBJ invocations to module description.
50793         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
50794         * modules/yesno (Makefile.am): Augment lib_SOURCES.
50796 2011-05-23  Bruno Haible  <bruno@clisp.org>
50798         xstrtol: Move AC_LIBOBJ invocations to module description.
50799         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
50800         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
50802 2011-05-23  Bruno Haible  <bruno@clisp.org>
50804         xstrtold: Move AC_LIBOBJ invocations to module description.
50805         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
50806         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
50808 2011-05-23  Bruno Haible  <bruno@clisp.org>
50810         xstrtod: Move AC_LIBOBJ invocations to module description.
50811         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
50812         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
50814 2011-05-23  Bruno Haible  <bruno@clisp.org>
50816         xnanosleep: Move AC_LIBOBJ invocations to module description.
50817         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
50818         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
50820 2011-05-23  Bruno Haible  <bruno@clisp.org>
50822         xgetcwd: Move AC_LIBOBJ invocations to module description.
50823         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
50824         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
50826 2011-05-23  Bruno Haible  <bruno@clisp.org>
50828         xalloc: Move AC_LIBOBJ invocations to module description.
50829         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
50830         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
50832 2011-05-23  Bruno Haible  <bruno@clisp.org>
50834         write-any-file: Move AC_LIBOBJ invocations to module description.
50835         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
50836         invocation.
50837         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
50839 2011-05-23  Bruno Haible  <bruno@clisp.org>
50841         utimens: Move AC_LIBOBJ invocations to module description.
50842         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
50843         * modules/utimens (Makefile.am): Augment lib_SOURCES.
50845 2011-05-23  Bruno Haible  <bruno@clisp.org>
50847         utimecmp: Move AC_LIBOBJ invocations to module description.
50848         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
50849         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
50851 2011-05-23  Bruno Haible  <bruno@clisp.org>
50853         userspec: Move AC_LIBOBJ invocations to module description.
50854         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
50855         * modules/userspec (Makefile.am): Augment lib_SOURCES.
50857 2011-05-23  Bruno Haible  <bruno@clisp.org>
50859         unlinkdir: Move AC_LIBOBJ invocations to module description.
50860         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
50861         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
50863 2011-05-23  Bruno Haible  <bruno@clisp.org>
50865         unistd-safer: Move AC_LIBOBJ invocations to module description.
50866         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
50867         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
50869 2011-05-23  Bruno Haible  <bruno@clisp.org>
50871         tempname: Move AC_LIBOBJ invocations to module description.
50872         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
50873         * modules/tempname (Makefile.am): Augment lib_SOURCES.
50875 2011-05-23  Bruno Haible  <bruno@clisp.org>
50877         strftime: Move AC_LIBOBJ invocations to module description.
50878         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
50879         * modules/strftime (Makefile.am): Augment lib_SOURCES.
50881 2011-05-23  Bruno Haible  <bruno@clisp.org>
50883         stdlib-safer: Move AC_LIBOBJ invocations to module description.
50884         * m4/stdlib-safer.m4: Remove file.
50885         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
50886         (configure.ac): Remove gl_STDLIB_SAFER call.
50887         (Makefile.am): Augment lib_SOURCES.
50889 2011-05-23  Bruno Haible  <bruno@clisp.org>
50891         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
50892         * m4/stdio-safer.m4: Remove file.
50893         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
50894         (configure.ac): Remove gl_TMPFILE_SAFER call.
50895         (Makefile.am): Augment lib_SOURCES.
50897 2011-05-23  Bruno Haible  <bruno@clisp.org>
50899         popen-safer: Move AC_LIBOBJ invocations to module description.
50900         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
50901         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
50902         (configure.ac): Remove gl_POPEN_SAFER call.
50903         (Makefile.am): Augment lib_SOURCES.
50905 2011-05-23  Bruno Haible  <bruno@clisp.org>
50907         freopen-safer: Move AC_LIBOBJ invocations to module description.
50908         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
50909         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
50910         (configure.ac): Remove gl_FREOPEN_SAFER call.
50911         (Makefile.am): Augment lib_SOURCES.
50913 2011-05-23  Bruno Haible  <bruno@clisp.org>
50915         fopen-safer: Move AC_LIBOBJ invocations to module description.
50916         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
50917         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
50918         (configure.ac): Remove gl_FOPEN_SAFER call.
50919         (Makefile.am): Augment lib_SOURCES.
50921 2011-05-23  Bruno Haible  <bruno@clisp.org>
50923         crypto/sha512: Move AC_LIBOBJ invocations to module description.
50924         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
50925         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
50927 2011-05-23  Bruno Haible  <bruno@clisp.org>
50929         crypto/sha256: Move AC_LIBOBJ invocations to module description.
50930         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
50931         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
50933 2011-05-23  Bruno Haible  <bruno@clisp.org>
50935         crypto/sha1: Move AC_LIBOBJ invocations to module description.
50936         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
50937         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
50939 2011-05-23  Bruno Haible  <bruno@clisp.org>
50941         settime: Move AC_LIBOBJ invocations to module description.
50942         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
50943         * modules/settime (Makefile.am): Augment lib_SOURCES.
50945 2011-05-23  Bruno Haible  <bruno@clisp.org>
50947         savedir: Move AC_LIBOBJ invocations to module description.
50948         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
50949         * modules/savedir (Makefile.am): Augment lib_SOURCES.
50951 2011-05-23  Bruno Haible  <bruno@clisp.org>
50953         save-cwd: Move AC_LIBOBJ invocations to module description.
50954         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
50955         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
50957 2011-05-23  Bruno Haible  <bruno@clisp.org>
50959         same: Move AC_LIBOBJ invocations to module description.
50960         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
50961         * modules/same (Makefile.am): Augment lib_SOURCES.
50963 2011-05-23  Bruno Haible  <bruno@clisp.org>
50965         safe-write: Move AC_LIBOBJ invocations to module description.
50966         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
50967         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
50968         instead of gl_SAFE_WRITE.
50969         (Makefile.am): Augment lib_SOURCES.
50971 2011-05-23  Bruno Haible  <bruno@clisp.org>
50973         safe-read: Move AC_LIBOBJ invocations to module description.
50974         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
50975         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
50976         of gl_SAFE_READ.
50977         (Makefile.am): Augment lib_SOURCES.
50979 2011-05-23  Bruno Haible  <bruno@clisp.org>
50981         safe-alloc: Move AC_LIBOBJ invocations to module description.
50982         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
50983         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
50985 2011-05-23  Bruno Haible  <bruno@clisp.org>
50987         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
50988         * m4/rijndael.m4: Remove file.
50989         * modules/crypto/rijndael (Files): Remove it.
50990         (configure.ac): Remove gl_RIJNDAEL call.
50991         (Makefile.am): Augment lib_SOURCES.
50993 2011-05-23  Bruno Haible  <bruno@clisp.org>
50995         readtokens: Move AC_LIBOBJ invocations to module description.
50996         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
50997         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
50999 2011-05-23  Bruno Haible  <bruno@clisp.org>
51001         read-file: Move AC_LIBOBJ invocations to module description.
51002         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
51003         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
51004         of gl_FUNC_READ_FILE.
51005         (Makefile.am): Augment lib_SOURCES.
51007 2011-05-23  Bruno Haible  <bruno@clisp.org>
51009         quotearg: Move AC_LIBOBJ invocations to module description.
51010         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
51011         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
51013 2011-05-23  Bruno Haible  <bruno@clisp.org>
51015         quote: Move AC_LIBOBJ invocations to module description.
51016         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
51017         * modules/quote (Makefile.am): Augment lib_SOURCES.
51019 2011-05-23  Bruno Haible  <bruno@clisp.org>
51021         posixver: Move AC_LIBOBJ invocations to module description.
51022         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
51023         * modules/posixver (Makefile.am): Augment lib_SOURCES.
51025 2011-05-23  Bruno Haible  <bruno@clisp.org>
51027         posixtm: Move AC_LIBOBJ invocations to module description.
51028         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
51029         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
51031 2011-05-23  Bruno Haible  <bruno@clisp.org>
51033         physmem: Move AC_LIBOBJ invocations to module description.
51034         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
51035         * modules/physmem (Makefile.am): Augment lib_SOURCES.
51037 2011-05-23  Bruno Haible  <bruno@clisp.org>
51039         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
51040         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
51041         invocation.
51042         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
51044 2011-05-23  Bruno Haible  <bruno@clisp.org>
51046         mpsort: Move AC_LIBOBJ invocations to module description.
51047         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
51048         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
51050 2011-05-23  Bruno Haible  <bruno@clisp.org>
51052         modechange: Move AC_LIBOBJ invocations to module description.
51053         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
51054         * modules/modechange (Makefile.am): Augment lib_SOURCES.
51056 2011-05-23  Bruno Haible  <bruno@clisp.org>
51058         mkdir-p: Move AC_LIBOBJ invocations to module description.
51059         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
51060         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
51062 2011-05-23  Bruno Haible  <bruno@clisp.org>
51064         mkancesdirs: Move AC_LIBOBJ invocations to module description.
51065         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
51066         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
51068 2011-05-23  Bruno Haible  <bruno@clisp.org>
51070         mgetgroups: Move AC_LIBOBJ invocations to module description.
51071         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
51072         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
51074 2011-05-23  Bruno Haible  <bruno@clisp.org>
51076         memxor: Move AC_LIBOBJ invocations to module description.
51077         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
51078         * modules/memxor (Makefile.am): Augment lib_SOURCES.
51080 2011-05-23  Bruno Haible  <bruno@clisp.org>
51082         memcoll: Move AC_LIBOBJ invocations to module description.
51083         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
51084         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
51086 2011-05-23  Bruno Haible  <bruno@clisp.org>
51088         memcasecmp: Move AC_LIBOBJ invocations to module description.
51089         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
51090         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
51092 2011-05-23  Bruno Haible  <bruno@clisp.org>
51094         crypto/md5: Move AC_LIBOBJ invocations to module description.
51095         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
51096         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
51098 2011-05-23  Bruno Haible  <bruno@clisp.org>
51100         crypto/md4: Move AC_LIBOBJ invocations to module description.
51101         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
51102         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
51104 2011-05-23  Bruno Haible  <bruno@clisp.org>
51106         crypto/md2: Move AC_LIBOBJ invocations to module description.
51107         * m4/md2.m4: Remove file.
51108         * modules/crypto/md2 (Files): Remove it.
51109         (configure.ac): Remove gl_MD2 call.
51110         (Makefile.am): Augment lib_SOURCES.
51112 2011-05-23  Bruno Haible  <bruno@clisp.org>
51114         long-options: Move AC_LIBOBJ invocations to module description.
51115         * m4/long-options.m4: Remove file.
51116         * modules/long-options (Files): Remove it.
51117         (configure.ac): Remove gl_LONG_OPTIONS call.
51118         (Makefile.am): Augment lib_SOURCES.
51120 2011-05-23  Bruno Haible  <bruno@clisp.org>
51122         i-ring: Move AC_LIBOBJ invocations to module description.
51123         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
51124         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
51126 2011-05-23  Bruno Haible  <bruno@clisp.org>
51128         idcache: Move AC_LIBOBJ invocations to module description.
51129         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
51130         * modules/idcache (Makefile.am): Augment lib_SOURCES.
51132 2011-05-23  Bruno Haible  <bruno@clisp.org>
51134         human: Move AC_LIBOBJ invocations to module description.
51135         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
51136         * modules/human (Makefile.am): Augment lib_SOURCES.
51138 2011-05-23  Bruno Haible  <bruno@clisp.org>
51140         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
51141         * m4/hmac-sha1.m4: Remove file.
51142         * modules/crypto/hmac-sha1 (Files): Remove it.
51143         (configure.ac): Remove gl_HMAC_SHA1 call.
51144         (Makefile.am): Augment lib_SOURCES.
51146 2011-05-23  Bruno Haible  <bruno@clisp.org>
51148         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
51149         * m4/hmac-md5.m4: Remove file.
51150         * modules/crypto/hmac-md5 (Files): Remove it.
51151         (configure.ac): Remove gl_HMAC_MD5 call.
51152         (Makefile.am): Augment lib_SOURCES.
51154 2011-05-23  Bruno Haible  <bruno@clisp.org>
51156         hash: Move AC_LIBOBJ invocations to module description.
51157         * m4/hash.m4: Remove file.
51158         * modules/hash (Files): Remove it.
51159         (configure.ac): Remove gl_HASH call.
51160         (Makefile.am): Augment lib_SOURCES.
51162 2011-05-23  Bruno Haible  <bruno@clisp.org>
51164         hard-locale: Move AC_LIBOBJ invocations to module description.
51165         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
51166         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
51168 2011-05-23  Bruno Haible  <bruno@clisp.org>
51170         getugroups: Move AC_LIBOBJ invocations to module description.
51171         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
51172         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
51174 2011-05-23  Bruno Haible  <bruno@clisp.org>
51176         gettime: Move AC_LIBOBJ invocations to module description.
51177         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
51178         * modules/gettime (Makefile.am): Augment lib_SOURCES.
51180 2011-05-23  Bruno Haible  <bruno@clisp.org>
51182         getndelim2: Move AC_LIBOBJ invocations to module description.
51183         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
51184         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
51186 2011-05-23  Bruno Haible  <bruno@clisp.org>
51188         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
51189         * m4/gc-pbkdf2-sha1.m4: Remove file.
51190         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
51191         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
51192         (Makefile.am): Augment lib_SOURCES.
51194 2011-05-23  Bruno Haible  <bruno@clisp.org>
51196         fts: Move AC_LIBOBJ invocations to module description.
51197         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
51198         * modules/fts (configure.ac): ... to here.
51200 2011-05-23  Bruno Haible  <bruno@clisp.org>
51202         file-type: Move AC_LIBOBJ invocations to module description.
51203         * m4/file-type.m4: Remove file.
51204         * modules/file-type (Files): Remove it.
51205         (configure.ac): Remove gl_FILE_TYPE call.
51206         (Makefile.am): Augment lib_SOURCES.
51208 2011-05-23  Bruno Haible  <bruno@clisp.org>
51210         filenamecat*: Respect rules for use of AC_LIBOBJ.
51211         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
51212         Remove AC_LIBOBJ invocation.
51213         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
51214         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
51216 2011-05-23  Bruno Haible  <bruno@clisp.org>
51218         filemode: Move AC_LIBOBJ invocations to module description.
51219         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
51220         * modules/filemode (Makefile.am): Augment lib_SOURCES.
51222 2011-05-23  Bruno Haible  <bruno@clisp.org>
51224         openat-safer: Move AC_LIBOBJ invocations to module description.
51225         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
51226         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
51228 2011-05-23  Bruno Haible  <bruno@clisp.org>
51230         fcntl-safer: Move AC_LIBOBJ invocations to module description.
51231         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
51232         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
51234 2011-05-23  Bruno Haible  <bruno@clisp.org>
51236         exclude: Move AC_LIBOBJ invocations to module description.
51237         * m4/exclude.m4: Remove file.
51238         * modules/exclude (Files): Remove it.
51239         (configure.ac): Remove gl_EXCLUDE call.
51240         (Makefile.am): Augment lib_SOURCES.
51242 2011-05-23  Bruno Haible  <bruno@clisp.org>
51244         dirname*: Respect rules for use of AC_LIBOBJ.
51245         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
51246         invocations.
51247         * modules/dirname (Makefile.am): Augment lib_SOURCES.
51248         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
51250 2011-05-23  Bruno Haible  <bruno@clisp.org>
51252         dirent-safer: Move AC_LIBOBJ invocations to module description.
51253         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
51254         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
51256 2011-05-23  Bruno Haible  <bruno@clisp.org>
51258         crypto/des: Move AC_LIBOBJ invocations to module description.
51259         * m4/des.m4: Remove file.
51260         * modules/crypto/des (Files): Remove it.
51261         (configure.ac): Remove gl_DES call.
51262         (Makefile.am): Augment lib_SOURCES.
51264 2011-05-23  Bruno Haible  <bruno@clisp.org>
51266         cycle-check: Move AC_LIBOBJ invocations to module description.
51267         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
51268         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
51270 2011-05-23  Bruno Haible  <bruno@clisp.org>
51272         c-strtold: Move AC_LIBOBJ invocations to module description.
51273         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
51274         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
51276 2011-05-23  Bruno Haible  <bruno@clisp.org>
51278         c-strtod: Move AC_LIBOBJ invocations to module description.
51279         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
51280         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
51282 2011-05-23  Bruno Haible  <bruno@clisp.org>
51284         crc: Move AC_LIBOBJ invocations to module description.
51285         * m4/crc.m4: Remove file.
51286         * modules/crc (Files): Remove it.
51287         (configure.ac): Remove gl_CRC call.
51288         (Makefile.am): Augment lib_SOURCES.
51290 2011-05-23  Bruno Haible  <bruno@clisp.org>
51292         close-stream: Move AC_LIBOBJ invocations to module description.
51293         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
51294         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
51296 2011-05-23  Bruno Haible  <bruno@clisp.org>
51298         closeout: Move AC_LIBOBJ invocations to module description.
51299         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
51300         * modules/closeout (Makefile.am): Augment lib_SOURCES.
51302 2011-05-23  Bruno Haible  <bruno@clisp.org>
51304         closein: Move AC_LIBOBJ invocations to module description.
51305         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
51306         * modules/closein (Makefile.am): Augment lib_SOURCES.
51308 2011-05-23  Bruno Haible  <bruno@clisp.org>
51310         cloexec: Move AC_LIBOBJ invocations to module description.
51311         * m4/cloexec.m4: Remove file.
51312         * modules/cloexec (Files): Remove it.
51313         (configure.ac): Remove gl_CLOEXEC call.
51314         (Makefile.am): Augment lib_SOURCES.
51316 2011-05-23  Bruno Haible  <bruno@clisp.org>
51318         check-version: Move AC_LIBOBJ invocations to module description.
51319         * m4/check-version.m4: Remove file.
51320         * modules/check-version (Files): Remove it.
51321         (configure.ac): Remove gl_CHECK_VERSION call.
51322         (Makefile.am): Augment lib_SOURCES.
51324 2011-05-23  Bruno Haible  <bruno@clisp.org>
51326         chdir-safer: Move AC_LIBOBJ invocations to module description.
51327         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
51328         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
51330 2011-05-23  Bruno Haible  <bruno@clisp.org>
51332         canonicalize: Move AC_LIBOBJ invocations to module description.
51333         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
51334         AC_LIBOBJ invocation.
51335         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
51337 2011-05-23  Bruno Haible  <bruno@clisp.org>
51339         canon-host: Move AC_LIBOBJ invocations to module description.
51340         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
51341         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
51342         instead of gl_CANON_HOST.
51343         (Makefile.am): Augment lib_SOURCES.
51345 2011-05-23  Bruno Haible  <bruno@clisp.org>
51347         backupfile: Move AC_LIBOBJ invocations to module description.
51348         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
51349         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
51351 2011-05-23  Bruno Haible  <bruno@clisp.org>
51353         argmatch: Move AC_LIBOBJ invocations to module description.
51354         * m4/argmatch.m4: Remove file.
51355         * modules/argmatch (Files): Remove it.
51356         (configure.ac): Remove gl_ARGMATCH call.
51357         (Makefile.am): Augment lib_SOURCES.
51359 2011-05-23  Bruno Haible  <bruno@clisp.org>
51361         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
51362         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
51363         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
51365 2011-05-23  Bruno Haible  <bruno@clisp.org>
51367         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
51368         * m4/arcfour.m4: Remove file.
51369         * modules/crypto/arcfour (Files): Remove it.
51370         (configure.ac): Remove gl_ARCFOUR call.
51371         (Makefile.am): Augment lib_SOURCES.
51373 2011-05-22  Bruno Haible  <bruno@clisp.org>
51375         write: Move AC_LIBOBJ invocations to module description.
51376         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
51377         * modules/write (configure.ac): ... to here.
51379 2011-05-22  Bruno Haible  <bruno@clisp.org>
51381         wmemset: Move AC_LIBOBJ invocations to module description.
51382         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
51383         here...
51384         * modules/wmemset (configure.ac): ... to here.
51386 2011-05-22  Bruno Haible  <bruno@clisp.org>
51388         wmemmove: Move AC_LIBOBJ invocations to module description.
51389         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
51390         here...
51391         * modules/wmemmove (configure.ac): ... to here.
51393 2011-05-22  Bruno Haible  <bruno@clisp.org>
51395         wmemcpy: Move AC_LIBOBJ invocations to module description.
51396         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
51397         here...
51398         * modules/wmemcpy (configure.ac): ... to here.
51400 2011-05-22  Bruno Haible  <bruno@clisp.org>
51402         wmemcmp: Move AC_LIBOBJ invocations to module description.
51403         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
51404         here...
51405         * modules/wmemcmp (configure.ac): ... to here.
51407 2011-05-22  Bruno Haible  <bruno@clisp.org>
51409         wmemchr: Move AC_LIBOBJ invocations to module description.
51410         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
51411         here...
51412         * modules/wmemchr (configure.ac): ... to here.
51414 2011-05-22  Bruno Haible  <bruno@clisp.org>
51416         wcswidth: Move AC_LIBOBJ invocations to module description.
51417         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
51418         here...
51419         * modules/wcswidth (configure.ac): ... to here.
51421 2011-05-22  Bruno Haible  <bruno@clisp.org>
51423         wcwidth: Respect rules for use of AC_LIBOBJ.
51424         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
51425         invocation from here...
51426         * modules/wcwidth (configure.ac): ... to here.
51427         (Depends-on): Update conditions.
51429 2011-05-22  Bruno Haible  <bruno@clisp.org>
51431         wctype: Move AC_LIBOBJ invocations to module description.
51432         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
51433         invocation from here...
51434         * modules/wctype (configure.ac): ... to here.
51435         (Depends-on): Update conditions.
51437 2011-05-22  Bruno Haible  <bruno@clisp.org>
51439         wctrans: Move AC_LIBOBJ invocations to module description.
51440         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
51441         invocation from here...
51442         * modules/wctrans (configure.ac): ... to here.
51444 2011-05-22  Bruno Haible  <bruno@clisp.org>
51446         wctomb: Move AC_LIBOBJ invocations to module description.
51447         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
51448         invocations from here...
51449         * modules/wctomb (configure.ac): ... to here.
51451 2011-05-22  Bruno Haible  <bruno@clisp.org>
51453         wctob: Move AC_LIBOBJ invocations to module description.
51454         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
51455         gl_PREREQ_WCTOB invocations from here...
51456         * modules/wctob (configure.ac): ... to here.
51457         (Depends-on): Update conditions.
51459 2011-05-22  Bruno Haible  <bruno@clisp.org>
51461         wcsxfrm: Move AC_LIBOBJ invocations to module description.
51462         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
51463         here...
51464         * modules/wcsxfrm (configure.ac): ... to here.
51466 2011-05-22  Bruno Haible  <bruno@clisp.org>
51468         wcstok: Move AC_LIBOBJ invocations to module description.
51469         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
51470         * modules/wcstok (configure.ac): ... to here.
51472 2011-05-22  Bruno Haible  <bruno@clisp.org>
51474         wcsstr: Move AC_LIBOBJ invocations to module description.
51475         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
51476         * modules/wcsstr (configure.ac): ... to here.
51478 2011-05-22  Bruno Haible  <bruno@clisp.org>
51480         wcsspn: Move AC_LIBOBJ invocations to module description.
51481         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
51482         * modules/wcsspn (configure.ac): ... to here.
51484 2011-05-22  Bruno Haible  <bruno@clisp.org>
51486         wcsrtombs: Move AC_LIBOBJ invocations to module description.
51487         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
51488         gl_PREREQ_WCSRTOMBS invocations from here...
51489         * modules/wcsrtombs (configure.ac): ... to here.
51491 2011-05-22  Bruno Haible  <bruno@clisp.org>
51493         wcsrchr: Move AC_LIBOBJ invocations to module description.
51494         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
51495         here...
51496         * modules/wcsrchr (configure.ac): ... to here.
51498 2011-05-22  Bruno Haible  <bruno@clisp.org>
51500         wcspbrk: Move AC_LIBOBJ invocations to module description.
51501         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
51502         here...
51503         * modules/wcspbrk (configure.ac): ... to here.
51505 2011-05-22  Bruno Haible  <bruno@clisp.org>
51507         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
51508         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
51509         gl_PREREQ_WCSNRTOMBS invocations from here...
51510         * modules/wcsnrtombs (configure.ac): ... to here.
51512 2011-05-22  Bruno Haible  <bruno@clisp.org>
51514         wcsnlen: Move AC_LIBOBJ invocations to module description.
51515         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
51516         here...
51517         * modules/wcsnlen (configure.ac): ... to here.
51519 2011-05-22  Bruno Haible  <bruno@clisp.org>
51521         wcsncpy: Move AC_LIBOBJ invocations to module description.
51522         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
51523         here...
51524         * modules/wcsncpy (configure.ac): ... to here.
51526 2011-05-22  Bruno Haible  <bruno@clisp.org>
51528         wcsncmp: Move AC_LIBOBJ invocations to module description.
51529         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
51530         here...
51531         * modules/wcsncmp (configure.ac): ... to here.
51533 2011-05-22  Bruno Haible  <bruno@clisp.org>
51535         wcsncat: Move AC_LIBOBJ invocations to module description.
51536         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
51537         here...
51538         * modules/wcsncat (configure.ac): ... to here.
51540 2011-05-22  Bruno Haible  <bruno@clisp.org>
51542         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
51543         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
51544         from here...
51545         * modules/wcsncasecmp (configure.ac): ... to here.
51547 2011-05-22  Bruno Haible  <bruno@clisp.org>
51549         wcslen: Move AC_LIBOBJ invocations to module description.
51550         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
51551         * modules/wcslen (configure.ac): ... to here.
51553 2011-05-22  Bruno Haible  <bruno@clisp.org>
51555         wcsdup: Move AC_LIBOBJ invocations to module description.
51556         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
51557         * modules/wcsdup (configure.ac): ... to here.
51559 2011-05-22  Bruno Haible  <bruno@clisp.org>
51561         wcscspn: Move AC_LIBOBJ invocations to module description.
51562         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
51563         here...
51564         * modules/wcscspn (configure.ac): ... to here.
51566 2011-05-22  Bruno Haible  <bruno@clisp.org>
51568         wcscpy: Move AC_LIBOBJ invocations to module description.
51569         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
51570         * modules/wcscpy (configure.ac): ... to here.
51572 2011-05-22  Bruno Haible  <bruno@clisp.org>
51574         wcscoll: Move AC_LIBOBJ invocations to module description.
51575         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
51576         here...
51577         * modules/wcscoll (configure.ac): ... to here.
51579 2011-05-22  Bruno Haible  <bruno@clisp.org>
51581         wcscmp: Move AC_LIBOBJ invocations to module description.
51582         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
51583         * modules/wcscmp (configure.ac): ... to here.
51585 2011-05-22  Bruno Haible  <bruno@clisp.org>
51587         wcschr: Move AC_LIBOBJ invocations to module description.
51588         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
51589         * modules/wcschr (configure.ac): ... to here.
51591 2011-05-22  Bruno Haible  <bruno@clisp.org>
51593         wcscat: Move AC_LIBOBJ invocations to module description.
51594         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
51595         * modules/wcscat (configure.ac): ... to here.
51597 2011-05-22  Bruno Haible  <bruno@clisp.org>
51599         wcscasecmp: Move AC_LIBOBJ invocations to module description.
51600         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
51601         here...
51602         * modules/wcscasecmp (configure.ac): ... to here.
51604 2011-05-22  Bruno Haible  <bruno@clisp.org>
51606         wcrtomb: Move AC_LIBOBJ invocations to module description.
51607         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
51608         invocations from here...
51609         * modules/wcrtomb (configure.ac): ... to here.
51611 2011-05-22  Bruno Haible  <bruno@clisp.org>
51613         wcpncpy: Move AC_LIBOBJ invocations to module description.
51614         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
51615         here...
51616         * modules/wcpncpy (configure.ac): ... to here.
51618 2011-05-22  Bruno Haible  <bruno@clisp.org>
51620         wcpcpy: Move AC_LIBOBJ invocations to module description.
51621         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
51622         * modules/wcpcpy (configure.ac): ... to here.
51624 2011-05-22  Bruno Haible  <bruno@clisp.org>
51626         waitpid: Move AC_LIBOBJ invocations to module description.
51627         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
51628         invocation from here...
51629         * modules/waitpid (configure.ac): ... to here.
51631 2011-05-22  Bruno Haible  <bruno@clisp.org>
51633         utimensat: Move AC_LIBOBJ invocations to module description.
51634         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
51635         here...
51636         * modules/utimensat (configure.ac): ... to here.
51638 2011-05-22  Bruno Haible  <bruno@clisp.org>
51640         usleep: Move AC_LIBOBJ invocations to module description.
51641         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
51642         here...
51643         * modules/usleep (configure.ac): ... to here.
51645 2011-05-22  Bruno Haible  <bruno@clisp.org>
51647         unlockpt: Move AC_LIBOBJ invocations to module description.
51648         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
51649         gl_PREREQ_UNLOCKPT invocations from here...
51650         * modules/unlockpt (configure.ac): ... to here.
51652 2011-05-22  Bruno Haible  <bruno@clisp.org>
51654         unlink: Respect rules for use of AC_LIBOBJ.
51655         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
51656         * modules/unlink (configure.ac): ... to here.
51658 2011-05-22  Bruno Haible  <bruno@clisp.org>
51660         uname: Move AC_LIBOBJ invocations to module description.
51661         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
51662         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
51663         here...
51664         * modules/uname (configure.ac): ... to here.
51666 2011-05-22  Bruno Haible  <bruno@clisp.org>
51668         ttyname_r: Move AC_LIBOBJ invocations to module description.
51669         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
51670         gl_PREREQ_TTYNAME_R invocations from here...
51671         * modules/ttyname_r (configure.ac): ... to here.
51673 2011-05-22  Bruno Haible  <bruno@clisp.org>
51675         tsearch: Move AC_LIBOBJ invocations to module description.
51676         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
51677         invocations from here...
51678         * modules/tsearch (configure.ac): ... to here.
51680 2011-05-22  Bruno Haible  <bruno@clisp.org>
51682         towctrans: Move AC_LIBOBJ invocations to module description.
51683         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
51684         AC_LIBOBJ invocation from here...
51685         * modules/towctrans (configure.ac): ... to here.
51687 2011-05-22  Bruno Haible  <bruno@clisp.org>
51689         tmpfile: Move AC_LIBOBJ invocations to module description.
51690         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
51691         invocations from here...
51692         * modules/tmpfile (configure.ac): ... to here.
51694 2011-05-22  Bruno Haible  <bruno@clisp.org>
51696         times: Move AC_LIBOBJ invocations to module description.
51697         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
51698         * modules/times (configure.ac): ... to here.
51700 2011-05-22  Bruno Haible  <bruno@clisp.org>
51702         time_r: Move AC_LIBOBJ invocations to module description.
51703         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
51704         invocations from here...
51705         * modules/time_r (configure.ac): ... to here.
51707 2011-05-22  Bruno Haible  <bruno@clisp.org>
51709         timegm: Move AC_LIBOBJ invocations to module description.
51710         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
51711         invocations from here...
51712         * modules/timegm (configure.ac): ... to here.
51714 2011-05-22  Bruno Haible  <bruno@clisp.org>
51716         tcgetsid: Move AC_LIBOBJ invocations to module description.
51717         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
51718         and gl_PREREQ_TCGETSID invocations from here...
51719         * modules/tcgetsid (configure.ac): ... to here.
51720         (Depends-on): Update conditions.
51722 2011-05-22  Bruno Haible  <bruno@clisp.org>
51724         symlinkat: Move AC_LIBOBJ invocations to module description.
51725         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
51726         here...
51727         * modules/symlinkat (configure.ac): ... to here.
51729 2011-05-22  Bruno Haible  <bruno@clisp.org>
51731         symlink: Move AC_LIBOBJ invocations to module description.
51732         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
51733         here...
51734         * modules/symlink (configure.ac): ... to here.
51736 2011-05-22  Bruno Haible  <bruno@clisp.org>
51738         strverscmp: Move AC_LIBOBJ invocations to module description.
51739         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
51740         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
51741         from here...
51742         * modules/strverscmp (configure.ac): ... to here.
51744 2011-05-22  Bruno Haible  <bruno@clisp.org>
51746         strtok_r: Move AC_LIBOBJ invocations to module description.
51747         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
51748         and gl_PREREQ_STRTOK_R invocations from here...
51749         * modules/strtok_r (configure.ac): ... to here.
51750         (Depends-on): Update conditions.
51752 2011-05-22  Bruno Haible  <bruno@clisp.org>
51754         strtoumax: Move AC_LIBOBJ invocations to module description.
51755         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
51756         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
51757         from here...
51758         * modules/strtoumax (configure.ac): ... to here.
51760 2011-05-22  Bruno Haible  <bruno@clisp.org>
51762         strtoimax: Move AC_LIBOBJ invocations to module description.
51763         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
51764         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
51765         from here...
51766         * modules/strtoimax (configure.ac): ... to here.
51768 2011-05-22  Bruno Haible  <bruno@clisp.org>
51770         strtoull: Move AC_LIBOBJ invocations to module description.
51771         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
51772         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
51773         from here...
51774         * modules/strtoull (configure.ac): ... to here.
51776 2011-05-22  Bruno Haible  <bruno@clisp.org>
51778         strtoll: Move AC_LIBOBJ invocations to module description.
51779         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
51780         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
51781         here...
51782         * modules/strtoll (configure.ac): ... to here.
51784 2011-05-22  Bruno Haible  <bruno@clisp.org>
51786         strtoul: Move AC_LIBOBJ invocations to module description.
51787         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
51788         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
51789         * modules/strtoul (configure.ac): ... to here.
51791 2011-05-22  Bruno Haible  <bruno@clisp.org>
51793         strtol: Move AC_LIBOBJ invocations to module description.
51794         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
51795         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
51796         * modules/strtol (configure.ac): ... to here.
51798 2011-05-22  Bruno Haible  <bruno@clisp.org>
51800         strtod: Move AC_LIBOBJ invocations to module description.
51801         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
51802         invocations from here...
51803         * modules/strtod (configure.ac): ... to here.
51805 2011-05-22  Bruno Haible  <bruno@clisp.org>
51807         strstr*: Move AC_LIBOBJ invocations to module description.
51808         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
51809         invocations from here...
51810         * modules/strstr-simple (configure.ac): ... to here.
51811         * modules/strstr (configure.ac): ... and here.
51813 2011-05-22  Bruno Haible  <bruno@clisp.org>
51815         strsignal: Move AC_LIBOBJ invocations to module description.
51816         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
51817         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
51818         * modules/strsignal (configure.ac): ... to here.
51819         (Depends-on): Update conditions.
51821 2011-05-22  Bruno Haible  <bruno@clisp.org>
51823         strsep: Move AC_LIBOBJ invocations to module description.
51824         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
51825         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
51826         here...
51827         * modules/strsep (configure.ac): ... to here.
51829 2011-05-22  Bruno Haible  <bruno@clisp.org>
51831         strptime: Move AC_LIBOBJ invocations to module description.
51832         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
51833         gl_PREREQ_STRPTIME invocations from here...
51834         * modules/strptime (configure.ac): ... to here.
51836 2011-05-22  Bruno Haible  <bruno@clisp.org>
51838         strpbrk: Move AC_LIBOBJ invocations to module description.
51839         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
51840         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
51841         here...
51842         * modules/strpbrk (configure.ac): ... to here.
51844 2011-05-22  Bruno Haible  <bruno@clisp.org>
51846         strnlen: Move AC_LIBOBJ invocations to module description.
51847         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
51848         invocations from here...
51849         * modules/strnlen (configure.ac): ... to here.
51851 2011-05-22  Bruno Haible  <bruno@clisp.org>
51853         strndup: Move AC_LIBOBJ invocations to module description.
51854         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
51855         invocations from here...
51856         * modules/strndup (configure.ac): ... to here.
51857         (Depends-on): Update conditions.
51859 2011-05-22  Bruno Haible  <bruno@clisp.org>
51861         strncat: Move AC_LIBOBJ invocations to module description.
51862         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
51863         invocations from here...
51864         * modules/strncat (configure.ac): ... to here.
51866 2011-05-22  Bruno Haible  <bruno@clisp.org>
51868         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
51869         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
51870         invocations from here...
51871         * modules/strdup (configure.ac): ... to here.
51872         * modules/strdup-posix (configure.ac): ... and here.
51874 2011-05-22  Bruno Haible  <bruno@clisp.org>
51876         strcspn: Move AC_LIBOBJ invocations to module description.
51877         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
51878         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
51879         here...
51880         * modules/strcspn (configure.ac): ... to here.
51882 2011-05-22  Bruno Haible  <bruno@clisp.org>
51884         strchrnul: Move AC_LIBOBJ invocations to module description.
51885         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
51886         gl_PREREQ_STRCHRNUL invocations from here...
51887         * modules/strchrnul (configure.ac): ... to here.
51889 2011-05-22  Bruno Haible  <bruno@clisp.org>
51891         strcasestr*: Move AC_LIBOBJ invocations to module description.
51892         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
51893         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
51894         * modules/strcasestr-simple (configure.ac): ... to here.
51895         * modules/strcasestr (configure.ac): ... and here.
51897 2011-05-22  Bruno Haible  <bruno@clisp.org>
51899         strcase: Move AC_LIBOBJ invocations to module description.
51900         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
51901         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
51902         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
51903         gl_PREREQ_STRNCASECMP invocations from here...
51904         * modules/strcase (configure.ac): ... to here.
51906 2011-05-22  Bruno Haible  <bruno@clisp.org>
51908         stpncpy: Move AC_LIBOBJ invocations to module description.
51909         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
51910         here...
51911         * modules/stpncpy (configure.ac): ... to here.
51913 2011-05-22  Bruno Haible  <bruno@clisp.org>
51915         stpcpy: Move AC_LIBOBJ invocations to module description.
51916         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
51917         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
51918         here...
51919         * modules/stpcpy (configure.ac): ... to here.
51921 2011-05-21  Bruno Haible  <bruno@clisp.org>
51923         stat: Move AC_LIBOBJ invocations to module description.
51924         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
51925         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
51926         here...
51927         * modules/stat (configure.ac): ... to here.
51929 2011-05-21  Bruno Haible  <bruno@clisp.org>
51931         sleep: Move AC_LIBOBJ invocations to module description.
51932         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
51933         * modules/sleep (configure.ac): ... to here.
51935 2011-05-21  Bruno Haible  <bruno@clisp.org>
51937         signbit: Move AC_LIBOBJ invocations to module description.
51938         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
51939         * modules/signbit (configure.ac): ... to here.
51941 2011-05-21  Bruno Haible  <bruno@clisp.org>
51943         sigprocmask: Move AC_LIBOBJ invocations to module description.
51944         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
51945         gl_PREREQ_SIGPROMASK invocations from here...
51946         * modules/sigprocmask (configure.ac): ... to here.
51948 2011-05-21  Bruno Haible  <bruno@clisp.org>
51950         sigaction: Move AC_LIBOBJ invocations to module description.
51951         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
51952         gl_PREREQ_SIGACTION invocations from here...
51953         * modules/sigaction (configure.ac): ... to here.
51955 2011-05-21  Bruno Haible  <bruno@clisp.org>
51957         sig2str: Move AC_LIBOBJ invocations to module description.
51958         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
51959         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
51960         here...
51961         * modules/sig2str (configure.ac): ... to here.
51963 2011-05-21  Bruno Haible  <bruno@clisp.org>
51965         setlocale: Move AC_LIBOBJ invocations to module description.
51966         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
51967         gl_PREREQ_SETLOCALE invocations from here...
51968         * modules/setlocale (configure.ac): ... to here.
51970 2011-05-21  Bruno Haible  <bruno@clisp.org>
51972         unsetenv: Move AC_LIBOBJ invocations to module description.
51973         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
51974         and gl_PREREQ_UNSETENV invocations from here...
51975         * modules/unsetenv (configure.ac): ... to here.
51976         (Depends-on): Update.
51978 2011-05-21  Bruno Haible  <bruno@clisp.org>
51980         setenv: Move AC_LIBOBJ invocations to module description.
51981         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
51982         here...
51983         * modules/setenv (configure.ac): ... to here.
51985 2011-05-21  Bruno Haible  <bruno@clisp.org>
51987         selinux-h: Move AC_LIBOBJ invocations to module description.
51988         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
51989         AC_LIBOBJ invocation from here...
51990         * modules/selinux-h (configure.ac): ... to here.
51992 2011-05-21  Bruno Haible  <bruno@clisp.org>
51994         select: Respect rules for use of AC_LIBOBJ.
51995         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
51996         here...
51997         * modules/select (configure.ac): ... to here.
51999 2011-05-21  Bruno Haible  <bruno@clisp.org>
52001         scandir: Move AC_LIBOBJ invocations to module description.
52002         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
52003         invocations from here...
52004         * modules/scandir (configure.ac): ... to here.
52006 2011-05-21  Bruno Haible  <bruno@clisp.org>
52008         rpmatch: Move AC_LIBOBJ invocations to module description.
52009         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
52010         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
52011         here...
52012         * modules/rpmatch (configure.ac): ... to here.
52014 2011-05-21  Bruno Haible  <bruno@clisp.org>
52016         rmdir: Respect rules for use of AC_LIBOBJ.
52017         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
52018         * modules/rmdir (configure.ac): ... to here.
52020 2011-05-21  Bruno Haible  <bruno@clisp.org>
52022         renameat: Move AC_LIBOBJ invocations to module description.
52023         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
52024         here...
52025         * modules/renameat (configure.ac): ... to here.
52027 2011-05-21  Bruno Haible  <bruno@clisp.org>
52029         rename: Respect rules for use of AC_LIBOBJ.
52030         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
52031         here...
52032         * modules/rename (configure.ac): ... to here.
52034 2011-05-21  Bruno Haible  <bruno@clisp.org>
52036         remove: Move AC_LIBOBJ invocations to module description.
52037         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
52038         here...
52039         * modules/remove (configure.ac): ... to here.
52041 2011-05-21  Bruno Haible  <bruno@clisp.org>
52043         relocatable-lib: Move AC_LIBOBJ invocations to module description.
52044         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
52045         macro.
52046         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
52047         * modules/relocatable-lib (configure.ac): ... to here.
52048         * modules/relocatable-prog-wrapper (configure.ac): Invoke
52049         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
52051 2011-05-21  Bruno Haible  <bruno@clisp.org>
52053         relocatable-prog: Move AC_LIBOBJ invocations to module description.
52054         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
52055         here...
52056         * modules/relocatable-prog (configure.ac): ... to here.
52058 2011-05-21  Bruno Haible  <bruno@clisp.org>
52060         regex: Move AC_LIBOBJ invocations to module description.
52061         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
52062         invocations from here...
52063         * modules/regex (configure.ac): ... to here.
52065 2011-05-21  Bruno Haible  <bruno@clisp.org>
52067         realloc-*: Move AC_LIBOBJ invocations to module description.
52068         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
52069         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
52070         AC_LIBOBJ invocations from here...
52071         * modules/realloc-gnu (configure.ac): ... to here.
52072         * modules/realloc-posix (configure.ac): ... and here.
52074 2011-05-21  Bruno Haible  <bruno@clisp.org>
52076         readutmp: Move AC_LIBOBJ invocations to module description.
52077         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
52078         * modules/readutmp (configure.ac): ... to here.
52080 2011-05-21  Bruno Haible  <bruno@clisp.org>
52082         readlinkat: Move AC_LIBOBJ invocations to module description.
52083         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
52084         here...
52085         * modules/readlinkat (configure.ac): ... to here.
52087 2011-05-21  Bruno Haible  <bruno@clisp.org>
52089         readlink: Move AC_LIBOBJ invocations to module description.
52090         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
52091         gl_PREREQ_READLINK invocations from here...
52092         * modules/readlink (configure.ac): ... to here.
52094 2011-05-21  Bruno Haible  <bruno@clisp.org>
52096         readline: Move AC_LIBOBJ invocations to module description.
52097         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
52098         gl_PREREQ_READLINE invocations from here...
52099         * modules/readline (configure.ac): ... to here.
52101 2011-05-21  Bruno Haible  <bruno@clisp.org>
52103         read: Move AC_LIBOBJ invocations to module description.
52104         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
52105         * modules/read (configure.ac): ... to here.
52107 2011-05-21  Bruno Haible  <bruno@clisp.org>
52109         rawmemchr: Move AC_LIBOBJ invocations to module description.
52110         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
52111         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
52112         from here...
52113         * modules/rawmemchr (configure.ac): ... to here.
52115 2011-05-21  Bruno Haible  <bruno@clisp.org>
52117         random_r: Move AC_LIBOBJ invocations to module description.
52118         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
52119         gl_PREREQ_RANDOM_R invocations from here...
52120         * modules/random_r (configure.ac): ... to here.
52122 2011-05-21  Bruno Haible  <bruno@clisp.org>
52124         pwrite: Move AC_LIBOBJ invocations to module description.
52125         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
52126         * modules/pwrite (configure.ac): ... to here.
52128 2011-05-21  Bruno Haible  <bruno@clisp.org>
52130         putenv: Move AC_LIBOBJ invocations to module description.
52131         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
52132         * modules/putenv (configure.ac): ... to here.
52134 2011-05-21  Bruno Haible  <bruno@clisp.org>
52136         login_tty: Move AC_LIBOBJ invocations to module description.
52137         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
52138         * modules/login_tty (configure.ac): ... to here.
52140 2011-05-21  Bruno Haible  <bruno@clisp.org>
52142         openpty: Move AC_LIBOBJ invocations to module description.
52143         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
52144         * modules/openpty (configure.ac): ... to here.
52146 2011-05-21  Bruno Haible  <bruno@clisp.org>
52148         forkpty: Move AC_LIBOBJ invocations to module description.
52149         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
52150         * modules/forkpty (configure.ac): ... to here.
52152 2011-05-21  Bruno Haible  <bruno@clisp.org>
52154         ptsname: Move AC_LIBOBJ invocations to module description.
52155         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
52156         invocations from here...
52157         * modules/ptsname (configure.ac): ... to here.
52159 2011-05-21  Bruno Haible  <bruno@clisp.org>
52161         pread: Move AC_LIBOBJ invocations to module description.
52162         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
52163         * modules/pread (configure.ac): ... to here.
52165 2011-05-21  Bruno Haible  <bruno@clisp.org>
52167         posix_spawn*: Move AC_LIBOBJ invocations to module description.
52168         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
52169         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
52170         * modules/posix_spawn (configure.ac): ... to here.
52171         * modules/posix_spawnp (configure.ac): ... and here.
52173 2011-05-21  Bruno Haible  <bruno@clisp.org>
52175         popen: Move AC_LIBOBJ invocations to module description.
52176         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
52177         invocations from here...
52178         * modules/popen (configure.ac): ... to here.
52180 2011-05-21  Bruno Haible  <bruno@clisp.org>
52182         poll: Move AC_LIBOBJ invocations to module description.
52183         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
52184         invocations from here...
52185         * modules/poll (configure.ac): ... to here.
52187 2011-05-21  Bruno Haible  <bruno@clisp.org>
52189         pipe-posix: Move AC_LIBOBJ invocations to module description.
52190         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
52191         * modules/pipe-posix (configure.ac): ... to here.
52193 2011-05-21  Bruno Haible  <bruno@clisp.org>
52195         openat: Respect rules for use of AC_LIBOBJ.
52196         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
52197         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
52198         * modules/openat (configure.ac): ... to here.
52200 2011-05-21  Bruno Haible  <bruno@clisp.org>
52202         obstack-printf*: Move AC_LIBOBJ invocations to module description.
52203         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
52204         invocation from here...
52205         * modules/obstack-printf (configure.ac): ... to here.
52206         * modules/obstack-printf-posix (configure.ac): ... and here.
52208 2011-05-21  Bruno Haible  <bruno@clisp.org>
52210         nl_langinfo: Move AC_LIBOBJ invocations to module description.
52211         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
52212         from here...
52213         * modules/nl_langinfo (configure.ac): ... to here.
52215 2011-05-21  Bruno Haible  <bruno@clisp.org>
52217         nanosleep: Move AC_LIBOBJ invocations to module description.
52218         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
52219         gl_PREREQ_NANOSLEEP invocations from here...
52220         * modules/nanosleep (configure.ac): ... to here.
52222 2011-05-21  Bruno Haible  <bruno@clisp.org>
52224         mountlist: Move AC_LIBOBJ invocations to module description.
52225         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
52226         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
52227         * modules/mountlist (configure.ac): ... to here.
52229 2011-05-21  Bruno Haible  <bruno@clisp.org>
52231         mktime: Respect rules for use of AC_LIBOBJ.
52232         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
52233         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
52234         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
52235         (gl_FUNC_MKTIME_INTERNAL): ... and here...
52236         * modules/mktime (configure.ac): ... to here.
52237         * modules/mktime-internal (configure.ac): ... and here.
52238         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
52240 2011-05-21  Bruno Haible  <bruno@clisp.org>
52242         mkstemps: Move AC_LIBOBJ invocations to module description.
52243         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
52244         here...
52245         * modules/mkstemps (configure.ac): ... to here.
52247 2011-05-21  Bruno Haible  <bruno@clisp.org>
52249         mkstemp: Move AC_LIBOBJ invocations to module description.
52250         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
52251         gl_PREREQ_MKSTEMP invocations from here...
52252         * modules/mkstemp (configure.ac): ... to here.
52254 2011-05-21  Bruno Haible  <bruno@clisp.org>
52256         mkostemps: Move AC_LIBOBJ invocations to module description.
52257         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
52258         here...
52259         * modules/mkostemps (configure.ac): ... to here.
52261 2011-05-21  Bruno Haible  <bruno@clisp.org>
52263         mkostemp: Move AC_LIBOBJ invocations to module description.
52264         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
52265         gl_PREREQ_MKOSTEMP invocations from here...
52266         * modules/mkostemp (configure.ac): ... to here.
52268 2011-05-21  Bruno Haible  <bruno@clisp.org>
52270         mknod: Move AC_LIBOBJ invocations to module description.
52271         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
52272         * modules/mknod (configure.ac): ... to here.
52274 2011-05-21  Bruno Haible  <bruno@clisp.org>
52276         mkfifoat: Move AC_LIBOBJ invocations to module description.
52277         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
52278         here...
52279         * modules/mkfifoat (configure.ac): ... to here.
52281 2011-05-21  Bruno Haible  <bruno@clisp.org>
52283         mkfifo: Respect rules for use of AC_LIBOBJ.
52284         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
52285         here...
52286         * modules/mkfifo (configure.ac): ... to here.
52288 2011-05-21  Bruno Haible  <bruno@clisp.org>
52290         mkdtemp: Move AC_LIBOBJ invocations to module description.
52291         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
52292         invocations from here...
52293         * modules/mkdtemp (configure.ac): ... to here.
52295 2011-05-21  Bruno Haible  <bruno@clisp.org>
52297         mkdir: Move AC_LIBOBJ invocations to module description.
52298         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
52299         * modules/mkdir (configure.ac): ... to here.
52301 2011-05-21  Bruno Haible  <bruno@clisp.org>
52303         memset: Move AC_LIBOBJ invocations to module description.
52304         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
52305         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
52306         here...
52307         * modules/memset (configure.ac): ... to here.
52309 2011-05-21  Bruno Haible  <bruno@clisp.org>
52311         memrchr: Move AC_LIBOBJ invocations to module description.
52312         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
52313         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
52314         here...
52315         * modules/memrchr (configure.ac): ... to here.
52317 2011-05-21  Bruno Haible  <bruno@clisp.org>
52319         mempcpy: Move AC_LIBOBJ invocations to module description.
52320         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
52321         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
52322         here...
52323         * modules/mempcpy (configure.ac): ... to here.
52325 2011-05-21  Bruno Haible  <bruno@clisp.org>
52327         memmove: Move AC_LIBOBJ invocations to module description.
52328         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
52329         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
52330         here...
52331         * modules/memmove (configure.ac): ... to here.
52333 2011-05-21  Bruno Haible  <bruno@clisp.org>
52335         memmem*: Move AC_LIBOBJ invocations to module description.
52336         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
52337         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
52338         here...
52339         (gl_FUNC_MEMMEM): ... and here...
52340         * modules/memmem-simple (configure.ac): ... to here.
52341         * modules/memmem (configure.ac): ... and here.
52343 2011-05-21  Bruno Haible  <bruno@clisp.org>
52345         memcpy: Move AC_LIBOBJ invocations to module description.
52346         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
52347         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
52348         here...
52349         * modules/memcpy (configure.ac): ... to here.
52351 2011-05-21  Bruno Haible  <bruno@clisp.org>
52353         memcmp: Simplify autoconf macro.
52354         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
52355         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
52356         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
52358 2011-05-21  Bruno Haible  <bruno@clisp.org>
52360         memcmp: Move AC_LIBOBJ invocations to module description.
52361         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
52362         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
52363         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
52364         * modules/memcmp (configure.ac): ... to here.
52365         (Depends-on): Update conditions.
52367 2011-05-21  Bruno Haible  <bruno@clisp.org>
52369         memchr: Respect rules for use of AC_LIBOBJ.
52370         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
52371         invocations from here...
52372         * modules/memchr (configure.ac): ... to here.
52374 2011-05-21  Bruno Haible  <bruno@clisp.org>
52376         mbtowc: Move AC_LIBOBJ invocations to module description.
52377         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
52378         invocations from here...
52379         * modules/mbtowc (configure.ac): ... to here.
52381 2011-05-21  Bruno Haible  <bruno@clisp.org>
52383         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
52384         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
52385         gl_PREREQ_MBSRTOWCS invocations from here...
52386         * modules/mbsrtowcs (configure.ac): ... to here.
52388 2011-05-21  Bruno Haible  <bruno@clisp.org>
52390         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
52391         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
52392         gl_PREREQ_MBSNRTOWCS invocations from here...
52393         * modules/mbsnrtowcs (configure.ac): ... to here.
52395 2011-05-21  Bruno Haible  <bruno@clisp.org>
52397         mbsinit: Move AC_LIBOBJ invocations to module description.
52398         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
52399         invocations from here...
52400         * modules/mbsinit (configure.ac): ... to here.
52402 2011-05-21  Bruno Haible  <bruno@clisp.org>
52404         mbrlen: Move AC_LIBOBJ invocations to module description.
52405         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
52406         invocations from here...
52407         * modules/mbrlen (configure.ac): ... to here.
52409 2011-05-21  Bruno Haible  <bruno@clisp.org>
52411         mbrtowc: Respect rules for use of AC_LIBOBJ.
52412         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
52413         invocations from here...
52414         * modules/mbrtowc (configure.ac): ... to here.
52416 2011-05-21  Bruno Haible  <bruno@clisp.org>
52418         malloc-*: Move AC_LIBOBJ invocations to module description.
52419         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
52420         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
52421         AC_LIBOBJ invocations from here...
52422         * modules/malloc-gnu (configure.ac): ... to here.
52423         * modules/malloc-posix (configure.ac): ... and here.
52425 2011-05-21  Bruno Haible  <bruno@clisp.org>
52427         lstat, openat: Respect rules for use of AC_LIBOBJ.
52428         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
52429         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
52430         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
52431         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
52432         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
52433         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
52434         here.
52435         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
52437 2011-05-21  Bruno Haible  <bruno@clisp.org>
52439         lseek: Move AC_LIBOBJ invocations to module description.
52440         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
52441         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
52442         * modules/lseek (configure.ac): ... to here.
52444 2011-05-21  Bruno Haible  <bruno@clisp.org>
52446         linkat: Move AC_LIBOBJ invocations to module description.
52447         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
52448         here...
52449         * modules/linkat (configure.ac): ... to here.
52451 2011-05-21  Bruno Haible  <bruno@clisp.org>
52453         link: Respect rules for use of AC_LIBOBJ.
52454         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
52455         * modules/link (configure.ac): ... to here.
52457 2011-05-21  Bruno Haible  <bruno@clisp.org>
52459         lchown: Move AC_LIBOBJ invocations to module description.
52460         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
52461         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
52462         * modules/lchown (configure.ac): ... to here.
52464 2011-05-21  Bruno Haible  <bruno@clisp.org>
52466         iswctype: Move AC_LIBOBJ invocations to module description.
52467         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
52468         here...
52469         * modules/iswctype (configure.ac): ... to here.
52471 2011-05-21  Bruno Haible  <bruno@clisp.org>
52473         iswblank: Move AC_LIBOBJ invocations to module description.
52474         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
52475         here...
52476         * modules/iswblank (configure.ac): ... to here.
52478 2011-05-21  Bruno Haible  <bruno@clisp.org>
52480         atanl: Move AC_LIBOBJ invocations to module description.
52481         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
52482         * modules/atanl (configure.ac): ... to here.
52484 2011-05-21  Bruno Haible  <bruno@clisp.org>
52486         acosl: Move AC_LIBOBJ invocations to module description.
52487         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
52488         * modules/acosl (configure.ac): ... to here.
52490 2011-05-21  Bruno Haible  <bruno@clisp.org>
52492         asinl: Respect rules for use of AC_LIBOBJ.
52493         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
52494         * modules/asinl (configure.ac): ... to here.
52496 2011-05-21  Bruno Haible  <bruno@clisp.org>
52498         tanl: Move AC_LIBOBJ invocations to module description.
52499         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
52500         * modules/tanl (configure.ac): ... to here.
52502 2011-05-21  Bruno Haible  <bruno@clisp.org>
52504         cosl: Move AC_LIBOBJ invocations to module description.
52505         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
52506         * modules/cosl (configure.ac): ... to here.
52508 2011-05-21  Bruno Haible  <bruno@clisp.org>
52510         sinl: Move AC_LIBOBJ invocations to module description.
52511         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
52512         * modules/sinl (configure.ac): ... to here.
52514 2011-05-21  Bruno Haible  <bruno@clisp.org>
52516         logl: Move AC_LIBOBJ invocations to module description.
52517         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
52518         * modules/logl (configure.ac): ... to here.
52520 2011-05-21  Bruno Haible  <bruno@clisp.org>
52522         expl: Move AC_LIBOBJ invocations to module description.
52523         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
52524         * modules/expl (configure.ac): ... to here.
52526 2011-05-21  Bruno Haible  <bruno@clisp.org>
52528         roundl: Move AC_LIBOBJ invocations to module description.
52529         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
52530         * modules/roundl (configure.ac): ... to here.
52532 2011-05-21  Bruno Haible  <bruno@clisp.org>
52534         round: Move AC_LIBOBJ invocations to module description.
52535         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
52536         * modules/round (configure.ac): ... to here.
52538 2011-05-21  Bruno Haible  <bruno@clisp.org>
52540         roundf: Move AC_LIBOBJ invocations to module description.
52541         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
52542         * modules/roundf (configure.ac): ... to here.
52544 2011-05-21  Bruno Haible  <bruno@clisp.org>
52546         truncl: Move AC_LIBOBJ invocations to module description.
52547         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
52548         * modules/truncl (configure.ac): ... to here.
52550 2011-05-21  Bruno Haible  <bruno@clisp.org>
52552         trunc: Move AC_LIBOBJ invocations to module description.
52553         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
52554         * modules/trunc (configure.ac): ... to here.
52556 2011-05-21  Bruno Haible  <bruno@clisp.org>
52558         truncf: Move AC_LIBOBJ invocations to module description.
52559         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
52560         * modules/truncf (configure.ac): ... to here.
52562 2011-05-21  Bruno Haible  <bruno@clisp.org>
52564         ceill: Move AC_LIBOBJ invocations to module description.
52565         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
52566         * modules/ceill (configure.ac): ... to here.
52568 2011-05-21  Bruno Haible  <bruno@clisp.org>
52570         ceil: Move AC_LIBOBJ invocations to module description.
52571         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
52572         * modules/ceil (configure.ac): ... to here.
52574 2011-05-21  Bruno Haible  <bruno@clisp.org>
52576         ceilf: Move AC_LIBOBJ invocations to module description.
52577         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
52578         * modules/ceilf (configure.ac): ... to here.
52580 2011-05-21  Bruno Haible  <bruno@clisp.org>
52582         floorl: Respect rules for use of AC_LIBOBJ.
52583         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
52584         * modules/floorl (configure.ac): ... to here.
52586 2011-05-21  Bruno Haible  <bruno@clisp.org>
52588         floor: Respect rules for use of AC_LIBOBJ.
52589         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
52590         * modules/floor (configure.ac): ... to here.
52592 2011-05-21  Bruno Haible  <bruno@clisp.org>
52594         floorf: Move AC_LIBOBJ invocations to module description.
52595         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
52596         * modules/floorf (configure.ac): ... to here.
52598 2011-05-20  Bruno Haible  <bruno@clisp.org>
52600         sqrtl: Respect rules for use of AC_LIBOBJ.
52601         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
52602         * modules/sqrtl (configure.ac): ... to here.
52604 2011-05-20  Bruno Haible  <bruno@clisp.org>
52606         ldexpl: Respect rules for use of AC_LIBOBJ.
52607         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
52608         * modules/ldexpl (configure.ac): ... to here.
52610 2011-05-20  Bruno Haible  <bruno@clisp.org>
52612         frexpl*: Respect rules for use of AC_LIBOBJ.
52613         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
52614         invocation from here...
52615         * modules/frexpl (configure.ac): ... to here.
52616         * modules/frexpl-nolibm (configure.ac): ... and here.
52618 2011-05-20  Bruno Haible  <bruno@clisp.org>
52620         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
52621         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
52622         invocation from here...
52623         * modules/frexp (configure.ac): ... to here.
52624         * modules/frexp-nolibm (configure.ac): ... and here.
52626 2011-05-20  Bruno Haible  <bruno@clisp.org>
52628         isnan: Respect rules for use of AC_LIBOBJ.
52629         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
52630         invocations here.
52631         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
52632         REPLACE_ISNAN.
52633         * modules/isnand (configure.ac): Likewise.
52634         * modules/isnanl (configure.ac): Likewise.
52636 2011-05-20  Bruno Haible  <bruno@clisp.org>
52638         isnanl*: Respect rules for use of AC_LIBOBJ.
52639         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
52640         invocation from here...
52641         * modules/isnanl (configure.ac): ... to here.
52642         * modules/isnanl-nolibm (configure.ac): ... and here.
52644 2011-05-20  Bruno Haible  <bruno@clisp.org>
52646         isnand*: Move AC_LIBOBJ invocations to module description.
52647         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
52648         invocation from here...
52649         * modules/isnand (configure.ac): ... to here.
52650         * modules/isnand-nolibm (configure.ac): ... and here.
52652 2011-05-20  Bruno Haible  <bruno@clisp.org>
52654         isnanf*: Move AC_LIBOBJ invocations to module description.
52655         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
52656         invocation from here...
52657         * modules/isnanf (configure.ac): ... to here.
52658         * modules/isnanf-nolibm (configure.ac): ... and here.
52660 2011-05-20  Bruno Haible  <bruno@clisp.org>
52662         isnan*: Separate the AC_LIBOBJ invocations.
52663         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
52664         AC_LIBOBJ invocation.
52665         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
52666         here.
52667         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
52668         AC_LIBOBJ invocation.
52669         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
52670         here.
52671         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
52672         AC_LIBOBJ invocation.
52673         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
52674         here.
52675         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
52677 2011-05-08  Bruno Haible  <bruno@clisp.org>
52679         isinf: Move AC_LIBOBJ invocations to module description.
52680         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
52681         * modules/isinf (configure.ac): ... to here.
52683 2011-05-08  Bruno Haible  <bruno@clisp.org>
52685         isfinite: Move AC_LIBOBJ invocations to module description.
52686         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
52687         * modules/isfinite (configure.ac): ... to here.
52689 2011-05-08  Bruno Haible  <bruno@clisp.org>
52691         isblank: Move AC_LIBOBJ invocations to module description.
52692         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
52693         here...
52694         * modules/isblank (configure.ac): ... to here.
52696 2011-05-08  Bruno Haible  <bruno@clisp.org>
52698         isapipe: Move AC_LIBOBJ invocations to module description.
52699         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
52700         gl_PREREQ_ISAPIPE invocations from here...
52701         * modules/isapipe (configure.ac): ... to here.
52702         (Depends-on): Update condition.
52704 2011-05-08  Bruno Haible  <bruno@clisp.org>
52706         ioctl: Move AC_LIBOBJ invocations to module description.
52707         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
52708         invocations from here...
52709         * modules/ioctl (configure.ac): ... to here.
52710         (Depends-on): Update condition.
52712 2011-05-08  Bruno Haible  <bruno@clisp.org>
52714         imaxdiv: Move AC_LIBOBJ invocations to module description.
52715         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
52716         invocations from here...
52717         * modules/imaxdiv (configure.ac): ... to here.
52719 2011-05-08  Bruno Haible  <bruno@clisp.org>
52721         imaxabs: Move AC_LIBOBJ invocations to module description.
52722         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
52723         invocations from here...
52724         * modules/imaxabs (configure.ac): ... to here.
52726 2011-05-08  Bruno Haible  <bruno@clisp.org>
52728         getaddrinfo: Move AC_LIBOBJ invocations to module description.
52729         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
52730         AC_LIBOBJ invocations from here...
52731         * modules/getaddrinfo (configure.ac): ... to here.
52732         (Depends-on): Add conditions.
52734 2011-05-08  Bruno Haible  <bruno@clisp.org>
52736         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
52737         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
52738         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
52739         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
52740         (gl_PREREQ_INET_PTON): ... from here.
52741         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
52742         gl_PREREQ_INET_PTON here.
52743         (Depends-on): Update condition.
52745 2011-05-08  Bruno Haible  <bruno@clisp.org>
52747         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
52748         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
52749         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
52750         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
52751         (gl_PREREQ_INET_NTOP): ... from here.
52752         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
52753         gl_PREREQ_INET_NTOP here.
52754         (Depends-on): Update condition.
52756 2011-05-08  Bruno Haible  <bruno@clisp.org>
52758         iconv_open: Move AC_LIBOBJ invocations to module description.
52759         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
52760         AC_LIBOBJ invocations from here...
52761         * modules/iconv_open (configure.ac): ... to here.
52763 2011-05-08  Bruno Haible  <bruno@clisp.org>
52765         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
52766         If module 'iconv_open' is among the main modules and module
52767         'iconv_open-utf' is among the tests dependencies, then
52768         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
52769         return the special iconv_t values. Therefore iconv() and iconv_close()
52770         must support these special iconv_t values, already in lib, not only in
52771         tests.
52772         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
52773         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
52774         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
52775         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
52776         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
52777         (Depends-on): Add the dependencies of iconv_open-utf.
52778         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
52779         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
52780         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
52782 2011-05-08  Bruno Haible  <bruno@clisp.org>
52784         group-member: Move AC_LIBOBJ invocations to module description.
52785         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
52786         gl_PREREQ_GROUP_MEMBER invocations from here...
52787         * modules/group-member (configure.ac): ... to here.
52789 2011-05-08  Bruno Haible  <bruno@clisp.org>
52791         grantpt: Move AC_LIBOBJ invocations to module description.
52792         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
52793         invocations from here...
52794         * modules/grantpt (configure.ac): ... to here.
52796 2011-05-08  Bruno Haible  <bruno@clisp.org>
52798         glob: Move AC_LIBOBJ invocations to module description.
52799         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
52800         from here...
52801         * modules/glob (configure.ac): ... to here.
52803 2011-05-08  Bruno Haible  <bruno@clisp.org>
52805         getusershell: Move AC_LIBOBJ invocations to module description.
52806         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
52807         Move AC_LIBOBJ invocation from here...
52808         * modules/getusershell (configure.ac): ... to here.
52809         (Depends-on): Update condition.
52811 2011-05-08  Bruno Haible  <bruno@clisp.org>
52813         gettimeofday: Move AC_LIBOBJ invocations to module description.
52814         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
52815         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
52816         gl_PREREQ_GETTIMEOFDAY invocations from here...
52817         * modules/gettimeofday (configure.ac): ... to here.
52819 2011-05-08  Bruno Haible  <bruno@clisp.org>
52821         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
52822         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
52823         just gl_FUNC_TZSET.
52824         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
52825         (gl_FUNC_TZSET_CLOBBER): Remove actions.
52826         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
52827         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
52829 2011-05-08  Bruno Haible  <bruno@clisp.org>
52831         getsubopt: Move AC_LIBOBJ invocations to module description.
52832         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
52833         gl_PREREQ_GETSUBOPT invocations from here...
52834         * modules/getsubopt (configure.ac): ... to here.
52836 2011-05-08  Bruno Haible  <bruno@clisp.org>
52838         getpass-gnu: Move AC_LIBOBJ invocations to module description.
52839         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
52840         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
52841         * modules/getpass-gnu (configure.ac): ... to here.
52843 2011-05-08  Bruno Haible  <bruno@clisp.org>
52845         getpass: Move AC_LIBOBJ invocations to module description.
52846         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
52847         gl_PREREQ_GETPASS invocations from here...
52848         * modules/getpass (configure.ac): ... to here.
52850 2011-05-08  Bruno Haible  <bruno@clisp.org>
52852         getpagesize: Move AC_LIBOBJ invocations to module description.
52853         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
52854         from here...
52855         * modules/getpagesize (configure.ac): ... to here.
52857 2011-05-08  Bruno Haible  <bruno@clisp.org>
52859         getopt: Move AC_LIBOBJ invocations to module description.
52860         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
52861         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
52862         invocations from here...
52863         * modules/getopt-gnu (configure.ac): ... to here.
52864         * modules/getopt-posix (configure.ac): ... and here.
52865         (Depends-on): Update condition.
52867 2011-05-08  Bruno Haible  <bruno@clisp.org>
52869         getopt, argp: Respect rules for use of AC_LIBOBJ.
52870         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
52871         (gl_REPLACE_GETOPT_ALWAYS): New macro.
52872         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
52873         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
52875 2011-05-08  Bruno Haible  <bruno@clisp.org>
52877         getlogin_r: Move AC_LIBOBJ invocations to module description.
52878         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
52879         gl_PREREQ_GETLOGIN_R invocations from here...
52880         * modules/getlogin_r (configure.ac): ... to here.
52882 2011-05-08  Bruno Haible  <bruno@clisp.org>
52884         getlogin: Move AC_LIBOBJ invocations to module description.
52885         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
52886         here...
52887         * modules/getlogin (configure.ac): ... to here.
52889 2011-05-08  Bruno Haible  <bruno@clisp.org>
52891         getloadavg: Move AC_LIBOBJ invocations to module description.
52892         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
52893         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
52894         * modules/getloadavg (configure.ac): ... to here.
52896 2011-05-08  Bruno Haible  <bruno@clisp.org>
52898         gethrxtime: Move AC_LIBOBJ invocations to module description.
52899         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
52900         LIB_GETHRXTIME from here...
52901         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
52902         invocations from here...
52903         * modules/gethrxtime (configure.ac): ... to here.
52905 2011-05-08  Bruno Haible  <bruno@clisp.org>
52907         gethostname: Move AC_LIBOBJ invocations to module description.
52908         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
52909         gl_PREREQ_GETHOSTNAME invocations from here...
52910         * modules/gethostname (configure.ac): ... to here.
52912 2011-05-08  Bruno Haible  <bruno@clisp.org>
52914         getgroups: Move AC_LIBOBJ invocations to module description.
52915         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
52916         here...
52917         * modules/getgroups (configure.ac): ... to here.
52919 2011-05-08  Bruno Haible  <bruno@clisp.org>
52921         getdtablesize: Move AC_LIBOBJ invocations to module description.
52922         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
52923         invocation from here...
52924         * modules/getdtablesize (configure.ac): ... to here.
52926 2011-05-08  Bruno Haible  <bruno@clisp.org>
52928         getdomainname: Move AC_LIBOBJ invocations to module description.
52929         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
52930         gl_PREREQ_GETDOMAINNAME invocations from here...
52931         * modules/getdomainname (configure.ac): ... to here.
52933 2011-05-08  Bruno Haible  <bruno@clisp.org>
52935         getline: Move AC_LIBOBJ invocations to module description.
52936         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
52937         invocations from here...
52938         * modules/getline (configure.ac): ... to here.
52940 2011-05-08  Bruno Haible  <bruno@clisp.org>
52942         getline: Simplify.
52943         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
52944         It's already handled through the module dependency.
52946 2011-05-08  Bruno Haible  <bruno@clisp.org>
52948         getdelim: Move AC_LIBOBJ invocations to module description.
52949         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
52950         and gl_PREREQ_GETDELIM invocations from here...
52951         * modules/getdelim (configure.ac): ... to here.
52952         (Depends-on): Fix condition.
52954 2011-05-08  Bruno Haible  <bruno@clisp.org>
52956         getcwd: Move AC_LIBOBJ invocations to module description.
52957         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
52958         invocations from here...
52959         * modules/getcwd (configure.ac): ... to here.
52961 2011-05-08  Bruno Haible  <bruno@clisp.org>
52963         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
52964         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
52965         here...
52966         * modules/getcwd-lgpl (configure.ac): ... to here.
52968 2011-05-07  Bruno Haible  <bruno@clisp.org>
52970         crypto/gc: Move AC_LIBOBJ invocations to module description.
52971         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
52972         * modules/crypto/gc (configure.ac): ... to here.
52974 2011-05-07  Bruno Haible  <bruno@clisp.org>
52976         fwriting: Move AC_LIBOBJ invocations to module description.
52977         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
52978         here...
52979         * modules/fwriting (configure.ac): ... to here.
52981 2011-05-07  Bruno Haible  <bruno@clisp.org>
52983         fwritable: Move AC_LIBOBJ invocations to module description.
52984         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
52985         here...
52986         * modules/fwritable (configure.ac): ... to here.
52988 2011-05-07  Bruno Haible  <bruno@clisp.org>
52990         futimens: Move AC_LIBOBJ invocations to module description.
52991         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
52992         here...
52993         * modules/futimens (configure.ac): ... to here.
52995 2011-05-07  Bruno Haible  <bruno@clisp.org>
52997         ftruncate: Move AC_LIBOBJ invocations to module description.
52998         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
52999         gl_PREREQ_FTRUNCATE invocations from here...
53000         * modules/ftruncate (configure.ac): ... to here.
53002 2011-05-07  Bruno Haible  <bruno@clisp.org>
53004         fsync: Move AC_LIBOBJ invocations to module description.
53005         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
53006         invocations from here...
53007         * modules/fsync (configure.ac): ... to here.
53009 2011-05-07  Bruno Haible  <bruno@clisp.org>
53011         fsusage: Move AC_LIBOBJ invocations to module description.
53012         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
53013         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
53014         * modules/fsusage (configure.ac): ... to here.
53016 2011-05-07  Bruno Haible  <bruno@clisp.org>
53018         freopen: Move AC_LIBOBJ invocations to module description.
53019         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
53020         invocations from here...
53021         * modules/freopen (configure.ac): ... to here.
53023 2011-05-07  Bruno Haible  <bruno@clisp.org>
53025         free: Move AC_LIBOBJ invocations to module description.
53026         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
53027         invocations from here...
53028         * modules/free (configure.ac): ... to here.
53030 2011-05-07  Bruno Haible  <bruno@clisp.org>
53032         freadable: Move AC_LIBOBJ invocations to module description.
53033         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
53034         here...
53035         * modules/freadable (configure.ac): ... to here.
53037 2011-05-07  Bruno Haible  <bruno@clisp.org>
53039         fpurge: Move AC_LIBOBJ invocations to module description.
53040         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
53041         invocations from here...
53042         * modules/fpurge (configure.ac): ... to here.
53044 2011-05-07  Bruno Haible  <bruno@clisp.org>
53046         fpending: Move AC_LIBOBJ invocations to module description.
53047         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
53048         gl_FUNC_FPENDING.
53049         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
53050         invocations from here...
53051         * modules/fpending (configure.ac): ... to here.
53053 2011-05-07  Bruno Haible  <bruno@clisp.org>
53055         fopen: Move AC_LIBOBJ invocations to module description.
53056         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
53057         invocations from here...
53058         * modules/fopen (configure.ac): ... to here.
53060 2011-05-07  Bruno Haible  <bruno@clisp.org>
53062         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
53063         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
53064         gl_FUNC_FNMATCH_POSIX.
53065         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
53066         invocations from here...
53067         * modules/fnmatch (configure.ac): ... to here.
53068         * modules/fnmatch-gnu (configure.ac): ... and here.
53070 2011-05-07  Bruno Haible  <bruno@clisp.org>
53072         flock: Move AC_LIBOBJ invocations to module description.
53073         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
53074         invocations from here...
53075         * modules/flock (configure.ac): ... to here.
53077 2011-05-07  Bruno Haible  <bruno@clisp.org>
53079         fileblocks: Move AC_LIBOBJ invocations to module description.
53080         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
53081         gl_PREREQ_FILEBLOCKS invocations from here...
53082         * modules/fileblocks (configure.ac): ... to here.
53084 2011-05-06  Bruno Haible  <bruno@clisp.org>
53086         fflush: Move AC_LIBOBJ invocations to module description.
53087         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
53088         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
53089         invocations from here...
53090         * modules/fflush (configure.ac): ... to here.
53092 2011-05-06  Bruno Haible  <bruno@clisp.org>
53094         fdopendir: Move AC_LIBOBJ invocations to module description.
53095         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
53096         here...
53097         * modules/fdopendir (configure.ac): ... to here.
53098         (Depends-on): Improve conditions.
53100 2011-05-06  Bruno Haible  <bruno@clisp.org>
53102         _Exit: Move AC_LIBOBJ invocations to module description.
53103         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
53104         invocations from here...
53105         * modules/_Exit (configure.ac): ... to here.
53107 2011-05-21  Bruno Haible  <bruno@clisp.org>
53109         euidaccess: Respect rules for use of AC_LIBOBJ.
53110         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
53111         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
53112         from here...
53113         * modules/euidaccess (configure.ac): ... to here.
53115 2011-05-06  Bruno Haible  <bruno@clisp.org>
53117         error: Move AC_LIBOBJ invocations to module description.
53118         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
53119         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
53120         invocations from here...
53121         * modules/error (configure.ac): ... to here.
53123 2011-05-06  Bruno Haible  <bruno@clisp.org>
53125         duplocale: Move AC_LIBOBJ invocations to module description.
53126         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
53127         gl_PREREQ_DUPLOCALE invocations from here...
53128         * modules/duplocale (configure.ac): ... to here.
53130 2011-05-05  Bruno Haible  <bruno@clisp.org>
53132         dirfd: Move AC_LIBOBJ invocations to module description.
53133         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
53134         gl_FUNC_DIRFD.
53135         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
53136         here...
53137         * modules/dirfd (configure.ac): ... to here.
53138         (Depends-on): Fix condition.
53140 2011-05-05  Bruno Haible  <bruno@clisp.org>
53142         chown: Respect rules for use of AC_LIBOBJ.
53143         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
53144         * modules/chown (configure.ac): ... to here.
53146 2011-05-05  Bruno Haible  <bruno@clisp.org>
53148         chdir-long: Move AC_LIBOBJ invocations to module description.
53149         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
53150         gl_PREREQ_CHDIR_LONG invocations from here...
53151         * modules/chdir-long (configure.ac): ... to here.
53153 2011-05-05  Bruno Haible  <bruno@clisp.org>
53155         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
53156         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
53157         from here...
53158         * modules/canonicalize-lgpl (configure.ac): ... to here.
53160 2011-05-05  Bruno Haible  <bruno@clisp.org>
53162         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
53163         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
53164         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
53165         REPLACE_CALLOC.
53166         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
53167         * modules/calloc-gnu (configure.ac): Likewise.
53169 2011-05-05  Bruno Haible  <bruno@clisp.org>
53171         btowc: Move AC_LIBOBJ invocations to module description.
53172         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
53173         invocations from here...
53174         * modules/btowc (configure.ac): ... to here.
53176 2011-05-21  Bruno Haible  <bruno@clisp.org>
53178         atexit: Move AC_LIBOBJ invocations to module description.
53179         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
53180         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
53181         here...
53182         * modules/atexit (configure.ac): ... to here.
53184 2011-05-05  Bruno Haible  <bruno@clisp.org>
53186         atoll: Move AC_LIBOBJ invocations to module description.
53187         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
53188         invocations from here...
53189         * modules/atoll (configure.ac): ... to here.
53191 2011-05-05  Bruno Haible  <bruno@clisp.org>
53193         argz: Move AC_LIBOBJ invocations to module description.
53194         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
53195         * modules/argz (configure.ac): ... to here.
53197 2011-05-05  Bruno Haible  <bruno@clisp.org>
53199         alphasort: Move AC_LIBOBJ invocations to module description.
53200         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
53201         gl_PREREQ_ALPHASORT invocations from here...
53202         * modules/alphasort (configure.ac): ... to here.
53204 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
53206         verify: new macro verify_expr; verify_true deprecated
53207         * NEWS: Mention this.
53208         * doc/verify.texi (Compile-time Assertions): Document this.
53209         * lib/verify.h (verify_true): Deprecate.
53210         (verify_expr): New macro.
53211         * tests/test-verify.c (function): Test verify_expr.
53213 2011-06-14  Jim Meyering  <meyering@redhat.com>
53215         init.sh: give more portable redirection-related advice in a comment
53216         * tests/init.sh (stderr_fileno_): Update the advice in comments.
53217         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
53218         for lots of discussion.  Stefano Lattarini suggested the solution
53219         of putting "9>&2" after the command.  Reported by Bruno Haible.
53221 2011-06-13  Bruno Haible  <bruno@clisp.org>
53223         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
53224         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
53225         'none'.
53227 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
53229         ftoastr: use strtof only if HAVE_STRTOF
53230         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
53231         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
53232         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
53233         * modules/ftoastr (configure.ac): Check for strtof.
53235 2011-06-13  Bruno Haible  <bruno@clisp.org>
53237         gnulib-tool: Addendum to 2011-06-08 commit.
53238         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
53239         and --witness-c-macro have been given, augment AM_CPPFLAGS.
53241 2011-06-13  Bruno Haible  <bruno@clisp.org>
53243         fseeko: Provide a non-inline replacement of fseek().
53244         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
53245         * modules/fseeko (Depends-on): Add fseek.
53246         * modules/fseek (License): Change to LGPLv2+.
53248 2011-06-13  Bruno Haible  <bruno@clisp.org>
53250         ftello: Provide a non-inline replacement of ftell().
53251         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
53252         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
53253         not have ftello() (such as on mingw).
53254         * modules/ftello (Depends-on): Add ftell.
53255         * modules/ftell (License): Change to LGPLv2+.
53257 2011-05-07  Bruno Haible  <bruno@clisp.org>
53259         ftell: Move AC_LIBOBJ invocations to module description.
53260         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
53261         * modules/ftell (configure.ac): ... to here.
53263 2011-05-07  Bruno Haible  <bruno@clisp.org>
53265         ftello: Respect rules for use of AC_LIBOBJ.
53266         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
53267         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
53268         here...
53269         * modules/ftello (configure.ac): ... to here.
53271 2011-05-07  Bruno Haible  <bruno@clisp.org>
53273         fseeko: Simplify.
53274         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
53275         (gl_FUNC_FSEEKO): Inline it here.
53277 2011-05-07  Bruno Haible  <bruno@clisp.org>
53279         fseek: Move AC_LIBOBJ invocations to module description.
53280         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
53281         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
53282         * modules/fseek (configure.ac): ... to here.
53284 2011-05-07  Bruno Haible  <bruno@clisp.org>
53286         fseek: Respect rules for use of AC_LIBOBJ.
53287         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
53288         here...
53289         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
53291 2011-05-07  Bruno Haible  <bruno@clisp.org>
53293         fseeko: Respect rules for use of AC_LIBOBJ.
53294         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
53295         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
53296         here...
53297         * modules/fseeko (configure.ac): ... to here.
53299 2011-06-13  Bruno Haible  <bruno@clisp.org>
53301         gnulib-tool: Allow comments in the 'Depends-on' section.
53302         * doc/gnulib.texi (Module description): Mention comment syntax in the
53303         Depends-on section.
53304         * gnulib-tool (func_get_dependencies): Filter out comment lines.
53306 2011-06-13  Bruno Haible  <bruno@clisp.org>
53308         file-set.h: guard __attibute__ use, now that it's not always defined
53309         * lib/file-set.h (record_file): Use __attribute__ only with compiler
53310         versions that support it.  This fixes a coreutils build failure with
53311         the vendor cc on HP-UX 11.31.
53313 2011-06-12  Bruno Haible  <bruno@clisp.org>
53315         acl: Add support for HP-UX >= 11.11 JFS ACLs.
53316         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
53317         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
53318         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
53319         (acl, aclsort): New declarations.
53320         (aclv_nontrivial): New declaration.
53321         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
53322         (file_has_acl): Read also the second kind of HP-UX ACLs.
53323         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
53324         kind of HP-UX ACLs if the first kind fails.
53325         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
53326         second kind of HP-UX ACLs.
53327         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
53328         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
53329         agree.
53330         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
53331         hpuxjfs.
53332         Handle hpuxjfs.
53333         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
53334         hpuxjfs.
53335         Handle hpuxjfs.
53336         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
53337         (func_test_same_acls): Use both lsacl and getacl.
53338         Handle hpuxjfs.
53339         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
53340         (func_test_same_acls): Use both lsacl and getacl.
53341         Handle hpuxjfs.
53343 2011-06-12  Bruno Haible  <bruno@clisp.org>
53345         acl: Complete the 2010-08-10 fix.
53346         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
53347         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
53348         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
53349         explicitly.
53350         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
53351         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
53353 2011-06-12  Bruno Haible  <bruno@clisp.org>
53355         spawn-pipe tests: Comments.
53356         * tests/test-spawn-pipe-child.c (main): Update comment.
53357         Reported by James Youngman <jay@gnu.org>.
53359 2011-06-11  James Youngman  <jay@gnu.org>
53361         New module 'stat-size'.
53362         * modules/stat-size: New module.  Provides macros for accessing
53363         file size information in instances of struct stat.  Depends on the
53364         fileblocks module because it calls st_blocks.
53365         * lib/stat-size.h: New file, adapted from coreutils' system.h.
53366         * doc/gnulib.texi: Include stat-size.texi.
53367         * doc/stat-size.texi: Documentation for this module.
53368         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
53369         * m4/fileblocks.m4: Mention that stat-size depends on the call to
53370         AC_STRUCT_ST_BLOCKS.
53372 2011-06-09  Bruno Haible  <bruno@clisp.org>
53374         thread: Support pthreads-win32.
53375         * lib/glthread/thread.h (gl_thread_self): Define differently on
53376         pthreads-win32.
53377         (gl_null_thread): New declaration.
53378         (gl_thread_self_pointer): New macro.
53379         * lib/glthread/thread.c (gl_null_thread): New constant.
53380         * tests/test-lock.c: Use gl_thread_self_pointer instead of
53381         gl_thread_self.
53382         * tests/test-tls.c: Likewise.
53383         Suggested by Paul Eggert. Reported by Eric Blake.
53385 2011-06-09  Bruno Haible  <bruno@clisp.org>
53387         thread: Fix confusion between NULL and 0.
53388         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
53389         Reported by Paul Eggert.
53391 2011-06-09  Bruno Haible  <bruno@clisp.org>
53393         spawn-pipe tests: Avoid test failure on HP-UX 11.
53394         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
53395         is closed.
53397 2011-06-09  Bruno Haible  <bruno@clisp.org>
53399         acl tests: Fix compilation error on HP-UX 11.
53400         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
53402 2011-06-09  Bruno Haible  <bruno@clisp.org>
53404         rmdir: Avoid test failure on HP-UX 10.20.
53405         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
53406         EEXIST.
53408 2011-06-08  Eric Blake  <eblake@redhat.com>
53410         perror: fix test on mingw
53411         * modules/perror-tests (Depends-on): Add dup2.
53413         strerror_r-posix: fix on MacOS
53414         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
53415         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
53416         logic bug.
53417         * lib/strerror_r.c (strerror_r): Fix the bug.
53418         * lib/strerror.c (strerror): Likewise.
53419         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
53420         problem.
53421         * doc/posix-functions/strerror.texi (strerror): Likewise.
53422         * doc/posix-functions/perror.texi (perror): Likewise.
53423         * tests/test-strerror.c (main): Enhance test.
53424         * tests/test-strerror_r.c (main): Likewise.
53426 2011-06-08  Bruno Haible  <bruno@clisp.org>
53428         gnulib-tool: Better isolation between different gnulib-tool invocations.
53429         * gnulib-tool: New option --witness-c-macro.
53430         (witness_c_macro): New variable.
53431         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
53432         AM_CPPFLAGS define it as a C macro.
53433         (func_emit_tests_Makefile_am): Likewise.
53434         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
53435         read it from there.
53436         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
53437         m4_define, not AC_DEFUN.
53438         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
53439         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
53440         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
53441         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
53442         s|...|...|, to substitute the values of the GNULIB_* module indicator
53443         variables.
53444         * modules/dirent (Makefile.am): Likewise.
53445         * modules/fcntl-h (Makefile.am): Likewise.
53446         * modules/iconv-h (Makefile.am): Likewise.
53447         * modules/langinfo (Makefile.am): Likewise.
53448         * modules/locale (Makefile.am): Likewise.
53449         * modules/math (Makefile.am): Likewise.
53450         * modules/netdb (Makefile.am): Likewise.
53451         * modules/poll-h (Makefile.am): Likewise.
53452         * modules/pty (Makefile.am): Likewise.
53453         * modules/search (Makefile.am): Likewise.
53454         * modules/signal (Makefile.am): Likewise.
53455         * modules/spawn (Makefile.am): Likewise.
53456         * modules/stdio (Makefile.am): Likewise.
53457         * modules/stdlib (Makefile.am): Likewise.
53458         * modules/string (Makefile.am): Likewise.
53459         * modules/sys_ioctl (Makefile.am): Likewise.
53460         * modules/sys_select (Makefile.am): Likewise.
53461         * modules/sys_socket (Makefile.am): Likewise.
53462         * modules/sys_stat (Makefile.am): Likewise.
53463         * modules/sys_times (Makefile.am): Likewise.
53464         * modules/sys_utsname (Makefile.am): Likewise.
53465         * modules/sys_wait (Makefile.am): Likewise.
53466         * modules/termios (Makefile.am): Likewise.
53467         * modules/time (Makefile.am): Likewise.
53468         * modules/unistd (Makefile.am): Likewise.
53469         * modules/wchar (Makefile.am): Likewise.
53471 2011-06-08  Eric Blake  <eblake@redhat.com>
53473         strerror: simplify replacement
53474         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
53475         * modules/strerror (configure.ac): No prereqs needed here...
53476         * modules/strerror-override (configure.ac): ...but this needs it.
53477         (Files): Add file for needed prereq macro.
53479 2011-06-08  Bruno Haible  <bruno@clisp.org>
53481         strerror_r-posix: Tweaks.
53482         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
53483         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
53484         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
53485         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
53486         (gl_FUNC_STRERROR_R): ... to here.
53487         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
53489 2011-06-07  Eric Blake  <eblake@redhat.com>
53491         perror: document fixed bugs
53492         * doc/posix-functions/perror.texi (perror): Document recent
53493         patches.
53495 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
53497         stat-time: get_stat_birthtime failure is better-defined
53498         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
53499         return a timestamp whose tv_sec and tv_nsec values are both -1.
53500         Previously, the spec said only that the tv_nsec value was negative.
53501         This upward-compatible change simplifies GNU tar a bit.
53503 2011-06-07  Eric Blake  <eblake@redhat.com>
53505         strerror_r-posix: work around cygwin 1.7.9
53506         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
53507         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
53508         bug without replacing strerror_r.
53509         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
53510         strerror_r is buggy, but without requiring strerror_r compilation.
53511         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
53513         test-perror: relax test to ignore cygwin bug
53514         * tests/test-perror2.c (main): Relax test on requiring detection
53515         of stream errors, and use unbuffered stream.
53516         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
53517         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
53518         * doc/posix-functions/fputc.texi (fputc): Likewise.
53519         * doc/posix-functions/fputs.texi (fputs): Likewise.
53520         * doc/posix-functions/fputws.texi (fputws): Likewise.
53521         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
53522         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
53523         * doc/posix-functions/getopt.texi (getopt): Likewise.
53524         * doc/posix-functions/perror.texi (perror): Likewise.
53525         * doc/posix-functions/printf.texi (printf): Likewise.
53526         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
53527         * doc/posix-functions/psignal.texi (psignal): Likewise.
53528         * doc/posix-functions/putc.texi (putc): Likewise.
53529         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
53530         Likewise.
53531         * doc/posix-functions/putchar.texi (putchar): Likewise.
53532         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
53533         Likewise.
53534         * doc/posix-functions/puts.texi (puts): Likewise.
53535         * doc/posix-functions/putwc.texi (putwc): Likewise.
53536         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
53537         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
53538         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
53539         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
53540         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
53541         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
53542         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
53543         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
53545 2011-05-22  Bruno Haible  <bruno@clisp.org>
53547         strerror: Move AC_LIBOBJ invocations to module description.
53548         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
53549         gl_PREREQ_STRERROR invocations from here...
53550         * modules/strerror (configure.ac): ... to here.
53552 2011-05-21  Bruno Haible  <bruno@clisp.org>
53554         perror: Use common idiom.
53555         * modules/perror (configure.ac): Reorder statements.
53557 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
53559         tests: fix usage message in 'mktempd_'
53560         * tests/init.sh (mktempd_): In the usage message, use literal
53561         'mktempd_', not '$ME' (which is even undefined), as the name of
53562         the subroutine.
53564 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
53566         tests init: new function 'fatal_', for hard errors
53567         Before this patch, the only way offered by tests/init.sh to
53568         properly signal a hard error was the `framework_failure_'
53569         function.  But the error message issued by that function,
53570         as its name would suggest, refers to a set-up failure in the
53571         testsuite, while hard errors can obviously also be due to
53572         other reasons.  The best way to fix this inconsistency is to
53573         introduce a new function with a more general error message.
53574         * tests/init.sh (fatal_): New function.
53576 2011-06-06  Eric Blake  <eblake@redhat.com>
53578         canonicalize-lgpl: use common idiom
53579         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
53580         over newer POSIX -Rf.
53581         Reported by Bruno Haible.
53583         canonicalize-lgpl: work around AIX realpath bug
53584         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
53585         * doc/posix-functions/realpath.texi (realpath): Document it.
53586         Reported by Bruno Haible.
53588         strerror: work around FreeBSD bug
53589         * lib/strerror.c (strerror): Special case 0.
53590         Reported by Bruno Haible.
53592         strerror-override: avoid bloating errno module
53593         * modules/errno (Files, configure.ac): Move replacement strings...
53594         * modules/strerror-override: ...to new module.
53595         * modules/strerror (Depends-on): Add strerror-override.
53596         * modules/strerror_r-posix (Depends-on): Likewise.
53597         * MODULES.html.sh: Document new module.
53598         Reported by Bruno Haible.
53600 2011-06-06  Bruno Haible  <bruno@clisp.org>
53602         spawn-pipe tests: Rename program.
53603         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
53604         * tests/test-spawn-pipe-child.c: Update comment.
53605         * tests/test-spawn-pipe.sh: Update.
53606         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
53608         spawn-pipe tests: Link the child program only against libc.
53609         * tests/test-spawn-pipe-child.c: New file, extracted from
53610         tests/test-spawn-pipe.c.
53611         (main): Expect only one argument.
53612         (is_open): New function, copied from tests/test-pipe.c.
53613         * tests/test-spawn-pipe.c: Don't include <errno.h>.
53614         (child_main): Remove function.
53615         (test_pipe): Pass only one argument to the child program.
53616         (main): Remove child process code. Expect the child program's name as
53617         first argument.
53618         * tests/test-spawn-pipe.sh: Pass the child program's name as first
53619         argument.
53620         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
53621         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
53622         test-spawn-pipe-child against no libraries.
53624 2011-06-06  Bruno Haible  <bruno@clisp.org>
53626         careadlinkat: Avoid mismatch between ssize_t and int.
53627         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
53628         * lib/careadlinkat.c (careadlinkatcwd): Define always.
53630 2011-06-06  Jim Meyering  <meyering@redhat.com>
53632         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
53633         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
53634         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
53636 2011-06-05  Bruno Haible  <bruno@clisp.org>
53638         ansi-c++-opt: Interoperability with libtool.
53639         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
53640         set the variable to "no", not to ":".
53641         * NEWS: Mention the change.
53643 2011-06-05  Bruno Haible  <bruno@clisp.org>
53645         acl: Fix test failure on AIX 7.
53646         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
53647         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
53649 2011-06-05  Bruno Haible  <bruno@clisp.org>
53651         pipe-filter-ii: Fix test failure on AIX and IRIX.
53652         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
53653         with EAGAIN, retry with a smaller buffer size.
53655 2011-06-05  Bruno Haible  <bruno@clisp.org>
53657         localename: Fix link dependencies.
53658         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
53659         * modules/localename-tests (Makefile.am): Link test-localename with
53660         $(LIBTHREAD).
53662 2011-06-05  Bruno Haible  <bruno@clisp.org>
53664         error: Avoid gcc warning.
53665         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
53667 2011-06-05  Bruno Haible  <bruno@clisp.org>
53669         unsetenv: Avoid gcc warning.
53670         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
53672 2011-06-05  Bruno Haible  <bruno@clisp.org>
53674         setenv: Avoid gcc warning.
53675         * lib/setenv.c (setenv): Provide declaration if system lacks it.
53677 2011-06-05  Bruno Haible  <bruno@clisp.org>
53679         sys_select: Ensure memset is declared also on AIX 7.
53680         * lib/sys_select.in.h: Include <string.h> also on AIX.
53681         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
53682         self-contained also on AIX 7.1.
53684 2011-06-04  Jim Meyering  <meyering@redhat.com>
53686         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
53687         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
53688         function name, "error".
53689         (_gl_translatable_diag_func_re): New configurable variable.
53691 2011-06-04  Bruno Haible  <bruno@clisp.org>
53693         getopt: Avoid gcc warning.
53694         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
53696 2011-06-04  Bruno Haible  <bruno@clisp.org>
53698         strerror_r: Fix comments.
53699         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
53700         commit.
53702 2011-06-04  Bruno Haible  <bruno@clisp.org>
53704         perror: Fix compilation error.
53705         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
53706         Undefine fprintf, not sprintf.
53707         * modules/perror (Depends-on): Remove intprops, verify.
53709 2011-06-04  Bruno Haible  <bruno@clisp.org>
53711         setlocale: Enable replacement on Cygwin 1.5.
53712         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
53713         Cygwin 1.5.x.
53714         * doc/posix-functions/setlocale.texi: Mention that the problem with the
53715         LC_CTYPE category also exists on Cygwin 1.5.x.
53717 2011-06-04  Bruno Haible  <bruno@clisp.org>
53719         strerror-override: Don't disable symbol renamings.
53720         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
53721         * lib/strerror-override.c: Include config.h.
53722         (strerror_override): Don't undefine.
53724 2011-06-03  Bruno Haible  <bruno@clisp.org>
53726         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
53727         * lib/localename.h: Update copyright header.
53728         * lib/localename.c: Likewise.
53729         * lib/relocatable.h: Likewise.
53730         * lib/relocatable.c: Likewise.
53732 2011-06-02  Bruno Haible  <bruno@clisp.org>
53734         doc: Fix a module name.
53735         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
53737 2011-06-02  Bruno Haible  <bruno@clisp.org>
53739         pipe2: Remove dependency on 'nonblocking' module.
53740         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
53741         O_NONBLOCK is defined by gnulib.
53742         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
53743         is zero.
53744         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
53745         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
53746         defined by gnulib.
53747         (get_nonblocking_flag): New function.
53748         (main): Test O_NONBLOCK flag only if it is nonzero.
53749         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
53751 2011-06-03  Jim Meyering  <meyering@redhat.com>
53753         maint: three new prohibit-header-without-use rules
53754         Prohibit use of cloexec.h, posixver.h, same.h without use.
53755         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
53756         (sc_prohibit_posixver_without_use): Likewise.
53757         (sc_prohibit_same_without_use): Likewise.
53759 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
53761         allocator: 'die' routine is now given requested size
53762         * lib/allocator.h (struct allocator.die): New size arg.
53763         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
53764         If the actual problem is an ssize_t limitation, not a size_t or
53765         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
53767 2011-06-01  Eric Blake  <eblake@redhat.com>
53769         strerror: drop strerror_r dependency
53770         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
53771         * lib/strerror-override.c (strerror_override): ...to new file.
53772         * lib/strerror-override.h: Add prototype.
53773         * lib/strerror-impl.h: Delete.
53774         * lib/strerror.c (strerror): New implementation.
53775         * modules/errno (Files): Add new files.
53776         (configure.ac): Compile new file as appropriate.
53777         * modules/strerror (Files): Drop unused file.
53778         (Depends-on): Drop strerror_r-posix.
53779         * MODULES.html.sh: Document strerror_r-posix.
53780         Requested by Sam Steingold.
53782         perror: call strerror_r directly
53783         * modules/perror (Files): Drop strerror-impl.h.
53784         * lib/perror.c (perror): Use our own stack buffer, rather than
53785         calling a wrapper that uses static storage.
53786         * doc/posix-functions/perror.texi (perror): Document a limitation
53787         of our replacement.
53789         strerror_r: fix includes for FreeBSD
53790         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
53791         since we use abort on some platforms.
53792         Reported by Matthias Bolte.
53794 2011-05-31  Bruno Haible  <bruno@clisp.org>
53796         Fix link errors in tests: openat-die uses gettext-h.
53797         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
53798         against $(LIBINTL).
53799         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
53800         against $(LIBINTL).
53801         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
53802         $(LIBINTL).
53803         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
53804         against $(LIBINTL).
53805         * modules/linkat-tests (Makefile.am): Link test-linkat against
53806         $(LIBINTL).
53807         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
53808         $(LIBINTL).
53809         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
53810         against $(LIBINTL).
53811         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
53812         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
53813         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
53814         $(LIBINTL).
53815         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
53816         $(LIBINTL).
53817         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
53818         $(LIBINTL).
53819         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53821 2011-05-31  Bruno Haible  <bruno@clisp.org>
53823         Fix link errors in tests: wait-process uses gettext-h.
53824         * modules/nonblocking-pipe-tests (Makefile.am): Set
53825         test_nonblocking_pipe_main_LDADD.
53826         * modules/nonblocking-socket-tests (Makefile.am): Link
53827         test-nonblocking-socket-main against $(LIBINTL).
53828         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53830 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
53832         assert-h: work around 'verify' incompatibility
53833         * lib/verify.h: Use @...@ directives, not ifdef.
53834         * modules/assert-h (assert.h): Implement the directives.
53835         (assert.h): Substitute the symbol-prefix more consistently.
53837 2011-05-29  Jim Meyering  <meyering@redhat.com>
53839         trim: remove three superfluous assignments
53840         * lib/trim.c (trim2): Remove three superfluous assignments
53841         and correct brace positioning.
53843 2011-05-29  Bruno Haible  <bruno@clisp.org>
53845         wctype-h: Avoid namespace pollution on Solaris 2.6.
53846         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
53847         identifiers.
53848         * doc/posix-headers/wctype.texi: Mention the problem.
53849         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53851 2011-05-28  Jim Meyering  <meyering@redhat.com>
53853         parse-datetime.y: accommodate -Wstrict-overflow
53854         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
53855         placate -Wstrict-overflow.
53857         trim: avoid a warning from -O2 -Wstrict-overflow
53858         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
53860 2011-05-29  Bruno Haible  <bruno@clisp.org>
53862         gnulib-tool: Fix bug in yesterday's commit.
53863         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
53864         twice.
53866 2011-05-29  Bruno Haible  <bruno@clisp.org>
53868         Allow multiple gnulib generated include files to be combined.
53869         * gnulib-tool (func_compute_include_guard_prefix): New function.
53870         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
53871         ${gl_include_guard_prefix} references.
53872         (func_import, func_create_testdir): Invoke
53873         func_compute_include_guard_prefix.
53874         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
53875         * lib/ctype.in.h: Likewise.
53876         * lib/dirent.in.h: Likewise.
53877         * lib/errno.in.h: Likewise.
53878         * lib/fcntl.in.h: Likewise.
53879         * lib/float.in.h: Likewise.
53880         * lib/getopt.in.h: Likewise.
53881         * lib/iconv.in.h: Likewise.
53882         * lib/langinfo.in.h: Likewise.
53883         * lib/locale.in.h: Likewise.
53884         * lib/math.in.h: Likewise.
53885         * lib/netdb.in.h: Likewise.
53886         * lib/netinet_in.in.h: Likewise.
53887         * lib/poll.in.h: Likewise.
53888         * lib/pthread.in.h: Likewise.
53889         * lib/pty.in.h: Likewise.
53890         * lib/sched.in.h: Likewise.
53891         * lib/se-selinux.in.h: Likewise.
53892         * lib/search.in.h: Likewise.
53893         * lib/signal.in.h: Likewise.
53894         * lib/spawn.in.h: Likewise.
53895         * lib/stdarg.in.h: Likewise.
53896         * lib/stddef.in.h: Likewise.
53897         * lib/stdint.in.h: Likewise.
53898         * lib/stdio.in.h: Likewise.
53899         * lib/stdlib.in.h: Likewise.
53900         * lib/string.in.h: Likewise.
53901         * lib/strings.in.h: Likewise.
53902         * lib/sys_file.in.h: Likewise.
53903         * lib/sys_ioctl.in.h: Likewise.
53904         * lib/sys_select.in.h: Likewise.
53905         * lib/sys_socket.in.h: Likewise.
53906         * lib/sys_stat.in.h: Likewise.
53907         * lib/sys_time.in.h: Likewise.
53908         * lib/sys_times.in.h: Likewise.
53909         * lib/sys_uio.in.h: Likewise.
53910         * lib/sys_utsname.in.h: Likewise.
53911         * lib/sys_wait.in.h: Likewise.
53912         * lib/sysexits.in.h: Likewise.
53913         * lib/termios.in.h: Likewise.
53914         * lib/time.in.h: Likewise.
53915         * lib/unistd.in.h: Likewise.
53916         * lib/wchar.in.h: Likewise.
53917         * lib/wctype.in.h: Likewise.
53918         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
53919         * modules/ctype (Makefile.am): Likewise.
53920         * modules/dirent (Makefile.am): Likewise.
53921         * modules/errno (Makefile.am): Likewise.
53922         * modules/fcntl-h (Makefile.am): Likewise.
53923         * modules/float (Makefile.am): Likewise.
53924         * modules/getopt-posix (Makefile.am): Likewise.
53925         * modules/iconv-h (Makefile.am): Likewise.
53926         * modules/langinfo (Makefile.am): Likewise.
53927         * modules/locale (Makefile.am): Likewise.
53928         * modules/math (Makefile.am): Likewise.
53929         * modules/netdb (Makefile.am): Likewise.
53930         * modules/netinet_in (Makefile.am): Likewise.
53931         * modules/poll-h (Makefile.am): Likewise.
53932         * modules/pthread (Makefile.am): Likewise.
53933         * modules/pty (Makefile.am): Likewise.
53934         * modules/sched (Makefile.am): Likewise.
53935         * modules/search (Makefile.am): Likewise.
53936         * modules/selinux-h (Makefile.am): Likewise.
53937         * modules/signal (Makefile.am): Likewise.
53938         * modules/spawn (Makefile.am): Likewise.
53939         * modules/stdarg (Makefile.am): Likewise.
53940         * modules/stddef (Makefile.am): Likewise.
53941         * modules/stdint (Makefile.am): Likewise.
53942         * modules/stdio (Makefile.am): Likewise.
53943         * modules/stdlib (Makefile.am): Likewise.
53944         * modules/string (Makefile.am): Likewise.
53945         * modules/strings (Makefile.am): Likewise.
53946         * modules/sys_file (Makefile.am): Likewise.
53947         * modules/sys_ioctl (Makefile.am): Likewise.
53948         * modules/sys_select (Makefile.am): Likewise.
53949         * modules/sys_socket (Makefile.am): Likewise.
53950         * modules/sys_stat (Makefile.am): Likewise.
53951         * modules/sys_time (Makefile.am): Likewise.
53952         * modules/sys_times (Makefile.am): Likewise.
53953         * modules/sys_uio (Makefile.am): Likewise.
53954         * modules/sys_utsname (Makefile.am): Likewise.
53955         * modules/sys_wait (Makefile.am): Likewise.
53956         * modules/sysexits (Makefile.am): Likewise.
53957         * modules/termios (Makefile.am): Likewise.
53958         * modules/time (Makefile.am): Likewise.
53959         * modules/unistd (Makefile.am): Likewise.
53960         * modules/wchar (Makefile.am): Likewise.
53961         * modules/wctype-h (Makefile.am): Likewise.
53962         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
53964 2011-05-29  Bruno Haible  <bruno@clisp.org>
53966         assert-h: Allow multiple gnulib generated replacements to coexist.
53967         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
53969 2011-05-29  Bruno Haible  <bruno@clisp.org>
53971         argp: Allow coexistence with strerror_r-posix module.
53972         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
53973         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
53974         by gnulib's <string.h> replacement), assume it has the POSIX signature,
53975         not the glibc signature.
53977 2011-05-28  Bruno Haible  <bruno@clisp.org>
53979         gnulib-tool: Alternative structure of testdirs, similar to --import.
53980         * gnulib-tool: New option --single-configure.
53981         (func_usage): Document it.
53982         (single_configure): New variable.
53983         (func_modules_transitive_closure_separately,
53984         func_modules_transitive_closure_separately,
53985         func_determine_use_libtests, func_modules_add_dummy_separately,
53986         func_modules_to_filelist_separately): New functions, extracted from
53987         func_import.
53988         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
53989         (func_import): Use the new functions.
53990         (func_create_testdir): Set final_modules. Handle $single_configure =
53991         true case.
53993 2011-05-28  Bruno Haible  <bruno@clisp.org>
53995         getloadavg: Remove an unreliable safety check.
53996         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
53997         getloadavg.c is in place.
53998         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
53999         Reported by Sam Steingold <sds@gnu.org>.
54001 2011-05-28  Bruno Haible  <bruno@clisp.org>
54003         doc: Cleanup yet another file produced by texinfo.tex.
54004         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
54006 2011-05-28  Bruno Haible  <bruno@clisp.org>
54008         Finish the conditional dependencies mechanism.
54009         * gnulib-tool: New option --no-conditional-dependencies.
54010         (func_usage): Document it. Don't mark --conditional-dependencies as
54011         experimental.
54012         (cond_dependencies): The possible values can now be true, false, empty.
54013         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
54014         (func_import): Store setting in gnulib-cache.m4 and read it from there.
54015         * doc/gnulib-tool.texi (Conditional dependencies): New section.
54017 2011-05-28  Bruno Haible  <bruno@clisp.org>
54019         doc: Use a recent texinfo.tex.
54020         * doc/Makefile (tex_opts): New variable.
54021         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
54023 2011-05-28  Jim Meyering  <meyering@redhat.com>
54025         intprops.h: adjust comment to match code change
54026         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
54027         only once, it *may* have side effects.  Also fix an unrelated typo.
54028         (_GL_INT_SIGNED): Likewise.
54030 2011-05-26  Simon Josefsson  <simon@josefsson.org>
54032         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
54034 2011-05-26  Bruno Haible  <bruno@clisp.org>
54036         mbsrchr: Avoid collision with system function on Interix.
54037         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
54038         Reported by Markus Duft <mduft@gentoo.org>.
54040 2011-05-15  James Youngman  <jay@gnu.org>
54042         getopt: for ambiguous options, enumerate the possibilities.
54043         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
54044         the ambiguous options when an ambiguous prefix is given. This was
54045         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
54046         glibc change was
54047         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
54049 2011-05-25  Eric Blake  <eblake@redhat.com>
54051         getcwd: work around mingw bug
54052         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
54053         * doc/posix-functions/getcwd.texi (getcwd): Document it.
54054         Reported by Matthias Bolte.
54056 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
54058         test-intprops: disable -Wtype-limits diagnostics
54059         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
54060         diagnostics.  Otherwise, the integer overflow macros generate many
54061         diagnostics.  Reported by Jim Meyering in
54062         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
54064         intprops: shorten, to pacify gcc -Woverlength-strings
54065         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
54066         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
54067         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
54068         likely to run afoul of C compiler limits for string constant lengths.
54069         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
54071 2011-05-24  Eric Blake  <eblake@redhat.com>
54073         docs: document recently fixed glibc printf bug
54074         * doc/posix-functions/fprintf.texi (fprintf): Document it.
54075         * doc/posix-functions/printf.texi (printf): Likewise.
54076         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
54077         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
54079         closein-tests: convert to init.sh
54080         * modules/closein-tests (Files): Add init.sh
54081         * tests/test-closein.sh Use it.
54083         yesno-tests: convert to init.sh
54084         * modules/yesno-tests (Files): Add init.sh.
54085         * tests/test-yesno.sh: Use it.
54087         atexit-tests: ensure reliable exit status
54088         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
54089         Reported by Bruno Haible.
54091 2011-05-24  Bruno Haible  <bruno@clisp.org>
54093         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
54094         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
54095         gl_PREREQ_STRERROR_R invocations from here...
54096         * modules/strerror_r-posix (configure.ac): ... to here.
54098 2011-05-24  Eric Blake  <eblake@redhat.com>
54100         strerror_r: fix missing header
54101         * lib/strerror_r.c: Avoid compiler warning about snprintf.
54103         strerror_r: fix AIX test failures
54104         * lib/strerror_r.c (strerror_r): Convert silent truncation to
54105         ERANGE failure.
54107         strerror_r: fix Solaris test failures
54108         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
54109         failures.
54110         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
54112         strerror_r: enforce POSIX recommendations
54113         * lib/strerror_r.c (safe_copy): New helper method.
54114         (strerror_r): Guarantee a non-empty string.
54115         * tests/test-strerror_r.c (main): Enhance tests to incorporate
54116         recent POSIX rulings and to match our strerror guarantees.
54117         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
54119 2011-05-24  Jim Meyering  <meyering@redhat.com>
54121         test-perror2.c: avoid warning about unused variable
54122         * tests/test-perror2.c (main): Remove declaration of unused "fp".
54124 2011-05-24  Eric Blake  <eblake@redhat.com>
54126         perror: avoid spurious test failure on HP-UX
54127         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
54129         tests: fix logic bug in init.sh
54130         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
54131         shell.
54133 2011-05-24  Jim Meyering  <meyering@redhat.com>
54135         utimensat: do not reference an out-of-scope buffer
54136         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
54137         declared in an inner scope, yet "times" would be dereferenced outside
54138         the scope in which "ts" was valid.
54139         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
54140         of ts[2] "out/up", so that the use of aliased "times" (via
54141         "times = ts;") does not end up referencing an out-of-scope "ts"
54143         opendir-safer.c: don't clobber errno; don't close negative FD
54144         * lib/opendir-safer.c (opendir_safer):
54145         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
54146         file descriptor, and more importantly, don't clobber the
54147         offending errno value with EINVAL.  Before, upon failure
54148         of dup_safer, we would pass the negative file descriptor to
54149         fdopendir, which would clobber errno.
54151 2011-05-23  Bruno Haible  <bruno@clisp.org>
54153         idcache: Fix module description.
54154         * modules/idcache (Include): Set to "idcache.h".
54156 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
54158         gnulib-tool: fix portability problem with MacOS sed
54159         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
54160         before the "}".  Problem reported by Leo in
54161         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
54162         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
54163         sed_extract_condition1, sed_extract_condition2.
54165 2011-05-23  Bruno Haible  <bruno@clisp.org>
54167         hash: Simplify autoconf macro.
54168         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
54170 2011-05-23  Bruno Haible  <bruno@clisp.org>
54172         getugroups: Fix module description.
54173         * modules/getugroups (Include): Set to "getugroups.h".
54175 2011-05-23  Bruno Haible  <bruno@clisp.org>
54177         linkat: Simplify autoconf macro.
54178         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
54180 2011-05-23  Bruno Haible  <bruno@clisp.org>
54181             Eric Blake  <eblake@redhat.com>
54183         linkat, renameat: Update dependencies.
54184         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
54185         * modules/linkat (Depends-on): Likewise. Remove also readlink,
54186         symlinkat.
54188 2011-05-23  Jim Meyering  <meyering@redhat.com>
54190         maint.mk: more tight_scope improvements
54191         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
54192         (_gl_TS_headers): Define only in if-0'd block.
54193         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
54194         sometimes we must *not* use it.  Adjust uses accordingly.
54195         (sc_tight_scope): Use much simpler grep-based test to determine
54196         whether we skip this rule.
54198         maint.mk: generalize/improve the tight-scope rule
54199         * top/maint.mk: Emit a warning when the test is skipped.
54200         (_gl_TS_dir): Add $(srcdir)/ prefix.
54201         (_gl_TS_function_match): Simplify, rather than trying
54202         to enumerate common types.  Otherwise, it would fail to match an
54203         "extern unsigned char const *" declaration in idutils.
54204         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
54205         a way to support use of that type of macro.
54206         (_gl_TS_var_match): Simplify regexp.
54207         (_gl_TS_obj_files): New configurable variable.
54208         (_gl_TS_headers): Likewise.
54210 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
54212         verify: fix bug when gnulib <assert.h> is also included
54213         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
54214         is defined, not if _GL_STATIC_ASSERT_H is not defined.
54215         Perhaps there's a better way, but this fixes the immediate problem.
54216         Problem reported by Bruno Haible in
54217         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
54219 2011-05-22  Bruno Haible  <bruno@clisp.org>
54221         xgetcwd: Simplify autoconf macro.
54222         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
54224 2011-05-22  Bruno Haible  <bruno@clisp.org>
54226         New module 'mktime-internal'.
54227         * modules/mktime-internal: New file.
54228         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
54229         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
54230         mktime_internal as a C macro if libc has __mktime_internal.
54231         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
54232         conditions.
54233         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
54235 2011-05-22  Bruno Haible  <bruno@clisp.org>
54237         timegm: Correct mktime replacement statements.
54238         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
54239         defining mktime as a C macro. This completes a 2009-07-28 commit.
54241 2011-05-22  Bruno Haible  <bruno@clisp.org>
54243         timegm: Simplify autoconf macro.
54244         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
54246 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
54248         clock-time: change to LGPLv2+.
54249         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
54250         BSD-like but we have no mark for that; this is good enough for now.
54252 2011-05-21  Bruno Haible  <bruno@clisp.org>
54254         strerror_r: Fix comments.
54255         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
54257 2011-05-21  Bruno Haible  <bruno@clisp.org>
54259         relocatable-prog-wrapper: Fix possible link error.
54260         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
54261         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
54262         (gl_FUNC_SETENV): ... to here.
54263         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
54264         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
54266 2011-05-21  Bruno Haible  <bruno@clisp.org>
54268         relocatable-prog-wrapper: Assume strerror() exists.
54269         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
54270         m4/strerror.m4.
54271         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
54272         * lib/relocwrapper.c: Remove mention of strerror module.
54273         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
54274         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
54275         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
54276         C macro.
54278 2011-05-21  Bruno Haible  <bruno@clisp.org>
54280         select: Simplify replacement idiom.
54281         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
54282         Win32 platforms.
54283         * lib/sys_select.in.h (select): Simplify accordingly.
54284         * modules/select (Depends-on): Likewise.
54286 2011-05-21  Bruno Haible  <bruno@clisp.org>
54288         mkdir-p: Simplify autoconf macro.
54289         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
54290         gl_FUNC_LCHOWN.
54292 2011-05-21  Eric Blake  <eblake@redhat.com>
54294         strerror_r: avoid clobbering strerror on cygwin
54295         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
54296         fall back instead to sys_errlist.
54297         * modules/strerror (configure.ac): Add witness.
54298         * tests/test-strerror_r.c (main): Enhance test.
54299         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
54300         * tests/test-perror2.c (main): Free memory before exit.
54302 2011-05-21  Bruno Haible  <bruno@clisp.org>
54304         mkdtemp: Use gnulib naming conventions.
54305         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
54306         * modules/mkdtemp (configure.ac): Update.
54308 2011-05-20  Eric Blake  <eblake@redhat.com>
54310         strerror_r: avoid corrupting errno on Solaris
54311         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
54312         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
54314         strerror_r: avoid compiler warning
54315         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
54317         strerror_r: simplify AIX code
54318         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
54320         test-perror: avoid spurious failure on FreeBSD
54321         * modules/perror-tests (Depends-on): Add strerror, now that
54322         strerror_r no longer pulls it in.
54324 2011-05-20  Bruno Haible  <bruno@clisp.org>
54326         strerror_r-posix: Remove unused dependencies.
54327         * modules/strerror_r-posix (Depends-on): Remove strerror.
54328         Reported by Eric Blake.
54330 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
54332         intprops: remove assumption about A|B representation
54333         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
54334         is a valid integer if both A and B are.  Although this is true for
54335         all known practical hosts, the C standard doesn't guarantee it,
54336         and the code need not assume it.  Also, this change may work around
54337         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
54338         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
54340 2011-05-20  Eric Blake  <eblake@redhat.com>
54342         perror: work around FreeBSD bug
54343         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
54344         is broken.  Move AC_LIBOBJ...
54345         * modules/perror (configure.ac): Here.
54346         * doc/posix-functions/perror.texi (perror): Document this.
54347         * tests/test-perror2.c (main): Enhance test.
54349         test-perror: check for strerror interactions
54350         * tests/macros.h (STREQ): Add macro.
54351         * modules/perror-tests (Files): Add second test.
54352         * tests/test-perror2.c (main): New file.
54353         * doc/posix-functions/perror.texi (perror): Document glibc bug.
54355         test-perror: rewrite to use init script
54356         * modules/perror-tests (Files): Add init.sh.
54357         * tests/test-perror.sh: Use temporary directory.
54359 2011-05-20  Jim Meyering  <meyering@redhat.com>
54361         maint: replace misused "a" with "an"
54362         * doc/intprops.texi: "a integer"
54363         * doc/regex.texi: "a explanation"
54364         * lib/alignof.h: "a object"
54365         * lib/argmatch.h: "a explanation"
54366         * lib/argp-help.c: "a option" and "a OPTION_DOC"
54367         * lib/stdint.in.h: "a integer"
54368         * lib/userspec.c: "a owner"
54369         * doc/gnulib.texi: Fix "a idea", and reword.
54371 2011-05-19  Jim Meyering  <meyering@redhat.com>
54373         maint: correct misuse of "a" and "an"
54374         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
54375         * lib/argp-help.c: "an docum...": s/an/a/
54376         * lib/argp-parse.c: "An vector": s/An/A/
54377         * lib/execute.c: "an native": s/an/a/
54378         * lib/spawn-pipe.c: Likewise.
54379         * lib/gc.h: "an Gc_rc": s/an/a/
54380         * lib/unigbrk.in.h: "an grapheme": s/an/a/
54381         * lib/fts.c: "an stat.st_dev": s/an/a/
54383 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54385         intprops-tests: work around HP-UX 11.23 cc bug with constants
54386         * tests/test-intprops.c (VERIFY): New macro.
54387         (main): Use it, instead of verify, to work around the compiler bug; see
54388         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
54390         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
54391         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
54392         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
54393         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
54394         (_GL_REMAINDER_OVERFLOW): Use it.
54396         intprops-tests: revert unsigned part of previous change
54397         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
54398         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
54399         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
54400         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
54402 2011-05-19  Bruno Haible  <bruno@clisp.org>
54404         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
54405         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
54406         strerror_r() returned without filling the buffer.
54407         Reported by Eric Blake.
54409 2011-05-19  Eric Blake  <eblake@redhat.com>
54411         strerror_r: guarantee unchanged errno
54412         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
54413         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
54414         failure.
54415         * tests/test-strerror_r.c (main): Enhance test.
54417 2011-05-19  Bruno Haible  <bruno@clisp.org>
54419         strerror_r: Reorder #if blocks.
54420         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
54421         for consistency with the previous commit.
54423 2011-05-19  Bruno Haible  <bruno@clisp.org>
54425         perror: Avoid clobbering the strerror buffer when possible.
54426         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
54427         * lib/strerror.c: Include it.
54428         * modules/strerror (Files): Add lib/strerror-impl.h.
54429         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
54430         (my_strerror): New function, defined through lib/strerror-impl.h.
54431         (perror): Use it instead of strerror.
54432         * modules/perror (Files): Add lib/strerror-impl.h.
54433         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
54435 2011-05-19  Eric Blake  <eblake@redhat.com>
54437         strerror_r: fix on newer cygwin
54438         * lib/strerror_r.c (strerror_r): Cygwin now has
54439         __xpg_strerror_r, use it.
54441 2011-05-19  Bruno Haible  <bruno@clisp.org>
54443         strerror_r: Avoid clobbering the strerror buffer when possible.
54444         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
54445         (sys_nerr, sys_errlist): New declarations.
54446         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
54447         HP-UX, native Win32, IRIX, and 32-bit Solaris.
54448         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
54450 2011-05-19  Bruno Haible  <bruno@clisp.org>
54452         strerror_r: Fix test failure on mingw.
54453         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
54454         EXTEND_STRERROR_R.
54455         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
54456         macros from errno.in.h instead.
54458 2011-05-19  Eric Blake  <eblake@redhat.com>
54460         strerror: relax test for Solaris
54461         * tests/test-strerror.c (main): Permit Solaris behavior.
54462         * tests/test-strerror_r.c (main): Likewise.
54464         strerror: enforce POSIX ruling on strerror(0)
54465         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
54466         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
54467         * lib/strerror_r.c (rpl_strerror_r): Work around it.
54468         * doc/posix-functions/strerror.texi (strerror): Document it.
54469         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
54470         * tests/test-strerror.c (main): Strengthen test.
54471         * tests/test-strerror_r.c (main): Likewise.
54473 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54475         intprop-tests: port to older and more-pedantic compilers
54476         * modules/intprops-tests (Files): Add tests/macros.h.
54477         * tests/test-intprops.c: Include macros.h.
54478         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
54479         it's no longer documented to expand to an integer constant expression.
54480         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
54481         argument is floating point, as it's no longer documented to expand
54482         to an integer constant expression in that case.
54483         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
54484         compiler bugs reported by Bruno Haible.  See
54485         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
54486         (U0, U1): New constants, to work around the same bugs.  Also,
54487         in tests, use e.g., "(unsigned int) 39" rather than "39u".
54489         intprops: work around C compiler bugs
54490         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
54491         bug in Sun C 5.11 2010/08/13 and other compilers; see
54492         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
54494         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
54495         * doc/intprops.texi (Integer Type Determination): Fix
54496         documentation for TYPE_IS_INTEGER: it returns an constant
54497         expression, not an integer constant expression.  Fix doc for
54498         TYPE_SIGNED: it returns an integer constant expression only if its
54499         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
54500         hardly worth documented that way....)
54502 2011-05-18  Bruno Haible  <bruno@clisp.org>
54504         strerror_r: Avoid clobbering the strerror buffer when possible.
54505         * lib/strerror_r.c (strerror_r): Merge the three implementations.
54506         Handle gnulib defined errno values here. When strerror() returns NULL
54507         or an empty string, return EINVAL.
54508         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
54509         gnulib defined errno values here.
54510         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
54512 2011-05-18  Eric Blake  <eblake@redhat.com>
54514         fnmatch: avoid compiler warning
54515         * lib/fnmatch_loop.c (FCT): Use correct type.
54516         Reported by Matthias Bolte.
54518 2011-05-13  Jim Meyering  <meyering@redhat.com>
54520         maint.mk: three new prohibit_<HDR>_without_use rules
54521         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
54522         (sc_prohibit_stdio-safer_without_use): Likewise.
54523         (sc_prohibit_xfreopen_without_use): Likewise.
54525 2011-05-17  Jim Meyering  <meyering@redhat.com>
54527         announce-gen: fail if the NEWS delta is empty
54528         If there's nothing noteworthy in NEWS, then either you forgot
54529         or you shouldn't be releasing.
54530         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
54532 2011-05-17  Pádraig Brady  <P@draigBrady.com>
54534         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
54535         reserved symbols starting with double underscore from the check.
54537 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
54539         intprops: add doc
54540         * doc/intprops.texi: New file, documenting intprops.
54541         * doc/gnulib.texi (Particular Modules): Include it.
54543         verify: add doc to gnulib manual and fix example
54544         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
54545         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
54546         (Compile-time Assertions): Fix example so it can't overflow.
54548 2011-05-17  Jim Meyering  <meyering@redhat.com>
54550         warnings.m4: don't usurp save_CPPFLAGS variable name
54551         * m4/warnings.m4: Prefix local temporary variable name with gl_.
54553         doc: fix typo
54554         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
54556 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54557             Bruno Haible  <bruno@clisp.org>
54559         doc: Tweak recent change.
54560         * README (Portability guidelines): Tweak new text.
54561         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
54562         Interix 6.1.
54564 2011-05-16  Eric Blake  <eblake@redhat.com>
54566         inttypes: avoid autoconf warning
54567         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
54568         * m4/stdint.m4 (gl_STDINT_H): Likewise.
54570 2011-05-16  Sam Steingold  <sds@gnu.org>
54571         and Eric Blake  <eblake@redhat.com>
54573         vc-list-files: accept multiple directory operands
54574         * build-aux/vc-list-files: Iterate over all remaining operands.
54576 2011-05-16  Bruno Haible  <bruno@clisp.org>
54578         Fix confusion regarding deprecated modules.
54579         * modules/calloc (Status, Notice): Mark module as deprecated, not
54580         obsolete.
54581         * modules/fnmatch-posix (Status, Notice): Likewise.
54582         * modules/getdate (Status, Notice): Likewise.
54583         * modules/getopt (Status, Notice): Likewise.
54584         * modules/malloc (Status, Notice): Likewise.
54585         * modules/pipe (Status, Notice): Likewise.
54586         * modules/realloc (Status, Notice): Likewise.
54587         * modules/rename-dest-slash (Status, Notice): Likewise.
54588         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
54589         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
54590         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
54591         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
54592         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
54594 2011-05-16  Bruno Haible  <bruno@clisp.org>
54596         doc: List the target platforms.
54597         * doc/gnulib-intro.texi (Target Platforms): New section.
54598         * doc/gnulib.texi (Introduction): Update menu.
54599         * README (Portability guidelines): Refer to the new section. Update
54600         statement about oldest supported environment. Remove rationale why
54601         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
54602         unportable C89 function.
54603         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
54604         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
54606 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
54608         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
54610 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
54612         intprops-tests: new module
54613         * modules/intprops-tests, tests/test-intprops.c: New files.
54615         intprops: add safe, portable integer overflow checking
54616         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
54617         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
54618         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
54619         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
54620         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
54621         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
54622         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
54623         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
54624         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
54625         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
54626         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
54628 2011-05-12  James Youngman  <jay@gnu.org>
54630         Add a test for glibc's Bugzilla bug #12378.
54631         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
54632         doesn't allow the literal matching of a lone "[" (which is
54633         required by POSIX).
54634         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
54636 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
54638         Sync glibc change fixing Bugzilla bug #12378.
54639         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
54640         beginning and fall back to matching as normal character if the
54641         string ends before the matching ']' is found.  This is what POSIX
54642         requires.
54644 2011-05-13  Eric Blake  <eblake@redhat.com>
54646         getcwd-lgpl: relax test for FreeBSD
54647         * doc/posix-functions/getcwd.texi (getcwd): Document portability
54648         issue.
54649         * tests/test-getcwd-lgpl.c (main): Relax test.
54650         Reported by Matthias Bolte.
54652 2011-05-11  Eric Blake  <eblake@redhat.com>
54654         test-fflush: silence compiler warning
54655         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
54657 2011-05-11  Bruno Haible  <bruno@clisp.org>
54659         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
54660         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
54661         * modules/canonicalize (Depends-on): Add 'nocrash'.
54662         * modules/canonicalize-lgpl (Depends-on): Likewise.
54663         * doc/posix-functions/realpath.texi: Update platforms list.
54664         Reported by Ryan Schmidt <ryandesign@macports.org>.
54666 2011-05-11  Bruno Haible  <bruno@clisp.org>
54668         group-member: Declare function in <unistd.h>.
54669         * lib/unistd.in.h (group_member): New declaration.
54670         * lib/group-member.h: Remove file.
54671         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
54672         * tests/test-unistd-c++.cc: Check signature of group_member.
54673         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
54674         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
54675         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
54676         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
54677         HAVE_GROUP_MEMBER.
54678         * modules/group-member (Files): Remove lib/group-member.h.
54679         (Depends-on): Add unistd. Specify conditions.
54680         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54681         (Include): Change to <unistd.h>.
54682         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
54683         HAVE_GROUP_MEMBER.
54684         * NEWS: Mention the change.
54685         * lib/euidaccess.c: Don't include group-member.h.
54687 2011-05-11  Bruno Haible  <bruno@clisp.org>
54689         group-member: Document module.
54690         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
54691         module.
54693 2011-05-11  Bruno Haible  <bruno@clisp.org>
54695         fclose: Fix mistake earlier today.
54696         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
54698 2011-05-11  Eric Blake  <eblake@redhat.com>
54700         fclose: preserve fflush errors
54701         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
54702         Reported by Jim Meyering.
54704         bootstrap: support a prereq of 'rpcgen -' on RHEL5
54705         * build-aux/bootstrap (check_versions): When no specific version
54706         is required, merely check that the app produces an exit status
54707         that indicates its existence.
54709         maint.mk: drop redundant check
54710         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
54711         the same but better.
54713 2011-05-11  Bruno Haible  <bruno@clisp.org>
54715         fclose: Fix possible link error.
54716         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
54717         unregister_shadow_fd. Improve comments.
54718         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
54719         Eric Blake.
54721 2011-05-11  Jim Meyering  <meyering@redhat.com>
54723         maint.mk: improve "can not" detection and generalize rule name
54724         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
54725         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
54726         Use the same technique as in sc_prohibit_doubled_word, so that
54727         we recognize "can not" also when the words are separated by a newline.
54728         Suggested by Eric Blake.
54729         (perl_filename_lineno_text_): Define.  Factored out of...
54730         (prohibit_doubled_word_): ...here.  Use the new definition.
54731         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
54732         (prohibit_undesirable_word_seq_RE_): New overridable variable.
54733         (ignore_undesirable_word_sequence_RE_): New overridable variable.
54735 2011-05-10  Eric Blake  <eblake@redhat.com>
54737         fclose: avoid double close race when possible
54738         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
54739         all but WINDOWS_SOCKETS.
54741 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
54743         openat: correct new comment
54744         * lib/openat-proc.c (openat_proc_name): Correct the comment.
54746 2011-05-10  Jim Meyering  <meyering@redhat.com>
54748         openat: add comments
54749         * lib/openat-proc.c (openat_proc_name): Add comments,
54750         mostly from Eric Blake.
54752 2011-05-09  Eric Blake  <eblake@redhat.com>
54754         openat: reduce syscalls in first probe of /proc
54755         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
54756         be a directory.  Simplify the probe for .. bugs.
54757         * modules/openat (Depends-on): Drop same-inode.
54758         Reported by Bastien ROUCARIES.
54760 2011-05-09  Jim Meyering  <meyering@redhat.com>
54762         maint.mk: change semantics/name of tight_scope variables
54763         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
54764         Rename variables to align with semantics that make them more useful.
54766         maint.mk: tweak new rule's name not to impinge
54767         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
54768         (sc_tight_scope): Use new rule name rather than $@-0.
54770         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
54771         * top/maint.mk (sc_tight_scope): New rule.
54772         (sc_tight_scope-0): New rule, ifdef'd out.
54773         (_gl_TS_dir): Default.
54774         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
54775         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
54777 2011-05-09  Simon Josefsson  <simon@josefsson.org>
54779         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
54780         Haible <bruno@clisp.org>.
54782 2011-05-08  Bruno Haible  <bruno@clisp.org>
54784         Comments.
54785         * m4/isnanf.m4: Add comment.
54786         * m4/isnanl.m4: Likewise.
54788 2011-05-08  Bruno Haible  <bruno@clisp.org>
54790         glob: Remove obsolete macro.
54791         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
54793 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
54795         intprops: Sun C 5.11 supports __typeof__
54796         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
54797         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
54798         which is new.
54799         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
54801         intprops: switch to usual gnulib indenting and naming
54802         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
54803         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
54805         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
54807 2011-05-08  Jim Meyering  <meyering@redhat.com>
54809         maint.mk: suppress "Entering/Leaving directory" diag in announcement
54810         * top/maint.mk (release-prep): Use make's --no-print-directory
54811         option when generating the announcement.  This eliminates the
54812         pesky "make[2]: Entering/Leaving directory" diagnostics in the
54813         generated announcement template.
54815 2011-05-08  Bruno Haible  <bruno@clisp.org>
54817         tzset: Fix gettimeofday wrapper on Solaris 2.6.
54818         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
54819         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
54821 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
54823         ignore-value, verify: Omit include files from lib_SOURCES.
54824         * modules/ignore-value, modules/verify (Makefile.am):
54825         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
54826         that leads Automake to duplicate use of am__objects_... variables
54827         in Makefile.in.  See
54828         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
54830 2011-05-07  Bruno Haible  <bruno@clisp.org>
54832         fclose: Simplify autoconf macro.
54833         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
54834         defined.
54836 2011-05-07  Bruno Haible  <bruno@clisp.org>
54838         canonicalize-lgpl: Fix autoconf macro ordering bug.
54839         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
54840         gl_STDLIB_H_DEFAULTS.
54842 2011-05-06  Eric Blake  <eblake@redhat.com>
54844         maintainer-makefile: make sc_po_check easier to tune
54845         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
54846         to probe for strings, such as an alternate location for gnulib.
54848         fclose: guarantee behavior on seekable stdin
54849         * modules/fclose (Depends-on): Add fflush.
54850         * doc/posix-functions/fclose.texi (fclose): Document this.
54851         * tests/test-fclose.c (main): Make test for this unconditional.
54853 2011-05-06  Bruno Haible  <bruno@clisp.org>
54855         fflush, fpurge: Relicense under LGPLv2+.
54856         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
54857         * modules/fpurge (License): Likewise.
54858         With permission from Eric Blake and Jim Meyering.
54859         Suggested by Eric Blake.
54861 2011-05-06  Karl Berry  <karl@gnu.org>
54863         * MODULES.html.sh (func_all_modules): remove exit.
54865 2011-05-06  Jim Meyering  <meyering@redhat.com>
54867         maint.mk: use info-gnu@ as the default only for a stable release
54868         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
54869         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
54870         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
54871         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
54873 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
54875         assert-h: new module, which supports C1X-style static_assert
54876         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
54877         * lib/verify.h: Revamp so that this can be copied into assert.h,
54878         while retaining the ability to use it standalone as before.
54879         Rename private identifiers so as not to encroach on the
54880         standard C namespace, since this is now used by assert.h.
54881         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
54882         the old verify_true.
54883         (_GL_VERIFY_TRUE): New macro, with much of the contents of
54884         the old verify_true.  Use _GL_VERIFY_TYPE.
54885         (_GL_VERIFY): New macro, with much of the contents of the old verify.
54886         (static_assert): New macro, if _GL_STATIC_ASSERT_H
54887         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
54888         defined when this file is copied into the replacement assert.h.
54889         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
54890         and _Static_assert is not built in.
54891         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
54892         defined, and use the new macros mentioned above.
54893         * doc/posix-headers/assert.texi: Document this.
54895 2011-05-05  Bruno Haible  <bruno@clisp.org>
54897         fclose, fflush: Respect rules for use of AC_LIBOBJ.
54898         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
54899         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
54900         gl_REPLACE_FCLOSE here.
54901         * modules/fflush (Depends-on): Remove fclose.
54902         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
54903         combination with module 'fclose'.
54905 2011-05-05  Bruno Haible  <bruno@clisp.org>
54907         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
54908         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
54909         gl_FUNC_FFLUSH.
54910         (gl_FUNC_FFLUSH): Use it.
54911         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
54912         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
54913         gl_REPLACE_FSEEKO here.
54915 2011-05-05  Bruno Haible  <bruno@clisp.org>
54917         tzset: Relicense under LGPL.
54918         * modules/tzset (License): Change to LGPL.
54919         No agreement needed; it's a no-op.
54921         strtoimax, strtoumax: Relicense under LGPL.
54922         * modules/strtoimax (License): Change to LGPL.
54923         * modules/strtoumax (License): Likewise.
54924         With permission from Jim Meyering, Paul Eggert:
54925         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
54926         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
54928         getgroups: Relicense under LGPL.
54929         * modules/getgroups (License): Change to LGPL.
54930         With permission from Jim Meyering, Paul Eggert, Eric Blake:
54931         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
54932         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
54933         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
54935         nanosleep: Relicense under LGPL.
54936         * modules/nanosleep (License): Change to LGPL.
54937         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
54938         Haible:
54939         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
54940         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
54941         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
54942         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
54944         futimens: Relicense under LGPL.
54945         * modules/futimens (License): Change to LGPL.
54946         With permission from Eric Blake:
54947         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
54949         fflush: Relicense under LGPL.
54950         * modules/fflush (License): Change to LGPL.
54951         With permission from Eric Blake, Bruno Haible, Jim Meyering:
54952         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
54953         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
54954         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
54956         tmpfile: Relicense under LGPL.
54957         * modules/tmpfile (License): Change to LGPL.
54958         With permission from Ben Pfaff:
54959         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
54961         isfinite: Relicense under LGPL.
54962         * modules/isfinite (License): Change to LGPL.
54963         With permission from Ben Pfaff, Bruno Haible:
54964         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
54965         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
54967         acosl..tanl: Relicense under LGPL.
54968         * modules/acosl (License): Change to LGPL.
54969         * modules/asinl (License): Likewise.
54970         * modules/atanl (License): Likewise.
54971         * modules/cosl (License): Likewise.
54972         * modules/expl (License): Likewise.
54973         * modules/logl (License): Likewise.
54974         * modules/sinl (License): Likewise.
54975         * modules/sqrtl (License): Likewise.
54976         * modules/tanl (License): Likewise.
54977         Source code originally from glibc and Paolo Bonzini. Agreements:
54978         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
54979         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
54981 2011-05-05  Bruno Haible  <bruno@clisp.org>
54983         signal: Define sighandler_t.
54984         * lib/signal.in.h (sighandler_t): New type.
54985         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
54986         whether sighandler_t is defined.
54987         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
54988         * modules/signal (Depends-on): Add extensions.
54989         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
54990         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
54991         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
54993 2011-05-05  Eric Blake  <eblake@redhat.com>
54995         maint: remove useless REPLACE_*_H macros
54996         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
54997         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
54998         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
54999         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
55000         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
55001         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
55002         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
55003         * m4/btowc.m4: Update callers.
55004         * m4/dirfd.m4: Likewise.
55005         * m4/duplocale.m4: Likewise.
55006         * m4/fchdir.m4: Likewise.
55007         * m4/fdopendir.m4: Likewise.
55008         * m4/inet_ntop.m4: Likewise.
55009         * m4/inet_pton.m4: Likewise.
55010         * m4/ioctl.m4: Likewise.
55011         * m4/mbrlen.m4: Likewise.
55012         * m4/mbrtowc.m4: Likewise.
55013         * m4/mbsinit.m4: Likewise.
55014         * m4/mbsnrtowcs.m4: Likewise.
55015         * m4/mbsrtowcs.m4: Likewise.
55016         * m4/poll.m4: Likewise.
55017         * m4/setlocale.m4: Likewise.
55018         * m4/wcrtomb.m4: Likewise.
55019         * m4/wcsnrtombs.m4: Likewise.
55020         * m4/wcsrtombs.m4: Likewise.
55021         * m4/wctob.m4: Likewise.
55022         * m4/wcwidth.m4: Likewise.
55023         * modules/posix_spawn: Likewise.
55024         * modules/posix_spawn_file_actions_addclose: Likewise.
55025         * modules/posix_spawn_file_actions_adddup2: Likewise.
55026         * modules/posix_spawn_file_actions_addopen: Likewise.
55027         * modules/posix_spawn_file_actions_destroy: Likewise.
55028         * modules/posix_spawn_file_actions_init: Likewise.
55029         * modules/posix_spawnattr_destroy: Likewise.
55030         * modules/posix_spawnattr_getflags: Likewise.
55031         * modules/posix_spawnattr_getpgroup: Likewise.
55032         * modules/posix_spawnattr_getschedparam: Likewise.
55033         * modules/posix_spawnattr_getschedpolicy: Likewise.
55034         * modules/posix_spawnattr_getsigdefault: Likewise.
55035         * modules/posix_spawnattr_getsigmask: Likewise.
55036         * modules/posix_spawnattr_init: Likewise.
55037         * modules/posix_spawnattr_setflags: Likewise.
55038         * modules/posix_spawnattr_setpgroup: Likewise.
55039         * modules/posix_spawnattr_setschedparam: Likewise.
55040         * modules/posix_spawnattr_setschedpolicy: Likewise.
55041         * modules/posix_spawnattr_setsigdefault: Likewise.
55042         * modules/posix_spawnattr_setsigmask: Likewise.
55043         * modules/posix_spawnp: Likewise.
55045 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
55047         Add option to do-release-commit-and-tag to specify branch.
55048         * build-aux/do-release-commit-and-tag: Add --branch.
55050 2011-05-03  Bruno Haible  <bruno@clisp.org>
55052         Avoid unnecessary compilation units, through conditional dependencies.
55053         * modules/accept (Depends-on): Add conditions to the dependencies.
55054         * modules/acosl (Depends-on): Likewise.
55055         * modules/argz (Depends-on): Likewise.
55056         * modules/asinl (Depends-on): Likewise.
55057         * modules/atanl (Depends-on): Likewise.
55058         * modules/atoll (Depends-on): Likewise.
55059         * modules/bind (Depends-on): Likewise.
55060         * modules/btowc (Depends-on): Likewise.
55061         * modules/canonicalize-lgpl (Depends-on): Likewise.
55062         * modules/ceil (Depends-on): Likewise.
55063         * modules/ceilf (Depends-on): Likewise.
55064         * modules/ceill (Depends-on): Likewise.
55065         * modules/chdir-long (Depends-on): Likewise.
55066         * modules/chown (Depends-on): Likewise.
55067         * modules/close (Depends-on): Likewise.
55068         * modules/connect (Depends-on): Likewise.
55069         * modules/cosl (Depends-on): Likewise.
55070         * modules/dirfd (Depends-on): Likewise.
55071         * modules/dprintf (Depends-on): Likewise.
55072         * modules/dprintf-posix (Depends-on): Likewise.
55073         * modules/error (Depends-on): Likewise.
55074         * modules/euidaccess (Depends-on): Likewise.
55075         * modules/expl (Depends-on): Likewise.
55076         * modules/faccessat (Depends-on): Likewise.
55077         * modules/fchdir (Depends-on): Likewise.
55078         * modules/fclose (Depends-on): Likewise.
55079         * modules/fcntl (Depends-on): Likewise.
55080         * modules/fdopendir (Depends-on): Likewise.
55081         * modules/fflush (Depends-on): Likewise.
55082         * modules/floor (Depends-on): Likewise.
55083         * modules/floorf (Depends-on): Likewise.
55084         * modules/floorl (Depends-on): Likewise.
55085         * modules/fnmatch (Depends-on): Likewise.
55086         * modules/fopen (Depends-on): Likewise.
55087         * modules/fprintf-posix (Depends-on): Likewise.
55088         * modules/frexp (Depends-on): Likewise.
55089         * modules/frexp-nolibm (Depends-on): Likewise.
55090         * modules/frexpl (Depends-on): Likewise.
55091         * modules/frexpl-nolibm (Depends-on): Likewise.
55092         * modules/fseek (Depends-on): Likewise.
55093         * modules/fsusage (Depends-on): Likewise.
55094         * modules/ftell (Depends-on): Likewise.
55095         * modules/ftello (Depends-on): Likewise.
55096         * modules/futimens (Depends-on): Likewise.
55097         * modules/getcwd (Depends-on): Likewise.
55098         * modules/getcwd-lgpl (Depends-on): Likewise.
55099         * modules/getdelim (Depends-on): Likewise.
55100         * modules/getdomainname (Depends-on): Likewise.
55101         * modules/getgroups (Depends-on): Likewise.
55102         * modules/gethostname (Depends-on): Likewise.
55103         * modules/getline (Depends-on): Likewise.
55104         * modules/getlogin_r (Depends-on): Likewise.
55105         * modules/getopt-posix (Depends-on): Likewise.
55106         * modules/getpeername (Depends-on): Likewise.
55107         * modules/getsockname (Depends-on): Likewise.
55108         * modules/getsockopt (Depends-on): Likewise.
55109         * modules/getsubopt (Depends-on): Likewise.
55110         * modules/getusershell (Depends-on): Likewise.
55111         * modules/glob (Depends-on): Likewise.
55112         * modules/grantpt (Depends-on): Likewise.
55113         * modules/iconv_open (Depends-on): Likewise.
55114         * modules/iconv_open-utf (Depends-on): Likewise.
55115         * modules/inet_ntop (Depends-on): Likewise.
55116         * modules/inet_pton (Depends-on): Likewise.
55117         * modules/ioctl (Depends-on): Likewise.
55118         * modules/isapipe (Depends-on): Likewise.
55119         * modules/isfinite (Depends-on): Likewise.
55120         * modules/isinf (Depends-on): Likewise.
55121         * modules/lchown (Depends-on): Likewise.
55122         * modules/ldexpl (Depends-on): Likewise.
55123         * modules/link (Depends-on): Likewise.
55124         * modules/linkat (Depends-on): Likewise.
55125         * modules/listen (Depends-on): Likewise.
55126         * modules/logl (Depends-on): Likewise.
55127         * modules/lstat (Depends-on): Likewise.
55128         * modules/mbrlen (Depends-on): Likewise.
55129         * modules/mbrtowc (Depends-on): Likewise.
55130         * modules/mbsinit (Depends-on): Likewise.
55131         * modules/mbsnrtowcs (Depends-on): Likewise.
55132         * modules/mbsrtowcs (Depends-on): Likewise.
55133         * modules/mbtowc (Depends-on): Likewise.
55134         * modules/memcmp (Depends-on): Likewise.
55135         * modules/mkdir (Depends-on): Likewise.
55136         * modules/mkdtemp (Depends-on): Likewise.
55137         * modules/mkfifo (Depends-on): Likewise.
55138         * modules/mkfifoat (Depends-on): Likewise.
55139         * modules/mknod (Depends-on): Likewise.
55140         * modules/mkostemp (Depends-on): Likewise.
55141         * modules/mkostemps (Depends-on): Likewise.
55142         * modules/mkstemp (Depends-on): Likewise.
55143         * modules/mkstemps (Depends-on): Likewise.
55144         * modules/mktime (Depends-on): Likewise.
55145         * modules/nanosleep (Depends-on): Likewise.
55146         * modules/open (Depends-on): Likewise.
55147         * modules/openat (Depends-on): Likewise.
55148         * modules/perror (Depends-on): Likewise.
55149         * modules/poll (Depends-on): Likewise.
55150         * modules/popen (Depends-on): Likewise.
55151         * modules/posix_spawn (Depends-on): Likewise.
55152         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
55153         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
55154         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
55155         * modules/posix_spawnp (Depends-on): Likewise.
55156         * modules/pread (Depends-on): Likewise.
55157         * modules/printf-posix (Depends-on): Likewise.
55158         * modules/ptsname (Depends-on): Likewise.
55159         * modules/putenv (Depends-on): Likewise.
55160         * modules/pwrite (Depends-on): Likewise.
55161         * modules/readline (Depends-on): Likewise.
55162         * modules/readlink (Depends-on): Likewise.
55163         * modules/readlinkat (Depends-on): Likewise.
55164         * modules/recv (Depends-on): Likewise.
55165         * modules/recvfrom (Depends-on): Likewise.
55166         * modules/regex (Depends-on): Likewise.
55167         * modules/remove (Depends-on): Likewise.
55168         * modules/rename (Depends-on): Likewise.
55169         * modules/renameat (Depends-on): Likewise.
55170         * modules/rmdir (Depends-on): Likewise.
55171         * modules/round (Depends-on): Likewise.
55172         * modules/roundf (Depends-on): Likewise.
55173         * modules/roundl (Depends-on): Likewise.
55174         * modules/rpmatch (Depends-on): Likewise.
55175         * modules/select (Depends-on): Likewise.
55176         * modules/send (Depends-on): Likewise.
55177         * modules/sendto (Depends-on): Likewise.
55178         * modules/setenv (Depends-on): Likewise.
55179         * modules/setlocale (Depends-on): Likewise.
55180         * modules/setsockopt (Depends-on): Likewise.
55181         * modules/shutdown (Depends-on): Likewise.
55182         * modules/sigaction (Depends-on): Likewise.
55183         * modules/signbit (Depends-on): Likewise.
55184         * modules/sigprocmask (Depends-on): Likewise.
55185         * modules/sinl (Depends-on): Likewise.
55186         * modules/sleep (Depends-on): Likewise.
55187         * modules/snprintf (Depends-on): Likewise.
55188         * modules/snprintf-posix (Depends-on): Likewise.
55189         * modules/socket (Depends-on): Likewise.
55190         * modules/sprintf-posix (Depends-on): Likewise.
55191         * modules/sqrtl (Depends-on): Likewise.
55192         * modules/stat (Depends-on): Likewise.
55193         * modules/strchrnul (Depends-on): Likewise.
55194         * modules/strdup-posix (Depends-on): Likewise.
55195         * modules/strerror (Depends-on): Likewise.
55196         * modules/strerror_r-posix (Depends-on): Likewise.
55197         * modules/strndup (Depends-on): Likewise.
55198         * modules/strnlen (Depends-on): Likewise.
55199         * modules/strptime (Depends-on): Likewise.
55200         * modules/strsep (Depends-on): Likewise.
55201         * modules/strsignal (Depends-on): Likewise.
55202         * modules/strstr-simple (Depends-on): Likewise.
55203         * modules/strtod (Depends-on): Likewise.
55204         * modules/strtoimax (Depends-on): Likewise.
55205         * modules/strtok_r (Depends-on): Likewise.
55206         * modules/strtoumax (Depends-on): Likewise.
55207         * modules/symlink (Depends-on): Likewise.
55208         * modules/symlinkat (Depends-on): Likewise.
55209         * modules/tanl (Depends-on): Likewise.
55210         * modules/tcgetsid (Depends-on): Likewise.
55211         * modules/tmpfile (Depends-on): Likewise.
55212         * modules/trunc (Depends-on): Likewise.
55213         * modules/truncf (Depends-on): Likewise.
55214         * modules/truncl (Depends-on): Likewise.
55215         * modules/uname (Depends-on): Likewise.
55216         * modules/unlink (Depends-on): Likewise.
55217         * modules/unlockpt (Depends-on): Likewise.
55218         * modules/unsetenv (Depends-on): Likewise.
55219         * modules/usleep (Depends-on): Likewise.
55220         * modules/utimensat (Depends-on): Likewise.
55221         * modules/vasprintf (Depends-on): Likewise.
55222         * modules/vdprintf (Depends-on): Likewise.
55223         * modules/vdprintf-posix (Depends-on): Likewise.
55224         * modules/vfprintf-posix (Depends-on): Likewise.
55225         * modules/vprintf-posix (Depends-on): Likewise.
55226         * modules/vsnprintf (Depends-on): Likewise.
55227         * modules/vsnprintf-posix (Depends-on): Likewise.
55228         * modules/vsprintf-posix (Depends-on): Likewise.
55229         * modules/wcrtomb (Depends-on): Likewise.
55230         * modules/wcscasecmp (Depends-on): Likewise.
55231         * modules/wcscspn (Depends-on): Likewise.
55232         * modules/wcsdup (Depends-on): Likewise.
55233         * modules/wcsncasecmp (Depends-on): Likewise.
55234         * modules/wcsnrtombs (Depends-on): Likewise.
55235         * modules/wcspbrk (Depends-on): Likewise.
55236         * modules/wcsrtombs (Depends-on): Likewise.
55237         * modules/wcsspn (Depends-on): Likewise.
55238         * modules/wcsstr (Depends-on): Likewise.
55239         * modules/wcstok (Depends-on): Likewise.
55240         * modules/wcswidth (Depends-on): Likewise.
55241         * modules/wctob (Depends-on): Likewise.
55242         * modules/wctomb (Depends-on): Likewise.
55243         * modules/wctype (Depends-on): Likewise.
55244         * modules/wcwidth (Depends-on): Likewise.
55245         * modules/write (Depends-on): Likewise.
55247 2011-05-03  Bruno Haible  <bruno@clisp.org>
55249         Support for conditional dependencies.
55250         * doc/gnulib.texi (Module description): Document the syntax of
55251         conditional dependencies.
55252         * gnulib-tool: New option --conditional-dependencies.
55253         (func_usage): Document it.
55254         (cond_dependencies): New variable.
55255         (func_get_automake_snippet_conditional,
55256         func_get_automake_snippet_unconditional): New functions, extracted from
55257         func_get_automake_snippet.
55258         (func_get_automake_snippet): Use them.
55259         (sed_first_32_chars): New variable.
55260         (func_module_shellfunc_name): New function.
55261         (func_module_shellvar_name): New function.
55262         (func_module_conditional_name): New function.
55263         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
55264         func_cond_module_condition): New functions.
55265         (func_modules_transitive_closure): Add support for conditional
55266         dependencies.
55267         (func_emit_lib_Makefile_am): For a conditional module, enclose the
55268         conditional automake snippet in an automake conditional.
55269         (func_emit_autoconf_snippets): Emit shell functions that contain the
55270         code for conditional modules.
55271         (func_import, func_create_testdir): Update specification.
55273 2011-05-03  Eric Blake  <eblake@redhat.com>
55275         test-getaddrinfo: report error information
55276         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
55278 2011-05-03  Jim Meyering  <meyering@redhat.com>
55280         bootstrap: avoid build failure when $GZIP is set
55281         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
55282         program name.  If defined at all, it is supposed to list gzip options.
55283         Reported by Alan Curry in http://debbugs.gnu.org/8609
55285 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
55287         readme-release: new module with release instructions
55288         * modules/readme-release: New module.
55289         * top/README-release: New file, from coreutils, grep, diffutils.
55290         * MODULES.html.sh (Support for maintaining and releasing): Add it.
55292 2011-05-02  Eric Blake  <eblake@redhat.com>
55294         fflush: also replace fclose when fixing fflush
55295         * modules/fflush (Depends-on): Add fclose.
55296         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
55297         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
55298         memstreams with no backing fd.
55299         * doc/posix-functions/fclose.texi (fclose): Document the use of
55300         fflush module to fix the bug.
55301         * tests/test-fclose.c (main): Relax test when fclose is used in
55302         isolation.
55304         fclose: add some tests
55305         * modules/fclose-tests: New test module.
55306         * tests/test-fclose.c: New file.
55307         * doc/posix-functions/fclose.texi (fclose): Document the bug.
55309         fclose: reduced dependencies
55310         * modules/fclose (Depends-on): Switch from fflush/fseeko to
55311         simpler lseek.
55312         * lib/fclose.c (rpl_fclose): Likewise.
55313         Reported by Simon Josefsson.
55315         exit: drop remaining clients
55316         * modules/argmatch (Depends-on): Replace exit with stdlib.
55317         * modules/copy-file (Depends-on): Likewise.
55318         * modules/execute (Depends-on): Likewise.
55319         * modules/exitfail (Depends-on): Likewise.
55320         * modules/obstack (Depends-on): Likewise.
55321         * modules/pagealign_alloc (Depends-on): Likewise.
55322         * modules/pipe-filter-gi (Depends-on): Likewise.
55323         * modules/pipe-filter-ii (Depends-on): Likewise.
55324         * modules/savewd (Depends-on): Likewise.
55325         * modules/spawn-pipe (Depends-on): Likewise.
55326         * modules/wait-process (Depends-on): Likewise.
55327         * modules/xsetenv (Depends-on): Likewise.
55328         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
55329         * modules/git-merge-changelog (Depends-on): Likewise.
55330         * modules/long-options (Depends-on): Likewise.
55331         * modules/pt_chown (Depends-on): Likewise.
55332         * modules/sysexits (Depends-on): Likewise.
55334         freading: relax license from LGPLv3+ to LGPLv2+
55335         * modules/freading (License): Relax LGPL version.
55337 2011-05-02  Bruno Haible  <bruno@clisp.org>
55339         fchdir: Remove unused dependencies.
55340         * modules/fchdir (Depends-on): Remove include_next.
55342 2011-05-02  Bruno Haible  <bruno@clisp.org>
55344         gnulib-tool: Refactor.
55345         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
55346         from func_emit_autoconf_snippets.
55347         (func_emit_autoconf_snippets): Use it.
55349 2011-05-02  Simon Josefsson  <simon@josefsson.org>
55351         * NEWS: Document removal of 'exit'.
55352         * modules/exit: Remove file.
55354 2011-05-01  Bruno Haible  <bruno@clisp.org>
55356         Update DEPENDENCIES.
55357         * DEPENDENCIES (gettext): Recommend the newest release.
55358         Reported by Simon Josefsson.
55360 2011-05-01  Bruno Haible  <bruno@clisp.org>
55362         gnulib-tool: Reduce code duplication.
55363         * gnulib-tool (func_emit_autoconf_snippets): New function.
55364         (func_import, func_create_testdir): Use it.
55366 2011-04-30  Eric Blake  <eblake@redhat.com>
55368         fclose: don't fail on non-seekable input stream
55369         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
55370         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
55371         since fflush is allowed to fail in that case.
55373 2011-04-30  Bruno Haible  <bruno@clisp.org>
55375         dup3: cleanup
55376         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
55378 2011-04-30  Bruno Haible  <bruno@clisp.org>
55380         netdb: Make it work in C++ mode.
55381         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
55382         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
55383         module.
55384         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
55385         gl_MODULE_INDICATOR_FOR_TESTS.
55386         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
55387         * modules/netdb-c++-tests: New file.
55388         * tests/test-netdb-c++.cc: New file.
55390 2011-04-30  Bruno Haible  <bruno@clisp.org>
55392         New modules 'vfscanf', 'vscanf'.
55393         * modules/vfscanf: New file.
55394         * modules/vscanf: New file.
55395         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
55396         here.
55397         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
55398         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
55400 2011-04-30  Bruno Haible  <bruno@clisp.org>
55402         passfd: Add comments.
55403         * lib/passfd.c: Add comments about platforms.
55405 2011-04-30  Bruno Haible  <bruno@clisp.org>
55407         sys_uio: Make <sys/uio.h> self-contained.
55408         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
55409         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
55411 2011-04-30  Bruno Haible  <bruno@clisp.org>
55413         sys_socket: Ensure 'struct iovec' definition.
55414         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
55415         <sys/socket.h>.
55416         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
55418 2011-04-30  Bruno Haible  <bruno@clisp.org>
55420         sys_uio: Protect definition of 'struct iovec'.
55421         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
55422         it as a C struct.
55424 2011-04-30  Bruno Haible  <bruno@clisp.org>
55426         manywarnings: fix indentation
55427         * m4/manywarnings.m4: Indent by 2 spaces consistently.
55429 2011-04-30  Pádraig Brady  <P@draigBrady.com>
55431         manywarnings: add -Wno-missing-field-initializers if needed.
55432         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
55433         option if it's needed to allow initialization with { 0, }
55435 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
55437         announce-gen: cosmetic improvement
55438         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
55440 2011-04-29  Jim Meyering  <meyering@redhat.com>
55442         vc-list-files: indent with spaces, not TABs
55443         * build-aux/vc-list-files: Convert leading TABs to spaces,
55444         to match the style of most other files in gnulib.
55446         announce-gen: indent with spaces, not TABs
55447         * build-aux/announce-gen: Convert all TABs to spaces, to match
55448         the style of most other files in gnulib.
55450 2011-04-29  Eric Blake  <eblake@redhat.com>
55452         quotearg: avoid uninitialized variable use
55453         * lib/quotearg.c (quoting_options_from_style): Initialize
55454         remaining fields, and ensure that custom styles are only used via
55455         quoting_options rather than quoting_style.
55457 2011-04-29  Jim Meyering  <meyering@redhat.com>
55459         maint.mk: remove unused VC-tag variable
55460         * top/maint.mk (VC-tag): Remove unused variable.
55462 2011-04-29  Bruno Haible  <bruno@clisp.org>
55464         netdb: fix gai_strerror replacements
55465         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
55466         * modules/netdb: Substitute it.
55468 2011-04-29  Jim Meyering  <meyering@redhat.com>
55470         test-getcwd.c: avoid new set-but-not-used warning
55471         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
55472         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
55473         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
55474         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
55476         test-hash.c: avoid a new shadowing warning
55477         * tests/test-hash.c (main): Don't shadow "dup".
55479 2011-04-28  Eric Blake  <eblake@redhat.com>
55481         getaddrinfo: fix gai_strerror signature
55482         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
55483         and work around mingw with UNICODE defined.
55484         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
55485         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
55486         * modules/netdb (Makefile.am): Substitute it.
55487         * lib/netdb.in.h (gai_strerror): Declare replacement.
55488         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
55489         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
55490         the fix.
55492         getsockopt: avoid compiler warning
55493         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
55494         Reported by Matthias Bolte.
55496         tests: drop unused link dependency
55497         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
55498         * modules/dirent-safer-tests (Makefile.am): Likewise.
55499         * modules/fdopendir-tests (Makefile.am): Likewise.
55500         * modules/mkfifoat-tests (Makefile.am): Likewise.
55501         * modules/openat-safer-tests (Makefile.am): Likewise.
55502         * modules/openat-tests (Makefile.am): Likewise.
55503         * modules/readlinkat-tests (Makefile.am): Likewise.
55504         * modules/symlinkat-tests (Makefile.am): Likewise.
55505         * modules/linkat-tests (Makefile.am): Likewise.
55506         (Depends-on): Switch to filenamecat-lgpl.
55507         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
55508         LIBINTL.
55509         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
55510         * tests/test-linkat.c (main): Don't require xalloc.
55512         hash, mgetgroups: drop xalloc dependency
55513         * lib/hash.c (includes): Adjust includes.
55514         * lib/mgetgroups.c (includes): Likewise.
55515         (xgetgroups): Move...
55516         * lib/xgetgroups.c: ...to new file.
55517         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
55518         * modules/xgetgroups: New file, split from...
55519         * modules/mgetgroups: ...here.
55520         (Depends-on): Add xalloc-oversized.
55521         * modules/hash (Depends-on): Likewise.
55522         * modules/hash-tests (Depends-on): Drop xalloc.
55523         (test_hash_LDADD): Drop unused library.
55524         * tests/test-hash.c (main): Break xalloc dependency.
55525         (includes): Drop unused include.
55527         xalloc-oversized: new module
55528         * modules/xalloc-oversized: New module.
55529         * modules/xalloc (Depends-on): Add it.
55530         * lib/xalloc.h (xalloc_oversized): Move...
55531         * lib/xalloc-oversized.h: ...into new file.
55533         utimecmp: drop dependency on xmalloc
55534         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
55535         due to memory pressure.
55536         * modules/utimecmp (Depends-on): Drop xalloc.
55538 2011-04-27  Eric Blake  <eblake@redhat.com>
55540         getcwd: fix mingw bugs
55541         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
55542         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
55543         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
55545 2011-04-27  Bruno Haible  <bruno@clisp.org>
55547         mkstemps: Ensure declaration on MacOS X 10.5.
55548         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
55549         * doc/glibc-functions/mkstemps.texi: Document header file problem on
55550         MacOS X.
55552 2011-04-27  Bruno Haible  <bruno@clisp.org>
55554         mkstemp: More documentation.
55555         * doc/posix-functions/mkstemp.texi: Document header file problem on
55556         MacOS X.
55558 2011-04-27  Bruno Haible  <bruno@clisp.org>
55560         mkstemp: Tweak configure message when cross-compiling.
55561         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
55562         result as a guess.
55564 2011-04-27  Bruno Haible  <bruno@clisp.org>
55566         clean-temp: Clarify what it does.
55567         * lib/clean-temp.h: Add more comments.
55568         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
55569         module.
55570         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
55571         * doc/glibc-functions/mkstemps.texi: Likewise.
55572         * doc/glibc-functions/mkostemps.texi: Likewise.
55574 2011-04-27  Eric Blake  <eblake@redhat.com>
55576         fchdir: avoid extra chdir and fix test
55577         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
55578         getcwd-lgpl.
55579         * lib/fchdir.c (get_name): Any absolute name will do; it does not
55580         have to be canonical.
55581         (canonicalize_file_name): Drop unused macro.
55582         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
55584         filenamecat-lgpl: fix licence
55585         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
55586         when it was first created.
55588         linkat, renameat: add missing dependency
55589         * modules/linkat (Depends-on): Require getcwd-lgpl.
55590         * modules/renameat (Depends-on): Likewise.
55592         tests: reduce dependencies
55593         * tests/test-linkat.c (main): Use lighter-weight getcwd.
55594         * tests/test-renameat.c (main): Likewise.
55595         * modules/linkat-tests (Depends-on): Relax dependency.
55596         * modules/renameat-tests (Depends-on): Likewise.
55597         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
55598         dependency explicit.
55600         save-cwd: reduce default dependency
55601         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
55602         * lib/save-cwd.c: Update comments.
55603         * NEWS: Document the semantic change.
55605         getcwd: enhance tests
55606         * tests/test-getcwd-lgpl.c: New file, taken from...
55607         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
55608         repeat long path stress tests from m4 probe.
55609         * modules/getcwd-lgpl-tests: New module.
55610         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
55611         * m4/getcwd-abort-bug.m4: Update comment.
55612         * m4/getcwd-path-max.m4: Likewise.
55614         getcwd-lgpl: new module
55615         * modules/getcwd-lgpl: New module.
55616         * lib/getcwd-lgpl.c: New file.
55617         * doc/posix-functions/getcwd.texi (getcwd): Document it.
55618         * MODULES.html.sh (lacking POSIX:2008): Likewise.
55619         * modules/getcwd (configure.ac): Set C witness.
55620         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
55622         getcwd: tweak comments
55623         * m4/getcwd-abort-bug.m4: Fix comments.
55624         * m4/getcwd-path-max.m4: Likewise.
55625         * m4/getcwd.m4: Likewise.
55627 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
55628         and Eric Blake  <eblake@redhat.com>
55630         mkstemp: replace if system version uses wrong permissions
55631         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
55632         read/write mode bits set in file created by mkstemp.
55633         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
55635 2011-04-27  Eric Blake  <eblake@redhat.com>
55637         passfd: avoid compiler warning
55638         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
55639         Reported by Laine Stump.
55641 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
55643         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
55644         required by the NetBSD (and perhaps other 4.4BSD derived) join.
55646 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
55647         and Eric Blake  <eblake@redhat.com>
55649         mkstemp: mention clean-temp module
55650         * lib/mkstemp.c: Add comment.
55651         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
55653 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
55655         inttypes: also provide default values for 32-bit tests
55656         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
55657         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
55659 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
55661         strtoumax: remove dependency on strtoimax
55662         This is like the strtoull change of yesterday.
55663         * modules/strtoumax (Files): Add lib/strtoimax.c.
55664         (Depends-on): Remove strtoimax and add verify.
55666         inttypes-incomplete: new module
55667         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
55668         all but the PRI* and SCN* parts of gl_INTTYPES_H.
55669         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
55670         of gl_INTTYPES_H.
55671         (gl_INTTYPES_H): Rewrite in terms of these new macros.
55672         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
55673         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
55674         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
55675         * modules/strtoumax, modules/xstrtol (Depends-on):
55676         Depend on inttypes-incomplete, not inttypes.
55677         * modules/inttypes-incomplete: New module, containing the contents
55678         of the old modules/inttypes module, except that the Files: section
55679         omits m4/inttypes-pri.m4, and the configure.ac section invokes
55680         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
55681         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
55682         (Depends-on): Depend only on inttypes-incomplete.
55683         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
55685         inttypes: omit now-redundant strtoimax and strtoumax work
55686         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
55687         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
55689         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
55690         This supports apps that need pointers to strtoimax and strtoumax,
55691         and ports to HP-UX 11.00 64.bit, which has macros that expand to
55692         nonexistent functions.  See
55693         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
55694         et seq.
55695         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
55696         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
55697         a macro.
55698         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
55700 2011-04-25  Simon Josefsson  <simon@josefsson.org>
55702         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
55704 2011-04-25  Bruno Haible  <bruno@clisp.org>
55706         strtol, strtoul: Mark modules as obsolete.
55707         * modules/strtol (Status, Notice): New sections.
55708         * modules/strtoul (Status, Notice): New sections.
55710 2011-04-25  Bruno Haible  <bruno@clisp.org>
55712         strtod: Remove check for strtod, unless supporting old platforms.
55713         * modules/strtod-obsolete: New file.
55714         * m4/strtod-obsolete.m4: New file.
55715         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
55716         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
55717         * modules/strtod (Depends-on): Add strtod-obsolete.
55718         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
55720 2011-04-25  Bruno Haible  <bruno@clisp.org>
55722         strcase: Make module obsolete.
55723         * modules/strcase (Status, Notice): New sections.
55725 2011-04-25  Bruno Haible  <bruno@clisp.org>
55727         dup2: Remove check for dup2, unless supporting old obsolete platforms.
55728         * modules/dup2-obsolete: New file.
55729         * m4/dup2-obsolete.m4: New file.
55730         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
55731         gl_FUNC_DUP2_OBSOLETE is not also defined.
55732         * modules/dup2 (Depends-on): Add dup2-obsolete.
55733         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
55735 2011-04-25  Bruno Haible  <bruno@clisp.org>
55737         strnlen: Avoid memchr related link error on old obsolete platforms.
55738         * modules/memchr-obsolete: New file.
55739         * m4/memchr-obsolete.m4: New file.
55740         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
55741         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
55742         * modules/memchr (Depends-on): Add memchr-obsolete.
55743         * modules/strnlen (Depends-on): Likewise.
55744         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
55746 2011-04-25  Jim Meyering  <meyering@redhat.com>
55748         maint.mk: makefile_at_at_check extend and clean up
55749         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
55750         in addition to */Makefile.am.
55751         Exempt legitimate uses of @VAR@ notation, e.g.,
55752         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
55753         Remove obsolete coreutils-specific comment.
55754         Prompted by discussion here:
55755         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
55757 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
55759         strtoul: remove dependency on strtol
55760         This is so that 'configure' need not check for strtol merely because
55761         the application needs strtoul.
55762         * modules/strtoul (Files): Add lib/strtol.c.
55763         (Depends-on): Remove strtol.
55765         strtoull: remove dependency on strtoul
55766         This is like the strtoll change.
55767         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
55768         (Depends-on): Remove strtoul.
55770         strtoll: remove dependency on strtol
55771         This is so that 'configure' need not check for strtol merely because
55772         the application needs strtoll.
55773         * modules/strtoll (Files): Add lib/strtol.c.
55774         (Depends-on): Remove strtol.
55776 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
55778         inttypes: Move some configure check to module 'imaxdiv'.
55779         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
55780         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
55781         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
55783 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
55785         inttypes: Move some configure check to module 'imaxabs'.
55786         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
55787         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
55788         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
55790 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
55792         inttypes: Remove configure tests that are not needed since 2009-12-31.
55793         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
55794         gl_cv_header_working_inttypes_h.
55796 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
55798         * modules/strnlen (Depends-on): Remove memchr.
55799         The strnlen implementation doesn't need the memchr module's fixes; see
55800         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
55802         strtol: remove dependency on wchar
55803         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
55804         * modules/strtol (Depends-on): Remove wchar.
55806 2011-04-21  Eric Blake  <eblake@redhat.com>
55808         passfd: fix test regression on Linux
55809         * modules/passfd-tests (configure.ac): Correct socketpair check.
55811         passfd: speed up configure and drop unused code
55812         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
55813         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
55814         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
55815         Instead of probing at configure for unix_scm_rights_bsd44_way,
55816         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
55817         check to a struct member probe.
55818         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
55819         (sendfd, recvfd): Update preprocessor checks.
55820         * modules/passfd (Files): Reflect rename, and drop unused file.
55821         (Depends-on): Drop unused dependency.
55823         passfd: allow compilation on mingw
55824         * modules/sys_socket (Depends-on): Add sys_uio.
55825         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
55826         iovec and a minimal struct msghdr.
55827         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
55828         * tests/test-sys_socket.c (main): Enhance test.
55829         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
55830         guaranteed to provide what we need.
55831         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
55832         * modules/passfd-tests (Depends-on): Add sys_wait.
55833         * tests/test-passfd.c (main): Skip test on mingw, for now.
55834         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
55835         partial 'struct msghdr' implementation.
55837         sys_uio: new module
55838         * modules/sys_uio: New module.
55839         * modules/sys_uio-tests: Likewise.
55840         * lib/sys_uio.in.h: New file.
55841         * m4/sys_uio_h.m4: Likewise.
55842         * tests/test-sys_uio.c: Likewise.
55843         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
55844         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
55846 2011-04-20  Jim Meyering  <meyering@redhat.com>
55848         useless-if-before-free: avoid false-positive
55849         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
55850         disjunct so that it too requires a terminating ";".  Without that,
55851         this script would identify as useless one statement from gcc that
55852         was not:
55853           if (aligned_ptr)
55854             free (((void **) aligned_ptr) [-1]);
55856 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
55858         doc: update users.txt.
55859         * users.txt: Add barcode.
55861 2011-04-19  Bruno Haible  <bruno@clisp.org>
55863         ioctl: Remove link dependency on native Windows.
55864         * lib/fd-hook.h: Renamed from lib/close-hook.h.
55865         (gl_close_fn, gl_ioctl_fn): New types.
55866         (struct fd_hook): Renamed from struct close_hook. Change type of
55867         private_close_fn field. Add private_ioctl_fn field.
55868         (close_hook_fn): Add parameter for primary close method.
55869         (execute_close_hooks, execute_all_close_hooks): Likewise.
55870         (ioctl_hook_fn): New type.
55871         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
55872         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
55873         argument.
55874         (unregister_fd_hook): Renamed from unregister_close_hook.
55875         * lib/fd-hook.c: Renamed from lib/close-hook.c.
55876         Don't include <unistd.h>.
55877         (close): Remove undef.
55878         (anchor): Update.
55879         (execute_close_hooks): Add argument for primary close method.
55880         (execute_all_close_hooks): Likewise.
55881         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
55882         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
55883         argument. Allow each argument to be NULL.
55884         (unregister_fd_hook): Renamed from unregister_close_hook.
55885         * lib/close.c (rpl_close): Pass 'close' function pointer to
55886         execute_all_close_hooks.
55887         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
55888         (primary_ioctl): New function.
55889         (ioctl): Don't call ioctlsocket here. Instead, call
55890         execute_all_ioctl_hooks.
55891         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
55892         close method.
55893         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
55894         (fd_sockets_hook): Renamed from close_sockets_hook.
55895         (gl_sockets_startup, gl_sockets_cleanup): Update.
55896         * modules/fd-hook: Renamed from modules/close-hook. Update.
55897         * modules/close (Depends-on): Add fd-hook, remove close-hook.
55898         * modules/sockets (Depends-on): Likewise.
55899         * modules/ioctl (Depends-on): Add fd-hook.
55900         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
55901         GNULIB_SOCKET.
55903 2011-04-19  Bruno Haible  <bruno@clisp.org>
55905         Move the support of O_NONBLOCK in open() to the 'open' module.
55906         * modules/nonblocking (Depends-on): Remove 'open'.
55907         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
55908         gl_cv_have_open_O_NONBLOCK.
55909         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
55910         O_NONBLOCK support.
55911         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
55913 2011-04-17  Bruno Haible  <bruno@clisp.org>
55915         pipe2: Simplify code.
55916         * lib/pipe2.c (pipe2): Reduce code duplication.
55918 2011-04-17  Bruno Haible  <bruno@clisp.org>
55920         nonblocking: Add comment.
55921         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
55923 2011-04-17  Bruno Haible  <bruno@clisp.org>
55925         nonblocking: Add tests for sockets.
55926         * tests/test-nonblocking-socket.sh: New file.
55927         * tests/test-nonblocking-socket-main.c: New file.
55928         * tests/test-nonblocking-socket-child.c: New file.
55929         * tests/test-nonblocking-socket.h: New file.
55930         * tests/socket-server.h: New file.
55931         * tests/socket-client.h: New file.
55932         * modules/nonblocking-socket-tests: New file.
55933         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
55935 2011-04-17  Bruno Haible  <bruno@clisp.org>
55937         nonblocking: Add tests for pipes.
55938         * tests/test-nonblocking-pipe.sh: New file.
55939         * tests/test-nonblocking-pipe-main.c: New file.
55940         * tests/test-nonblocking-pipe-child.c: New file.
55941         * tests/test-nonblocking-pipe.h: New file.
55942         * tests/test-nonblocking-writer.h: New file.
55943         * tests/test-nonblocking-reader.h: New file.
55944         * tests/test-nonblocking-misc.h: New file.
55945         * modules/nonblocking-pipe-tests: New file.
55946         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
55948 2011-04-16  Bruno Haible  <bruno@clisp.org>
55950         gettext: Clarify the needed programmer actions.
55951         * modules/gettext (Notice): New field.
55952         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
55954 2011-04-16  Bruno Haible  <bruno@clisp.org>
55956         strchrnul: Tweak last commit.
55957         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
55958         bug.
55959         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
55960         as in _GL_FUNCDECL_SYS.
55961         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
55962         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
55964 2011-04-15  Eric Blake  <eblake@redhat.com>
55966         strchrnul: work around cygwin bug
55967         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
55968         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
55969         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
55970         * modules/string (Makefile.am): Substitute it.
55971         * lib/string.in.h (strchrnul): Use it.
55973 2011-04-15  Bruno Haible  <bruno@clisp.org>
55975         Don't require lib/stdio-write.c when only module 'stdio' is used.
55976         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
55977         invocation.
55978         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
55980 2011-04-14  Bruno Haible  <bruno@clisp.org>
55982         Support non-blocking pipe I/O in read() on native Windows.
55983         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
55984         (read): New declaration.
55985         * lib/read.c: New file.
55986         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
55987         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
55988         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
55989         vscanf): New declarations.
55990         * lib/stdio-read.c: New file.
55991         * m4/read.m4: New file.
55992         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
55993         REPLACE_READ.
55994         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
55995         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
55996         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
55997         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
55998         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
55999         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
56000         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
56001         * modules/read: New file.
56002         * modules/nonblocking (Files): Add lib/stdio-read.c.
56003         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
56004         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
56005         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
56006         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
56007         * modules/pread (Depends-on): Add read.
56008         * modules/safe-read (Depends-on): Likewise.
56009         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
56010         gets, scanf, vfscanf, vscanf): Verify signatures.
56011         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
56012         problem with non-blocking pipes.
56013         * doc/posix-functions/fgetc.texi: Likewise.
56014         * doc/posix-functions/fgets.texi: Likewise.
56015         * doc/posix-functions/fread.texi: Likewise.
56016         * doc/posix-functions/fscanf.texi: Likewise.
56017         * doc/posix-functions/getc.texi: Likewise.
56018         * doc/posix-functions/getchar.texi: Likewise.
56019         * doc/posix-functions/gets.texi: Likewise.
56020         * doc/posix-functions/scanf.texi: Likewise.
56021         * doc/posix-functions/vfscanf.texi: Likewise.
56022         * doc/posix-functions/vscanf.texi: Likewise.
56024 2011-04-14  Bruno Haible  <bruno@clisp.org>
56026         Support non-blocking pipe I/O in write() on native Windows.
56027         * lib/write.c (rpl_write): Split a write request that failed merely
56028         because the byte count was larger than the pipe buffer's size.
56029         * doc/posix-functions/write.texi: Mention the problem with large byte
56030         counts.
56032 2011-04-14  Bruno Haible  <bruno@clisp.org>
56034         wchar: Ensure that wchar_t gets defined on uClibc.
56035         * lib/wchar.in.h: On uClibc, include <stddef.h>.
56036         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
56038 2011-04-13  Bruno Haible  <bruno@clisp.org>
56040         safe-write, full-read: Avoid unnecessary compilation units.
56041         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
56042         (Depends-on): Remove safe-read. Add ssize_t.
56043         * modules/full-read (Files): Add lib/full-write.c.
56044         (Depends-on): Add full-write.
56046 2011-04-13  Bruno Haible  <bruno@clisp.org>
56048         Support non-blocking pipe I/O and SIGPIPE in pwrite().
56049         * modules/pwrite (Depends-on): Add 'write'.
56051 2011-04-13  Bruno Haible  <bruno@clisp.org>
56053         Support non-blocking pipe I/O in write() on native Windows.
56054         * lib/unistd.in.h (write): Enable replacement also if
56055         GNULIB_UNISTD_H_NONBLOCKING is 1.
56056         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
56057         (rpl_write): When failing to write on a non-blocking pipe, change
56058         errno from ENOSPC to EAGAIN.
56059         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
56060         putchar, puts, vfprintf, vprintf): Enable replacement also if
56061         GNULIB_STDIO_H_NONBLOCKING is 1.
56062         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
56063         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
56064         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
56065         CALL_WITH_SIGPIPE_EMULATION.
56066         (CALL_WITH_SIGPIPE_EMULATION): Use them.
56067         * m4/nonblocking.m4: New file.
56068         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
56069         for non-blocking I/O support.
56070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56071         GNULIB_UNISTD_H_NONBLOCKING.
56072         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
56073         required for non-blocking I/O support.
56074         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
56075         * modules/nonblocking (Files): Add m4/nonblocking.m4,
56076         lib/stdio-write.c, m4/asm-underscore.m4.
56077         (Depends-on): Add stdio, unistd.
56078         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
56079         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
56080         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
56081         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
56082         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
56083         problem with non-blocking pipes.
56084         * doc/posix-functions/fputc.texi: Likewise.
56085         * doc/posix-functions/fputs.texi: Likewise.
56086         * doc/posix-functions/fwrite.texi: Likewise.
56087         * doc/posix-functions/printf.texi: Likewise.
56088         * doc/posix-functions/putc.texi: Likewise.
56089         * doc/posix-functions/putchar.texi: Likewise.
56090         * doc/posix-functions/puts.texi: Likewise.
56091         * doc/posix-functions/vfprintf.texi: Likewise.
56092         * doc/posix-functions/vprintf.texi: Likewise.
56093         * doc/posix-functions/write.texi: Likewise.
56095 2011-04-10  Jim Meyering  <meyering@redhat.com>
56097         maint.mk: prohibit doubled words
56098         Detect them also when they're separated by a newline.
56099         There are 3 ways to customize it:
56100           - disable the test on a per file basis, as usual with rules using
56101             $(VC_LIST_EXCEPT)
56102           - replace the default doubled-word-selecting regexp (affects all files)
56103           - ignore a particular file-vs-doubled-word match
56104         I nearly used that last one to ignore the "is is" match in
56105         coreutils' NEWS file, since the text was "ls -is is ..."
56106         To do that, I would have added this line to cfg.mk:
56107           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
56108         but it would have ignored any "is is" match in NEWS.
56109         Low probability, but still...
56110         Instead, I changed the text, slightly:
56111           -  ls -is is now consistent with ls -lis in ignoring values returned
56112           +  "ls -is" is now consistent with ls -lis in ignoring values returned
56113         * top/maint.mk (prohibit_double_word_RE_): Provide default.
56114         (prohibit_doubled_word_): Define.
56115         (sc_prohibit_doubled_word): New rule.
56116         (sc_prohibit_the_the): Remove.  Subsumed by the above.
56118 2011-04-10  Jim Meyering  <meyering@redhat.com>
56120         maint: fix doubled-word typo in comment
56121         * m4/gethostname.m4: s/is is/it is/
56122         * m4/getdomainname.m4: Likewise.
56124 2011-04-10  Jim Meyering  <meyering@redhat.com>
56126         maint: remove doubled word: s/it it/it/
56127         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
56129 2011-04-10  Jim Meyering  <meyering@redhat.com>
56131         maint.mk: remove useless semicolon and backslash
56132         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
56133         semicolon and backslash.
56135 2011-04-10  Bruno Haible  <bruno@clisp.org>
56137         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
56138         * modules/stdint-tests (Depends-on): Add wchar.
56140 2011-04-10  Jim Meyering  <meyering@redhat.com>
56142         maint: remove doubled words in comments, e.g., s/a a/a/
56143         * lib/strptime.c (day_of_the_week): s/the the/the/
56144         * tests/test-chown.h (test_chown): s/a a/a/
56146         test-chown.h: correct a cast
56147         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
56148         when the destination is a stat.st_gid.
56150 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
56152         getaddrinfo: Fix test for sa_len member.
56153         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
56154         include <sys/types.h> before <sys/socket.h>.
56156 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
56158         maint: change "can not" to "cannot"
56159         * doc/posix-functions/iconv.texi (iconv): This one crossed line
56160         boundaries.
56162 2011-04-09  Jim Meyering  <meyering@redhat.com>
56164         maint: change "a a" to "a"
56165         * tests/test-lchown.h (test_lchown): s/a a/a/
56167         maint.mk: prohibit \<the the\>
56168         * top/maint.mk (sc_prohibit_the_the): New rule.
56170         maint: fix "the the" in comment
56171         * lib/count-one-bits.h: s/the the/the/
56173         maint: change "can not" to "cannot"
56174         But do not change the occurrences in maintain.texi or in
56175         build-aux/po/Makefile.in.in, which I presume comes from gettext.
56176         * doc/gnulib-tool.texi: s/can not/cannot/
56177         * doc/posix-functions/accept.texi (accept): Likewise.
56178         * doc/posix-functions/socket.texi (socket): Likewise.
56179         * lib/mbrtowc.c: Likewise.
56181         maint.mk: prohibit use of "can not"
56182         * top/maint.mk (sc_prohibit_can_not): New rule.
56183         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
56185 2011-04-09  Bruno Haible  <bruno@clisp.org>
56187         careadlinkat: Guard against misuse of careadlinkatcwd.
56188         * lib/careadlinkat.c: Include <stdlib.h>.
56189         (careadlinkatcwd): Check that the fd argument is as expected.
56191 2011-04-09  Bruno Haible  <bruno@clisp.org>
56193         careadlinkat: Use common coding style.
56194         * lib/careadlinkat.c: Move gnulib includes after system includes.
56196 2011-04-09  Bruno Haible  <bruno@clisp.org>
56198         careadlinkat: Clarify specification.
56199         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
56200         (careadlinkatcwd): Add comment.
56201         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
56203 2011-04-09  Bruno Haible  <bruno@clisp.org>
56205         areadlinkat: Avoid link error on many platforms.
56206         * modules/areadlinkat (Depends-on): Add areadlink.
56208 2011-04-09  Bruno Haible  <bruno@clisp.org>
56210         allocator, careadlinkat: Fix double-inclusion guard.
56211         * lib/allocator.h: Fix double-inclusion guard.
56212         * lib/careadlinkat.h: Likewise.
56214 2011-04-09  Bruno Haible  <bruno@clisp.org>
56216         relocatable-prog-wrapper: Update after module 'areadlink' changed.
56217         * lib/relocwrapper.c: Update dependencies hierarchy.
56218         * build-aux/install-reloc: Update list of files to be compiled.
56219         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
56220         lib/allocator.[hc].
56222 2011-04-08  Eric Blake  <eblake@redhat.com>
56224         strftime: silence gnulib-tool warning
56225         * modules/strftime-tests (Depends-on): Drop automatic dependency.
56227 2011-04-08  Bruno Haible  <bruno@clisp.org>
56229         verify: Fix syntax error with GCC 4.6 in C++ mode.
56230         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
56231         (HAVE_STATIC_ASSERT): New macro.
56232         (verify_true, verify): Use 'static_assert' if it is supported and
56233         '_Static_assert' is not supported.
56235 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
56237         allocator: New module.
56238         * modules/allocator, lib/allocator.c: New files.
56239         * lib/allocator.h (stdlib_allocator): New decl.
56240         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
56241         Remove.  Do not include <stdlib.h>.
56242         (careadlinkat): Use stdlib_allocator instead of rolling our own.
56243         * modules/careadlinkat (Files): Remove lib/allocator.h.
56244         (Depends-on): Add allocator.
56246         stdlib: let modules use system malloc, realloc
56247         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
56248         if !_GL_USE_STDLIB_ALLOC.
56249         (malloc, realloc): Limit this change to a smaller scope.
56251         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
56252         (malloc, realloc): Don't #undef; no longer needed.
56253         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56254         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56255         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
56256         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56257         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56258         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56259         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
56260         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
56262         careadlinkat: rename members to avoid problem
56263         * lib/allocator.h (struct allocator): Rename members from
56264         malloc/realloc to allocate/reallocate, to avoid problems if malloc
56265         and realloc are #define'd.  Reported by Eric Blake in
56266         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
56267         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
56269 2011-04-08  Eric Blake  <eblake@redhat.com>
56271         nonblocking: reduce dependency
56272         * tests/test-nonblocking.c: Only test sockets when in use.
56273         * modules/nonblocking-tests (Depends-on): Drop socket.
56274         (Makefile.am): Link even if sockets are not present.
56275         * modules/pipe2-tests (Makefile.am): Likewise.
56276         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
56278         pipe2: fix O_NONBLOCK support on mingw
56279         * modules/pipe2 (Depends-on): Add nonblocking.
56280         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
56281         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
56282         * tests/test-nonblocking.c (main): Likewise.
56283         * modules/pipe2-tests (Makefile.am): Avoid link failure.
56285         fcntl-h: fix O_ACCMODE on cygwin
56286         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
56287         * lib/fcntl.in.h (O_ACCMODE): Fix it.
56289         pipe-filter: drop O_NONBLOCK workarounds
56290         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
56291         * modules/pipe-filter-ii (Depends-on): Likewise.
56292         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
56294         nonblocking: provide O_NONBLOCK for mingw
56295         * modules/nonblocking (Depends-on): Add open.
56296         (configure.ac): Set new witness macro.
56297         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
56298         * modules/fcntl-h (Makefile.am): Substitute it.
56299         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
56300         nonblocking module is in use.
56301         * lib/nonblocking.c: Adjust portability test.
56302         * lib/open.c (open): Don't let native open see gnulib flag.
56303         * tests/test-fcntl-h.c (main): Enhance test.
56304         * tests/test-open.h (test_open): Likewise.
56305         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
56307         careadlinkat: fix compilation error on mingw
56308         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
56309         within struct allocator.
56311 2011-04-06  Eric Blake  <eblake@redhat.com>
56313         binary-io: relicense under LGPLv2+
56314         * modules/binary-io (License): Relax to LGPLv2+.
56315         Requested for libvirt, and required by pipe2.
56317 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
56319         verify: use _Static_assert if available
56320         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
56321         (verify_true, verify): Use it if available.  This generates better
56322         diagnostics with GCC 4.6.0 and later.
56324 2011-04-05  Bruno Haible  <bruno@clisp.org>
56326         Remove leftover generated .h files after config.status changed.
56328         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
56329         GL_GENERATE_ALLOCA_H.
56330         * modules/alloca-opt (Makefile.am): Remove alloca.h if
56331         GL_GENERATE_ALLOCA_H evaluates to false.
56333         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
56334         GL_GENERATE_ARGZ_H.
56335         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
56336         evaluates to false.
56338         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
56339         GL_GENERATE_BYTESWAP_H.
56340         * modules/byteswap (Makefile.am): Remove byteswap.h if
56341         GL_GENERATE_BYTESWAP_H evaluates to false.
56343         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
56344         GL_GENERATE_ERRNO_H.
56345         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
56346         evaluates to false.
56348         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
56349         GL_GENERATE_FLOAT_H.
56350         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
56351         evaluates to false.
56353         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
56354         GL_GENERATE_FNMATCH_H.
56355         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
56356         GL_GENERATE_FNMATCH_H evaluates to false.
56358         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
56359         GL_GENERATE_GLOB_H.
56360         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
56361         evaluates to false.
56363         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
56364         automake conditional GL_GENERATE_ICONV_H.
56365         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
56366         evaluates to false.
56368         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
56369         GL_GENERATE_NETINET_IN_H.
56370         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
56371         GL_GENERATE_NETINET_IN_H evaluates to false.
56373         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
56374         conditional GL_GENERATE_PTHREAD_H.
56375         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
56376         * modules/pthread (Makefile.am): Remove pthread.h if
56377         GL_GENERATE_PTHREAD_H evaluates to false.
56379         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
56380         GL_GENERATE_SCHED_H.
56381         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
56382         evaluates to false.
56384         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
56385         conditional GL_GENERATE_SELINUX_CONTEXT_H.
56386         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
56387         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
56389         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
56390         GL_GENERATE_STDARG_H.
56391         * modules/stdarg (Makefile.am): Remove stdarg.h if
56392         GL_GENERATE_STDARG_H evaluates to false.
56394         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
56395         GL_GENERATE_STDBOOL_H.
56396         * modules/stdbool (Makefile.am): Remove stdbool.h if
56397         GL_GENERATE_STDBOOL_H evaluates to false.
56399         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
56400         conditional GL_GENERATE_STDDEF_H.
56401         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
56402         * modules/stddef (Makefile.am): Remove stddef.h if
56403         GL_GENERATE_STDDEF_H evaluates to false.
56405         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
56406         GL_GENERATE_STDINT_H.
56407         * modules/stdint (Makefile.am): Remove stdint.h if
56408         GL_GENERATE_STDINT_H evaluates to false.
56410         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
56411         GL_GENERATE_SYSEXITS_H.
56412         * modules/sysexits (Makefile.am): Remove sysexits.h if
56413         GL_GENERATE_SYSEXITS_H evaluates to false.
56415         Reported by Karl Berry and Ralf Wildenhues.
56417 2011-04-05  Bruno Haible  <bruno@clisp.org>
56419         Ensure to rebuild generated .h files when config.status has changed.
56420         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
56421         config.status.
56422         * modules/ctype (Makefile.am): Likewise.
56423         * modules/dirent (Makefile.am): Likewise.
56424         * modules/errno (Makefile.am): Likewise.
56425         * modules/fcntl-h (Makefile.am): Likewise.
56426         * modules/float (Makefile.am): Likewise.
56427         * modules/getopt-posix (Makefile.am): Likewise.
56428         * modules/glob (Makefile.am): Likewise.
56429         * modules/iconv-h (Makefile.am): Likewise.
56430         * modules/inttypes (Makefile.am): Likewise.
56431         * modules/langinfo (Makefile.am): Likewise.
56432         * modules/locale (Makefile.am): Likewise.
56433         * modules/math (Makefile.am): Likewise.
56434         * modules/netdb (Makefile.am): Likewise.
56435         * modules/netinet_in (Makefile.am): Likewise.
56436         * modules/poll-h (Makefile.am): Likewise.
56437         * modules/pthread (Makefile.am): Likewise.
56438         * modules/pty (Makefile.am): Likewise.
56439         * modules/sched (Makefile.am): Likewise.
56440         * modules/search (Makefile.am): Likewise.
56441         * modules/selinux-h (Makefile.am): Likewise.
56442         * modules/signal (Makefile.am): Likewise.
56443         * modules/spawn (Makefile.am): Likewise.
56444         * modules/stdarg (Makefile.am): Likewise.
56445         * modules/stdbool (Makefile.am): Likewise.
56446         * modules/stddef (Makefile.am): Likewise.
56447         * modules/stdint (Makefile.am): Likewise.
56448         * modules/stdio (Makefile.am): Likewise.
56449         * modules/stdlib (Makefile.am): Likewise.
56450         * modules/string (Makefile.am): Likewise.
56451         * modules/strings (Makefile.am): Likewise.
56452         * modules/sys_file (Makefile.am): Likewise.
56453         * modules/sys_ioctl (Makefile.am): Likewise.
56454         * modules/sys_select (Makefile.am): Likewise.
56455         * modules/sys_socket (Makefile.am): Likewise.
56456         * modules/sys_stat (Makefile.am): Likewise.
56457         * modules/sys_time (Makefile.am): Likewise.
56458         * modules/sys_times (Makefile.am): Likewise.
56459         * modules/sys_utsname (Makefile.am): Likewise.
56460         * modules/sys_wait (Makefile.am): Likewise.
56461         * modules/sysexits (Makefile.am): Likewise.
56462         * modules/termios (Makefile.am): Likewise.
56463         * modules/time (Makefile.am): Likewise.
56464         * modules/unistd (Makefile.am): Likewise.
56465         * modules/wchar (Makefile.am): Likewise.
56466         * modules/wctype-h (Makefile.am): Likewise.
56467         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
56469 2011-04-05  Bruno Haible  <bruno@clisp.org>
56471         pipe2: Relicense under LGPLv2+.
56472         * modules/pipe2 (License): Change to LGPLv2+.
56473         Requested by Eric Blake, for libvirt.
56475 2011-04-05  Bruce Korb  <bkorb@gnu.org>
56477         bootstrap: compute gnulib_extra_files after updating build_aux
56478         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
56479         change build_aux or also supply gnulib_extra_files.  Handle correctly.
56481 2011-04-05  Eric Blake  <eblake@redhat.com>
56483         bootstrap: preserve git whitelist item sorting
56484         * build-aux/bootstrap (sort_patterns): New function.
56485         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
56487 2011-04-05  Simon Josefsson  <simon@josefsson.org>
56489         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
56490         sc_space_tab check.
56492 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
56494         areadlink, areadlinkat: rewrite in terms of careadlinkat
56495         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
56496         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
56497         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
56498         (malloc, realloc): Remove #undefs.
56499         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
56500         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
56501         readlink, ssize_t, stdint, unistd.
56502         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
56503         areadlink, stdint.
56505         careadlinkat: new module
56506         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
56507         * modules/careadlinkat: New files, written by me with
56508         a review and feedback from Ben Pfaff in
56509         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
56511 2011-04-01  Bruno Haible  <bruno@clisp.org>
56513         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
56514         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
56515         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
56516         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
56517         Reported by Bruce Korb <bruce.korb@gmail.com>.
56519 2011-04-01  Bruno Haible  <bruno@clisp.org>
56521         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
56522         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
56523         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
56524         * modules/wcpcpy (Depends-on): Add extensions.
56525         * modules/wcpncpy (Depends-on): Likewise.
56526         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
56527         systems.
56528         * doc/posix-functions/wcpncpy.texi: Likewise.
56529         * doc/posix-functions/wcwidth.texi: Likewise.
56531 2011-03-31  Eric Blake  <eblake@redhat.com>
56533         nonblocking: fix mingw test failures
56534         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
56535         non-blocking flag on regular file.
56536         (get_nonblocking_flag): Set errno on invalid fd.
56537         * tests/test-nonblocking.c (main): Avoid test failure on
56538         directories if fchdir is not active.
56539         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
56541 2011-03-31  Bruno Haible  <bruno@clisp.org>
56543         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
56544         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
56545         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
56546         Reported by Simon Josefsson <simon@josefsson.org>.
56548 2011-03-31  Bruno Haible  <bruno@clisp.org>
56549         and Eric Blake  <eblake@redhat.com>
56551         nonblocking: new module
56552         * modules/nonblocking: New module.
56553         * modules/nonblocking-tests: Likewise.
56554         * lib/nonblocking.h: New file.
56555         * lib/nonblocking.c: Likewise.
56556         * tests/test-nonblocking.c: New test.
56557         * lib/ioctl.c (ioctl) [mingw]: Update comment.
56559 2011-03-30  Bruno Haible  <bruno@clisp.org>
56561         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
56562         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
56563         instead of 'printf' format for GCC >= 4.4.
56564         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
56565         (fprintf, printf, vfprintf, vprintf): Declare with
56566         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
56567         the system's vfprintf() function.
56568         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
56570 2011-03-30  Eric Blake  <eblake@redhat.com>
56572         passfd: fix scoping bug
56573         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
56574         before sendmsg/recvmsg.
56576         passfd: standardize coding conventions
56577         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
56578         can be learned at compile time.
56579         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
56580         ifdefs.
56581         (sendfd, recvfd): Follow gnulib code conventions.
56583         passfd: fix incorrect sendmsg arguments
56584         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
56585         incorrect msg_controllen value.
56586         * modules/passfd-tests (Depends-on): Check for alarm.
56587         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
56588         Reported by Bastien ROUCARIES.
56590 2011-03-30  Bruno Haible  <bruno@clisp.org>
56592         c-strcasestr: Relicense under LGPLv2+.
56593         * modules/c-strcasestr (License): Change to LGPLv2+.
56594         Requested by Eric Blake, for libvirt.
56596 2011-03-30  Simon Josefsson  <simon@josefsson.org>
56598         * users.txt: Add libidn2.  Fix libtasn1 link.
56600 2011-03-30  Jim Meyering  <meyering@redhat.com>
56602         tests: readlink* ("",... fails with EINVAL on newer kernels
56603         readlink and readlinkat have typically failed with ENOENT for
56604         the invalid, empty file name,  "".  However, with the advent
56605         of linux-2.6.39, they fail with EINVAL.
56606         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
56607         when operating on the empty file name.
56608         * tests/test-readlink.h (test_readlink): Likewise.
56610 2011-03-29  Bruno Haible  <bruno@clisp.org>
56612         Relicense some modules under LGPLv2+, for libidn2.
56613         * modules/array-mergesort (License): Change to LGPLv2+.
56614         * modules/c-strcaseeq (License): Likewise.
56615         * modules/striconveh (License): Likewise.
56616         * modules/striconveha (License): Likewise.
56617         * modules/uniconv/base (License): Likewise.
56618         * modules/uniconv/u8-conv-from-enc (License): Likewise.
56619         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
56620         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
56621         * modules/unictype/base (License): Likewise.
56622         * modules/unictype/bidiclass-of (License): Likewise.
56623         * modules/unictype/category-M (License): Likewise.
56624         * modules/unictype/category-none (License): Likewise.
56625         * modules/unictype/category-of (License): Likewise.
56626         * modules/unictype/category-test (License): Likewise.
56627         * modules/unictype/category-test-withtable (License): Likewise.
56628         * modules/unictype/combining-class (License): Likewise.
56629         * modules/unictype/joiningtype-of (License): Likewise.
56630         * modules/unictype/scripts (License): Likewise.
56631         * modules/uninorm/base (License): Likewise.
56632         * modules/uninorm/canonical-decomposition (License): Likewise.
56633         * modules/uninorm/composition (License): Likewise.
56634         * modules/uninorm/decompose-internal (License): Likewise.
56635         * modules/uninorm/decomposition-table (License): Likewise.
56636         * modules/uninorm/nfc (License): Likewise.
56637         * modules/uninorm/nfd (License): Likewise.
56638         * modules/uninorm/u32-normalize (License): Likewise.
56639         * modules/unistr/base (License): Likewise.
56640         * modules/unistr/u32-cpy (License): Likewise.
56641         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
56642         * modules/unistr/u32-to-u8 (License): Likewise.
56643         * modules/unistr/u32-uctomb (License): Likewise.
56644         * modules/unistr/u8-check (License): Likewise.
56645         * modules/unistr/u8-mblen (License): Likewise.
56646         * modules/unistr/u8-mbtouc (License): Likewise.
56647         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
56648         * modules/unistr/u8-mbtoucr (License): Likewise.
56649         * modules/unistr/u8-prev (License): Likewise.
56650         * modules/unistr/u8-strlen (License): Likewise.
56651         * modules/unistr/u8-to-u32 (License): Likewise.
56652         * modules/unistr/u8-uctomb (License): Likewise.
56653         * modules/unitypes (License): Likewise.
56654         Requested by Simon Josefsson.
56656 2011-03-29  Simon Josefsson  <simon@josefsson.org>
56658         lib-symbol-visibility: Add a notice.
56659         * modules/lib-symbol-visibility (Notice): New field.
56661 2011-03-29  Bruno Haible  <bruno@clisp.org>
56663         getaddrinfo: Doc fix.
56664         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
56665         section "fixed in Gnulib".
56667 2011-03-28  Simon Josefsson  <simon@josefsson.org>
56669         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
56670         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
56672 2011-03-26  Bruno Haible  <bruno@clisp.org>
56674         unictype/property-byname: Reduce the number of load-time relocations.
56675         * lib/unictype/pr_byname.c: Include <stdlib.h>.
56676         (UC_PROPERTY_INDEX_*): New enumeration values.
56677         (uc_property_byname): Convert an index from the lookup table to an
56678         uc_property_t.
56679         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
56680         values.
56682 2011-03-26  Bruno Haible  <bruno@clisp.org>
56684         unictype/property-byname: Allow omitted word separators and aliases.
56685         * lib/unictype/pr_byname.gperf: Add property names without word
56686         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
56687         for 'space'.
56689 2011-03-26  Bruno Haible  <bruno@clisp.org>
56691         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
56692         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
56693         also hyphens to space.
56694         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
56695         without spaces.
56696         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
56698 2011-03-26  Bruno Haible  <bruno@clisp.org>
56700         unictype/joiningtype-byname: Recognize long names as well.
56701         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
56702         a long name.
56703         * lib/unictype/joiningtype_byname.c: Include <string.h>,
56704         unictype/joiningtype_byname.h.
56705         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
56706         * lib/unictype/joiningtype_byname.gperf: New file.
56707         * modules/unictype/joiningtype-byname (Files): Add
56708         lib/unictype/joiningtype_byname.gperf.
56709         (Depends-on): Add gperf.
56710         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
56711         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
56712         long names.
56714         Tests for module 'unictype/joiningtype-longname'.
56715         * modules/unictype/joiningtype-longname-tests: New file.
56716         * tests/unictype/test-joiningtype_longname.c: New file.
56718         New module 'unictype/joiningtype-longname'.
56719         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
56720         * lib/unictype/joiningtype_longname.c: New file.
56721         * modules/unictype/joiningtype-longname: New file.
56722         * modules/unictype/joiningtype-all (Depends-on): Add
56723         unictype/joiningtype-longname.
56725 2011-03-26  Bruno Haible  <bruno@clisp.org>
56727         unictype/bidiclass-byname: Recognize long names as well.
56728         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
56729         name.
56730         * lib/unictype/bidi_byname.c: Include <string.h>,
56731         unictype/bidi_byname.h.
56732         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
56733         * lib/unictype/bidi_byname.gperf: New file.
56734         * modules/unictype/bidiclass-byname (Files): Add
56735         lib/unictype/bidi_byname.gperf.
56736         (Depends-on): Add gperf.
56737         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
56738         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
56739         long names.
56741         Tests for module 'unictype/bidiclass-longname'.
56742         * modules/unictype/bidiclass-longname-tests: New file.
56743         * tests/unictype/test-bidi_longname.c: New file.
56745         New module 'unictype/bidiclass-longname'.
56746         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
56747         * lib/unictype/bidi_longname.c: New file.
56748         * modules/unictype/bidiclass-longname: New file.
56749         * modules/unictype/bidiclass-all (Depends-on): Add
56750         unictype/bidiclass-longname.
56752 2011-03-26  Bruno Haible  <bruno@clisp.org>
56754         unictype/bidi*: Rename modules.
56755         * modules/unictype/bidiclass-all: Renamed from
56756         modules/unictype/bidicategory-all.
56757         * modules/unictype/bidiclass-name: Renamed from
56758         modules/unictype/bidiclass-name.
56759         (Description): Update.
56760         * modules/unictype/bidiclass-name-tests: Renamed from
56761         modules/unictype/bidicategory-name-tests.
56762         * modules/unictype/bidiclass-byname: Renamed from
56763         modules/unictype/bidicategory-byname.
56764         (Description): Update.
56765         * modules/unictype/bidiclass-byname-tests: Renamed from
56766         modules/unictype/bidicategory-byname-tests.
56767         * modules/unictype/bidiclass-of: Renamed from
56768         modules/unictype/bidicategory-of.
56769         (Description): Update.
56770         * modules/unictype/bidiclass-of-tests: Renamed from
56771         modules/unictype/bidicategory-of-tests.
56772         * modules/unictype/bidiclass-test: Renamed from
56773         modules/unictype/bidicategory-test.
56774         (Description): Update.
56775         * modules/unictype/bidiclass-test-tests: Renamed from
56776         modules/unictype/bidicategory-test-tests.
56777         * modules/unictype/bidicategory-all: New file, a simple redirection.
56778         * modules/unictype/bidicategory-name: Likewise.
56779         * modules/unictype/bidicategory-byname: Likewise.
56780         * modules/unictype/bidicategory-of: Likewise.
56781         * modules/unictype/bidicategory-test: Likewise.
56782         * modules/unictype/property-bidi-* (Dependencies): Update.
56783         * lib/unictype/bidi_*.c: Update comment.
56785 2011-03-26  Bruno Haible  <bruno@clisp.org>
56787         unictype/bidi*: Rename functions, part 2.
56788         * modules/unictype/bidicategory-name (configure.ac): Update required
56789         libunistring version.
56790         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
56792 2011-03-25  Bruno Haible  <bruno@clisp.org>
56794         New module 'unictype/combining-class-all'.
56795         * modules/unictype/combining-class-all: New file.
56797         Tests for module 'unictype/combining-class-byname'.
56798         * modules/unictype/combining-class-byname-tests: New file.
56799         * tests/unictype/test-combiningclass_byname.c: New file.
56801         New module 'unictype/combining-class-byname'.
56802         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
56803         * lib/unictype/combiningclass_byname.c: New file.
56804         * lib/unictype/combiningclass_byname.gperf: New file.
56805         * modules/unictype/combining-class-byname: New file.
56807         Tests for module 'unictype/combining-class-longname'.
56808         * modules/unictype/combining-class-longname-tests: New file.
56809         * tests/unictype/test-combiningclass_longname.c: New file.
56811         New module 'unictype/combining-class-longname'.
56812         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
56813         * lib/unictype/combiningclass_longname.c: New file.
56814         * modules/unictype/combining-class-longname: New file.
56816         Tests for module 'unictype/combining-class-name'.
56817         * modules/unictype/combining-class-name-tests: New file.
56818         * tests/unictype/test-combiningclass_name.c: New file.
56820         New module 'unictype/combining-class-name'.
56821         * lib/unictype.in.h (uc_combining_class_name): New declaration.
56822         * lib/unictype/combiningclass_name.c: New file.
56823         * modules/unictype/combining-class-name: New file.
56825 2011-03-25  Bruno Haible  <bruno@clisp.org>
56827         unictype/combining-class: Rename source files.
56828         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
56829         of unictype/combining.h.
56830         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
56831         Update.
56832         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
56833         * modules/unictype/combining-class (Description): Fix.
56834         (Files, Makefile.am): Update.
56835         * tests/unictype/test-combiningclass.c: Renamed from
56836         tests/unictype/test-combining.c.
56837         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
56839 2011-03-25  Bruno Haible  <bruno@clisp.org>
56841         unictype: Update list of canonical combining classes.
56842         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
56844 2011-03-25  Bruno Haible  <bruno@clisp.org>
56846         unictype/category-byname: Recognize long names as well.
56847         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
56848         a long name.
56849         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
56850         unictype/categ_byname.h.
56851         (UC_CATEGORY_INDEX_*): New enumeration values.
56852         (uc_general_category_byname): Use uc_general_category_lookup and
56853         convert from index to value.
56854         * lib/unictype/categ_byname.gperf: New file.
56855         * modules/unictype/category-byname (Files): Add
56856         lib/unictype/categ_byname.gperf.
56857         (Depends-on): Add gperf.
56858         (Makefile.am): Add rule for generating unictype/categ_byname.h.
56859         * tests/unictype/test-categ_byname.c (main): Test the recognition of
56860         long names.
56862         Tests for module 'unictype/category-longname'.
56863         * modules/unictype/category-longname-tests: New file.
56864         * tests/unictype/test-categ_longname.c: New file.
56866         New module 'unictype/category-longname'.
56867         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
56868         * lib/unictype/categ_longname.c: New file.
56869         * modules/unictype/category-longname: New file.
56870         * modules/unictype/category-all (Depends-on): Add it.
56872 2011-03-25  Bruno Haible  <bruno@clisp.org>
56874         Tests for module 'unictype/category-LC'.
56875         * modules/unictype/category-LC-tests: New file.
56876         * tests/unictype/test-categ_LC.c: New file, automatically generated.
56878         New module 'unictype/category-LC'.
56879         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
56880         (UC_CATEGORY_LC): New declaration.
56881         (UC_CASED_LETTER): New macro.
56882         * lib/gen-uni-tables.c (is_category_LC): New function.
56883         (output_categories): Also handle category LC.
56884         (UC_CATEGORY_MASK_LC): New enumeration value.
56885         (general_category_byname): Also handle category LC.
56886         * lib/unictype/categ_LC.c: New file.
56887         * lib/unictype/categ_LC.h: New file, automatically generated.
56888         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
56889         category LC.
56890         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
56891         * modules/unictype/category-LC: New file.
56892         * modules/unictype/category-byname (Depends-on): Add
56893         unictype/category-LC.
56894         * modules/unictype/category-all (Depends-on): Likewise.
56896 2011-03-25  Eric Blake  <eblake@redhat.com>
56898         xmalloc: revert yesterday's regression
56899         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
56900         realloc's underlying behavior (allowing allocation of zero-size
56901         objects, especially if malloc-gnu is also in use).
56903 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
56905         maint.mk: add missing version to VC-tag
56906         * top/maint.mk: git tag was missing actual tag name; add it.
56908         valgrind: do leak checking, and exit with code 1 on error (not 0)
56909         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
56910         to VALGRIND.
56912 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
56914         posix-modules: say what it does.
56915         * posix-modules: Add a line to the --help output saying what it does.
56917 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
56919         xmalloc: Do not leak if underlying realloc is C99 compatible.
56920         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
56921         This avoids a leak on C99-based systems.  See
56922         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
56924 2011-03-24  Eric Blake  <eblake@redhat.com>
56926         realloc: document portability problem
56927         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
56928         passing 0 size to realloc.
56930 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
56932         doc: update users.txt
56933         * users.txt: Add cvsps, tmpwatch
56935 2011-03-23  Matt Rice  <ratmice@gmail.com>
56937         doc: update users.txt
56938         * users.txt: Add gdb.
56940 2011-03-23  Jim Meyering  <meyering@redhat.com>
56942         doc: update users.txt
56943         Looking through matches up to the following URL (there are still
56944         several more pages), I found several projects that use gnulib:
56945         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
56946         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
56947         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
56949 2011-03-22  Bruno Haible  <bruno@clisp.org>
56951         unictype/bidi*: Rename functions.
56952         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
56953         uc_bidi_class, uc_is_bidi_class): New declarations.
56954         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
56955         uc_bidi_category_byname.
56956         (uc_bidi_category_byname): New function.
56957         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
56958         u_bidi_category_name.
56959         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
56960         (uc_bidi_category_name): New function.
56961         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
56962         uc_bidi_category.
56963         (uc_bidi_category): New function.
56964         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
56965         uc_is_bidi_category. Invoke uc_bidi_class.
56966         (uc_is_bidi_category): New function.
56967         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
56968         instead of uc_bidi_category_byname.
56969         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
56970         instead of uc_bidi_category_name.
56971         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
56972         uc_bidi_category.
56973         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
56974         instead of uc_is_bidi_category.
56976 2011-03-21  Bruno Haible  <bruno@clisp.org>
56978         New module 'unictype/joininggroup-all'.
56979         * modules/unictype/joininggroup-all: New file.
56981         Tests for module 'unictype/joininggroup-of'.
56982         * modules/unictype/joininggroup-of-tests: New file.
56983         * tests/unictype/test-joininggroup_of.c: New file.
56984         * tests/unictype/test-joininggroup_of.h: New file, automatically
56985         generated by gen-uni-tables.
56987         New module 'unictype/joininggroup-of'.
56988         * modules/unictype/joininggroup-of: New file.
56989         * lib/unictype/joininggroup_of.c: New file.
56990         * lib/unictype/joininggroup_of.h: New file, automatically generated by
56991         gen-uni-tables.
56993         Tests for module 'unictype/joininggroup-byname'.
56994         * modules/unictype/joininggroup-byname-tests: New file.
56995         * tests/unictype/test-joininggroup_byname.c: New file.
56997         New module 'unictype/joininggroup-byname'.
56998         * modules/unictype/joininggroup-byname: New file.
56999         * lib/unictype/joininggroup_byname.c: New file.
57000         * lib/unictype/joininggroup_byname.gperf: New file.
57002         Tests for module 'unictype/joininggroup-name'.
57003         * modules/unictype/joininggroup-name-tests: New file.
57004         * tests/unictype/test-joininggroup_name.c: New file.
57006         New module 'unictype/joininggroup-name'.
57007         * modules/unictype/joininggroup-name: New file.
57008         * lib/unictype/joininggroup_name.c: New file.
57009         * lib/unictype/joininggroup_name.h: New file.
57011         New module 'unictype/joiningtype-all'.
57012         * modules/unictype/joiningtype-all: New file.
57014         Tests for module 'unictype/joiningtype-of'.
57015         * modules/unictype/joiningtype-of-tests: New file.
57016         * tests/unictype/test-joiningtype_of.c: New file.
57017         * tests/unictype/test-joiningtype_of.h: New file, automatically
57018         generated by gen-uni-tables.
57020         New module 'unictype/joiningtype-of'.
57021         * modules/unictype/joiningtype-of: New file.
57022         * lib/unictype/joiningtype_of.c: New file.
57023         * lib/unictype/joiningtype_of.h: New file, automatically generated by
57024         gen-uni-tables.
57026         Tests for module 'unictype/joiningtype-byname'.
57027         * modules/unictype/joiningtype-byname-tests: New file.
57028         * tests/unictype/test-joiningtype_byname.c: New file.
57030         New module 'unictype/joiningtype-byname'.
57031         * modules/unictype/joiningtype-byname: New file.
57032         * lib/unictype/joiningtype_byname.c: New file.
57034         Tests for module 'unictype/joiningtype-name'.
57035         * modules/unictype/joiningtype-name-tests: New file.
57036         * tests/unictype/test-joiningtype_name.c: New file.
57038         New module 'unictype/joiningtype-name'.
57039         * modules/unictype/joiningtype-name: New file.
57040         * lib/unictype/joiningtype_name.c: New file.
57042         unictype: Add support for Arabic shaping properties.
57043         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
57044         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
57045         declarations.
57046         (UC_JOINING_GROUP_*): New enumeration values.
57047         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
57048         declarations.
57049         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
57050         (unicode_joining_type): New variable.
57051         (UC_JOINING_GROUP_*): New enumeration values.
57052         (unicode_joining_group): New variable.
57053         (fill_arabicshaping, joining_type_as_c_identifier,
57054         output_joining_type_test, output_joining_type,
57055         joining_group_as_c_identifier, output_joining_group_test,
57056         output_joining_group): New functions.
57057         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
57058         fill_arabicshaping and output_joining_type_test, output_joining_type,
57059         output_joining_group_test, output_joining_group.
57060         Reported by Simon Josefsson.
57062 2011-03-21  Jim Meyering  <meyering@redhat.com>
57064         strftime: fix a bug in yesterday's change
57065         * lib/strftime.c (add): Accommodate width's initial value of -1.
57066         Otherwise, nstrftime would copy uninitialized data into
57067         the result buffer.
57069 2011-03-21  Jim Meyering  <meyering@redhat.com>
57071         tests: add strftime-tests module
57072         * tests/test-strftime.c: New file.
57073         * modules/strftime-tests: New module.
57075 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
57077         strftime: don't assume a byte count fits in 'int'
57078         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
57079         found this problem by static analysis, using gcc -Wstrict-overflow
57080         (GCC 4.5.2, x86-64).  This reported an optimization that depended
57081         on an integer overflow having undefined behavior, but it turns out
57082         that the argument is a size, which might not fit in 'int' anyway,
57084 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
57086         stdio: don't require ignore_value around fwrite
57088         This patch works around libc bug 11959
57089         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
57090         Without this patch, applications must often write
57091         ignore_value (fwrite (...)) even though the ignore_value is
57092         not helpful here.  It's common to write many objects, using
57093         fwrite/printf/etc., and then use ferror to detect output error.
57095         I considered making this patch optional, but decided against it,
57096         because libc is obviously being inconsistent here: there is no
57097         reason libc should insist that user code must inspect fwrite
57098         return's value without also insisting that it inspect printf's,
57099         putchar's, etc.  If user code wants to have a strict style where
57100         all these functions' values are checked (so that ferror need not
57101         be checked), we could add support for that style in a new gnulib
57102         module, but in the meantime it's better to be consistent and to
57103         support common usage.
57105         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
57106         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
57107         that we are compiling in checking mode, and if not C++, and
57108         if not already wrapping fwrite for some other reason.
57109         (fwrite): #define to rpl_fwrite if the latter is defined.
57111 2011-03-20  Bruno Haible  <bruno@clisp.org>
57113         verror: Fix compilation error introduced on 2011-02-13.
57114         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
57115         instead of __attribute__.
57116         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
57118 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
57119             Bruno Haible  <bruno@clisp.org>
57121         socklen: do not depend on sys_socket
57122         While trying to modify Emacs to use gnulib's socklen module,
57123         I discovered a circular dependency: socklen depends on sys_socket
57124         and vice versa.  Emacs can use socklen, but it does not need
57125         sys_socket because it has its own substitute for sys/socket.h.
57126         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
57127         gl_TYPE_SOCKLEN_T.
57128         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
57129         gl_PREREQ_SYS_H_SOCKET.
57130         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
57131         gl_PREREQ_SYS_H_SOCKET.
57132         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
57133         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
57134         * modules/socklen (Depends-on): Do not depend on sys_socket.
57135         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
57137 2011-03-20  Jim Meyering  <meyering@redhat.com>
57139         maint.mk: sort file names *after* new transformation
57140         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
57141         prefix would have led to an unwarranted failure in GNU parted.
57142         Sort after that transformation.
57144 2011-03-19  Jim Meyering  <meyering@redhat.com>
57146         maint.mk: fix po-file syntax-check rule
57147         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
57148         Patch by Bruno Haible.
57150 2011-03-19  Bruno Haible  <bruno@clisp.org>
57152         socklen: Update comment.
57153         * m4/socklen.m4: Update comment about platforms.
57155 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57156             Bruno Haible  <bruno@clisp.org>
57158         inet_ntop, inet_pton: Simplify.
57159         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
57160         documented to provide socklen_t and we already depend on sys_socket.
57161         * modules/inet_pton (Depends-on): Likewise.
57162         * lib/arpa_inet.in.h: Adjust comment.
57164 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57165             Bruno Haible  <bruno@clisp.org>
57167         netdb: Simplify.
57168         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
57169         documented to provide socklen_t and we already depend on sys_socket.
57170         * lib/netdb.in.h: Adjust comment.
57172 2011-03-19  Bruno Haible  <bruno@clisp.org>
57174         sys_socket, netdb: Document problem with socklen_t.
57175         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
57176         platforms.
57177         * doc/posix-headers/netdb.texi: Likewise.
57179 2011-03-18  Eric Blake  <eblake@redhat.com>
57181         maint.mk: let po check work in VPATH build
57182         * top/maint.mk (po_file): Allow cfg.mk override.
57183         (sc_po_check): Allow VPATH use.
57184         Reported by Jiri Denemark.
57186 2011-03-16  Jim Meyering  <meyering@redhat.com>
57188         maint.mk: allow fine-grained syntax-check exclusion via Make variables
57189         Before, you would have had to create one .x-sc_ file per rule in order
57190         to exempt offending files.  Now, you may instead use a Make variable --
57191         usually defined in cfg.mk -- whose name identifies the affected rule.
57192         * top/maint.mk (_sc_excl): Define.
57193         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
57194         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
57196 2011-03-13  Bruno Haible  <bruno@clisp.org>
57198         ignore-value tests: Avoid warnings.
57199         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
57200         empty for gcc < 3.4.
57202 2011-03-13  Bruno Haible  <bruno@clisp.org>
57204         passfd: Fix link error on Solaris.
57205         * modules/passfd (Description): Correct.
57206         (Depends-on): Add socketlib.
57207         (Link): New section.
57208         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
57210 2011-03-13  Bruno Haible  <bruno@clisp.org>
57212         passfd: Fix link error on AIX 5.2.
57213         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
57215 2011-03-13  Bruno Haible  <bruno@clisp.org>
57217         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
57218         * lib/sys_socket.in.h: Include <stddef.h>.
57219         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
57220         CMSG_FIRSTHDR. Remove unused variable.
57222 2011-03-13  Bruno Haible  <bruno@clisp.org>
57224         passfd: Fix compilation error on OpenBSD.
57225         * lib/passfd.c: Include <sys/uio.h>.
57227 2011-03-13  Bruno Haible  <bruno@clisp.org>
57229         passfd test: Fix warnings.
57230         * tests/test-passfd.c: Include <sys/wait.h>.
57231         (main): Fix typo.
57233 2011-03-13  Bruno Haible  <bruno@clisp.org>
57235         passfd module, part 4, tweaks.
57236         * tests/test-passfd.c: Reorder includes.
57237         (main): Fix perror and printf calls.
57239 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
57241         passfd module, part 4.
57242         * modules/passfd-tests: New file.
57243         * tests/test-passfd.c: New file.
57245 2011-03-13  Jim Meyering  <meyering@redhat.com>
57247         Makefile: rely on GNU make; derive syntax-check rule names
57248         Rather than requiring that each sc_ rule be listed as a dependent
57249         of "check", use features of GNU make to derive the list.
57250         * Makefile (syntax-check-rules): Define.
57251         (check): Depend on the new variable, not the hard-coded list.
57253 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
57254             Bruno Haible  <bruno@clisp.org>
57256         passfd module, part 3.
57257         * lib/passfd.h (recvfd): Add a flags argument.
57258         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
57259         (recvfd): Add a flags argument.
57260         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
57261         exists.
57262         * modules/passfd (Depends-on): Add cloexec.
57263         Suggested by Eric Blake.
57265 2011-03-13  Bruno Haible  <bruno@clisp.org>
57267         passfd module, part 2, tweaks.
57268         * modules/passfd (Files): Reorder.
57269         (Depends-on): Remove errno.
57270         (Include): Remove <sys/socket.h>, <sys/un.h>.
57271         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
57272         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
57273         specification header. Include <sys/socket.h> always. Don't include
57274         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
57275         (sendfd): Clarify that it sets errno when it fails.
57276         (recvfd): Fix specification.
57278 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
57280         passfd module, part 2.
57281         * modules/passfd: New file.
57282         * lib/passfd.h: New file.
57283         * lib/passfd.c: New file.
57285 2011-03-12  Bruno Haible  <bruno@clisp.org>
57287         wcswidth, mbswidth: Avoid integer overflow.
57288         * lib/wcswidth.c: Include <limits.h>.
57289         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
57290         * lib/mbswidth.c: Include <limits.h>.
57291         (mbsnwidth): Avoid 'int' overflow.
57292         Reported by Jim Meyering.
57294 2011-03-12  Bruno Haible  <bruno@clisp.org>
57296         futimens, utimensat: Avoid endless recursion on Solaris 10.
57297         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
57298         Solaris.
57299         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
57300         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
57302 2011-03-11  Jim Meyering  <meyering@redhat.com>
57304         maint.mk: relax a regexp to accommodate other formatting styles
57305         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
57306         between "ngettext" and the following "(".
57308 2011-03-11  Pádraig Brady  <P@draigBrady.com>
57310         maint.mk: suppress a false positive warning
57311         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
57312         diagnostics are marked with ngettext.
57314 2011-03-10  Eric Blake  <eblake@redhat.com>
57316         wchar: add explicit dependencies, for Tru64
57317         * modules/mbmemcasecoll (Depends-on): Add wchar.
57318         * modules/mbtowc (Depends-on): Likewise.
57319         * modules/vasnprintf (Depends-on): Likewise.
57320         * modules/unistdio/u-printf-args (Depends-on): Likewise.
57321         * modules/wctomb (Depends-on): Likewise.
57322         Reported by Peter O'Gorman.
57324 2011-03-08  Bruno Haible  <bruno@clisp.org>
57326         passfd module, part 1, tweaks.
57327         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
57328         Improve indentation. Improve AC_MSG_CHECKING messages.
57329         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
57330         gl_SOCKET_FAMILIES.
57332 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
57334         passfd module, part 1.
57335         * m4/afunix.m4: New file.
57336         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
57337         sockets.
57339 2011-03-08  Bruno Haible  <bruno@clisp.org>
57341         regex-quote: New API.
57342         * lib/regex-quote.h: Include <stdbool.h>.
57343         (struct regex_quote_spec): New type.
57344         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
57345         New declarations.
57346         (regex_quote_length, regex_quote_copy, regex_quote): Take a
57347         'const struct regex_quote_spec *' argument.
57348         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
57349         (pcre_special): New constant.
57350         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
57351         New functions.
57352         (regex_quote_length, regex_quote_copy, regex_quote): Take a
57353         'const struct regex_quote_spec *' argument.
57354         * modules/regex-quote (Depends-on): Add stdbool.
57355         * tests/test-regex-quote.c (check): Update for new API. Add test for
57356         anchored results.
57357         * NEWS: Mention the API change.
57358         Reported by Reuben Thomas and Eric Blake.
57360 2011-03-06  Bruno Haible  <bruno@clisp.org>
57362         regex-quote: Fix creation of POSIX extended regular expressions.
57363         * lib/regex-quote.c (ere_special): Add grouping and alternation
57364         operators.
57366 2011-03-05  Bruno Haible  <bruno@clisp.org>
57368         doc: Improve doc regarding autopoint vs. gnulib.
57369         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
57370         disable autopoint while running autoreconf.
57371         Suggested by Ralf Wildenhues.
57373 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57375         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
57376         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
57378 2011-03-03  Bruce Korb  <bkorb@gnu.org>
57380         parse-duration: remove xalloc.h dependency
57381         * lib/parse-duration.c (parse_period): handle NULL return from
57382         strdup instead of calling xstrdup().
57383         * modules/parse-duration: remove "xalloc" dependency
57385 2011-03-03  Matthew Booth  <mbooth@redhat.com>
57387         bootstrap: honor m4_base when running aclocal
57388         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
57390 2011-03-02  Jim Meyering  <meyering@redhat.com>
57392         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
57393         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
57394         on request from Matt Booth.
57396 2011-03-01  Eric Blake  <eblake@redhat.com>
57398         test-link: work on Hurd
57399         * tests/test-link.h (test_link): Hurd rejects linking directories
57400         with EISDIR instead of the POSIX-mandated EPERM.
57402 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
57404         stdio: simplify by moving files to printf-posix, sigpipe
57405         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
57406         since this symbol is needed only if printf is replaced.
57407         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
57408         Require gl_ASM_SYMBOL_PREFIX.
57409         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
57410         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
57411         (Depends-on): Add 'raise'.
57412         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
57413         * modules/stdio (Files): Remove lib/stdio-write.c,
57414         m4/asm-underscore.m4.
57415         (Depends-on): Remove 'raise'.
57417         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
57418         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
57419         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
57420         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
57422 2011-02-28  Bruno Haible  <bruno@clisp.org>
57424         localcharset: Assume ANSI C behaviour of free().
57425         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
57426         calling free().
57427         Suggested by Simon Josefsson <simon@josefsson.org>.
57429 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
57430             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
57431             Bruno Haible  <bruno@clisp.org>  (tiny change)
57433         On Cygwin, use /proc file system instead of win32 API.
57434         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
57435         Win32 file names.
57436         (DllMain): Simplify by removing Cygwin specific code.
57437         (find_shared_library_fullname): Use Linux specific implementation also
57438         for Cygwin.
57439         (get_shared_library_fullname): Update accordingly.
57440         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
57441         Win32 file names.
57442         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
57443         Cygwin specific code.
57445 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
57446             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
57448         Fix OpenMP flag detection for various Fortran compilers.
57449         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
57450         OpenMP-conditional compilation construct, to force compile
57451         failure with missing OpenMP flag.
57452         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
57454 2011-02-25  Eric Blake  <eblake@redhat.com>
57456         strstr: expand test coverage
57457         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
57458         compilation.
57459         * tests/test-memmem.c (main): Duplicate tests.
57460         * tests/test-strcasestr.c (main): Likewise.
57461         * tests/test-c-strcasestr.c (main): Likewise.
57463 2011-02-25  Jim Meyering  <meyering@redhat.com>
57465         maint.mk: detect missing-NL-at-EOF, too
57466         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
57467         it also detects when a file lacks a newline at EOF.
57468         (require_exactly_one_NL_at_EOF_): Renamed from
57469         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
57470         since people may well have .x-sc_... file names tied to the
57471         existing name.  Suggested by Eric Blake.
57473 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
57475         dirname: move m4/dos.m4 functionality into lib/dosname.h
57477         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
57478         extracts symbols from it, puts them into config.h; but it's much
57479         easier to use the symbols directly.  filename.h already does this,
57480         but it disagrees with dos.m4 in some respects.  This patch
57481         introduces a different include file dosname.h that packages up
57482         dos.m4, and then later we can work on merging filename.h and
57483         dosname.h.  Applications that need only the easy-to-configure
57484         symbols should consider including dosname.h rather than dirname.h.
57485         * NEWS: Mention incompatible changes.
57486         * m4/dos.m4: Remove.
57487         * lib/dosname.h, modules/dosname: New files.
57488         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
57489         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
57490         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
57491         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
57492         Include dosname.h, not dirname.h.
57493         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
57494         Include dosname.h, for definitions of symbols like ISSLASH
57495         that used to be in config.h.
57496         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
57497         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
57498         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
57499         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
57500         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
57501         * modules/rmdir (Files): Likewise.
57502         * modules/stat (Files): Likewise.
57503         * modules/unlink (Files): Likewise.
57504         * modules/dirname-lgpl (Depends-on): Add dosname.
57505         * modules/lstat (Depends-on): Likewise.
57506         * modules/openat (Depends-on): Likewise.
57507         * modules/rmdir (Depends-on): Likewise.
57508         * modules/savewd (Depends-on): Likewise.
57509         * modules/stat (Depends-on): Likewise.
57510         * modules/unlink (Depends-on): Likewise.
57511         * modules/openat (Depends-on): Remove dirname-lgpl.
57512         * modules/savewd (Depends-on): Likewise.
57513         * tests/test-dirname.c: Do not use removed symbols like
57514         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
57515         the remaining symbols, e.g., ISSLASH ('\\').
57517 2011-02-25  Eric Blake  <eblake@redhat.com>
57519         strstr: revert patches that introduced bug and pessimization
57520         * lib/str-two-way.h: Add another reference.
57521         (two_way_short_needle, two_way_long_needle): Revert changes from
57522         2011-02-24; they pessimize search speed.
57523         (critical_factorization): Partially revert changes from
57524         2010-06-22; they violate the requirement that the left half of the
57525         needle be smaller than the period of the needle.
57527 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
57529         filenamecat: remove unnecessary dependency on dirname-lgpl
57530         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
57531         is no direct dependency, just an indirect one via filenamecat-lgpl.
57533         remove: remove unnecessary use of m4/dos.m4
57534         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
57535         * modules/remove (FILES): Remove m4/dos.m4.
57537         * lib/openat-proc.c: Don't include dirname.h; not needed.
57539         backupfile: remove unnecessary use of m4/dos.m4
57540         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
57541         of its symbols are used by the backupfile code.  backupfile.c does
57542         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
57543         for the rare case of programs that want all their backup file
57544         names to live within 8+3 limits, and dos.m4 doesn't address that.
57545         * modules/backupfile (Files): Remove m4/dos.m4.
57547 2011-02-24  Jim Meyering  <meyering@redhat.com>
57549         strstr: fix a bug whereby strstr would mistakenly return NULL
57550         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
57551         in period calculation.
57552         (two_way_long_needle): Likewise.
57553         The original problem was reported by Mike Stump in
57554         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
57555         Ralf Wildenhues provided the short needle and haystack.
57556         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
57557         Add a more involved test to trigger the bug in two_way_long_needle.
57559 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
57561         gnulib-tool: remove use of bold display in help screen
57562         * gnulib-tool (func_usage): Do not use bold display anymore in the
57563         help screen.  That was just meant to be a temporary emphasis for a
57564         backward-incompatible change.
57566 2011-02-23  Bruno Haible  <bruno@clisp.org>
57568         Fix misindentation of preprocessor directives.
57569         * lib/argp-namefrob.h: Reindent preprocessor directives.
57570         * lib/getopt_int.h (struct _getopt_data): Likewise.
57571         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
57572         * lib/vasnprintf.c (decode_long_double): Likewise.
57573         * tests/test-argmatch.c: Insert blank lines, for clarity.
57574         * tests/test-exclude.c: Likewise.
57576 2011-02-22  Bruno Haible  <bruno@clisp.org>
57578         ioctl: Fix for MacOS X in 64-bit mode.
57579         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
57580         value.
57581         Suggested by Eric Blake.
57582         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
57584 2011-02-22  Jim Meyering  <meyering@redhat.com>
57586         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
57587         * Makefile (sc_cpp_indent_check): Don't limit the check to files
57588         in lib/.
57590 2011-02-22  Eric Blake  <eblake@redhat.com>
57592         maint: avoid any CDPATH issue
57593         * Makefile (sc_cpp_indent_check): Anchor cd argument.
57595         maint: adjust cpp indentation for my modules, as well
57596         * Makefile (sc_cpp_indent_check): Add my name.
57597         * lib/fbufmode.c: Filter through cppi.
57598         * lib/fpurge.c: Likewise.
57599         * lib/freadable.c: Likewise.
57600         * lib/freading.c: Likewise.
57601         * lib/fwritable.c: Likewise.
57602         * lib/fwriting.c: Likewise.
57603         * lib/sigaction.c: Likewise.
57605 2011-02-22  Jim Meyering  <meyering@redhat.com>
57607         maint: adjust cpp indentation to reflect nesting depth
57608         I.e., in a block of code that begins with an unnested "#if",
57609         put one space between the "#" in column 1 and following token.
57610         For example,
57611         -#include <sys/vfs.h>
57612         +# include <sys/vfs.h>
57613         Do this only in .c files that are part of a module I maintain.
57614         * lib/linkat.c: Filter through cppi.
57615         * lib/nanosleep.c: Likewise.
57616         * lib/openat.c: Likewise.
57617         * lib/openat-die.c: Likewise.
57618         * lib/dup3.c: Likewise.
57619         * lib/fchownat.c: Likewise.
57620         * lib/flock.c: Likewise.
57621         * lib/fsync.c: Likewise.
57622         * lib/fts.c: Likewise.
57623         * lib/getpass.c: Likewise.
57624         * lib/gettimeofday.c: Likewise.
57625         * lib/userspec.c: Likewise.
57626         * Makefile (sc_cpp_indent_check): New rule, to check this.
57628 2011-02-22  Bruno Haible  <bruno@clisp.org>
57630         New module 'wctomb'.
57631         * lib/stdlib.in.h (wctomb): New declaration.
57632         * lib/wctomb.c: New file.
57633         * lib/wctomb-impl.h: New file.
57634         * m4/wctomb.m4: New file.
57635         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
57636         REPLACE_WCTOMB.
57637         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
57638         REPLACE_WCTOMB.
57639         * modules/wctomb: New file.
57640         * tests/test-stdlib-c++.cc: Test signature of wctomb.
57641         * doc/posix-functions/wctomb.texi: Mention the new module.
57642         * modules/wctob (Depends-on): Add wctomb.
57644 2011-02-22  Bruno Haible  <bruno@clisp.org>
57646         New module 'mbtowc'.
57647         * lib/stdlib.in.h (mbtowc): New declaration.
57648         * lib/mbtowc.c: New file.
57649         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
57650         * m4/mbtowc.m4: New file.
57651         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
57652         REPLACE_MBTOWC.
57653         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
57654         REPLACE_MBTOWC.
57655         * modules/mbtowc: New file.
57656         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
57657         * doc/posix-functions/mbtowc.texi: Mention the new module.
57658         * modules/btowc (Depends-on): Add mbtowc.
57660 2011-02-22  Bruno Haible  <bruno@clisp.org>
57662         wcrtomb: Add more tests for native Windows platforms.
57663         * tests/test-wcrtomb-w32-1.sh: New file.
57664         * tests/test-wcrtomb-w32-2.sh: New file.
57665         * tests/test-wcrtomb-w32-3.sh: New file.
57666         * tests/test-wcrtomb-w32-4.sh: New file.
57667         * tests/test-wcrtomb-w32-5.sh: New file.
57668         * tests/test-wcrtomb-w32.c: New file.
57669         * modules/wcrtomb-tests (Files): Add them.
57670         (Makefile.am): Arrange to run these tests.
57671         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
57672         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
57674 2011-02-20  Bruno Haible  <bruno@clisp.org>
57676         wcrtomb: Enhance test.
57677         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
57679 2011-02-20  Bruno Haible  <bruno@clisp.org>
57681         mbrtowc: Tiny optimization.
57682         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
57684 2011-02-20  Jim Meyering  <meyering@redhat.com>
57686         test-exclude.c: remove unmatched #endif
57687         * tests/test-exclude.c: Remove stray #endif, left over from
57688         the change of a week ago.
57690 2011-02-19  Jim Meyering  <meyering@redhat.com>
57692         git-version-gen: skip "-dirty" check when appropriate
57693         * build-aux/git-version-gen: Don't run any git commands when the
57694         version string comes from .tarball-version.  Prior to this, we
57695         would run git update-index --refresh even from a just-unpacked
57696         tarball directory, and that could affect a .git/ directory in a
57697         parent of the build directory.  Reported by Mike Frysinger.
57699 2011-02-19  Bruno Haible  <bruno@clisp.org>
57701         unictype/property-byname: Reduce the size of the 'data' segment.
57702         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
57704 2011-02-19  Bruno Haible  <bruno@clisp.org>
57706         unictype/scripts: Reduce the size of the 'data' segment.
57707         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
57708         '%pic'.
57709         * lib/unictype/scripts_byname.gperf: Regenerated.
57711 2011-02-19  Bruno Haible  <bruno@clisp.org>
57713         stdint: Update documentation.
57714         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
57716 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
57718         stdint: omit redundant check for wchar.h
57719         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
57720         always tests whether wchar.h exists, so remove the now-redundant test.
57722 2011-02-18  Bruno Haible  <bruno@clisp.org>
57724         stdint: Cut dependency to module 'wchar'.
57725         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
57726         include the necessary prerequisites.
57727         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
57728         * modules/stdint (Depends-on): Remove wchar.
57729         (Makefile.am): Substitute HAVE_WCHAR_H.
57730         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
57732 2011-02-18  Eric Blake  <eblake@redhat.com>
57734         longlong: skip, rather than fail, on cross-compilation
57735         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
57736         when cross-compiling; regression from 2011-02-16.
57738 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
57740         * NEWS: Mention 2011-02-08 change to stdlib.
57742 2011-02-17  Bruno Haible  <bruno@clisp.org>
57744         getloadavg: Add comments about platforms.
57745         * m4/getloadavg.m4: Add comment.
57746         * lib/getloadavg.c: Likewise.
57748 2011-02-17  Bruno Haible  <bruno@clisp.org>
57750         getloadavg: Fix link error on Solaris 2.6.
57751         * modules/getloadavg (Link): New section.
57752         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
57753         linking test-getloadavg.
57754         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
57755         getloadavg.
57757 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
57759         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
57760         It was 'int', but this doesn't match the IRIX 6.5 manual.
57761         Suggested by Bruno Haible in
57762         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
57764 2011-02-17  Bruno Haible  <bruno@clisp.org>
57766         havelib: Fix comments.
57767         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
57768         change.
57770 2011-02-17  Bruno Haible  <bruno@clisp.org>
57772         havelib: Update config.rpath.
57773         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
57775 2011-02-17  Bruno Haible  <bruno@clisp.org>
57777         getloadavg test: Add some plausibility checks.
57778         * tests/test-getloadavg.c (check_avg): Print a warning when the value
57779         is improbable.
57781 2011-02-16  Eric Blake  <eblake@redhat.com>
57783         maintainer-makefile: make syntax-check a no-op from tarballs
57784         * top/maint.mk (no-vc-detected): New rule.
57785         (local-checks-available): Use it to avoid hanging if someone tries
57786         'make syntax-check' from a tarball.  Also append to any non-syntax
57787         checks already defined in cfg.mk.
57789 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
57791         longlong: tune, particularly for common case of c99
57793         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
57794         or running anything if c99, or if unsigned long long int does not
57795         work.  In either case, we know the answer without further tests.
57796         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
57797         it at most once, and use its results for both long long int and
57798         unsigned long long int.  This is more likely to be efficient in
57799         the common case where the program wants to check for both long
57800         long int and unsigned long long int.
57801         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
57802         since the answer is already known.
57804 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
57806         getloadavg: set errno
57807         * lib/getloadavg.c: Set errno when returning -1.  If no other
57808         error number looks appropriate, set it to ENOSYS if the getloadavg
57809         looks like it can't possibly ever work, ENOTSUP otherwise.
57810         Suggested by Bruno Haible in
57811         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
57813         getloadavg: trim unused parts and speed up 'configure'
57814         * NEWS: Document this.
57815         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
57816         always compiled if getloadavg is absent.
57817         Move test code to ...
57818         * tests/test-getloadavg.c: New file, containing previous
57819         contents of test from lib/getloadavg.c.  It also contains
57820         suggestions by Bruno Haible in
57821         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
57822         * modules/getloadavg-tests: New file.
57823         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
57824         Do tests in the same order as they're needed for getloadavg.c.
57825         Omit setgid-related tests that generate symbols KMEM_GROUP,
57826         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
57827         Do only the tests that are needed to see whether the system has
57828         getloadavg, moving the other tests into ...
57829         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
57830         NLIST_NAME_UNION; nobody should be using it.  Do not define
57831         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
57832         relevant, as the user of this module shouldn't care how getloadavg
57833         is implemented.
57835         getloadavg: omit unused var
57836         * lib/getloadavg.c (getloadavg): Omit unused local variable.
57838 2011-02-15  Jim Meyering  <meyering@redhat.com>
57840         doc: update users.txt
57841         * users.txt: Update iwhd's URL.
57843 2011-02-13  Bruno Haible  <bruno@clisp.org>
57845         Consistent macro naming for macros that use GCC __attribute__.
57846         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
57847         _ATTRIBUTE_NONNULL_.
57848         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
57849         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
57850         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
57851         ATTRIBUTE_DEPRECATED.
57852         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
57853         ATTRIBUTE_NORETURN.
57854         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
57855         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
57856         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
57857         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
57858         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
57859         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
57860         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
57861         ATTRIBUTE_SENTINEL.
57862         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
57863         ATTRIBUTE_RETURN_CHECK.
57864         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
57865         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
57866         ATTRIBUTE_NORETURN.
57867         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
57868         Reported by Paul Eggert.
57870 2011-02-13  Bruno Haible  <bruno@clisp.org>
57872         Don't interfere with a program's definition of __attribute__.
57873         * lib/argp.h (__attribute__): Remove definition.
57874         (_GL_ATTRIBUTE_FORMAT): New macro.
57875         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
57876         * lib/argp-fmtstream.h (__attribute__): Remove definition.
57877         (_GL_ATTRIBUTE_FORMAT): New macro.
57878         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
57879         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
57880         GCC 3 or newer.
57881         * lib/error.h (__attribute__): Remove definition.
57882         (_GL_ATTRIBUTE_FORMAT): New macro.
57883         (error, error_at_line): Use it.
57884         * lib/hash.h (__attribute__): Remove definition.
57885         (ATTRIBUTE_WUR): Update definition. Define always.
57886         * lib/openat.h (__attribute__): Remove definition.
57887         (ATTRIBUTE_NORETURN): Update definition. Define always.
57888         * lib/sigpipe-die.h (__attribute__): Remove definition.
57889         (ATTRIBUTE_NORETURN): Update definition. Define always.
57890         * lib/vasnprintf.h (__attribute__): Remove definition.
57891         (_GL_ATTRIBUTE_FORMAT): New macro.
57892         (asnprintf, vasnprintf): Use it.
57893         * lib/xalloc.h (__attribute__): Remove definition.
57894         (ATTRIBUTE_NORETURN): Update definition. Define always.
57895         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
57896         * lib/xmemdup0.h (__attribute__): Remove definition.
57897         (ATTRIBUTE_NORETURN): Update definition. Define always.
57898         * lib/xprintf.h (__attribute__): Remove definition.
57899         (_GL_ATTRIBUTE_FORMAT): New macro.
57900         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
57901         * lib/xstrtol.h (__attribute__): Remove definition.
57902         (ATTRIBUTE_NORETURN): Update definition. Define always.
57903         * lib/xvasprintf.h (__attribute__): Remove definition.
57904         (_GL_ATTRIBUTE_FORMAT): New macro.
57905         (xasprintf, xvasprintf): Use it.
57906         * tests/test-argmatch.c (__attribute__): Remove definition.
57907         (ATTRIBUTE_NORETURN): Update definition. Define always.
57908         * tests/test-exclude.c (__attribute__): Remove definition.
57909         (ATTRIBUTE_NORETURN): Update definition. Define always.
57910         Reported by Paul Eggert.
57912 2011-02-13  Bruno Haible  <bruno@clisp.org>
57914         mbrtowc: Add more tests for native Windows platforms.
57915         * tests/test-mbrtowc-w32-1.sh: New file.
57916         * tests/test-mbrtowc-w32-2.sh: New file.
57917         * tests/test-mbrtowc-w32-3.sh: New file.
57918         * tests/test-mbrtowc-w32-4.sh: New file.
57919         * tests/test-mbrtowc-w32-5.sh: New file.
57920         * tests/test-mbrtowc-w32.c: New file.
57921         * modules/mbrtowc-tests (Files): Add them.
57922         (Makefile.am): Arrange to run these tests.
57923         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
57924         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
57926 2011-02-13  Bruno Haible  <bruno@clisp.org>
57928         mbrtowc: Work around native Windows bug.
57929         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
57930         guess when no suitable locale for testing was found.
57931         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
57933 2011-02-13  Bruno Haible  <bruno@clisp.org>
57935         mbsinit: Work around mingw bug.
57936         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
57937         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
57938         Windows.
57939         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
57941 2011-02-13  Bruno Haible  <bruno@clisp.org>
57943         mbsinit: Don't crash for a NULL argument.
57944         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
57945         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
57947 2011-02-13  Bruno Haible  <bruno@clisp.org>
57949         Don't interfere with a program's definition of __attribute__.
57950         * lib/stdio.in.h (__attribute__): Remove definition.
57951         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
57952         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
57953         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
57954         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
57955         * lib/string.in.h (__attribute__): Remove definition.
57956         Reported by Paul Eggert.
57958 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57960         stdlib: don't get in the way of non-GCC __attribute__
57961         See thread starting at
57962         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
57963         Revert previous stdlib change, installing the following instead:
57964         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
57965         to get in the way of a non-GCC compiler that supports __attribute__.
57966         (_GL_ATTRIBUTE_RETURN): New macro.
57967         (_Exit): Use it instead of __attribute__.
57969 2011-02-12  Bruno Haible  <bruno@clisp.org>
57971         quotearg test: Avoid test failure on mingw.
57972         * tests/test-quotearg.sh: Convert the locale identifier from native
57973         Windows syntax to Unix syntax.
57975 2011-02-12  Bruno Haible  <bruno@clisp.org>
57977         setlocale: Prefer gnulib's override over libintl's override.
57978         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
57979         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
57980         GNULIB_defined_setlocale is set.
57982 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
57984         stdlib: support non-GCC __attribute__
57986         Fix a serious and tricky problem encountered when attempting to
57987         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
57988         5.5, but it crashed due to memory corruption on Solaris 10 with
57989         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
57990         bits that are otherwise zero.  This tagging is optional inside
57991         Emacs but is preferred and is used when __attribute__ ((__aligned
57992         (8))) works, as it does with both recent-enough GCC and with Sun C
57993         5.11.  However, Sun C 5.11 is not GCC and does not #define
57994         __GNUC__ and __GNUC_MINOR__.
57996         When I added the getloadavg module to Emacs, it brought in
57997         stdlib.in.h, which contained this fragment:
57999            #ifndef __attribute__
58000            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
58001            #  define __attribute__(Spec)   /* empty */
58002            # endif
58003            #endif
58005         When files that include <stdlib.h> were compiled with Sun C 5.11,
58006         the above code disabled __attribute__ ((__aligned (8))), which
58007         caused variables to not be properly aligned, which eventually led
58008         to the pointer corruption mentioned above.  (This was a bit hard
58009         to diagnose, unfortunately.)
58011         Several "#define __attribute__(X) /* empty */" code snippets need
58012         to be eradicated from Gnulib to work with non-GCC compilers that
58013         support __attribute__.  The Autoconf way to do this is to test for
58014         each kind of attribute that we want support for, and selectively
58015         enable that in source code.
58017         Fix this problem just for stdlib.h, by adding a test for the
58018         __noreturn__ attribute, and change stdlib.in.h to use that test
58019         when needed.  This technique can be easily generalized to the
58020         other *.in.h files and attributes, and a similar technique can be
58021         used for *.h and *.c files.  This patch is enough to solve the
58022         problem for Emacs + getloadavg, and I thought I'd publish it for
58023         feedback before undertaking further, similar fixes in other
58024         modules.
58026         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
58027         because it's not needed for stdlib.h.  It merely substitutes the
58028         value directly into stdlib.h.  We may well need to #define it, or
58029         similar symbols, for other modules, but it's nice to also have an
58030         option to not #define it for applications like Emacs that do not
58031         need it.
58033         * lib/stdlib.in.h (__attribute__): Do not #define.
58034         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
58035         be defined only if the _Exit module is also used.
58036         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
58037         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
58038         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
58039         platforms.
58040         * modules/_Exit (Files): Add m4/attribute.m4.
58041         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
58042         * m4/attribute.m4: New file.
58044 2011-02-12  Bruno Haible  <bruno@clisp.org>
58046         wcsrtombs: Work around bug on native Windows.
58047         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
58048         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
58049         instead of len.
58050         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
58052 2011-02-12  Bruno Haible  <bruno@clisp.org>
58054         mbsrtowcs: Work around bug on native Windows.
58055         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
58056         against mingw bug.
58057         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
58059 2011-02-12  Bruno Haible  <bruno@clisp.org>
58061         Avoid setlocale bugs in tests.
58062         * modules/btowc (Dependencies): Add setlocale.
58063         * modules/c-strcase (Dependencies): Likewise.
58064         * modules/mbmemcasecmp (Dependencies): Likewise.
58065         * modules/mbmemcasecoll (Dependencies): Likewise.
58066         * modules/mbrtowc (Dependencies): Likewise.
58067         * modules/mbscasecmp (Dependencies): Likewise.
58068         * modules/mbscasestr (Dependencies): Likewise.
58069         * modules/mbschr (Dependencies): Likewise.
58070         * modules/mbscspn (Dependencies): Likewise.
58071         * modules/mbsinit (Dependencies): Likewise.
58072         * modules/mbsncasecmp (Dependencies): Likewise.
58073         * modules/mbsnrtowcs (Dependencies): Likewise.
58074         * modules/mbspbrk (Dependencies): Likewise.
58075         * modules/mbspcasecmp (Dependencies): Likewise.
58076         * modules/mbsrchr (Dependencies): Likewise.
58077         * modules/mbsrtowcs (Dependencies): Likewise.
58078         * modules/mbsspn (Dependencies): Likewise.
58079         * modules/mbsstr (Dependencies): Likewise.
58080         * modules/nl_langinfo (Dependencies): Likewise.
58081         * modules/quotearg (Dependencies): Likewise.
58082         * modules/unicase/locale-language (Dependencies): Likewise.
58083         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
58084         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
58085         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
58086         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
58087         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
58088         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
58089         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
58090         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
58091         * modules/vasnprintf-posix (Dependencies): Likewise.
58092         * modules/wcrtomb (Dependencies): Likewise.
58093         * modules/wcsnrtombs (Dependencies): Likewise.
58094         * modules/wcsrtombs (Dependencies): Likewise.
58096 2011-02-12  Bruno Haible  <bruno@clisp.org>
58098         setlocale: Workaround native Windows bug.
58099         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
58100         succeeds but sets LC_CTYPE to "C", report a failure.
58101         * tests/test-setlocale2.sh: New file.
58102         * tests/test-setlocale2.c: New file.
58103         * modules/setlocale-tests (Files): Add the new files.
58104         (Makefile.am): Enable test-setlocale2.sh test.
58105         * doc/posix-functions/setlocale.texi: Mention workaround.
58107 2011-02-11  Bruno Haible  <bruno@clisp.org>
58109         Tests for module 'setlocale'.
58110         * modules/setlocale-tests: New file.
58111         * tests/test-setlocale1.sh: New file.
58112         * tests/test-setlocale1.c: New file.
58114         New module 'setlocale'.
58115         * lib/locale.in.h (setlocale): New declaration.
58116         * lib/setlocale.c: New file, based on
58117         gettext/gettext-runtime/intl/setlocale.c.
58118         * m4/setlocale.m4: New file.
58119         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
58120         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
58121         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
58122         REPLACE_SETLOCALE.
58123         * modules/setlocale: New file.
58124         * tests/test-locale-c++.cc: Test the declaration of setlocale.
58125         * doc/posix-functions/setlocale.texi: Mention the new module.
58127 2011-02-11  Bruno Haible  <bruno@clisp.org>
58129         Prepare for locale dependent tests on mingw.
58130         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
58131         because it has the wrong locale encoding.
58132         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
58133         French_France.1252 instead of "fr".
58134         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
58135         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
58136         because it has the wrong locale encoding.
58137         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
58138         native Windows, try Turkish_Turkey.65001.
58139         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
58140         Chinese_China.54936.
58142         Prepare for locale dependent tests on mingw.
58143         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
58144         differently.
58145         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
58146         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
58147         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58148         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58150 2011-02-11  Eric Blake  <eblake@redhat.com>
58152         strptime: avoid compiler warnings
58153         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
58154         compiler warnings about dead code.
58155         Reported by Daniel P. Berrange.
58157 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
58159         doc: update users.txt
58160         * users.txt: Add rcs.
58162 2011-02-10  John W. Eaton  <jwe@gnu.org>
58164         doc: update users.txt
58165         * users.txt: Add octave.
58167 2011-02-10  Jim Meyering  <meyering@redhat.com>
58169         doc: update users.txt
58170         * users.txt: Add iwhd.
58172 2011-02-09  Bruno Haible  <bruno@clisp.org>
58174         gnulib-tool: Make copyright notice adjustment more robust.
58175         * gnulib-tool (func_import): In sed_transform_main_lib_file,
58176         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
58177         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
58178         License".
58179         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
58181 2011-02-06  Bruno Haible  <bruno@clisp.org>
58183         New module 'towctrans'.
58184         * modules/towctrans: New file.
58185         * lib/wctype.in.h (towctrans): New declaration.
58186         * lib/towctrans.c: New file.
58187         * lib/towctrans-impl.h: New file.
58188         * m4/towctrans.m4: New file.
58189         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
58190         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
58191         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
58192         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
58193         * doc/posix-functions/towctrans.texi: Mention the new module.
58195 2011-02-06  Bruno Haible  <bruno@clisp.org>
58197         New module 'wctrans'.
58198         * modules/wctrans: New file.
58199         * lib/wctype.in.h (wctrans): New declaration.
58200         * lib/wctrans.c: New file.
58201         * lib/wctrans-impl.h: New file.
58202         * m4/wctrans.m4: New file.
58203         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
58204         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
58205         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
58206         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
58207         * doc/posix-functions/wctrans.texi: Mention the new module.
58209 2011-02-06  Bruno Haible  <bruno@clisp.org>
58211         New module 'iswctype'.
58212         * modules/iswctype: New file.
58213         * lib/wctype.in.h (iswctype): New declaration.
58214         * lib/iswctype.c: New file.
58215         * lib/iswctype-impl.h: New file.
58216         * m4/iswctype.m4: New file.
58217         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
58218         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
58219         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
58220         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
58221         * doc/posix-functions/iswctype.texi: Mention the new module and the
58222         HP-UX 11.00 problem.
58224 2011-02-06  Bruno Haible  <bruno@clisp.org>
58226         New module 'wctype'.
58227         * modules/wctype: Change to represent the wctype() substitute.
58228         * lib/wctype.in.h (wctype): New declaration.
58229         * lib/wctype.c: New file.
58230         * lib/wctype-impl.h: New file.
58231         * m4/wctype.m4: New file.
58232         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
58233         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
58234         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
58235         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
58236         * doc/posix-functions/wctype.texi: Mention the new module and the
58237         HP-UX 11.00 problem.
58239 2011-02-06  Bruno Haible  <bruno@clisp.org>
58241         wctype-h: Ensure wctype_t and wctrans_t are defined.
58242         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
58243         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
58244         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
58245         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
58246         HAVE_WCTRANS_T.
58247         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
58249 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
58251         flock: fix license typo
58253         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
58254         omitted.
58256 2011-02-08  Bruno Haible  <bruno@clisp.org>
58258         Split large sed scripts, for HP-UX sed.
58259         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
58260         to avoid HP-UX limit of 99 commands, in the near future.
58261         * modules/stdlib (Makefile.am): Likewise.
58262         * modules/unistd (Makefile.am): Likewise.
58263         * modules/wchar (Makefile.am): Likewise.
58264         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58265         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
58266         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
58268 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
58269             Bruno Haible  <bruno@clisp.org>
58271         stdlib: improve random_r modularization
58272         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
58273         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
58274         you also need the random_r module to get this material right.
58275         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
58276         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
58277         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
58279 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
58281         stdlib: don't depend on stdint
58282         * lib/stdlib.in.h: Don't include <stdint.h> merely because
58283         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
58284         be independent of whether stdint.h is needed.
58285         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
58286         here, instead of ...
58287         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
58288         struct random_data should be using the random_r module, not just
58289         the stdlib module (which wouldn't make sense: what package needs
58290         just struct random_data without also needing random_r?).
58291         * modules/stdlib (Depends-on): Remove stdint.
58293         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
58294         See the thread rooted at
58295         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
58296         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
58297         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
58298         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
58299         __VMS)); previously it was always included (via fcntl--.h).
58300         (getloadavg): Do not use c_strtod.  Instead, approximate it by
58301         hand; this is good enough for load averages.  Also, do not use
58302         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
58303         flags directly if available and don't bother otherwise.  (Packages
58304         that need the extra reliability should use the modules that define
58305         these flags on older platforms that lack them.)
58306         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
58307         fcntl-safer.
58309 2011-02-08  Jim Meyering  <meyering@redhat.com>
58311         di-set.h, ino-map.h: add multiple-inclusion guard
58312         Technically, the guard is required only for ino-map.h, due to its
58313         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
58314         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
58315         * lib/ino-map.h: Likewise.
58317 2011-02-06  Bruno Haible  <bruno@clisp.org>
58319         iswblank: Ensure declaration on glibc systems.
58320         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
58321         * modules/iswblank (Dependencies): Add 'extensions'.
58322         * doc/posix-functions/iswblank.texi: Document the glibc problem.
58324 2011-02-06  Bruno Haible  <bruno@clisp.org>
58326         New module 'iswblank'.
58327         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
58328         * modules/iswblank: New file.
58329         * modules/wctype-h (Files): Remove lib/iswblank.c.
58330         (Makefile.am): Substitute GNULIB_ISWBLANK.
58331         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
58332         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
58333         (gl_WCTYPE_H_DEFAULTS): New macro.
58334         (gl_WCTYPE_H): Require it. Remove iswblank related code.
58335         * modules/iswblank-tests: New file.
58336         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
58337         * tests/test-wctype-h.c (main): Remove iswblank tests.
58338         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
58339         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
58340         of 'wctype-h'.
58341         * NEWS: Mention the change.
58342         * modules/mbchar (Depends-on): Add iswblank.
58344 2011-02-08  Bruno Haible  <bruno@clisp.org>
58346         di-set tests: Refactor.
58347         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
58348         unnecessary includes.
58349         (ASSERT): Remove macro.
58350         (main): Make C90 compliant by avoiding variable declaration after
58351         statement.
58352         * modules/di-set-tests (Files): Add tests/macros.h.
58354 2011-02-08  Bruno Haible  <bruno@clisp.org>
58356         ino-map tests: Refactor.
58357         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
58358         unnecessary includes.
58359         (ASSERT): Remove macro.
58360         (main): Make C90 compliant by avoiding variable declaration after
58361         statement.
58362         * modules/ino-map-tests (Files): Add tests/macros.h.
58364 2011-02-08  Jim Meyering  <meyering@redhat.com>
58366         di-set: add "const" to a cast
58367         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
58368         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
58370 2011-02-06  Bruno Haible  <bruno@clisp.org>
58372         Rename module 'wctype' to 'wctype-h'.
58373         * modules/wctype-h: Renamed from modules/wctype.
58374         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
58375         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
58376         (Files, Depends-on, Makefile.am): Update.
58377         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
58378         (Files, Makefile.am): Update.
58379         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
58380         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
58381         * doc/posix-headers/wctype.texi: Update.
58382         * doc/posix-functions/iswalnum.texi: Update.
58383         * doc/posix-functions/iswalpha.texi: Update.
58384         * doc/posix-functions/iswblank.texi: Update.
58385         * doc/posix-functions/iswcntrl.texi: Update.
58386         * doc/posix-functions/iswdigit.texi: Update.
58387         * doc/posix-functions/iswgraph.texi: Update.
58388         * doc/posix-functions/iswlower.texi: Update.
58389         * doc/posix-functions/iswprint.texi: Update.
58390         * doc/posix-functions/iswpunct.texi: Update.
58391         * doc/posix-functions/iswspace.texi: Update.
58392         * doc/posix-functions/iswupper.texi: Update.
58393         * doc/posix-functions/iswxdigit.texi: Update.
58394         * doc/posix-functions/towlower.texi: Update.
58395         * doc/posix-functions/towupper.texi: Update.
58396         * NEWS: Mention the change.
58397         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
58398         * modules/mbchar (Dependencies): Likewise.
58399         * modules/mbswidth (Dependencies): Likewise.
58400         * modules/quotearg (Dependencies): Likewise.
58401         * modules/regex (Dependencies): Likewise.
58402         * modules/wcscasecmp (Dependencies): Likewise.
58403         * modules/wcsncasecmp (Dependencies): Likewise.
58404         * modules/wcwidth (Dependencies): Likewise.
58406 2011-02-06  Bruno Haible  <bruno@clisp.org>
58408         New module 'wcswidth'.
58409         * modules/wcswidth: New file.
58410         * lib/wchar.in.h (wcswidth): New declaration.
58411         * lib/wcswidth.c: New file.
58412         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
58413         * m4/wcswidth.m4: New file.
58414         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
58415         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
58416         REPLACE_WCSWIDTH.
58417         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
58418         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
58419         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
58420         * doc/posix-functions/wcswidth.texi: Mention the new module.
58422 2011-02-06  Bruno Haible  <bruno@clisp.org>
58424         New module 'wcstok'.
58425         * modules/wcstok: New file.
58426         * lib/wchar.in.h (wcstok): New declaration.
58427         * lib/wcstok.c: New file.
58428         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
58429         * m4/wcstok.m4: New file.
58430         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
58431         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
58432         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
58433         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
58434         * doc/posix-functions/wcstok.texi: Mention the new module.
58436 2011-02-06  Bruno Haible  <bruno@clisp.org>
58438         New module 'wcsstr'.
58439         * modules/wcsstr: New file.
58440         * lib/wchar.in.h (wcsstr): New declaration.
58441         * lib/wcsstr.c: New file.
58442         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
58443         * m4/wcsstr.m4: New file.
58444         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
58445         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
58446         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
58447         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
58448         * doc/posix-functions/wcsstr.texi: Mention the new module.
58450 2011-02-06  Bruno Haible  <bruno@clisp.org>
58452         New module 'wcspbrk'.
58453         * modules/wcspbrk: New file.
58454         * lib/wchar.in.h (wcspbrk): New declaration.
58455         * lib/wcspbrk.c: New file.
58456         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
58457         * m4/wcspbrk.m4: New file.
58458         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
58459         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
58460         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
58461         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
58462         * doc/posix-functions/wcspbrk.texi: Mention the new module.
58464 2011-02-06  Bruno Haible  <bruno@clisp.org>
58466         New module 'wcsspn'.
58467         * modules/wcsspn: New file.
58468         * lib/wchar.in.h (wcsspn): New declaration.
58469         * lib/wcsspn.c: New file.
58470         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
58471         * m4/wcsspn.m4: New file.
58472         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
58473         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
58474         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
58475         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
58476         * doc/posix-functions/wcsspn.texi: Mention the new module.
58478 2011-02-06  Bruno Haible  <bruno@clisp.org>
58480         New module 'wcscspn'.
58481         * modules/wcscspn: New file.
58482         * lib/wchar.in.h (wcscspn): New declaration.
58483         * lib/wcscspn.c: New file.
58484         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
58485         * m4/wcscspn.m4: New file.
58486         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
58487         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
58488         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
58489         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
58490         * doc/posix-functions/wcscspn.texi: Mention the new module.
58492 2011-02-06  Bruno Haible  <bruno@clisp.org>
58494         New module 'wcsrchr'.
58495         * modules/wcsrchr: New file.
58496         * lib/wchar.in.h (wcsrchr): New declaration.
58497         * lib/wcsrchr.c: New file.
58498         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
58499         * m4/wcsrchr.m4: New file.
58500         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
58501         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
58502         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
58503         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
58504         * doc/posix-functions/wcsrchr.texi: Mention the new module.
58506 2011-02-06  Bruno Haible  <bruno@clisp.org>
58508         New module 'wcschr'.
58509         * modules/wcschr: New file.
58510         * lib/wchar.in.h (wcschr): New declaration.
58511         * lib/wcschr.c: New file.
58512         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
58513         * m4/wcschr.m4: New file.
58514         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
58515         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
58516         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
58517         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
58518         * doc/posix-functions/wcschr.texi: Mention the new module.
58520 2011-02-06  Bruno Haible  <bruno@clisp.org>
58522         New module 'wcsdup'.
58523         * modules/wcsdup: New file.
58524         * lib/wchar.in.h (wcsdup): New declaration.
58525         * lib/wcsdup.c: New file.
58526         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
58527         * m4/wcsdup.m4: New file.
58528         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
58529         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
58530         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
58531         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
58532         * doc/posix-functions/wcsdup.texi: Mention the new module.
58534 2011-02-06  Bruno Haible  <bruno@clisp.org>
58536         New module 'wcsxfrm'.
58537         * modules/wcsxfrm: New file.
58538         * lib/wchar.in.h (wcsxfrm): New declaration.
58539         * lib/wcsxfrm.c: New file.
58540         * lib/wcsxfrm-impl.h: New file.
58541         * m4/wcsxfrm.m4: New file.
58542         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
58543         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
58544         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
58545         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
58546         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
58548 2011-02-06  Bruno Haible  <bruno@clisp.org>
58550         New module 'wcscoll'.
58551         * modules/wcscoll: New file.
58552         * lib/wchar.in.h (wcscoll): New declaration.
58553         * lib/wcscoll.c: New file.
58554         * lib/wcscoll-impl.h: New file.
58555         * m4/wcscoll.m4: New file.
58556         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
58557         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
58558         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
58559         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
58560         * doc/posix-functions/wcscoll.texi: Mention the new module.
58562 2011-02-06  Bruno Haible  <bruno@clisp.org>
58564         New module 'wcsncasecmp'.
58565         * modules/wcsncasecmp: New file.
58566         * lib/wchar.in.h (wcsncasecmp): New declaration.
58567         * lib/wcsncasecmp.c: New file.
58568         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
58569         * m4/wcsncasecmp.m4: New file.
58570         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
58571         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
58572         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
58573         HAVE_WCSNCASECMP.
58574         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
58575         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
58577 2011-02-06  Bruno Haible  <bruno@clisp.org>
58579         New module 'wcscasecmp'.
58580         * modules/wcscasecmp: New file.
58581         * lib/wchar.in.h (wcscasecmp): New declaration.
58582         * lib/wcscasecmp.c: New file.
58583         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
58584         * m4/wcscasecmp.m4: New file.
58585         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
58586         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
58587         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
58588         HAVE_WCSCASECMP.
58589         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
58590         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
58592 2011-02-05  Bruno Haible  <bruno@clisp.org>
58594         New module 'wcsncmp'.
58595         * modules/wcsncmp: New file.
58596         * lib/wchar.in.h (wcsncmp): New declaration.
58597         * lib/wcsncmp.c: New file.
58598         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
58599         * m4/wcsncmp.m4: New file.
58600         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
58601         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
58602         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
58603         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
58604         * doc/posix-functions/wcsncmp.texi: Mention the new module.
58606 2011-02-05  Bruno Haible  <bruno@clisp.org>
58608         New module 'wcscmp'.
58609         * modules/wcscmp: New file.
58610         * lib/wchar.in.h (wcscmp): New declaration.
58611         * lib/wcscmp.c: New file.
58612         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
58613         * m4/wcscmp.m4: New file.
58614         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
58615         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
58616         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
58617         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
58618         * doc/posix-functions/wcscmp.texi: Mention the new module.
58620 2011-02-05  Bruno Haible  <bruno@clisp.org>
58622         New module 'wcsncat'.
58623         * modules/wcsncat: New file.
58624         * lib/wchar.in.h (wcsncat): New declaration.
58625         * lib/wcsncat.c: New file.
58626         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
58627         * m4/wcsncat.m4: New file.
58628         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
58629         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
58630         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
58631         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
58632         * doc/posix-functions/wcsncat.texi: Mention the new module.
58634 2011-02-05  Bruno Haible  <bruno@clisp.org>
58636         New module 'wcscat'.
58637         * modules/wcscat: New file.
58638         * lib/wchar.in.h (wcscat): New declaration.
58639         * lib/wcscat.c: New file.
58640         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
58641         * m4/wcscat.m4: New file.
58642         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
58643         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
58644         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
58645         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
58646         * doc/posix-functions/wcscat.texi: Mention the new module.
58648 2011-02-05  Bruno Haible  <bruno@clisp.org>
58650         New module 'wcpncpy'.
58651         * modules/wcpncpy: New file.
58652         * lib/wchar.in.h (wcpncpy): New declaration.
58653         * lib/wcpncpy.c: New file.
58654         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
58655         * m4/wcpncpy.m4: New file.
58656         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
58657         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
58658         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
58659         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
58660         * doc/posix-functions/wcpncpy.texi: Mention the new module.
58662 2011-02-05  Bruno Haible  <bruno@clisp.org>
58664         New module 'wcsncpy'.
58665         * modules/wcsncpy: New file.
58666         * lib/wchar.in.h (wcsncpy): New declaration.
58667         * lib/wcsncpy.c: New file.
58668         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
58669         * m4/wcsncpy.m4: New file.
58670         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
58671         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
58672         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
58673         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
58674         * doc/posix-functions/wcsncpy.texi: Mention the new module.
58676 2011-02-05  Bruno Haible  <bruno@clisp.org>
58678         New module 'wcpcpy'.
58679         * modules/wcpcpy: New file.
58680         * lib/wchar.in.h (wcpcpy): New declaration.
58681         * lib/wcpcpy.c: New file.
58682         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
58683         * m4/wcpcpy.m4: New file.
58684         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
58685         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
58686         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
58687         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
58688         * doc/posix-functions/wcpcpy.texi: Mention the new module.
58690 2011-02-05  Bruno Haible  <bruno@clisp.org>
58692         New module 'wcscpy'.
58693         * modules/wcscpy: New file.
58694         * lib/wchar.in.h (wcscpy): New declaration.
58695         * lib/wcscpy.c: New file.
58696         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
58697         * m4/wcscpy.m4: New file.
58698         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
58699         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
58700         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
58701         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
58702         * doc/posix-functions/wcscpy.texi: Mention the new module.
58704 2011-02-05  Bruno Haible  <bruno@clisp.org>
58706         New module 'wcsnlen'.
58707         * modules/wcsnlen: New file.
58708         * lib/wchar.in.h (wcsnlen): New declaration.
58709         * lib/wcsnlen.c: New file.
58710         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
58711         * m4/wcsnlen.m4: New file.
58712         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
58713         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
58714         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
58715         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
58716         * doc/posix-functions/wcsnlen.texi: Mention the new module.
58718 2011-02-05  Bruno Haible  <bruno@clisp.org>
58720         New module 'wcslen'.
58721         * modules/wcslen: New file.
58722         * lib/wchar.in.h (wcslen): New declaration.
58723         * lib/wcslen.c: New file.
58724         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
58725         * m4/wcslen.m4: New file.
58726         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
58727         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
58728         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
58729         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
58730         * doc/posix-functions/wcslen.texi: Mention the new module.
58732 2011-02-05  Bruno Haible  <bruno@clisp.org>
58734         New module 'wmemset'.
58735         * modules/wmemset: New file.
58736         * lib/wchar.in.h (wmemset): New declaration.
58737         * lib/wmemset.c: New file.
58738         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
58739         * m4/wmemset.m4: New file.
58740         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
58741         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
58742         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
58743         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
58744         * doc/posix-functions/wmemset.texi: Mention the new module.
58746 2011-02-05  Bruno Haible  <bruno@clisp.org>
58748         New module 'wmemmove'.
58749         * modules/wmemmove: New file.
58750         * lib/wchar.in.h (wmemmove): New declaration.
58751         * lib/wmemmove.c: New file.
58752         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
58753         * m4/wmemmove.m4: New file.
58754         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
58755         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
58756         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
58757         HAVE_WMEMMOVE.
58758         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
58759         * doc/posix-functions/wmemmove.texi: Mention the new module.
58761 2011-02-05  Bruno Haible  <bruno@clisp.org>
58763         New module 'wmemcpy'.
58764         * modules/wmemcpy: New file.
58765         * lib/wchar.in.h (wmemcpy): New declaration.
58766         * lib/wmemcpy.c: New file.
58767         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
58768         * m4/wmemcpy.m4: New file.
58769         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
58770         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
58771         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
58772         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
58773         * doc/posix-functions/wmemcpy.texi: Mention the new module.
58775 2011-02-05  Bruno Haible  <bruno@clisp.org>
58777         New module 'wmemcmp'.
58778         * modules/wmemcmp: New file.
58779         * lib/wchar.in.h (wmemcmp): New declaration.
58780         * lib/wmemcmp.c: New file.
58781         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
58782         * m4/wmemcmp.m4: New file.
58783         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
58784         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
58785         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
58786         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
58787         * doc/posix-functions/wmemcmp.texi: Mention the new module.
58789 2011-02-07  Jim Meyering  <meyering@redhat.com>
58791         di-set, ino-map: new modules, from coreutils
58792         * lib/di-set.c: New file.
58793         * lib/di-set.h: Likewise.
58794         * lib/ino-map.c: Likewise.
58795         * lib/ino-map.h: Likewise.
58796         * modules/di-set: Likewise.
58797         * modules/di-set-tests: Likewise.
58798         * modules/ino-map: Likewise.
58799         * modules/ino-map-tests: Likewise.
58800         * tests/test-di-set.c: Likewise.
58801         * tests/test-ino-map.c: Likewise.
58803 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
58805         getloadavg: merge minor changes from Emacs
58807         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
58808         (getloadavg): Use memset, not bzero.
58810         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
58811         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
58812         clash (bug#86).
58814 2010-11-14  Bruno Haible  <bruno@clisp.org>
58816         Allow multiple gnulib generated replacements to coexist.
58817         * lib/getopt.in.h (struct option): Avoid identical redefinition.
58818         * lib/inttypes.in.h (imaxdiv_t): Likewise.
58819         * lib/langinfo.in.h (nl_item): Likewise.
58820         * lib/math.in.h (_NaN, NAN): Likewise.
58821         * lib/netdb.in.h (struct addrinfo): Likewise.
58822         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
58823         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
58824         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
58825         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
58826         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
58827         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
58828         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
58829         pthread_mutexattr_init, pthread_mutexattr_settype,
58830         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
58831         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
58832         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
58833         pthread_spin_trylock, pthread_spin_unlock): Likewise.
58834         * lib/sched.in.h (struct sched_param): Likewise.
58835         * lib/se-selinux.in.h (security_class_t, security_context_t,
58836         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
58837         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
58838         lsetfilecon, fsetfilecon, security_check_context,
58839         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
58840         Likewise.
58841         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
58842         Likewise.
58843         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
58844         _gl_function_taking_int_returning_void_t, union sigval,
58845         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
58846         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
58847         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
58848         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
58849         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
58850         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
58851         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
58852         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
58853         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
58854         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
58855         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
58856         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
58857         socklen_t, rpl_fd_isset): Likewise.
58858         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
58859         * lib/sys_time.in.h (struct timeval): Likewise.
58860         * lib/sys_times.in.h (struct tms): Likewise.
58861         * lib/sys_utsname.in.h (struct utsname):
58862         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
58863         * lib/unistd.in.h (getpagesize): Likewise.
58864         * lib/wchar.in.h (mbstate_t): Likewise.
58865         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
58866         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
58867         towlower, towupper): Likewise.
58868         Reported by Sam Steingold <sds@gnu.org>.
58870 2011-02-05  Eric Blake  <eblake@redhat.com>
58872         unsetenv: work around Haiku issues
58873         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
58874         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
58876 2010-12-30  Bruce Korb  <bkorb@gnu.org>
58878         libposix: avoid calling error() within libposix
58879         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
58880         is defined.
58882 2011-02-05  Eric Blake  <eblake@redhat.com>
58884         strerror_r-posix: port to cygwin
58885         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
58886         implementation.
58887         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
58888         * tests/test-strerror_r.c (main): Fix test.
58889         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
58890         issue.
58892 2011-02-05  Bruno Haible  <bruno@clisp.org>
58894         New module 'wmemchr'.
58895         * modules/wmemchr: New file.
58896         * lib/wchar.in.h (wmemchr): New declaration.
58897         * lib/wmemchr.c: New file.
58898         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
58899         * m4/wmemchr.m4: New file.
58900         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
58901         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
58902         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
58903         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
58904         * doc/posix-functions/wmemchr.texi: Mention the new module.
58906 2011-02-04  Eric Blake  <eblake@redhat.com>
58908         fdopendir: detect FreeBSD bug
58909         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
58910         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
58912 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
58914         stdbool: do not define HAVE_STDBOOL_H
58915         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
58916         AC_HEADER_STDBOOL.  All uses changed.  Do not define
58917         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
58918         imported from the latest Autoconf git.  It was motivated by Emacs,
58919         which uses gnulib but does not need HAVE_STDBOOL_H.
58921 2011-02-04  Bruno Haible  <bruno@clisp.org>
58923         wcsnrtombs: Prepare for new module wwcsnrtombs.
58924         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
58925         * lib/wcsnrtombs.c: Include it.
58926         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
58928         wcsrtombs: Prepare for new module wwcsrtombs.
58929         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
58930         * lib/wcsrtombs.c: Include it.
58931         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
58933         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
58934         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
58935         * lib/mbsnrtowcs.c: Include it.
58936         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
58938         mbsrtowcs: Prepare for new module mbsrtowwcs.
58939         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
58940         * lib/mbsrtowcs.c: Include it.
58941         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
58943 2011-02-04  Bruno Haible  <bruno@clisp.org>
58945         vasnprintf: Reduce use of malloc for small format strings.
58946         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
58947         (arguments): Add room for the first 7 arguments.
58948         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
58949         (char_directives, u8_directives, u16_directives, u32_directives): Add
58950         room for the first 7 directives.
58951         * lib/printf-parse.c: Include <string.h>.
58952         (PRINTF_PARSE): Change memory handling code so that it uses the first
58953         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
58954         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
58955         Reported by Pádraig Brady <P@draigbrady.com>.
58957 2011-01-31  Eric Blake  <eblake@redhat.com>
58959         dup2: work around Haiku bug
58960         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
58961         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
58962         * doc/posix-functions/dup2.texi (dup2): Document the bug.
58963         * tests/test-dup2.c (main): Enhance test.
58965 2011-01-31  Simon Josefsson  <simon@josefsson.org>
58967         doc: off_t is not available in eglibc 2.11.2 stdio.h.
58968         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
58969         declared by eglibc 2.11.2.
58970         * lib/stdio.in.h: Likewise.
58972 2011-01-31  Eric Blake  <eblake@redhat.com>
58974         ignore-value: add missing test dependency
58975         * tests/test-ignore-value.c: Revert previous change; stdio.h
58976         provides off_t.
58977         * modules/ignore-value-tests (Depends-on): Add missing dependency.
58979 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
58981         mktime: clarify long_int width checking
58982         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
58983         the top level, to make it clearer that the assumption about
58984         long_int width is being checked.  See
58985         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
58987 2011-01-30  Simon Josefsson  <simon@josefsson.org>
58989         ignore-value: Fix self-test.
58990         * tests/test-ignore-value.c: Include sys/types.h for off_t.
58992 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
58994         TYPE_MAXIMUM: avoid theoretically undefined behavior
58995         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
58996         negative number, which the C Standard says has undefined behavior.
58997         In practice this is not a problem, but might as well do it by the book.
58998         Reported by Rich Felker and Eric Blake; see
58999         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
59000         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
59001         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
59002         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
59003         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
59004         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59005         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
59007         mktime: #undef mktime before #defining it
59008         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
59010         mktime: systematically normalize tm_isdst comparisons
59011         * lib/mktime.c (isdst_differ): New function.
59012         (__mktime_internal): Use it systematically for all isdst comparisons.
59013         This completes the fix for libc BZ #6723, and removes the need for
59014         normalizing tm_isdst.  See
59015         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
59016         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
59018         mktime: fix some integer overflow issues and sidestep the rest
59020         This was prompted by a bug report by Benjamin Lindner for MinGW
59021         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
59022         His bug is due to signed integer overflow (0 - INT_MIN), and I
59023         I scanned through mktime.c looking for other integer overflow
59024         problems, fixing all the bugs I found.
59026         Although the C Standard says the resulting code is still not safe
59027         in the presence of integer overflow, in practice it should be good
59028         enough for all real-world two's-complement implementations, except
59029         for debugging environments that deliberately trap on integer
59030         overflow (e.g., gcc -ftrapv).
59032         * lib/mktime.c (WRAPV): New macro.
59033         (SHR): Also check that long_int and time_t shift right in the
59034         usual way, before using the fast-but-unportable method.
59035         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
59036         used.  The code already assumed two's complement, so there's
59037         no need to test for alternatives.  All uses removed.
59038         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
59039         the C standard.  Problem reported by Rich Felker in
59040         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
59041         (twos_complement_arithmetic): Also check long_int and time_t.
59042         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
59043         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
59044         (__mktime_internal): Avoid integer overflow with unary subtraction
59045         in two instances where -1 - X is an adequate replacement for -X,
59046         since the calculations are approximate.
59048 2011-01-29  Eric Blake  <eblake@redhat.com>
59050         mktime: avoid infinite loop
59051         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
59052         type; behavior is still undefined but portable to all known targets.
59053         Reported by Rich Felker.
59055 2011-01-29  Simon Josefsson  <simon@josefsson.org>
59057         rename, unlink, same-inode: Relicense.
59058         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
59059         * modules/unlink (License): Likewise.
59060         * modules/same-inode (License): Likewise.
59062 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59064         mktime: avoid problems on NetBSD 5 / i386
59065         * lib/mktime.c (long_int): New type.  This works around a problem
59066         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
59067         but time_t is 64 bits, and where I expect the existing code is
59068         wrong in some cases.
59069         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
59070         (ydhms_diff): Bring back the compile-time check for wide-enough
59071         year and yday.
59073         mktime: fix misspelling in comment
59074         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
59075         This merges all recent glibc changes of importance.
59077 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59079         move-if-change: cope with concurrent mv of identical file.
59080         * build-aux/move-if-change (CMPPROG): Accept environment
59081         variable as an override for `cmp'.
59082         (usage): Document CMPPROG.
59083         Adjust comparison to drop stdout.  Cope with failure of mv if
59084         the target file exists and is identical to the source, for
59085         parallel builds.
59086         Report from H.J. Lu against binutils in PR binutils/12283.
59088 2011-01-28  Bruce Korb  <bkorb@gnu.org>
59090         * users.txt: Mention sharutils.
59092 2011-01-28  Simon Josefsson  <simon@josefsson.org>
59094         * users.txt: Mention OATH Toolkit.
59096 2011-01-27  Bruno Haible  <bruno@clisp.org>
59098         Prepare for supporting FreeBSD 10.
59099         * build-aux/config.libpath: Remove handling of freebsd1*.
59101 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
59103         Prepare for supporting FreeBSD 10.
59104         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
59105         match FreeBSD 10.0.
59107 2011-01-27  Bruno Haible  <bruno@clisp.org>
59109         vma-iter, get-rusage-as: Add OpenBSD support.
59110         * modules/vma-iter (configure.ac): Test for mquery.
59111         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
59112         * lib/vma-iter.c: Include <sys/mman.h>.
59113         (vma_iterate): Add an implementation based on mquery().
59114         * lib/resource-ext.h (get_rusage_as): Update comments.
59115         * lib/get-rusage-as.c: Likewise.
59116         * lib/get-rusage-data.c: Likewise.
59118 2011-01-26  Karl Berry  <karl@gnu.org>
59120         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
59121         variables to make it easier to override the makeinfo program used.
59123 2011-01-26  Eric Blake  <eblake@redhat.com>
59125         fcntl: work around Haiku F_DUPFD bugs
59126         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
59127         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
59128         cloexec bit on duplication.
59129         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
59131 2011-01-26  Bruno Haible  <bruno@clisp.org>
59133         Enable memory leak tests on AIX.
59134         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
59135         * tests/test-fprintf-posix3.c (main): Likewise.
59137 2011-01-26  Bruno Haible  <bruno@clisp.org>
59139         Tests for module 'get-rusage-data'.
59140         * modules/get-rusage-data-tests: New file.
59141         * tests/test-get-rusage-data.c: New file.
59143         New module 'get-rusage-data'.
59144         * lib/resource-ext.h (get_rusage_data): New declaration.
59145         * lib/get-rusage-data.c: New file.
59146         * modules/get-rusage-data: New file.
59148 2011-01-25  Bruno Haible  <bruno@clisp.org>
59150         get-rusage-as: Allow for easier testing.
59151         * lib/resource-ext.h (get_rusage_as): Add comment.
59152         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
59153         (main): New function for interactive testing.
59155 2011-01-25  Bruno Haible  <bruno@clisp.org>
59157         vma-iter: Treat Haiku like BeOS.
59158         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
59159         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
59161 2011-01-25  Eric Blake  <eblake@redhat.com>
59163         c-stack: fix regression on cygwin when libsigsegv is present
59164         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
59166 2011-01-24  Bruno Haible  <bruno@clisp.org>
59168         vma-iter: Avoid empty intervals.
59169         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
59170         on an empty interval.
59172 2011-01-24  Jim Meyering  <meyering@redhat.com>
59174         u64: remove unnecessary #include
59175         * lib/u64.h: Don't include <stddef.h>.  It was not used.
59177 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59179         Allow the user to avoid the HAVE_RAW_DECL_* macros.
59180         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
59182 2011-01-23  Bruno Haible  <bruno@clisp.org>
59184         New module 'vma-iter'.
59185         * lib/vma-iter.h: New file.
59186         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
59187         * modules/vma-iter: New file.
59188         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
59189         for get_rusage_as_via_iterator.
59190         (vma_iterate_callback): New function.
59191         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
59192         * modules/get-rusage-as (Depends-on): Add vma-iter.
59194 2011-01-23  Bruno Haible  <bruno@clisp.org>
59196         uninorm: Tweak includes.
59197         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
59198         Reported by Jim Meyering.
59200 2011-01-23  Bruno Haible  <bruno@clisp.org>
59202         get-rusage-as: Improve on NetBSD.
59203         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
59204         /proc, like on FreeBSD.
59206 2011-01-23  Jim Meyering  <meyering@redhat.com>
59208         xreadlink.h: remove unnecessary #include
59209         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
59211         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
59212         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
59214 2011-01-23  Bruno Haible  <bruno@clisp.org>
59216         get-rusage-as: Fix bug.
59217         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
59218         original limit when aborting the first loop.
59220 2011-01-23  Bruno Haible  <bruno@clisp.org>
59222         wctype: Ensure valid C syntax.
59223         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
59224         unconditionally, instead of gl_NEXT_HEADERS conditionally.
59226 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
59228         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
59229         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
59230         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
59231         as they are needed only for configure's test case.
59232         This removes two unnecessary symbols from config.h.
59234         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
59235         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
59236         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
59237         AC_CHECK_HEADERS_ONCE on a header that we also invoke
59238         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
59239         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
59240         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
59241         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
59242         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
59243         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
59244         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
59245         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59246         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
59247         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
59248         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
59249         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59250         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
59251         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
59253 2011-01-21  Eric Blake  <eblake@redhat.com>
59255         maintainer-makefile: work with older git for submodule check
59256         * top/maint.mk (public-submodule-commit): Rewrite to avoid
59257         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
59258         Reported by Matthias Bolte.
59260         bootstrap: minor portability fixes
59261         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
59262         (usage): Omit leading capital and trailing . on help phrases, per
59263         GNU Coding Standards.
59264         (check_versions, top level): Prefix messages with script name.
59266 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
59268         bootstrap: support --no-git option
59269         * build-aux/bootstrap: Add --no-git option, to be used when
59270         --gnulib-srcdir points to the exact desired checkout.
59272 2011-01-21  Eric Blake  <eblake@redhat.com>
59274         strerror_r-posix: work with glibc 2.13
59275         * lib/strerror_r.c (strerror_r): Fix return type.
59277 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59278             Bruno Haible  <bruno@clisp.org>
59280         uN_strstr: New unit tests.
59281         * modules/unistr/u8-strstr-tests: New file.
59282         * modules/unistr/u16-strstr-tests: New file.
59283         * modules/unistr/u32-strstr-tests: New file.
59284         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
59285         * tests/unistr/test-u8-strstr.c: New file.
59286         * tests/unistr/test-u16-strstr.c: New file.
59287         * tests/unistr/test-u32-strstr.c: New file.
59289 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59290             Bruno Haible  <bruno@clisp.org>
59292         Make uN_strstr functions O(n) worst-case.
59293         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
59294         16-bit and 32-bit unit cases, use the unibyte algorithm from
59295         lib/mbsstr.c.
59296         * lib/unistr/u8-strstr.c: Include <string.h>.
59297         (UNIT_IS_UINT8_T): New macro.
59298         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
59299         (U_STRLEN, U_STRNLEN): New macros.
59300         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
59301         (U_STRLEN, U_STRNLEN): New macros.
59302         * modules/unistr/u8-strstr (Depends-on): Add strstr.
59303         (configure.ac): Update required libunistring version.
59304         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
59305         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
59306         malloca.
59307         (configure.ac): Update required libunistring version.
59308         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
59309         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
59310         malloca.
59311         (configure.ac): Update required libunistring version.
59313 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59314             Bruno Haible  <bruno@clisp.org>
59316         Prepare for faster uN_strstr functions.
59317         * lib/str-kmp.h: Support definable UNITs.
59318         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
59319         needle_len argument.
59320         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
59321         * lib/mbscasestr.c (mbscasestr): Likewise.
59323 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59325         malloca-tests: make faster by unsetting MALLOC_PERTURB_
59326         * tests/test-malloca.c (main): Unset the environment variable
59327         to greatly speed up the test.
59328         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
59329         * modules/malloca-tests: Depend on unsetenv.
59331 2011-01-21  Pádraig Brady  <P@draigBrady.com>
59333         ignore-value: remove stdint dependency
59334         * lib/ignore-value.h: Remove <stdint.h>
59335         * modules/ignore-value: Remove stdint dependency.
59337 2011-01-21  Jim Meyering  <meyering@redhat.com>
59339         maint.mk: adjust variable name to be consistent with other gl_ vars
59340         * top/maint.mk (gl_public_submodule_commit): Rename the variable
59341         to be lower case.
59343 2011-01-20  Jim Meyering  <meyering@redhat.com>
59345         maint.mk: make "check" depend on public-submodule-commit by default
59346         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
59348 2011-01-20  Bruno Haible  <bruno@clisp.org>
59350         mbfile, mbiter: Complete change from 2008-12-21.
59351         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
59352         * m4/mbiter.m4 (gl_MBITER): Likewise.
59354 2011-01-20  Jim Meyering  <meyering@redhat.com>
59356         init.sh: insert space between each function name and "()"
59357         * tests/init.sh: Make it a little easier to see that a function's
59358         name is "warn_", and not "warn" when looking at the first part of
59359         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
59361 2011-01-20  Jim Meyering  <meyering@redhat.com>
59363         mountlist: clean up code formatting
59364         * lib/mountlist.c (read_file_system_list): Split a long line,
59365         correct bracing style, use NULL in place of "(struct statfs *)0",
59366         don't parenthesize return value, add spaces around "=" and after
59367         ";-in-for-stmt".
59369 2011-01-14  Markus Duft  <mduft@gentoo.org>
59371         mountlist: add support for Interix
59372         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
59373         Apply statvfs to all entries of /dev/fs.
59374         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
59375         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
59377 2011-01-20  Jim Meyering  <meyering@redhat.com>
59379         maint.mk: improve the public-submodule-commit rule
59380         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
59381         to suppress printing of its commands... unless V=1.
59382         Add git submodule's --quiet option to suppress printing of e.g.,
59383         "Entering gnulib" output.
59384         "cd" into $(srcdir) before running git submodule.
59386 2011-01-20  Bruno Haible  <bruno@clisp.org>
59388         include_next: Fix bug introduced on 2011-01-18.
59389         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
59390         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
59391         ac_cv_header_... variable if the second argument is not 'check'.
59392         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
59393         gl_NEXT_HEADERS_INTERNAL.
59395 2011-01-20  Bruno Haible  <bruno@clisp.org>
59397         Allow the user to avoid the GNULIB_TEST_* macros.
59398         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
59399         Suggested by Paul Eggert.
59401 2011-01-14  Jim Meyering  <meyering@redhat.com>
59403         bootstrap: avoid failure when there is no .gitmodules file
59404         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
59405         has been assigned to, even when its value is the empty string.
59406         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
59407         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
59408         Reported by John W. Eaton <jwe@gnu.org>.
59410 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
59412         assume <ctype.h>, ..., <time.h> exist
59413         For years gnulib has been assuming the existence of the headers
59414         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
59415         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
59416         them, since they don't appear to be needed.
59417         * README (Portability guidelines): Document this.
59418         * lib/flock.c: Assume <fcntl.h> exists.
59419         * lib/regex_internal.h: Assume <locale.h> exists.
59420         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
59421         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
59422         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
59423         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
59424         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
59425         * m4/regex.m4 (gl_REGEX): Likewise.
59426         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
59427         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
59428         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
59429         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
59430         * tests/test-argp.c: Likewise.
59431         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
59433         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
59434         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
59435         AA_APPLE_UNIVERSAL_BUILD.  See
59436         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
59437         * NEWS: Document this.
59439 2011-01-19  Eric Blake  <eblake@redhat.com>
59441         c-stack: assume stack overflow if SA_SIGINFO unsupported
59442         * lib/c-stack.c (SIGACTION_WORKS): Rename...
59443         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
59444         sigaction will work.
59445         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
59446         behavior match Linux.
59447         * tests/test-c-stack.c (main): Prefer NULL for pointers.
59449         stdbool-tests: accommodate Haiku
59450         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
59452         binary-io: fix O_TEXT on Haiku
59453         * modules/binary-io (Depends-on): Add fcntl-h.
59454         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
59455         than blindly undefining O_TEXT.
59456         Reported by Scott McCreary.
59458 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59460         include_next: do not check for standard headers like stddef.h
59462         I found this problem when modifying Emacs to use gnulib.
59463         I noticed that it added HAVE_STDDEF_H to config.h, even though
59464         gnulib always assumes <stddef.h> exists as per README and this
59465         symbol is unnecessary.
59466         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
59467         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
59468         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
59469         faster for headers like stddef.h that are known to exist.
59470         (gl_CHECK_NEXT_HEADERS): Use it.
59471         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
59472         rather than gl_CHECK_NEXT_HEADERS.
59473         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
59474         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
59476 2011-01-18  Eric Blake  <eblake@redhat.com>
59478         ansi-c++-opt: skip C++ dependency style if C++ is unused
59479         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
59480         tests when we know C++ compilation is not desired.
59481         Reported by Scott McCreary.
59483 2011-01-18  Bruno Haible  <bruno@clisp.org>
59485         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
59486         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
59487         (main): Perform test also when getrlimit and setrlimit don't exist or
59488         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
59489         limiting the address space size using setrlimit, compare the address
59490         space size before and after the test.
59491         * tests/test-dprintf-posix2.c: Likewise.
59492         * tests/test-fprintf-posix3.sh: Update skip messages.
59493         * tests/test-dprintf-posix2.sh: Likewise.
59494         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
59495         * modules/dprintf-posix-tests (Depends-on): Likewise.
59496         Reported by Bruce Korb <bkorb@gnu.org> and
59497         Gary V. Vaughan <gary@gnu.org>.
59499 2011-01-18  Bruno Haible  <bruno@clisp.org>
59501         get-rusage-as: Improvement for Cygwin.
59502         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
59503         areas that are merely reserved.
59505 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59507         strftime: remove dependencies on multibyte modules
59509         strftime depended on mbrlen, mbsinit, and wchar, but these modules
59510         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
59511         only if __osf__ is defined, and I suspect OSF doesn't need these
59512         other modules.  If my guess is wrong, we'll need to come up with a
59513         variant of strftime that doesn't need the multibyte modules.
59515         I discovered this problem when attempting modify Emacs to use the
59516         strftime module.  With the previous gnulib, this caused Emacs to
59517         need 31 new files, ranging from lib/config.charset to
59518         m4/wint_t.m4.  This was overkill and I expect would be offputting
59519         to the Emacs maintainers.  After this change, only 6 new files are
59520         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
59521         stdbool.m4, and tm_gmtoff.m4.
59523         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
59524         Suggested by Bruno Haible in
59525         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
59526         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
59527         and do not check for wchar.h.
59528         * modules/strftime (Files): Remove m4/mbstate_t.m4.
59529         (Depends-on): Remove mbrlen, mbsinit, wchar.
59531 2011-01-18  Bruno Haible  <bruno@clisp.org>
59533         Tests for module 'get-rusage-as'.
59534         * modules/get-rusage-as-tests: New file.
59535         * tests/test-get-rusage-as.c: New file.
59537         New module 'get-rusage-as'.
59538         * modules/get-rusage-as: New file.
59539         * lib/resource-ext.h: New file.
59540         * lib/get-rusage-as.c: New file.
59542 2011-01-17  Eric Blake  <eblake@redhat.com>
59544         sigaction: relax license from LGPLv3+ to LGPLv2+
59545         * modules/sigaction (License): Relax to LGPLv2+.
59547 2011-01-14  Bruno Haible  <bruno@clisp.org>
59549         filemode: Make function declarations usable in C++ mode.
59550         * lib/filemode.h: Enclose function declarations in extern "C" block.
59551         Reported by John W. Eaton <jwe@gnu.org>.
59553 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
59555         save-cwd: no longer include "xgetcwd.h"
59556         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
59557         This avoids a compilation failure in projects that use save-cwd
59558         without also using the xgetcwd module.
59560 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
59562         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
59563         This is so that a program like Emacs, which needs only dtoastr,
59564         does not have to bother with distributing and compiling ftoastr
59565         and ldtoastr.
59566         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
59567         * modules/dtoastr, modules/ldtoastr: New files.
59568         * modules/ftoastr: Now works just for 'float'.
59569         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
59570         (Makefile.am): Remove ftoastr.h (not needed and no effect),
59571         dtoastr.c, ldtoastr.c.
59573 2011-01-11  Jim Meyering  <meyering@redhat.com>
59575         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
59576         There is no need to work around the lack of the fchdir function,
59577         since gnulib can now provide a replacement when required.
59578         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
59579         * modules/save-cwd (Depends-on): Add fchdir.
59581 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
59583         openat, save-cwd: avoid xmalloc
59585         This removes a direct (but undocumented) dependency of openat on
59586         xalloc, along with an indirect dependency via save-cwd.  It also
59587         removes a dependency of save-cwd on xgetcwd, and thereby
59588         indirectly on xalloc.  This change causes the openat substitute
59589         to fall back on save_cwd when memory is tight, and for save_cwd to
59590         fail instead of dying when memory is tight, but that's good enough.
59591         Problem and initial idea for fix reported by Bastien Roucaries in
59592         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
59594         * lib/openat-proc.c: Include stdlib.h (for malloc), not
59595         xalloc.h (for xmalloc).
59596         (openat_proc_name): Use malloc, not xmalloc.
59597         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
59598         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
59600         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
59601         This avoids heap allocation for file names whose lengths are in
59602         the range 512..1023, with the upper bound increasing to at most
59603         4031 depending on the platform's PATH_MAX.  (We do not want
59604         pathmax.h here as it might supply a non-constant PATH_MAX.)
59605         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
59606         Perhaps they should be moved to malloca.h?
59607         (OPENAT_BUFFER_SIZE): Use them.
59609 2011-01-10  Bruno Haible  <bruno@clisp.org>
59611         doc: Update users.txt.
59612         * users.txt: Add recutils.
59614 2011-01-09  Karl Berry  <karl@gnu.org>
59616         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
59618         * doc/configmake.texi: New file.
59619         * doc/gnulib.texi: Include it.
59620         * modules/configmake: Move documentation from here.
59622 2011-01-09  Bruno Haible  <bruno@clisp.org>
59624         Update to Unicode 6.0.0.
59625         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
59626         (get_lbp): Update for Unicode 6.0.0.
59627         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
59628         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
59629         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
59630         U+11001, U+11038..U+11046. Remove U+06DE.
59631         (uc_width): Fix bounds of planes.
59632         * tests/uniwidth/test-uc_width2.sh: Same updates as in
59633         lib/uniwidth/width.c.
59634         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
59635         trailing whitespace removed.
59636         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
59637         without comments, but with the original copyright notice.
59638         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
59639         * lib/unicase/ignorable.h: Likewise.
59640         * lib/unicase/tocasefold.h: Likewise.
59641         * lib/unicase/tolower.h: Likewise.
59642         * lib/unicase/totitle.h: Likewise.
59643         * lib/unicase/toupper.h: Likewise.
59644         * lib/unictype/bidi_of.h: Likewise.
59645         * lib/unictype/blocks.h: Likewise.
59646         * lib/unictype/categ_C.h: Likewise.
59647         * lib/unictype/categ_Cn.h: Likewise.
59648         * lib/unictype/categ_L.h: Likewise.
59649         * lib/unictype/categ_Ll.h: Likewise.
59650         * lib/unictype/categ_Lm.h: Likewise.
59651         * lib/unictype/categ_Lo.h: Likewise.
59652         * lib/unictype/categ_Lu.h: Likewise.
59653         * lib/unictype/categ_M.h: Likewise.
59654         * lib/unictype/categ_Mc.h: Likewise.
59655         * lib/unictype/categ_Me.h: Likewise.
59656         * lib/unictype/categ_Mn.h: Likewise.
59657         * lib/unictype/categ_N.h: Likewise.
59658         * lib/unictype/categ_Nd.h: Likewise.
59659         * lib/unictype/categ_No.h: Likewise.
59660         * lib/unictype/categ_P.h: Likewise.
59661         * lib/unictype/categ_Po.h: Likewise.
59662         * lib/unictype/categ_S.h: Likewise.
59663         * lib/unictype/categ_Sc.h: Likewise.
59664         * lib/unictype/categ_Sk.h: Likewise.
59665         * lib/unictype/categ_Sm.h: Likewise.
59666         * lib/unictype/categ_So.h: Likewise.
59667         * lib/unictype/categ_of.h: Likewise.
59668         * lib/unictype/combining.h: Likewise.
59669         * lib/unictype/ctype_alnum.h: Likewise.
59670         * lib/unictype/ctype_alpha.h: Likewise.
59671         * lib/unictype/ctype_graph.h: Likewise.
59672         * lib/unictype/ctype_lower.h: Likewise.
59673         * lib/unictype/ctype_print.h: Likewise.
59674         * lib/unictype/ctype_punct.h: Likewise.
59675         * lib/unictype/ctype_upper.h: Likewise.
59676         * lib/unictype/decdigit.h: Likewise.
59677         * lib/unictype/digit.h: Likewise.
59678         * lib/unictype/numeric.h: Likewise.
59679         * lib/unictype/pr_alphabetic.h: Likewise.
59680         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59681         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59682         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59683         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59684         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59685         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59686         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59687         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59688         * lib/unictype/pr_case_ignorable.h: Likewise.
59689         * lib/unictype/pr_cased.h: Likewise.
59690         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
59691         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
59692         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
59693         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
59694         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
59695         * lib/unictype/pr_combining.h: Likewise.
59696         * lib/unictype/pr_composite.h: Likewise.
59697         * lib/unictype/pr_currency_symbol.h: Likewise.
59698         * lib/unictype/pr_decimal_digit.h: Likewise.
59699         * lib/unictype/pr_deprecated.h: Likewise.
59700         * lib/unictype/pr_format_control.h: Likewise.
59701         * lib/unictype/pr_grapheme_base.h: Likewise.
59702         * lib/unictype/pr_grapheme_extend.h: Likewise.
59703         * lib/unictype/pr_grapheme_link.h: Likewise.
59704         * lib/unictype/pr_id_continue.h: Likewise.
59705         * lib/unictype/pr_id_start.h: Likewise.
59706         * lib/unictype/pr_ideographic.h: Likewise.
59707         * lib/unictype/pr_lowercase.h: Likewise.
59708         * lib/unictype/pr_math.h: Likewise.
59709         * lib/unictype/pr_numeric.h: Likewise.
59710         * lib/unictype/pr_other_alphabetic.h: Likewise.
59711         * lib/unictype/pr_other_id_continue.h: Likewise.
59712         * lib/unictype/pr_other_math.h: Likewise.
59713         * lib/unictype/pr_punctuation.h: Likewise.
59714         * lib/unictype/pr_sentence_terminal.h: Likewise.
59715         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59716         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59717         * lib/unictype/pr_unified_ideograph.h: Likewise.
59718         * lib/unictype/pr_uppercase.h: Likewise.
59719         * lib/unictype/pr_xid_continue.h: Likewise.
59720         * lib/unictype/pr_xid_start.h: Likewise.
59721         * lib/unictype/scripts.h: Likewise.
59722         * lib/unictype/scripts_byname.gperf: Likewise.
59723         * lib/unictype/sy_java_ident.h: Likewise.
59724         * lib/unigbrk/gbrkprop.h: Likewise.
59725         * lib/unilbrk/lbrkprop1.h: Likewise.
59726         * lib/unilbrk/lbrkprop2.h: Likewise.
59727         * lib/uninorm/decomposition-table2.h: Likewise.
59728         * lib/uniwbrk/wbrkprop.h: Likewise.
59729         * tests/unicase/test-cased.c: Likewise.
59730         * tests/unicase/test-ignorable.c: Likewise.
59731         * tests/unicase/test-uc_tolower.c: Likewise.
59732         * tests/unicase/test-uc_totitle.c: Likewise.
59733         * tests/unicase/test-uc_toupper.c: Likewise.
59734         * tests/unictype/test-categ_C.c: Likewise.
59735         * tests/unictype/test-categ_Cn.c: Likewise.
59736         * tests/unictype/test-categ_L.c: Likewise.
59737         * tests/unictype/test-categ_Ll.c: Likewise.
59738         * tests/unictype/test-categ_Lm.c: Likewise.
59739         * tests/unictype/test-categ_Lo.c: Likewise.
59740         * tests/unictype/test-categ_Lu.c: Likewise.
59741         * tests/unictype/test-categ_M.c: Likewise.
59742         * tests/unictype/test-categ_Mc.c: Likewise.
59743         * tests/unictype/test-categ_Me.c: Likewise.
59744         * tests/unictype/test-categ_Mn.c: Likewise.
59745         * tests/unictype/test-categ_N.c: Likewise.
59746         * tests/unictype/test-categ_Nd.c: Likewise.
59747         * tests/unictype/test-categ_No.c: Likewise.
59748         * tests/unictype/test-categ_P.c: Likewise.
59749         * tests/unictype/test-categ_Po.c: Likewise.
59750         * tests/unictype/test-categ_S.c: Likewise.
59751         * tests/unictype/test-categ_Sc.c: Likewise.
59752         * tests/unictype/test-categ_Sk.c: Likewise.
59753         * tests/unictype/test-categ_Sm.c: Likewise.
59754         * tests/unictype/test-categ_So.c: Likewise.
59755         * tests/unictype/test-ctype_alnum.c: Likewise.
59756         * tests/unictype/test-ctype_alpha.c: Likewise.
59757         * tests/unictype/test-ctype_graph.c: Likewise.
59758         * tests/unictype/test-ctype_lower.c: Likewise.
59759         * tests/unictype/test-ctype_print.c: Likewise.
59760         * tests/unictype/test-ctype_punct.c: Likewise.
59761         * tests/unictype/test-ctype_upper.c: Likewise.
59762         * tests/unictype/test-decdigit.h: Likewise.
59763         * tests/unictype/test-digit.h: Likewise.
59764         * tests/unictype/test-numeric.h: Likewise.
59765         * tests/unictype/test-pr_alphabetic.c: Likewise.
59766         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59767         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
59768         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
59769         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59770         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59771         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59772         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59773         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59774         * tests/unictype/test-pr_case_ignorable.c: Likewise.
59775         * tests/unictype/test-pr_cased.c: Likewise.
59776         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
59777         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
59778         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
59779         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
59780         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
59781         * tests/unictype/test-pr_combining.c: Likewise.
59782         * tests/unictype/test-pr_composite.c: Likewise.
59783         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59784         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59785         * tests/unictype/test-pr_deprecated.c: Likewise.
59786         * tests/unictype/test-pr_format_control.c: Likewise.
59787         * tests/unictype/test-pr_grapheme_base.c: Likewise.
59788         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
59789         * tests/unictype/test-pr_grapheme_link.c: Likewise.
59790         * tests/unictype/test-pr_id_continue.c: Likewise.
59791         * tests/unictype/test-pr_id_start.c: Likewise.
59792         * tests/unictype/test-pr_ideographic.c: Likewise.
59793         * tests/unictype/test-pr_lowercase.c: Likewise.
59794         * tests/unictype/test-pr_math.c: Likewise.
59795         * tests/unictype/test-pr_numeric.c: Likewise.
59796         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
59797         * tests/unictype/test-pr_other_id_continue.c: Likewise.
59798         * tests/unictype/test-pr_other_math.c: Likewise.
59799         * tests/unictype/test-pr_punctuation.c: Likewise.
59800         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
59801         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
59802         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59803         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59804         * tests/unictype/test-pr_uppercase.c: Likewise.
59805         * tests/unictype/test-pr_xid_continue.c: Likewise.
59806         * tests/unictype/test-pr_xid_start.c: Likewise.
59807         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
59808         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
59809         changes.
59810         * lib/unictype/categ_Cc.h: Likewise.
59811         * lib/unictype/categ_Cf.h: Likewise.
59812         * lib/unictype/categ_Co.h: Likewise.
59813         * lib/unictype/categ_Cs.h: Likewise.
59814         * lib/unictype/categ_Lt.h: Likewise.
59815         * lib/unictype/categ_Nl.h: Likewise.
59816         * lib/unictype/categ_Pc.h: Likewise.
59817         * lib/unictype/categ_Pd.h: Likewise.
59818         * lib/unictype/categ_Pe.h: Likewise.
59819         * lib/unictype/categ_Pf.h: Likewise.
59820         * lib/unictype/categ_Pi.h: Likewise.
59821         * lib/unictype/categ_Ps.h: Likewise.
59822         * lib/unictype/categ_Z.h: Likewise.
59823         * lib/unictype/categ_Zl.h: Likewise.
59824         * lib/unictype/categ_Zp.h: Likewise.
59825         * lib/unictype/categ_Zs.h: Likewise.
59826         * lib/unictype/ctype_blank.h: Likewise.
59827         * lib/unictype/ctype_cntrl.h: Likewise.
59828         * lib/unictype/ctype_digit.h: Likewise.
59829         * lib/unictype/ctype_space.h: Likewise.
59830         * lib/unictype/ctype_xdigit.h: Likewise.
59831         * lib/unictype/mirror.h: Likewise.
59832         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59833         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59834         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59835         * lib/unictype/pr_bidi_control.h: Likewise.
59836         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59837         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59838         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59839         * lib/unictype/pr_bidi_pdf.h: Likewise.
59840         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59841         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59842         * lib/unictype/pr_dash.h: Likewise.
59843         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59844         * lib/unictype/pr_diacritic.h: Likewise.
59845         * lib/unictype/pr_extender.h: Likewise.
59846         * lib/unictype/pr_hex_digit.h: Likewise.
59847         * lib/unictype/pr_hyphen.h: Likewise.
59848         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59849         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59850         * lib/unictype/pr_ignorable_control.h: Likewise.
59851         * lib/unictype/pr_iso_control.h: Likewise.
59852         * lib/unictype/pr_join_control.h: Likewise.
59853         * lib/unictype/pr_left_of_pair.h: Likewise.
59854         * lib/unictype/pr_line_separator.h: Likewise.
59855         * lib/unictype/pr_logical_order_exception.h: Likewise.
59856         * lib/unictype/pr_non_break.h: Likewise.
59857         * lib/unictype/pr_not_a_character.h: Likewise.
59858         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59859         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59860         * lib/unictype/pr_other_id_start.h: Likewise.
59861         * lib/unictype/pr_other_lowercase.h: Likewise.
59862         * lib/unictype/pr_other_uppercase.h: Likewise.
59863         * lib/unictype/pr_paired_punctuation.h: Likewise.
59864         * lib/unictype/pr_paragraph_separator.h: Likewise.
59865         * lib/unictype/pr_pattern_syntax.h: Likewise.
59866         * lib/unictype/pr_pattern_white_space.h: Likewise.
59867         * lib/unictype/pr_private_use.h: Likewise.
59868         * lib/unictype/pr_quotation_mark.h: Likewise.
59869         * lib/unictype/pr_radical.h: Likewise.
59870         * lib/unictype/pr_soft_dotted.h: Likewise.
59871         * lib/unictype/pr_space.h: Likewise.
59872         * lib/unictype/pr_titlecase.h: Likewise.
59873         * lib/unictype/pr_variation_selector.h: Likewise.
59874         * lib/unictype/pr_white_space.h: Likewise.
59875         * lib/unictype/pr_zero_width.h: Likewise.
59876         * lib/unictype/sy_c_ident.h: Likewise.
59877         * lib/unictype/sy_c_whitespace.h: Likewise.
59878         * lib/unictype/sy_java_whitespace.h: Likewise.
59879         * lib/uninorm/composition-table.gperf: Likewise.
59880         * lib/uninorm/decomposition-table1.h: Likewise.
59881         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
59882         LB8.
59883         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
59884         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
59885         * modules/unictype/*: Bump version number of expected libunistring
59886         version.
59888 2011-01-09  Bruno Haible  <bruno@clisp.org>
59890         Update to Unicode 5.2.0.
59891         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
59892         trailing whitespace removed.
59894 2011-01-09  Bruno Haible  <bruno@clisp.org>
59896         New Unicode character properties, from Unicode 5.2.0.
59897         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
59898         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
59899         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
59900         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
59901         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
59902         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
59903         uc_is_property_cased, uc_is_property_case_ignorable,
59904         uc_is_property_changes_when_lowercased,
59905         uc_is_property_changes_when_uppercased,
59906         uc_is_property_changes_when_titlecased,
59907         uc_is_property_changes_when_casefolded,
59908         uc_is_property_changes_when_casemapped): New declarations.
59909         * lib/unictype/pr_byname.gperf: Add the new properties.
59910         * modules/unictype/property-byname (Depends-on): Depend on the new
59911         properties modules.
59912         * modules/unictype/property-all (Depends-on): Likewise.
59913         * MODULES.html.sh (Unicode string functions): Add
59914         unictype/property-case-ignorable, unictype/property-cased,
59915         unictype/property-changes-when-casefolded,
59916         unictype/property-changes-when-casemapped,
59917         unictype/property-changes-when-lowercased,
59918         unictype/property-changes-when-titlecased,
59919         unictype/property-changes-when-uppercased.
59921         New module 'unictype/property-changes-when-casemapped'.
59922         * modules/unictype/property-changes-when-casemapped: New file.
59923         * lib/unictype/pr_changes_when_casemapped.c: New file.
59924         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
59925         generated by gen-uni-tables.
59926         * modules/unictype/property-changes-when-casemapped-tests: New file.
59927         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
59928         automatically generated by gen-uni-tables.
59930         New module 'unictype/property-changes-when-casefolded'.
59931         * modules/unictype/property-changes-when-casefolded: New file.
59932         * lib/unictype/pr_changes_when_casefolded.c: New file.
59933         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
59934         generated by gen-uni-tables.
59935         * modules/unictype/property-changes-when-casefolded-tests: New file.
59936         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
59937         automatically generated by gen-uni-tables.
59939         New module 'unictype/property-changes-when-titlecased'.
59940         * modules/unictype/property-changes-when-titlecased: New file.
59941         * lib/unictype/pr_changes_when_titlecased.c: New file.
59942         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
59943         generated by gen-uni-tables.
59944         * modules/unictype/property-changes-when-titlecased-tests: New file.
59945         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
59946         automatically generated by gen-uni-tables.
59948         New module 'unictype/property-changes-when-uppercased'.
59949         * modules/unictype/property-changes-when-uppercased: New file.
59950         * lib/unictype/pr_changes_when_uppercased.c: New file.
59951         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
59952         generated by gen-uni-tables.
59953         * modules/unictype/property-changes-when-uppercased-tests: New file.
59954         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
59955         automatically generated by gen-uni-tables.
59957         New module 'unictype/property-changes-when-lowercased'.
59958         * modules/unictype/property-changes-when-lowercased: New file.
59959         * lib/unictype/pr_changes_when_lowercased.c: New file.
59960         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
59961         generated by gen-uni-tables.
59962         * modules/unictype/property-changes-when-lowercased-tests: New file.
59963         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
59964         automatically generated by gen-uni-tables.
59966         New module 'unictype/property-case-ignorable'.
59967         * modules/unictype/property-case-ignorable: New file.
59968         * lib/unictype/pr_case_ignorable.c: New file.
59969         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
59970         by gen-uni-tables.
59971         * modules/unictype/property-case-ignorable-tests: New file.
59972         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
59973         generated by gen-uni-tables.
59975         New module 'unictype/property-cased'.
59976         * modules/unictype/property-cased: New file.
59977         * lib/unictype/pr_cased.c: New file.
59978         * lib/unictype/pr_cased.h: New file, automatically generated by
59979         gen-uni-tables.
59980         * modules/unictype/property-cased-tests: New file.
59981         * tests/unictype/test-pr_cased.c: New file, automatically generated by
59982         gen-uni-tables.
59984 2011-01-09  Bruno Haible  <bruno@clisp.org>
59986         Update to Unicode 5.2.0.
59987         * lib/gen-uni-tables.c (output_predicate, output_category,
59988         output_combclass, output_bidi_category, output_decimal_digit_test,
59989         output_decimal_digit, output_digit_test, output_digit,
59990         output_numeric_test, output_numeric, output_mirror, output_scripts,
59991         output_scripts_byname, output_blocks, output_ident_category): Fix
59992         comment header.
59993         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
59994         get_wbp.
59995         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
59996         items.
59997         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
59998         Changes_When_Lowercased, Changes_When_Uppercased,
59999         Changes_When_Titlecased, Changes_When_Casefolded,
60000         Changes_When_Casemapped.
60001         (is_property_alphabetic, is_property_default_ignorable_code_point):
60002         Update for Unicode 5.2.0.
60003         (is_property_cased, is_property_case_ignorable,
60004         is_property_changes_when_lowercased,
60005         is_property_changes_when_uppercased,
60006         is_property_changes_when_titlecased,
60007         is_property_changes_when_casefolded,
60008         is_property_changes_when_casemapped): New functions.
60009         (output_properties): Output also the properties cased, case_ignorable,
60010         changes_when_lowercased, changes_when_uppercased,
60011         changes_when_titlecased, changes_when_casefolded,
60012         changes_when_casemapped.
60013         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
60014         Unicode TR#11 revision 17 -> 19.
60015         (LBP_CP): New enumeration value.
60016         (LBP_*): Adjust values accordingly.
60017         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
60018         TR#14 revision 22 -> 24.
60019         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
60020         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
60021         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
60022         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
60023         is_WBP_MIDLETTER.
60024         (output_composition_tables): Allow for 24 bits instead of 16 bits in
60025         the code1 and code2 of each composition rule.
60026         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
60027         * lib/unicase/ignorable.h: Likewise.
60028         * lib/unicase/tocasefold.h: Likewise.
60029         * lib/unicase/tolower.h: Likewise.
60030         * lib/unicase/totitle.h: Likewise.
60031         * lib/unicase/toupper.h: Likewise.
60032         * lib/unictype/bidi_of.h: Likewise.
60033         * lib/unictype/blocks.h: Likewise.
60034         * lib/unictype/categ_C.h: Likewise.
60035         * lib/unictype/categ_Cf.h: Likewise.
60036         * lib/unictype/categ_Cn.h: Likewise.
60037         * lib/unictype/categ_L.h: Likewise.
60038         * lib/unictype/categ_Ll.h: Likewise.
60039         * lib/unictype/categ_Lm.h: Likewise.
60040         * lib/unictype/categ_Lo.h: Likewise.
60041         * lib/unictype/categ_Lu.h: Likewise.
60042         * lib/unictype/categ_M.h: Likewise.
60043         * lib/unictype/categ_Mc.h: Likewise.
60044         * lib/unictype/categ_Mn.h: Likewise.
60045         * lib/unictype/categ_N.h: Likewise.
60046         * lib/unictype/categ_Nd.h: Likewise.
60047         * lib/unictype/categ_Nl.h: Likewise.
60048         * lib/unictype/categ_No.h: Likewise.
60049         * lib/unictype/categ_P.h: Likewise.
60050         * lib/unictype/categ_Pd.h: Likewise.
60051         * lib/unictype/categ_Po.h: Likewise.
60052         * lib/unictype/categ_S.h: Likewise.
60053         * lib/unictype/categ_Sc.h: Likewise.
60054         * lib/unictype/categ_So.h: Likewise.
60055         * lib/unictype/categ_of.h: Likewise.
60056         * lib/unictype/combining.h: Likewise.
60057         * lib/unictype/ctype_alnum.h: Likewise.
60058         * lib/unictype/ctype_alpha.h: Likewise.
60059         * lib/unictype/ctype_graph.h: Likewise.
60060         * lib/unictype/ctype_lower.h: Likewise.
60061         * lib/unictype/ctype_print.h: Likewise.
60062         * lib/unictype/ctype_punct.h: Likewise.
60063         * lib/unictype/ctype_upper.h: Likewise.
60064         * lib/unictype/decdigit.h: Likewise.
60065         * lib/unictype/digit.h: Likewise.
60066         * lib/unictype/numeric.h: Likewise.
60067         * lib/unictype/pr_alphabetic.h: Likewise.
60068         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
60069         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
60070         * lib/unictype/pr_bidi_european_digit.h: Likewise.
60071         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
60072         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
60073         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
60074         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
60075         * lib/unictype/pr_combining.h: Likewise.
60076         * lib/unictype/pr_composite.h: Likewise.
60077         * lib/unictype/pr_currency_symbol.h: Likewise.
60078         * lib/unictype/pr_dash.h: Likewise.
60079         * lib/unictype/pr_decimal_digit.h: Likewise.
60080         * lib/unictype/pr_deprecated.h: Likewise.
60081         * lib/unictype/pr_diacritic.h: Likewise.
60082         * lib/unictype/pr_extender.h: Likewise.
60083         * lib/unictype/pr_grapheme_base.h: Likewise.
60084         * lib/unictype/pr_grapheme_extend.h: Likewise.
60085         * lib/unictype/pr_grapheme_link.h: Likewise.
60086         * lib/unictype/pr_id_continue.h: Likewise.
60087         * lib/unictype/pr_id_start.h: Likewise.
60088         * lib/unictype/pr_ideographic.h: Likewise.
60089         * lib/unictype/pr_ignorable_control.h: Likewise.
60090         * lib/unictype/pr_logical_order_exception.h: Likewise.
60091         * lib/unictype/pr_lowercase.h: Likewise.
60092         * lib/unictype/pr_numeric.h: Likewise.
60093         * lib/unictype/pr_other_alphabetic.h: Likewise.
60094         * lib/unictype/pr_punctuation.h: Likewise.
60095         * lib/unictype/pr_sentence_terminal.h: Likewise.
60096         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60097         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60098         * lib/unictype/pr_unified_ideograph.h: Likewise.
60099         * lib/unictype/pr_uppercase.h: Likewise.
60100         * lib/unictype/pr_xid_continue.h: Likewise.
60101         * lib/unictype/pr_xid_start.h: Likewise.
60102         * lib/unictype/pr_zero_width.h: Likewise.
60103         * lib/unictype/scripts.h: Likewise.
60104         * lib/unictype/scripts_byname.gperf: Likewise.
60105         * lib/unictype/sy_java_ident.h: Likewise.
60106         * lib/unigbrk/gbrkprop.h: Likewise.
60107         * lib/unilbrk/lbrkprop1.h: Likewise.
60108         * lib/unilbrk/lbrkprop2.h: Likewise.
60109         * lib/unilbrk/lbrktables.h: Likewise.
60110         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
60111         LBP_CP. Implement rule LB30.
60112         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
60113         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
60114         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
60115         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
60116         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
60117         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
60118         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
60119         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
60120         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
60121         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
60122         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
60123         bits instead of 16 bits in the code1 and code2 of each composition
60124         rule.
60125         (uc_composition): Update for Unicode 5.2.0.
60126         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
60127         * lib/uninorm/decomposition-table2.h: Likewise.
60128         * lib/uniwbrk/wbrkprop.h: Likewise.
60129         * tests/unicase/test-cased.c: Likewise.
60130         * tests/unicase/test-ignorable.c: Likewise.
60131         * tests/unicase/test-uc_tolower.c: Likewise.
60132         * tests/unicase/test-uc_totitle.c: Likewise.
60133         * tests/unicase/test-uc_toupper.c: Likewise.
60134         * tests/unictype/test-categ_C.c: Likewise.
60135         * tests/unictype/test-categ_Cf.c: Likewise.
60136         * tests/unictype/test-categ_Cn.c: Likewise.
60137         * tests/unictype/test-categ_L.c: Likewise.
60138         * tests/unictype/test-categ_Ll.c: Likewise.
60139         * tests/unictype/test-categ_Lm.c: Likewise.
60140         * tests/unictype/test-categ_Lo.c: Likewise.
60141         * tests/unictype/test-categ_Lu.c: Likewise.
60142         * tests/unictype/test-categ_M.c: Likewise.
60143         * tests/unictype/test-categ_Mc.c: Likewise.
60144         * tests/unictype/test-categ_Mn.c: Likewise.
60145         * tests/unictype/test-categ_N.c: Likewise.
60146         * tests/unictype/test-categ_Nd.c: Likewise.
60147         * tests/unictype/test-categ_Nl.c: Likewise.
60148         * tests/unictype/test-categ_No.c: Likewise.
60149         * tests/unictype/test-categ_P.c: Likewise.
60150         * tests/unictype/test-categ_Pd.c: Likewise.
60151         * tests/unictype/test-categ_Po.c: Likewise.
60152         * tests/unictype/test-categ_S.c: Likewise.
60153         * tests/unictype/test-categ_Sc.c: Likewise.
60154         * tests/unictype/test-categ_So.c: Likewise.
60155         * tests/unictype/test-ctype_alnum.c: Likewise.
60156         * tests/unictype/test-ctype_alpha.c: Likewise.
60157         * tests/unictype/test-ctype_graph.c: Likewise.
60158         * tests/unictype/test-ctype_lower.c: Likewise.
60159         * tests/unictype/test-ctype_print.c: Likewise.
60160         * tests/unictype/test-ctype_punct.c: Likewise.
60161         * tests/unictype/test-ctype_upper.c: Likewise.
60162         * tests/unictype/test-decdigit.h: Likewise.
60163         * tests/unictype/test-digit.h: Likewise.
60164         * tests/unictype/test-numeric.h: Likewise.
60165         * tests/unictype/test-pr_alphabetic.c: Likewise.
60166         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
60167         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
60168         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
60169         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
60170         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
60171         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
60172         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
60173         * tests/unictype/test-pr_combining.c: Likewise.
60174         * tests/unictype/test-pr_composite.c: Likewise.
60175         * tests/unictype/test-pr_currency_symbol.c: Likewise.
60176         * tests/unictype/test-pr_dash.c: Likewise.
60177         * tests/unictype/test-pr_decimal_digit.c: Likewise.
60178         * tests/unictype/test-pr_deprecated.c: Likewise.
60179         * tests/unictype/test-pr_diacritic.c: Likewise.
60180         * tests/unictype/test-pr_extender.c: Likewise.
60181         * tests/unictype/test-pr_grapheme_base.c: Likewise.
60182         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
60183         * tests/unictype/test-pr_grapheme_link.c: Likewise.
60184         * tests/unictype/test-pr_id_continue.c: Likewise.
60185         * tests/unictype/test-pr_id_start.c: Likewise.
60186         * tests/unictype/test-pr_ideographic.c: Likewise.
60187         * tests/unictype/test-pr_ignorable_control.c: Likewise.
60188         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
60189         * tests/unictype/test-pr_lowercase.c: Likewise.
60190         * tests/unictype/test-pr_numeric.c: Likewise.
60191         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
60192         * tests/unictype/test-pr_punctuation.c: Likewise.
60193         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
60194         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
60195         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
60196         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
60197         * tests/unictype/test-pr_uppercase.c: Likewise.
60198         * tests/unictype/test-pr_xid_continue.c: Likewise.
60199         * tests/unictype/test-pr_xid_start.c: Likewise.
60200         * tests/unictype/test-pr_zero_width.c: Likewise.
60201         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
60202         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
60203         changed behaviour: line breaking is now disallowed between a letter
60204         or '=' and '('.
60205         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
60206         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
60207         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
60208         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
60209         * tests/uniwidth/test-uc_width2.sh: Same updates as in
60210         lib/uniwidth/width.c.
60211         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
60212         without comments, but with the original copyright notice.
60213         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
60214         changes.
60215         * lib/unictype/categ_Cc.h: Likewise.
60216         * lib/unictype/categ_Co.h: Likewise.
60217         * lib/unictype/categ_Cs.h: Likewise.
60218         * lib/unictype/categ_Lt.h: Likewise.
60219         * lib/unictype/categ_Me.h: Likewise.
60220         * lib/unictype/categ_Pc.h: Likewise.
60221         * lib/unictype/categ_Pe.h: Likewise.
60222         * lib/unictype/categ_Pf.h: Likewise.
60223         * lib/unictype/categ_Pi.h: Likewise.
60224         * lib/unictype/categ_Ps.h: Likewise.
60225         * lib/unictype/categ_Sk.h: Likewise.
60226         * lib/unictype/categ_Sm.h: Likewise.
60227         * lib/unictype/categ_Z.h: Likewise.
60228         * lib/unictype/categ_Zl.h: Likewise.
60229         * lib/unictype/categ_Zp.h: Likewise.
60230         * lib/unictype/categ_Zs.h: Likewise.
60231         * lib/unictype/ctype_blank.h: Likewise.
60232         * lib/unictype/ctype_cntrl.h: Likewise.
60233         * lib/unictype/ctype_digit.h: Likewise.
60234         * lib/unictype/ctype_space.h: Likewise.
60235         * lib/unictype/ctype_xdigit.h: Likewise.
60236         * lib/unictype/mirror.h: Likewise.
60237         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60238         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
60239         * lib/unictype/pr_bidi_block_separator.h: Likewise.
60240         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
60241         * lib/unictype/pr_bidi_common_separator.h: Likewise.
60242         * lib/unictype/pr_bidi_control.h: Likewise.
60243         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
60244         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
60245         * lib/unictype/pr_bidi_pdf.h: Likewise.
60246         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60247         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60248         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60249         * lib/unictype/pr_format_control.h: Likewise.
60250         * lib/unictype/pr_hex_digit.h: Likewise.
60251         * lib/unictype/pr_hyphen.h: Likewise.
60252         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60253         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60254         * lib/unictype/pr_iso_control.h: Likewise.
60255         * lib/unictype/pr_join_control.h: Likewise.
60256         * lib/unictype/pr_left_of_pair.h: Likewise.
60257         * lib/unictype/pr_line_separator.h: Likewise.
60258         * lib/unictype/pr_math.h: Likewise.
60259         * lib/unictype/pr_non_break.h: Likewise.
60260         * lib/unictype/pr_not_a_character.h: Likewise.
60261         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60262         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60263         * lib/unictype/pr_other_id_continue.h: Likewise.
60264         * lib/unictype/pr_other_id_start.h: Likewise.
60265         * lib/unictype/pr_other_lowercase.h: Likewise.
60266         * lib/unictype/pr_other_math.h: Likewise.
60267         * lib/unictype/pr_other_uppercase.h: Likewise.
60268         * lib/unictype/pr_paired_punctuation.h: Likewise.
60269         * lib/unictype/pr_paragraph_separator.h: Likewise.
60270         * lib/unictype/pr_pattern_syntax.h: Likewise.
60271         * lib/unictype/pr_pattern_white_space.h: Likewise.
60272         * lib/unictype/pr_private_use.h: Likewise.
60273         * lib/unictype/pr_quotation_mark.h: Likewise.
60274         * lib/unictype/pr_radical.h: Likewise.
60275         * lib/unictype/pr_soft_dotted.h: Likewise.
60276         * lib/unictype/pr_space.h: Likewise.
60277         * lib/unictype/pr_titlecase.h: Likewise.
60278         * lib/unictype/pr_variation_selector.h: Likewise.
60279         * lib/unictype/pr_white_space.h: Likewise.
60280         * lib/unictype/sy_c_ident.h: Likewise.
60281         * lib/unictype/sy_c_whitespace.h: Likewise.
60282         * lib/unictype/sy_java_whitespace.h: Likewise.
60283         * modules/uni*/*: Bump version number of expected libunistring version.
60284         Reported by Simon Josefsson.
60286 2011-01-09  Karl Heuer  <kwzh@gnu.org>
60288         useless-if-before-free: fix typo in --help and make the internal,
60289         automatic version date update process work once again.
60290         --help output contained a NUL character instead of the
60291         backslash-zero that was intended.  Also, the "must lie within
60292         the first 8 lines" line is on line 9, and hence not getting
60293         automatically updated.
60294         * build-aux/useless-if-before-free: Fix the former by adding a
60295         backslash, and the latter by condensing the three lines of what-it-does
60296         to a single line, leaving one line of slack for the future.
60298 2011-01-09  Bruno Haible  <bruno@clisp.org>
60300         uniwidth/width: Fix width of U+1D173..U+1D17A.
60301         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
60302         symbolic_width, output_width_property_test): New functions.
60303         (main): Invoke output_nonspacing_property, output_width_property_test.
60304         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
60305         U+1D173..U+1D17A.
60306         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
60307         1.
60308         * modules/uniwidth/*: Bump version number of expected libunistring
60309         version.
60310         * modules/unilbrk/*: Likewise.
60312 2011-01-08  Bruno Haible  <bruno@clisp.org>
60314         uninorm tests: Preserve copyright of Unicode data file.
60315         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
60316         Mention modifications.
60318 2011-01-08  Bruno Haible  <bruno@clisp.org>
60320         gen-uni-tables: Prepare for Unicode 5.2.0.
60321         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
60322         (debug_output_lbp, output_lbp): Update.
60324 2011-01-08  Bruno Haible  <bruno@clisp.org>
60326         unilbrk: Clarify gen-uni-tables.c code.
60327         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
60328         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
60329         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
60331 2011-01-07  Bruno Haible  <bruno@clisp.org>
60333         strtod: Restore errno when successfully parsing Infinity or NaN.
60334         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
60335         restore the original errno.
60337 2011-01-07  Bruno Haible  <bruno@clisp.org>
60339         remove test: Avoid failure on HP-UX 11.
60340         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
60342 2011-01-07  Bruno Haible  <bruno@clisp.org>
60344         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
60345         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
60346         error code.
60348 2011-01-07  Pádraig Brady  <P@draigBrady.com>
60350         ignore-value: fixup comments, and add Eric Blake
60351         as an author since he rewrote the macros.
60352         * lib/ignore-value.h (ignore_value):  State that
60353         we now support aggregates.  Also specify exactly
60354         when the GCC warn_unused_result feature was added.
60356 2011-01-06  Eric Blake  <eblake@redhat.com>
60358         ignore-value: support aggregate types
60359         * lib/ignore-value.h (ignore_value): Provide separate gcc
60360         definition.
60361         * modules/ignore-value-tests: New test module.
60362         * tests/test-ignore-value.c: New test.
60364         maint.mk: improve sc_prohibit_strcmp regex
60365         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
60366         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
60367         definition of STRNEQ.
60369         signal: work around Haiku issue with SIGBUS
60370         * lib/siglist.h: Add comment.
60371         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
60372         strsignal's favoring of SIGSEGV.
60373         * tests/test-signal.c (main): Avoid test failure.
60374         * doc/posix-headers/signal.texi (signal.h): Document the issue.
60375         Reported by Scott McCreary.
60377         maint.mk: add pre-release check to ensure submodule commits are public
60378         * top/maint.mk (public-submodule-commit): New rule.
60379         (submodule-checks): New variable.
60380         (alpha beta stable): Depend on the variable.
60382 2011-01-05  Pádraig Brady  <P@draigBrady.com>
60383         and Jim Meyering  <meyering@redhat.com>
60385         ignore-value: make ignore_value more generic; deprecate ignore_ptr
60386         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
60387         (ATTRIBUTE_DEPRECATED): Define.
60388         (_ignore_case): New function.
60389         (ignore_value): New macro, to replace the old function.
60390         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
60391         * modules/ignore-value (Depends-on): Add stdint.
60393 2011-01-04  Eric Blake  <eblake@redhat.com>
60395         doc: regenerate INSTALL
60396         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
60397         @firstparagraphindent support, now that autoconf dropped it.
60398         (INSTALL_PRELUDE): Reinstate old macro.
60399         * doc/install.texi: Resync from autoconf.
60400         * doc/INSTALL: Reflect recent autoconf update.
60401         * doc/INSTALL.ISO: Likewise.
60402         * doc/INSTALL.UTF-8: Likewise.
60403         Reported by Karl Berry.
60405 2011-01-04  Bruce Korb  <address@hidden>
60407         git-version-gen: avoid a sub-shell
60408         * build-aux/git-version-gen: Redirect stderr in `...` via
60409         "exec 2>...", rather than via an added sub-shell.
60411 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
60413         git-version-gen: use (...) rather than sh -c '...'
60414         * build-aux/git-version-gen: Rather than hard-coding a shell's name
60415         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
60417 2011-01-03  Jim Meyering  <meyering@redhat.com>
60419         git-version-gen: convert leading TABs to spaces
60420         * build-aux/git-version-gen: Expand leading TABs.
60422         git-version-gen: handle failed "git rev-list"
60423         * build-aux/git-version-gen: Rather than leaking a "fatal" error
60424         from git and proceeding as if it had succeeded but printed no SHA1
60425         checksums, suppress the diagnostic and handle the failure.
60426         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
60428         git-version-gen: include command name in one more diagnostic
60429         * build-aux/git-version-gen: When the required .tarball-version file
60430         was missing or unreadable, you might see the diagnostic from "cat",
60431         but no trace of the name of the invoking script.  Now, you still see
60432         the diagnostic from cat, but also get one from "git-version-gen: ".
60433         Inspired by a patch from Bruce Korb.
60435         update-copyright: adjust test to match changed code
60436         * tests/test-update-copyright.sh: Change test's expected output
60437         to match new actual output.
60439 2011-01-02  Bruno Haible  <bruno@clisp.org>
60441         getlogin_r: Avoid test failure on HP-UX 11.
60442         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
60443         ERANGE when the second argument is zero.
60444         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
60445         portability problem.
60447 2011-01-02  Bruce Korb  <bkorb@gnu.org>
60449         * build-aux/update-copyright: doc Simon's changes
60451 2011-01-02  Simon Josefsson  <simon@josefsson.org>
60453         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
60454         environment variable.
60456 2011-01-02  Bruno Haible  <bruno@clisp.org>
60458         unigbrk: Avoid gcc warnings.
60459         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
60460         unused variable.
60461         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
60462         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
60463         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
60464         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
60465         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
60466         Change type of first argument to 'const char *'.
60467         (main): Remove unused variable.
60468         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
60469         type of first argument to 'const char *'.
60470         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
60471         Likewise.
60472         (main): Change type of variable 's'.
60473         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
60474         to 'int'.
60476 2011-01-02  Bruno Haible  <bruno@clisp.org>
60478         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
60479         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
60480         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
60481         bug.
60482         * lib/pwrite.c: Undo 2010-12-31 patch.
60483         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
60485 2011-01-02  Bruno Haible  <bruno@clisp.org>
60487         pread: Fix test whether it works.
60488         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
60490 2011-01-02  Bruno Haible  <bruno@clisp.org>
60492         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
60493         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
60494         ends in "6". Don't require a specific month name. Try also the locale
60495         names found on HP-UX 11 and Solaris 7.
60497 2011-01-02  Bruno Haible  <bruno@clisp.org>
60499         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
60500         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
60501         C linkage.
60502         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
60504 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
60506         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
60507         for consistency, since the "cluster" term is not used elsewhere.
60508         * lib/unigbrk.in.h: Update name.
60509         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
60510         * lib/unigbrk/u16-grapheme-next.c: Update name.
60511         * lib/unigbrk/u16-grapheme-prev.c: Update name.
60512         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
60513         * lib/unigbrk/u32-grapheme-next.c: Update name.
60514         * lib/unigbrk/u32-grapheme-prev.c: Update name.
60515         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
60516         * lib/unigbrk/u8-grapheme-next.c: Update name.
60517         * lib/unigbrk/u8-grapheme-prev.c: Update name.
60518         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
60519         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
60520         Suggested by Bruno Haible.
60522 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
60524         Remove module 'u8-grapheme-len' as too redundant with
60525         'u8-grapheme-next'.
60526         * modules/unigbrk/u8-grapheme-len: Delete file.
60527         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
60528         * lib/unigbrk.in.h: Remove prototype for deleted function.
60529         * lib/unigbrk/u8-grapheme-len.c: Delete file.
60530         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
60532         Remove module 'u16-grapheme-len' as too redundant with
60533         'u16-grapheme-next'.
60534         * modules/unigbrk/u16-grapheme-len: Delete file.
60535         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
60536         * lib/unigbrk.in.h: Remove prototype for deleted function.
60537         * lib/unigbrk/u16-grapheme-len.c: Delete file.
60538         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
60540         Remove module 'u32-grapheme-len' as too redundant with
60541         'u32-grapheme-next'.
60542         * modules/unigbrk/u32-grapheme-len: Delete file.
60543         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
60544         * lib/unigbrk.in.h: Remove prototype for deleted function.
60545         * lib/unigbrk/u32-grapheme-len.c: Delete file.
60546         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
60548         Suggested by Bruno Haible.
60550 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
60552         * unigbrk.in.h: Fix typo: "ben" => "been".
60553         Reported by Bruno Haible.
60555 2011-01-01  Jim Meyering  <meyering@redhat.com>
60557         maint: update almost all copyright ranges to include 2011
60558         Run the new "make update-copyright" rule.
60560 2011-01-01  Jim Meyering  <meyering@redhat.com>
60562         maint: update-copyright: exempt doc/INSTALL*
60563         * Makefile (update-copyright): Also exclude doc/INSTALL*,
60564         since they are generated.  Suggested by Bruno Haible.
60566 2011-01-01  Jim Meyering  <meyering@redhat.com>
60568         maint: refine the update-copyright rule
60569         * Makefile (update-copyright): Also exclude any file that includes
60570         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
60571         code that merely generates the comment.
60573 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
60575         New module 'u8-grapheme-len'.
60576         * modules/unigbrk/u8-grapheme-len: New file.
60577         * modules/unigbrk/u8-grapheme-len-tests: New file.
60578         * lib/unigbrk.in.h: Add prototype for new function.
60579         * lib/unigbrk/u8-grapheme-len.c: New file.
60580         * tests/unigbrk/test-u8-grapheme-len.c: New file.
60582         New module 'u16-grapheme-len'.
60583         * modules/unigbrk/u16-grapheme-len: New file.
60584         * modules/unigbrk/u16-grapheme-len-tests: New file.
60585         * lib/unigbrk.in.h: Add prototype for new function.
60586         * lib/unigbrk/u16-grapheme-len.c: New file.
60587         * tests/unigbrk/test-u16-grapheme-len.c: New file.
60589         New module 'u32-grapheme-len'.
60590         * modules/unigbrk/u32-grapheme-len: New file.
60591         * modules/unigbrk/u32-grapheme-len-tests: New file.
60592         * lib/unigbrk.in.h: Add prototype for new function.
60593         * lib/unigbrk/u32-grapheme-len.c: New file.
60594         * tests/unigbrk/test-u32-grapheme-len.c: New file.
60596         New module 'u8-grapheme-next'.
60597         * modules/unigbrk/u8-grapheme-next: New file.
60598         * modules/unigbrk/u8-grapheme-next-tests: New file.
60599         * lib/unigbrk.in.h: Add prototype for new function.
60600         * lib/unigbrk/u8-grapheme-next.c: New file.
60601         * tests/unigbrk/test-u8-grapheme-next.c: New file.
60603         New module 'u16-grapheme-next'.
60604         * modules/unigbrk/u16-grapheme-next: New file.
60605         * modules/unigbrk/u16-grapheme-next-tests: New file.
60606         * lib/unigbrk.in.h: Add prototype for new function.
60607         * lib/unigbrk/u16-grapheme-next.c: New file.
60608         * tests/unigbrk/test-u16-grapheme-next.c: New file.
60610         New module 'u32-grapheme-next'.
60611         * modules/unigbrk/u32-grapheme-next: New file.
60612         * modules/unigbrk/u32-grapheme-next-tests: New file.
60613         * lib/unigbrk.in.h: Add prototype for new function.
60614         * lib/unigbrk/u32-grapheme-next.c: New file.
60615         * tests/unigbrk/test-u32-grapheme-next.c: New file.
60617         New module 'u8-grapheme-prev'.
60618         * modules/unigbrk/u8-grapheme-prev: New file.
60619         * modules/unigbrk/u8-grapheme-prev-tests: New file.
60620         * lib/unigbrk.in.h: Add prototype for new function.
60621         * lib/unigbrk/u8-grapheme-prev.c: New file.
60622         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
60624         New module 'u16-grapheme-prev'.
60625         * modules/unigbrk/u16-grapheme-prev: New file.
60626         * modules/unigbrk/u16-grapheme-prev-tests: New file.
60627         * lib/unigbrk.in.h: Add prototype for new function.
60628         * lib/unigbrk/u16-grapheme-prev.c: New file.
60629         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
60631         New module 'u32-grapheme-prev'.
60632         * modules/unigbrk/u32-grapheme-prev: New file.
60633         * modules/unigbrk/u32-grapheme-prev-tests: New file.
60634         * lib/unigbrk.in.h: Add prototype for new function.
60635         * lib/unigbrk/u32-grapheme-prev.c: New file.
60636         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
60638         New module 'u8-grapheme-breaks'.
60639         * modules/unigbrk/u8-grapheme-breaks: New file.
60640         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
60641         * lib/unigbrk.in.h: Add prototype for new function.
60642         * lib/unigbrk/u8-grapheme-breaks.c: New file.
60643         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
60645         New module 'u16-grapheme-breaks'.
60646         * modules/unigbrk/u16-grapheme-breaks: New file.
60647         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
60648         * lib/unigbrk.in.h: Add prototype for new function.
60649         * lib/unigbrk/u16-grapheme-breaks.c: New file.
60650         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
60652         New module 'u32-grapheme-breaks'.
60653         * modules/unigbrk/u32-grapheme-breaks: New file.
60654         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
60655         * lib/unigbrk.in.h: Add prototype for new function.
60656         * lib/unigbrk/u32-grapheme-breaks.c: New file.
60657         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
60659         New module 'ulc-grapheme-breaks'.
60660         * modules/unigbrk/ulc-grapheme-breaks: New file.
60661         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
60662         * m4/locale-ar.m4: New file.
60663         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
60664         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
60665         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
60667 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
60669         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
60670         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
60671         modified how this file was generated before I initially submitted
60672         the module, but failed to regenerate it.  This meant that several
60673         of the level2 entries were wrong.
60674         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
60675         Remove the division-by-2 that is folded into the table now that
60676         gbrkprop.h has been regenerated properly.  Now -1 entries are
60677         handled correctly.
60679         New module 'unigbrk/uc-gbrk-prop-tests'.
60680         * modules/unigbrk/uc-gbrk-prop-tests: New file.
60681         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
60682         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
60683         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
60685 2011-01-01  Bruno Haible  <bruno@clisp.org>
60687         Avoid use of hexadecimal escapes.
60688         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
60689         instead of hexadecimal escapes.
60691 2011-01-01  Jim Meyering  <meyering@redhat.com>
60693         maint: new rule to update copyright year ranges
60694         * Makefile (update-copyright): New rule.
60696         maint: indent with TABs in Makefile
60697         * Makefile: Expand leading sequences of spaces to TABs
60699         version-etc: update the copyright year it reports
60700         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
60702 2010-12-31  Bruno Haible  <bruno@clisp.org>
60704         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
60705         * lib/isfinite.c (zerof, zerod, zerol): New variables.
60706         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
60707         zero.
60709 2010-12-31  Bruno Haible  <bruno@clisp.org>
60711         pwrite: Work around HP-UX 11.11 bug.
60712         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
60713         works and set REPLACE_PWRITE if not.
60714         * lib/pwrite.c (pwrite): Add an implementation that uses the system
60715         function.
60716         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
60718 2010-12-31  Bruno Haible  <bruno@clisp.org>
60720         pread: Work around HP-UX 11 bugs.
60721         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
60722         and set REPLACE_PREAD if not.
60723         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
60725 2010-12-31  Eric Blake  <eblake@redhat.com>
60727         nl_langinfo: fix YESEXPR on Irix 6.5
60728         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
60729         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
60730         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
60731         it.
60733 2010-12-31  Bruno Haible  <bruno@clisp.org>
60735         iconv: Document HP-UX 11 bug.
60736         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
60738 2010-12-31  Bruno Haible  <bruno@clisp.org>
60740         ldexpl: Fix link error on HP-UX 11.
60741         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
60742         LDEXPL_LIBM, using $ISNANL_LIBM.
60744 2010-12-31  Eric Blake  <eblake@redhat.com>
60746         ftello: avoid compilation failure with SunStudio c89
60747         * lib/ftello.c (ftello): Use lseek, not llseek.
60749         tests: avoid failing coreutils tests on cygwin
60750         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
60751         (create_exe_shims_): Return 0 when skipping.
60753 2010-12-31  Bruno Haible  <bruno@clisp.org>
60755         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
60756         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
60758 2010-12-31  Bruno Haible  <bruno@clisp.org>
60760         waitpid: Fix link error in C++ mode.
60761         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
60763 2010-12-31  Bruno Haible  <bruno@clisp.org>
60765         isnan: Use GCC built-ins when possible.
60766         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
60767         __builtin_isnan.
60768         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
60769         (isnan): Define using GCC built-ins for GCC >= 4.0.
60771 2010-12-31  Bruno Haible  <bruno@clisp.org>
60773         isnand: Fix mistake.
60774         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
60775         __builtin_isnand.
60777 2010-12-31  Bruno Haible  <bruno@clisp.org>
60779         open: Avoid C++ error on HP-UX 11.
60780         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
60782 2010-12-31  Bruno Haible  <bruno@clisp.org>
60784         time_r: Add missing declarations on HP-UX 11.
60785         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
60786         instead of HAVE_LOCALTIME_R.
60787         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
60788         HAVE_LOCALTIME_R always.
60789         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
60790         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
60791         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
60792         HAVE_LOCALTIME_R.
60793         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
60794         * doc/posix-functions/localtime_r.texi: Likewise.
60796 2010-12-29  Eric Blake  <eblake@redhat.com>
60798         mountlist: tweak previous commit
60799         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
60800         Reported by Paul Eggert.
60802         mountlist: fix local drive detection on cygwin
60803         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
60804         that works for cygwin.
60806 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
60808         ftoastr, snprintf: ftoastr + snprintf module
60809         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
60810         since the snprintf module now should be good enough here.
60811         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
60812         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
60813         and gl_MODULE_INDICATOR([snprintf]), but the former enables
60814         GNULIB_SNPRINTF only for the test directory, and the latter
60815         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
60816         seems to suffice by itself.
60818 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
60820         alloca: one step towards thread-safety
60821         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
60822         need for a static variable.  All callers changed.  This does not
60823         make the alloca replacement thread-safe, but it's one step.
60825         tests: minor indenting change
60826         * tests/init.sh: Sync from coreutils housekeeping patch
60827         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
60828         to keep lines within 80 columns.
60830 2010-12-28  Jim Meyering  <meyering@redhat.com>
60832         regex: don't infloop on persistent failing calloc
60833         * lib/regexec.c (build_trtable): Return failure indication upon
60834         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
60835         In glibc, this was fixed for version 2.13:
60836         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
60838 2010-12-28  Bruno Haible  <bruno@clisp.org>
60839             Paul Eggert <eggert@cs.ucla.edu>
60841         linkat: Make implementation robust against system behaviour variations.
60842         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
60843         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
60844         way, and to -2 if it needs a generic runtime test.
60845         * lib/linkat.c (solaris_optimized_link_immediate,
60846         solaris_optimized_link_follow): New functions.
60847         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
60848         (check_same_link): Use it.
60850 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
60852         New module 'unigbrk/base'.
60853         * modules/unigbrk/base: New file.
60854         * lib/unigbrk.in.h: New file.
60856         New module 'unigbrk/uc-gbrk-prop'.
60857         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
60858         * modules/unigbrk/uc-gbrk-prop: New file.
60859         * lib/unigbrk/gbrkprop.h: New file.
60860         * lib/unigbrk/uc-gbrk-prop.c: New file.
60862         New module 'unigbrk/uc-is-grapheme-break'.
60863         * modules/unigbrk/uc-is-grapheme-break: New file.
60864         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
60865         * lib/unigbrk/uc-is-grapheme-break.c: New file.
60866         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
60867         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
60868         * tests/unigbrk/GraphemeBreakTest.txt: New file.
60870         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
60872 2010-12-27  Bruno Haible  <bruno@clisp.org>
60874         linkat test: Avoid failure on Solaris 11 2010-11.
60875         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
60877 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
60879         utimens: work around glibc rounding bug on more platforms
60880         * lib/utimens.c (fdutimens): Work around rounding bug even if
60881         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
60882         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
60884 2010-12-27  Bruno Haible  <bruno@clisp.org>
60886         select tests: Improve comments.
60887         * tests/test-select.c (do_select): Add comments.
60889 2010-12-27  Bruno Haible  <bruno@clisp.org>
60891         select tests: Safer way of handling timeout.
60892         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
60893         at every invocation.
60895 2010-12-27  Bruno Haible  <bruno@clisp.org>
60897         select tests: Use 'bool' where appropriate.
60898         * tests/test-select.c (connect_to_socket): Change argument type to
60899         'bool'.
60901 2010-12-27  Bruno Haible  <bruno@clisp.org>
60903         select tests: Use existing modules.
60904         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
60905         (configure.ac): Don't test for unistd.h.
60906         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
60907         declared in <unistd.h>.
60909 2010-12-27  Bruno Haible  <bruno@clisp.org>
60911         mbrtowc: Work around a Solaris 7 bug.
60912         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
60913         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
60914         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
60915         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
60916         MBRTOWC_NULL_ARG1_BUG.
60917         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
60918         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
60919         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
60920         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
60922 2010-12-27  Jim Meyering  <meyering@redhat.com>
60924         read-file.c: tweak syntax
60925         * lib/read-file.c (fread_file): Remove space after "*" in function
60926         definitions.
60928 2010-12-27  Bruno Haible  <bruno@clisp.org>
60930         times test: Avoid gcc warnings on OSF/1.
60931         * tests/test-times.c (main): Cast printf arguments from clock_t to
60932         'long int'.
60934 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
60936         utimens: work around glibc rounding bug on older Linux kernels
60937         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
60938         on Linux with a glibc whose utimes might not work, then work
60939         around a longstanding glibc bug involving rounding rather than
60940         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
60941         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
60943 2010-12-26  Bruno Haible  <bruno@clisp.org>
60945         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
60946         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
60947         _GL_CXXALIAS_SYS.
60948         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
60950 2010-12-26  Bruno Haible  <bruno@clisp.org>
60952         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
60953         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
60954         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
60955         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
60956         looking for the declaration.
60957         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
60958         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
60959         problem.
60960         * doc/posix-functions/inet_pton.texi: Likewise.
60962 2010-12-26  Bruno Haible  <bruno@clisp.org>
60964         arpa_inet: Use the common idioms with C++ support.
60965         * lib/arpa_inet.in.h: Include c++defs.h.
60966         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
60967         support.
60968         * modules/arpa_inet (Depends-on): Add c++defs.
60969         (Makefile.am): Substitute the contents of c++defs.h.
60970         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
60971         * modules/arpa_inet-c++-tests: New file.
60972         * tests/test-arpa_inet-c++.cc: New file.
60974 2010-12-25  Bruno Haible  <bruno@clisp.org>
60976         Fix more C++ link errors on Solaris 8.
60977         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
60978         $(LIB_EACCESS).
60979         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
60980         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
60981         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
60982         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
60983         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
60985 2010-12-25  Bruno Haible  <bruno@clisp.org>
60987         printf-posix: Fix link error when a non-GCC compiler is used.
60988         * lib/stdio.in.h (printf): When not using GCC, override printf
60989         correctly.
60990         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
60992 2010-12-25  Bruno Haible  <bruno@clisp.org>
60994         strerror_r-posix: Update doc.
60995         * doc/posix-functions/strerror_r.texi: Update doc about the return
60996         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
60998 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61000         utimens: simplify the logic of the previous change
61001         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
61002         This should not affect whether the test succeeds or fails.
61004         utimens: configure better on hosts with NFS clock skew
61005         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
61006         uses the clock of the local host.  It might use the clock of the
61007         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
61008         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
61010 2010-12-25  Bruno Haible  <bruno@clisp.org>
61012         ptsname test: Avoid failure on Solaris.
61013         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
61014         open a pseudo-terminal; don't use BSD-style ptys.
61015         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
61017 2010-12-25  Bruno Haible  <bruno@clisp.org>
61019         ptsname: Avoid ERANGE failure on some systems.
61020         * lib/ptsname.c (buffer): Increase size.
61022 2010-12-25  Bruno Haible  <bruno@clisp.org>
61024         rename, renameat: Avoid test failures at NFS mounted locations.
61025         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
61026         so that subsequent mkdir calls succeed.
61028 2010-12-25  Bruno Haible  <bruno@clisp.org>
61030         iswblank: Fix C++ link error on Solaris 8.
61031         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
61032         _GL_FUNCDECL_SYS.
61034 2010-12-25  Bruno Haible  <bruno@clisp.org>
61036         unistd: Fix C++ link error on Solaris 8.
61037         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
61039 2010-12-25  Bruno Haible  <bruno@clisp.org>
61041         readlink doc: Mention an old glibc bug.
61042         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
61044 2010-12-25  Bruno Haible  <bruno@clisp.org>
61046         fcntl-h: Fix for use of C++ on glibc systems.
61047         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
61048         also on glibc systems in C++ mode.
61049         Reported by Gary V. Vaughan <gary@gnu.org>.
61051 2010-12-25  Bruno Haible  <bruno@clisp.org>
61053         roundl-ieee: Make it work on OSF/1 5.1 with cc.
61054         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
61056 2010-12-25  Bruno Haible  <bruno@clisp.org>
61058         truncl-ieee: Make it work on OSF/1 5.1 with cc.
61059         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
61060         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
61061         test whether truncl works according to ISO C 99 with IEC 60559.
61062         * m4/truncl-ieee.m4: New file.
61063         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
61064         m4/signbit.m4.
61065         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
61067 2010-12-25  Bruno Haible  <bruno@clisp.org>
61069         ceill-ieee: Make it work on OSF/1 5.1 with cc.
61070         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
61071         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
61072         test whether ceill works according to ISO C 99 with IEC 60559.
61073         * m4/ceill-ieee.m4: New file.
61074         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
61075         m4/signbit.m4.
61076         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
61078 2010-12-25  Bruno Haible  <bruno@clisp.org>
61080         Ensure all prerequisites of <wchar.h> are included.
61081         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
61082         before <wchar.h>.
61083         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
61084         gl_MBRLEN_NUL_RETVAL): Likewise.
61085         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
61086         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
61087         AC_FUNC_MBRTOWC): Likewise.
61088         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
61089         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
61090         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
61091         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
61092         Likewise.
61093         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
61094         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
61095         (gl_WCHAR_H): Improve comments.
61096         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
61098 2010-12-25  Bruno Haible  <bruno@clisp.org>
61100         strtok_r: Fix C syntax error in autoconf macro.
61101         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
61102         characters in test program.
61104 2010-12-24  Bruno Haible  <bruno@clisp.org>
61106         ceil, trunc, round: Fix gcc warnings.
61107         * lib/ceil.c (MIN): Undefine before redefining.
61108         * lib/trunc.c (MIN): Likewise.
61109         * lib/round.c (MIN): Likewise.
61110         Include <math.h> first.
61112 2010-12-24  Bruno Haible  <bruno@clisp.org>
61114         select tests: Avoid failures on OSF/1 5.1.
61115         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
61116         failure of closing the last socket; it may fail with ECONNRESET.
61118 2010-12-24  Eric Blake  <eblake@redhat.com>
61120         stdint: avoid HP-UX 10.20 preprocessor bug
61121         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
61122         than #if.
61123         * tests/test-floor2.c (main): Likewise.
61124         Reported by Peter O'Gorman.
61126         pipe: make obsoletion transition easier
61127         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
61128         * modules/pipe (Files): Include revived file.
61129         (Include): Drop reference, to mirror getdate's behavior.
61131 2010-12-24  Bruno Haible  <bruno@clisp.org>
61133         sys_socket: Hide mismatch of declarations on NonStop Kernel.
61134         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
61135         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
61136         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61138 2010-12-24  Bruno Haible  <bruno@clisp.org>
61140         gethostname: Ensure declaration on NonStop Kernel.
61141         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
61142         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61144 2010-12-24  Bruno Haible  <bruno@clisp.org>
61146         sys_select: Ensure all necessary types on NonStop Kernel.
61147         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
61148         include <sys/time.h>.
61149         * doc/posix-headers/sys_select.texi: Mention that it's missing on
61150         NonStop Kernel.
61151         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61153 2010-12-24  Bruno Haible  <bruno@clisp.org>
61155         sys_select: Remove unneeded include.
61156         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
61157         have <sys/select.h>.
61159 2010-12-24  Bruno Haible  <bruno@clisp.org>
61161         gethostname: Provide a fallback for HOST_NAME_MAX.
61162         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
61163         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
61164         instead.
61165         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61167 2010-12-24  Bruno Haible  <bruno@clisp.org>
61169         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
61170         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
61171         (SA_RESTART): Likewise.
61172         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61174 2010-12-24  Bruno Haible  <bruno@clisp.org>
61176         signal: Define NSIG.
61177         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
61178         * tests/test-signal.c (nsig): New variable.
61179         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61181 2010-12-24  Bruno Haible  <bruno@clisp.org>
61183         rename, renameat: Avoid test failures on OSF/1 5.1.
61184         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
61185         alternative error codes.
61186         * tests/test-renameat.c (main): Likewise.
61188 2010-12-24  Bruno Haible  <bruno@clisp.org>
61190         *printf: Detect large precisions bug on Solaris 10/SPARC.
61191         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
61192         by Paul Eggert.
61193         * tests/test-snprintf-posix.h (test_function): Add this test code here
61194         too.
61195         * tests/test-sprintf-posix.h (test_function): Likewise.
61196         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61197         * tests/test-vasprintf-posix.c (test_function): Likewise.
61198         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
61199         around by gnulib.
61200         * doc/posix-functions/printf.texi: Likewise.
61201         * doc/posix-functions/snprintf.texi: Likewise.
61202         * doc/posix-functions/sprintf.texi: Likewise.
61203         * doc/posix-functions/vfprintf.texi: Likewise.
61204         * doc/posix-functions/vprintf.texi: Likewise.
61205         * doc/posix-functions/vsnprintf.texi: Likewise.
61206         * doc/posix-functions/vsprintf.texi: Likewise.
61207         * doc/posix-functions/dprintf.texi: Undo last commit.
61208         * doc/posix-functions/vdprintf.texi: Likewise.
61210 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61212         tests: port test-fdutimensat.c to Solaris 8
61213         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
61214         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
61215         On Solaris 8, it fails with errno == ENOSYS, because there is no
61216         futimens (so it can't use the fd), and there is no lutimens (so it
61217         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
61219         vsnprintf: make more consistent with snprintf; doc fixes
61221         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
61222         the byte count return problem was promoted from the snprintf-posix
61223         to the snprintf module.
61224         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
61225         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
61226         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
61227         * tests/test-snprintf.c (main): Check the byte count returned.
61228         * tests/test-vsnprintf.c (main): Likewise.
61230 2010-12-23  Eric Blake  <eblake@redhat.com>
61232         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
61233         * modules/sigpipe (License): Relax license.
61235 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61237         doc: document Solaris printf bug with large float precisions
61238         * doc/posix-functions/dprintf.texi (dprintf):
61239         * doc/posix-functions/fprintf.texi (fprintf):
61240         * doc/posix-functions/printf.texi (printf):
61241         * doc/posix-functions/snprintf.texi (snprintf):
61242         * doc/posix-functions/sprintf.texi (sprintf):
61243         * doc/posix-functions/vdprintf.texi (vdprintf):
61244         * doc/posix-functions/vfprintf.texi (vfprintf):
61245         * doc/posix-functions/vprintf.texi (vprintf):
61246         * doc/posix-functions/vsnprintf.texi (vsnprintf):
61247         * doc/posix-functions/vsprintf.texi (vsprintf):
61248         Mention that these functions mishandle large floating point
61249         precisions on Solaris 10.  The same bug is also present in Solaris
61250         8, and I assume earlier.  This causes "cd gnulib-tests; make
61251         check" to fail on Solaris 8 (and I assume, later) when building
61252         the latest coreutils, in test-vasprintf-posix's call to
61253         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
61254         the wide flavors (e.g., wprintf) so this patch just updates the
61255         documentation for the narrow ones.
61257         test-posixtm.c: add two tests
61258         * tests/test-posixtm.c: Add two tests, to highlight the
61259         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
61260         around this bug; this is merely to document it.
61262 2010-12-22  Bruno Haible  <bruno@clisp.org>
61264         getlogin_r: Work around portability problem on OSF/1.
61265         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
61266         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
61267         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
61268         test for a truncated result.
61269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
61270         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
61271         * modules/getlogin_r (Depends-on): Add memchr.
61272         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
61274 2010-12-22  Bruno Haible  <bruno@clisp.org>
61276         ptsname: Avoid test failure on OSF/1 5.1.
61277         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
61278         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
61279         (same_slave): New function.
61280         (main): Use it to compare ptsname's result with the expected file name.
61282 2010-12-22  Bruno Haible  <bruno@clisp.org>
61284         Port extended stdio modules to HP NonStop Kernel.
61285         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
61286         macros.
61287         * lib/fbufmode.c: Update comments.
61288         * lib/fflush.c: Likewise.
61289         * lib/fpurge.c: Likewise.
61290         * lib/freadable.c: Likewise.
61291         * lib/freadahead.c: Likewise.
61292         * lib/freading.c: Likewise.
61293         * lib/freadptr.c: Likewise.
61294         * lib/freadseek.c: Likewise.
61295         * lib/fseeko.c: Likewise.
61296         * lib/fseterr.c: Likewise.
61297         * lib/fwritable.c: Likewise.
61298         * lib/fwriting.c: Likewise.
61299         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
61301 2010-12-22  Bruno Haible  <bruno@clisp.org>
61303         ttyname_r: Work around bug on OSF/1 5.1.
61304         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
61305         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
61306         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
61307         present.
61308         * lib/ttyname_r.c (ttyname_r): Update comments.
61310 2010-12-22  Bruno Haible  <bruno@clisp.org>
61312         round: Implement result sign according to IEEE 754.
61313         * lib/round.c (MIN, MINUS_ZERO): New macros.
61314         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
61315         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
61316         * tests/test-round-ieee.c (main): Likewise.
61317         * tests/test-roundl-ieee.c (main): Likewise.
61319         trunc: Implement result sign according to IEEE 754.
61320         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
61321         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
61322         * tests/test-trunc2.c: Include minus-zero.h.
61323         (MINUS_ZERO): New macro.
61324         (trunc_reference): Keep in sync with lib/trunc.c.
61325         * tests/test-truncf2.c: Include minus-zero.h.
61326         (MINUS_ZERO): New macro.
61327         (truncf_reference): Keep in sync with lib/trunc.c.
61328         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
61329         * tests/test-trunc-ieee.c (main): Likewise.
61330         * tests/test-truncl-ieee.c (main): Likewise.
61332         ceil: Implement result sign according to IEEE 754.
61333         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
61334         (FUNC): Return -0.0 for -1 < x < 0.
61335         * tests/test-ceil2.c: Include minus-zero.h.
61336         (MINUS_ZERO): New macro.
61337         (ceil_reference): Keep in sync with lib/ceil.c.
61338         * tests/test-ceilf2.c: Include minus-zero.h.
61339         (MINUS_ZERO): New macro.
61340         (ceilf_reference): Keep in sync with lib/ceil.c.
61341         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
61342         * tests/test-ceil-ieee.c (main): Likewise.
61343         * tests/test-ceill-ieee.c (main): Likewise.
61345         floor: Implement result sign according to IEEE 754.
61346         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
61347         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
61348         * tests/test-floorf2.c (floorf_reference): Likewise.
61349         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
61350         * tests/test-floor-ieee.c (main): Likewise.
61351         * tests/test-floorl-ieee.c (main): Likewise.
61353 2010-12-22  Bruno Haible  <bruno@clisp.org>
61355         getaddrinfo: Update doc.
61356         * doc/posix-functions/gai_strerror.texi: Return type is also different
61357         on AIX and HP-UX.
61359 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61361         getaddrinfo, inet_ntop: Update doc for Solaris.
61362         * doc/posix-functions/gai_strerror.texi: Return type is also an
61363         issue on Solaris 9 and earlier.
61364         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
61365         on Solaris 10 and earlier.
61367 2010-12-21  Bruno Haible  <bruno@clisp.org>
61369         New module 'roundl-ieee'.
61370         * modules/roundl-ieee: New file.
61371         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
61372         test whether roundl works according to ISO C 99 with IEC 60559.
61373         * m4/roundl-ieee.m4: New file.
61374         * modules/roundl-ieee-tests: New file.
61375         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
61376         * tests/test-roundl.c (main): Remove signbit tests.
61377         * modules/roundl-tests (Depends-on): Remove signbit.
61378         * doc/posix-functions/roundl.texi: Mention the new module.
61380 2010-12-21  Bruno Haible  <bruno@clisp.org>
61382         New module 'truncl-ieee'.
61383         * modules/truncl-ieee: New file.
61384         * modules/truncl-ieee-tests: New file.
61385         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
61386         * tests/test-truncl.c (main): Remove signbit tests.
61387         * modules/truncl-tests (Depends-on): Remove signbit.
61388         * doc/posix-functions/truncl.texi: Mention the new module.
61390 2010-12-21  Bruno Haible  <bruno@clisp.org>
61392         New module 'ceill-ieee'.
61393         * modules/ceill-ieee: New file.
61394         * modules/ceill-ieee-tests: New file.
61395         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
61396         * tests/test-ceill.c (main): Remove signbit tests.
61397         * modules/ceill-tests (Depends-on): Remove signbit.
61398         * doc/posix-functions/ceill.texi: Mention the new module.
61400 2010-12-21  Bruno Haible  <bruno@clisp.org>
61402         New module 'floorl-ieee'.
61403         * modules/floorl-ieee: New file.
61404         * modules/floorl-ieee-tests: New file.
61405         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
61406         * tests/test-floorl.c (main): Remove signbit tests.
61407         * modules/floorl-tests (Depends-on): Remove signbit.
61408         * doc/posix-functions/floorl.texi: Mention the new module.
61410 2010-12-21  Bruno Haible  <bruno@clisp.org>
61412         New module 'round-ieee'.
61413         * modules/round-ieee: New file.
61414         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
61415         whether round works according to ISO C 99 with IEC 60559.
61416         * m4/round-ieee.m4: New file.
61417         * modules/round-ieee-tests: New file.
61418         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
61419         * tests/test-round1.c (main): Remove signbit tests.
61420         * modules/round-tests (Depends-on): Remove 'signbit'.
61421         * doc/posix-functions/round.texi: Mention the new module.
61423 2010-12-21  Bruno Haible  <bruno@clisp.org>
61425         New module 'trunc-ieee'.
61426         * modules/trunc-ieee: New file.
61427         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
61428         whether trunc works according to ISO C 99 with IEC 60559.
61429         * m4/trunc-ieee.m4: New file.
61430         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
61431         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
61432         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
61433         * modules/trunc-ieee-tests: New file.
61434         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
61435         * tests/test-trunc1.c (main): Remove signbit tests.
61436         * modules/trunc-tests (Depends-on): Remove 'signbit'.
61437         * doc/posix-functions/trunc.texi: Mention the new module.
61439 2010-12-21  Bruno Haible  <bruno@clisp.org>
61441         New module 'ceil-ieee'.
61442         * modules/ceil-ieee: New file.
61443         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
61444         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
61445         ISO C 99 with IEC 60559.
61446         * m4/ceil-ieee.m4: New file.
61447         * modules/ceil (Files): Add lib/ceil.c.
61448         (Depends-on): Add 'float'.
61449         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
61450         * lib/math.in.h (ceil): New declaration.
61451         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
61452         REPLACE_CEIL.
61453         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
61454         * modules/ceil-ieee-tests: New file.
61455         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
61456         * tests/test-math-c++.cc: Check the signature of 'ceil'.
61457         * doc/posix-functions/ceil.texi: Mention the new module.
61459 2010-12-21  Bruno Haible  <bruno@clisp.org>
61461         New module 'floor-ieee'.
61462         * modules/floor-ieee: New file.
61463         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
61464         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
61465         ISO C 99 with IEC 60559.
61466         * m4/floor-ieee.m4: New file.
61467         * modules/floor (Files): Add lib/floor.c.
61468         (Depends-on): Add 'float'.
61469         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
61470         * lib/math.in.h (floor): New declaration.
61471         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
61472         REPLACE_FLOOR.
61473         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
61474         * modules/floor-ieee-tests: New file.
61475         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
61476         * tests/test-math-c++.cc: Check the signature of 'floor'.
61477         * doc/posix-functions/floor.texi: Mention the new module.
61479 2010-12-21  Bruno Haible  <bruno@clisp.org>
61481         New module 'roundf-ieee'.
61482         * modules/roundf-ieee: New file.
61483         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
61484         test whether roundf works according to ISO C 99 with IEC 60559.
61485         * m4/roundf-ieee.m4: New file.
61486         * modules/roundf-ieee-tests: New file.
61487         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
61488         * tests/test-roundf1.c (main): Remove signbit tests.
61489         * modules/roundf-tests (Depends-on): Remove 'signbit'.
61490         * doc/posix-functions/roundf.texi: Mention the new module.
61492 2010-12-21  Bruno Haible  <bruno@clisp.org>
61494         New module 'truncf-ieee'.
61495         * modules/truncf-ieee: New file.
61496         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
61497         test whether truncf works according to ISO C 99 with IEC 60559.
61498         * m4/truncf-ieee.m4: New file.
61499         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
61500         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
61501         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
61502         * modules/truncf-ieee-tests: New file.
61503         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
61504         * tests/test-truncf1.c (main): Remove signbit tests.
61505         * modules/truncf-tests (Depends-on): Remove 'signbit'.
61506         * doc/posix-functions/truncf.texi: Mention the new module.
61508 2010-12-21  Bruno Haible  <bruno@clisp.org>
61510         New module 'ceilf-ieee'.
61511         * modules/ceilf-ieee: New file.
61512         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
61513         test whether ceilf works according to ISO C 99 with IEC 60559.
61514         * m4/ceilf-ieee.m4: New file.
61515         * modules/ceilf-ieee-tests: New file.
61516         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
61517         * tests/test-ceilf1.c (main): Remove signbit tests.
61518         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
61519         * doc/posix-functions/ceilf.texi: Mention the new module.
61521 2010-12-21  Bruno Haible  <bruno@clisp.org>
61523         New module 'floorf-ieee'.
61524         * modules/floorf-ieee: New file.
61525         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
61526         test whether floorf works according to ISO C 99 with IEC 60559.
61527         * m4/floorf-ieee.m4: New file.
61528         * modules/floorf-ieee-tests: New file.
61529         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
61530         * tests/test-floorf1.c (main): Remove signbit tests.
61531         * modules/floorf-tests (Depends-on): Remove 'signbit'.
61532         * doc/posix-functions/floorf.texi: Mention the new module.
61534 2010-12-21  Bruno Haible  <bruno@clisp.org>
61536         Support for minus zero in autoconf macros.
61537         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
61538         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
61539         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
61540         * tests/minus-zero.h: Update comments.
61542 2010-12-21  Bruno Haible  <bruno@clisp.org>
61544         Tests for module 'ceil'.
61545         * modules/ceil-tests: New file.
61546         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
61547         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
61549 2010-12-21  Bruno Haible  <bruno@clisp.org>
61551         Tests for module 'floor'.
61552         * modules/floor-tests: New file.
61553         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
61554         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
61556 2010-12-21  Bruno Haible  <bruno@clisp.org>
61558         math: Fix indentation.
61559         * lib/math.in.h (floorf): Fix indentation.
61561 2010-12-21  Bruno Haible  <bruno@clisp.org>
61563         Fix cross-compilation guesses on Solaris.
61564         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
61565         not match "solaris2.10".
61566         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
61567         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
61568         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
61570 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
61572         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
61573         This fixes a problem observed with the latest coreutils snapshot
61574         that caused a test to fail on Solaris 8.  src/csplit.c's call
61575         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
61576         earlier, instead of returning the number of bytes that would have
61577         been generated; this causes csplit to incorrectly report memory
61578         exhaustion.
61579         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
61580         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
61581         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
61582         comments to match.
61583         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
61584         Fix typo in matching older versions of Solaris: "solaris2.10"
61585         is matched by the shell pattern "solaris2.[0-9]*".  This matters
61586         only for guessing while cross-compiling.
61587         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
61589 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
61591         ftoastr: fix comment again
61592         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
61593         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
61594         Also, simplify example a bit by using flags = 0.
61596 2010-12-20  Bruno Haible  <bruno@clisp.org>
61598         round*, trunc*: Update documentation regarding glibc.
61599         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
61600         * doc/posix-functions/round.texi: Likewise.
61601         * doc/posix-functions/roundl.texi: Likewise.
61602         * doc/posix-functions/truncf.texi: Likewise.
61603         * doc/posix-functions/trunc.texi: Likewise.
61604         * doc/posix-functions/truncl.texi: Likewise.
61606 2010-12-20  Bruno Haible  <bruno@clisp.org>
61608         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
61609         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
61610         * doc/posix-functions/round.texi: Likewise.
61611         * doc/posix-functions/roundl.texi: Likewise.
61613 2010-12-20  Bruno Haible  <bruno@clisp.org>
61615         ttyname_r: Add missing declaration on HP-UX 11.
61616         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
61617         HAVE_TTYNAME_R.
61618         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
61619         declared. Set HAVE_TTYNAME_R always.
61620         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61621         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
61622         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
61623         HAVE_TTYNAME_R.
61624         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
61626 2010-12-20  Bruno Haible  <bruno@clisp.org>
61628         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
61629         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
61630         * doc/posix-functions/getlogin_r.texi: Likewise.
61631         * tests/test-getlogin.c: Include <errno.h>.
61632         (main): Avoid test failure on HP-UX 11.11.
61633         * tests/test-getlogin_r.c (main): Likewise.
61635 2010-12-20  Bruno Haible  <bruno@clisp.org>
61637         getlogin_r: Add missing declaration on HP-UX 11.
61638         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
61639         declared also when it exists as a function.
61640         * doc/posix-functions/getlogin_r.texi: Document this workaround.
61642 2010-12-20  Bruno Haible  <bruno@clisp.org>
61644         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
61645         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
61646         through wcrtomb.
61648 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
61650         ftoastr: fix comment
61651         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
61652         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
61654 2010-12-19  Bruno Haible  <bruno@clisp.org>
61656         isnan: Ensure it is a macro.
61657         * lib/math.in.h (isnan): Define as a macro if not already a macro.
61658         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
61659         Solaris.
61661 2010-12-19  Bruno Haible  <bruno@clisp.org>
61663         ldexpl test: Fix link error on OSF/1 5.1.
61664         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
61666 2010-12-19  Bruno Haible  <bruno@clisp.org>
61668         wctype: Make it work in C++ mode on OSF/1 5.1.
61669         * lib/wctype.in.h (iswblank): Declare but not define here.
61670         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
61671         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
61672         * modules/wctype (Files): Add lib/iswblank.c.
61674 2010-12-19  Bruno Haible  <bruno@clisp.org>
61676         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
61677         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
61678         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
61680 2010-12-19  Bruno Haible  <bruno@clisp.org>
61682         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
61683         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
61684         _POSIX_PII_SOCKET.
61685         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
61686         * doc/posix-functions/recvfrom.texi: Likewise.
61687         * doc/posix-functions/send.texi: Likewise.
61688         * doc/posix-functions/sendto.texi: Likewise.
61690 2010-12-19  Bruno Haible  <bruno@clisp.org>
61692         tcgetsid: Add missing declaration on OSF/1 5.1.
61693         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
61694         HAVE_TCGETSID.
61695         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
61696         Don't set HAVE_TCGETSID.
61697         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
61698         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
61699         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
61700         HAVE_TCGETSID.
61701         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
61703 2010-12-19  Bruno Haible  <bruno@clisp.org>
61705         stdio: Fix problem with popen() declaration on OSF/1 5.1.
61706         * lib/stdio.in.h: During the include_next statement, let recursive
61707         includes of this file include only the system header file.
61709 2010-12-19  Bruno Haible  <bruno@clisp.org>
61711         iconv_open: Fix regression from 2010-12-04.
61712         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
61713         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
61715 2010-12-19  Bruno Haible  <bruno@clisp.org>
61717         stdbool test: Avoid a gcc warning.
61718         * tests/test-stdbool.c (main): Fail if e1 is false.
61719         Reported by Jim Meyering.
61721 2010-12-19  Jim Meyering  <meyering@redhat.com>
61723         setenv: restore to working order
61724         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
61725         mistakenly removed.
61726         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
61727         HAVE_SETENV.
61728         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
61729         HAVE_SETENV.
61731 2010-12-19  Bruno Haible  <bruno@clisp.org>
61733         Document some different function declarations on OSF/1 5.1.
61734         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
61735         * doc/posix-functions/inet_ntop.texi: Likewise.
61736         * doc/posix-functions/gethostname.texi: Likewise.
61737         * lib/unistd.in.h (gethostname): Update comment.
61739 2010-12-19  Bruno Haible  <bruno@clisp.org>
61741         doc: Mention vasprintf-posix module.
61742         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
61743         the 'vasprintf-posix' module.
61744         * doc/glibc-functions/vasprintf.texi: Likewise.
61746 2010-12-19  Bruno Haible  <bruno@clisp.org>
61748         unsetenv: Add missing declaration on OSF/1 5.1.
61749         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
61750         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
61751         Don't set HAVE_UNSETENV. In the test program, set _BSD.
61752         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
61753         not HAVE_UNSETENV.
61754         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
61755         HAVE_UNSETENV.
61756         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
61758 2010-12-19  Bruno Haible  <bruno@clisp.org>
61760         setenv: Add missing declaration on OSF/1 5.1.
61761         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
61762         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
61763         declared. Don't set HAVE_SETENV.
61764         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
61765         not HAVE_SETENV.
61766         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
61767         HAVE_SETENV.
61768         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
61770 2010-12-19  Bruno Haible  <bruno@clisp.org>
61772         nl_langinfo tests: Avoid gcc warning.
61773         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
61775 2010-12-19  Bruno Haible  <bruno@clisp.org>
61777         mknod: Avoid error in C++ mode on OSF/1 with GCC.
61778         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
61779         _GL_CXXALIAS_SYS.
61781 2010-12-19  Bruno Haible  <bruno@clisp.org>
61783         stdbool: Relax test.
61784         * tests/test-stdbool.c (e): Don't require that casts from a variable's
61785         address to 'bool' work in static initializer, for compilers other than
61786         GCC.
61788 2010-12-19  Bruno Haible  <bruno@clisp.org>
61790         ftello: Add missing declaration on OSF/1 5.1.
61791         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
61792         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
61793         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
61794         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
61795         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
61797 2010-12-19  Bruno Haible  <bruno@clisp.org>
61799         fseeko: Add missing declaration on OSF/1 5.1.
61800         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
61801         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
61802         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
61803         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
61804         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
61806 2010-12-19  Bruno Haible  <bruno@clisp.org>
61808         fchdir: Add missing declaration on OSF/1 5.1.
61809         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
61810         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
61811         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
61812         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
61813         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
61815 2010-12-19  Bruno Haible  <bruno@clisp.org>
61817         relocatable-prog-wrapper: Separate from relocatable-prog.
61818         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
61819         uninstall-relocwrapper rule here.
61820         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
61821         Reported by Ian Beckwith <ianb@erislabs.net>.
61823 2010-12-19  Bruno Haible  <bruno@clisp.org>
61825         unistr/u8-mbsnlen: Add missing dependency.
61826         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
61827         Reported by Ian Beckwith <ianb@erislabs.net>.
61829 2010-12-19  Bruno Haible  <bruno@clisp.org>
61831         iconv: Make it possible again to use this module without 'iconv-h'.
61832         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
61833         if it is not defined.
61834         Reported by Ian Beckwith <ianb@erislabs.net>.
61836 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61838         acl: port to Solaris 8 when copying from tmpfs to ufs
61839         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
61840         error number.  Problem observed on Solaris 8 with latest
61841         coreutils, with "mv A B", where A is on a tmpfs file system and B
61842         is on a ufs file system.  This caused coreutils' mv/part-symlink
61843         test to fail.
61845         tests: set fail=0 at start
61846         * tests/init.sh (setup_): Move fail=0 initialization here ...
61847         (mktempd_): ... from here, so that tests can rely on fail being
61848         set to 0 initially.  This fixes a problem in coreutils; see:
61849         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
61851 2010-12-18  Bruno Haible  <bruno@clisp.org>
61853         memmem-simple: Stylistic changes.
61854         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
61855         Fix preprocessor directive indentation.
61857 2010-12-15  Pádraig Brady  <P@draigBrady.com>
61859         memmem, memmem-simple: reorganize and expand empty needle check
61860         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
61861         functional checks to memmem-simple so that one has a fully functional
61862         memmem by using just this module.
61863         Restrict the performance only check to the memmem module.
61864         Also expand the empty needle check to ensure the correct
61865         pointer is returned, not just a non NULL pointer.
61866         * doc/glibc-functions/memmem.texi: Rearrange the portability
61867         documentation to correlate with the rearranged checks.
61868         Clarify exactly how the memmem and memmem-simple modules
61869         relate to each other.
61871 2010-12-15  Pádraig Brady  <P@draigBrady.com>
61872             Bruno Haible  <bruno@clisp.org>
61874         Improve cross-compilation guesses for uClibc.
61875         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
61876         that uClibc does not have the glibc bug.
61877         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
61878         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
61880 2010-12-14  Eric Blake  <eblake@redhat.com>
61882         configmake: provide fallbacks for oldest supported autotools
61883         * m4/configmake.m4: New file.
61884         * modules/configmake (Files): Ship it.
61885         (configure.ac): Use it to guarantee fallbacks.
61887 2010-12-13  Pádraig Brady  <P@draigBrady.com>
61889         read-file: Improve handling of large files
61890         * lib/read-file.c (fread_file): Minimize realloc()s
61891         for regular files, and better manage sizes around SIZE_MAX.
61893 2010-12-13  Eric Blake  <eblake@redhat.com>
61895         cloexec, fcntl: relax license
61896         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
61897         consent from all contributors.
61898         * modules/fcntl (License): Likewise.
61900 2010-12-10  Bruno Haible  <bruno@clisp.org>
61902         Tests for module 'pipe-posix'.
61903         * modules/pipe-posix-tests: New file.
61904         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
61906 2010-12-10  Bruno Haible  <bruno@clisp.org>
61908         pipe-posix: Make it work in C++ mode.
61909         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
61910         (pipe): Use common idiom, not a macro definition.
61911         * lib/pipe.c: New file.
61912         * m4/pipe.m4: New file.
61913         * modules/pipe-posix (Description): Enhance.
61914         (Files): Add lib/pipe.c, m4/pipe.m4.
61915         (configure.ac): Invoke gl_FUNC_PIPE.
61916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
61917         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
61918         * tests/test-unistd-c++.cc: Check the signature of pipe.
61920 2010-12-10  Bruno Haible  <bruno@clisp.org>
61922         Rename module 'pipe' to 'spawn-pipe'.
61923         * modules/spawn-pipe: New file, renamed from modules/pipe.
61924         (Files, configure.ac, Makefile.am): Update.
61925         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
61926         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
61927         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
61928         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
61929         "spawn-pipe.h" instead of "pipe.h".
61930         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
61931         to gl_SPAWN_PIPE.
61932         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
61933         (Files, Makefile.am): Update.
61934         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
61935         Update.
61936         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
61937         Include "spawn-pipe.h" instead of "pipe.h".
61938         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
61939         * lib/javacomp.c: Likewise.
61940         * lib/javaversion.c: Likewise.
61941         * lib/pipe-filter-gi.c: Likewise.
61942         * lib/pipe-filter-ii.c: Likewise.
61943         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
61944         * modules/javacomp (Depends-on): Likewise.
61945         * modules/javaversion (Depends-on): Likewise.
61946         * modules/pipe-filter-gi (Depends-on): Likewise.
61947         * modules/pipe-filter-ii (Depends-on): Likewise.
61948         * MODULES.html.sh (Executing programs): Update.
61949         * NEWS: Mention the change.
61951 2010-12-10  Eric Blake  <eblake@redhat.com>
61953         pipe-posix: new module
61954         * modules/pipe-posix: New file.
61955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
61956         (gl_UNISTD_H): Check for declaration.
61957         * modules/unistd (Makefile.am): Substitute it.
61958         * lib/unistd.in.h (pipe): Provide it for mingw.
61959         * doc/posix-functions/pipe.texi (pipe): Update documentation.
61960         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
61962 2010-12-07  Bruno Haible  <bruno@clisp.org>
61964         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
61965         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
61966         u8_strcmp_gnu.
61967         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
61969 2010-12-06  Bruno Haible  <bruno@clisp.org>
61971         Update internal documentation.
61972         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
61974 2010-12-04  Bruno Haible  <bruno@clisp.org>
61976         Put more information about failed tests into the test return codes.
61977         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
61978         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
61979         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
61980         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
61981         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
61982         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
61983         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
61984         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
61985         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
61986         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61987         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
61988         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61989         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
61990         * m4/stdint.m4 (gl_STDINT_H): Likewise.
61991         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
61992         returns a bit mask.
61993         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
61994         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
61995         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
61996         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
61997         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
61998         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
61999         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
62000         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
62001         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
62002         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
62003         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
62004         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
62005         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
62006         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
62007         * m4/link.m4 (gl_FUNC_LINK): Likewise.
62008         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
62009         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
62010         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
62011         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
62012         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
62013         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62014         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
62015         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
62016         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
62017         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
62018         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
62019         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
62020         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
62021         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
62022         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
62023         gl_PRINTF_PRECISION): Likewise.
62024         * m4/regex.m4 (gl_REGEX): Likewise.
62025         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
62026         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
62027         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
62028         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
62029         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62030         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
62031         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
62032         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
62033         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
62034         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62035         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
62036         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
62037         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
62038         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
62039         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
62040         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
62041         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
62042         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
62043         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62044         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
62045         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
62046         enumerated value.
62047         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
62049 2010-12-04  Bruno Haible  <bruno@clisp.org>
62051         Update for Solaris 11 2010-11.
62052         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
62053         Express, released in November 2010.
62055 2010-12-04  Bruno Haible  <bruno@clisp.org>
62057         nproc: Relax license.
62058         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
62059         and Paul Eggert.
62060         Requested by Ludovic Courtès <ludo@gnu.org>.
62062 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
62064         utimecmp: fine-grained src to nearby coarse-grained dest
62066         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
62067         and the source is on a file system with higher-resolution time
62068         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
62069         not work, and the time stamps are close together, the algorithm to
62070         determine the exact resolution from the read-back mtime was buggy:
62071         it had a "!=" where it should have had an "==".  This bug has been
62072         in the code ever since it was introduced to gnulib.
62073         Problem reported by Dan Jacobson in
62074         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
62076 2010-11-30  Bruno Haible  <bruno@clisp.org>
62078         strerror_r-posix: Fix autoconf test.
62079         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
62081 2010-11-28  Bruno Haible  <bruno@clisp.org>
62082             Paul Eggert  <eggert@cs.ucla.edu>
62084         Tests for module 'getdomainname'.
62085         * modules/getdomainname-tests: New file.
62086         * tests/test-getdomainname.c: New file, based on
62087         tests/test-gethostname.c.
62089 2010-11-28  Bruno Haible  <bruno@clisp.org>
62090             Paul Eggert  <eggert@cs.ucla.edu>
62092         getdomainname: Use the system function when possible.
62093         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
62094         (getdomainname): Replace if needed. Provide the declaration if it is
62095         missing. Don't use _GL_CXXALIAS_SYS_CAST.
62096         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
62097         (getdomainname): When the system has getdomainname, call the system
62098         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
62099         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
62100         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
62101         found in libnsl. Look for the declaration also in <netdb.h>. Replace
62102         the function if its second argument is of type 'int' or if it is found
62103         in libnsl.
62104         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
62105         <sys/systeminfo.h> and sysinfo().
62106         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
62107         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62108         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
62109         HAVE_GETDOMAINNAME.
62110         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
62111         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
62112         * doc/glibc-functions/getdomainname.texi: Document the problems with
62113         the getdomainname declaration.
62115 2010-11-28  Bruno Haible  <bruno@clisp.org>
62117         sys_socket: Ensure ss_family field on AIX.
62118         * lib/sys_socket.in.h (ss_family): New macro definition.
62119         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
62120         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
62121         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
62122         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
62123         * modules/sys_socket (Makefile.am): Substitute
62124         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
62125         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
62127 2010-11-27  Bruno Haible  <bruno@clisp.org>
62129         readline: Improve configure output.
62130         * m4/readline.m4 (gl_FUNC_READLINE): Make the
62131         "checking for readline..." result understandable.
62133 2010-11-27  Bruno Haible  <bruno@clisp.org>
62135         *printf-posix: Detect a bug on Solaris 10/x86.
62136         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
62137         for floating-point output.
62138         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
62139         directive.
62140         * tests/test-snprintf-posix.h (test_function): Likewise.
62141         * tests/test-sprintf-posix.h (test_function): Likewise.
62142         * tests/test-vasprintf-posix.c (test_function): Likewise.
62143         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
62144         * doc/posix-functions/printf.texi: Likewise.
62145         * doc/posix-functions/snprintf.texi: Likewise.
62146         * doc/posix-functions/sprintf.texi: Likewise.
62147         * doc/posix-functions/vfprintf.texi: Likewise.
62148         * doc/posix-functions/vprintf.texi: Likewise.
62149         * doc/posix-functions/vsnprintf.texi: Likewise.
62150         * doc/posix-functions/vsprintf.texi: Likewise.
62151         * doc/glibc-functions/obstack_printf.texi: Likewise.
62152         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
62154 2010-11-27  Bruno Haible  <bruno@clisp.org>
62156         Fix link error when module libunistring-optional is in use.
62157         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
62158         * modules/striconveha-tests (Makefile.am): Likewise.
62160 2010-11-27  Bruno Haible  <bruno@clisp.org>
62162         regex: Mention link dependencies.
62163         * modules/regex (Link): New section.
62164         * modules/rpmatch (Link): Likewise.
62165         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
62167 2010-11-27  Bruno Haible  <bruno@clisp.org>
62169         ftoastr: Fix compilation error on Solaris.
62170         * lib/ftoastr.c: Include <config.h>.
62172 2010-11-27  Bruno Haible  <bruno@clisp.org>
62174         getloadavg: Update documentation.
62175         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
62177 2010-11-27  Bruno Haible  <bruno@clisp.org>
62179         sys_socket: Fix test whether the functions are declared.
62180         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
62181         not <sys/select.h>.
62183 2010-11-27  Bruno Haible  <bruno@clisp.org>
62185         getpass: Make sure to get system declaration on some platforms.
62186         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
62187         gl_USE_SYSTEM_EXTENSIONS.
62188         * modules/getpass (Depends-on): Add extensions.
62190 2010-11-26  Bruno Haible  <bruno@clisp.org>
62192         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
62193         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
62194         'iconv' module is present.
62195         (ICONV_CONST): New macro.
62196         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
62197         ICONV_CONST.
62198         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
62199         set ICONV_CONST.
62200         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
62201         here.
62202         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
62203         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
62204         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
62205         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
62206         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
62207         present.
62209 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
62211         ftoastr: comment fix
62212         * lib/ftoastr.c: "little" -> "little or no" in comment
62214 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
62216         stdint: port to GCC 4.3 + OSX + Octave
62217         On this platform, stdint.h is buggy and defines int64_t to long
62218         long int.  The replacement defined it to long int, causing
62219         problems with C++ style name mangling.  Instead, trust the system
62220         definition if INT64_MAX is defined, and likewise for the unsigned
62221         variant.   Problem reported by Jarno Rajahalme in
62222         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
62223         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
62224         and don't mess with int64_t and INT64_MAX in this case.
62225         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
62227 2010-11-24  Bruno Haible  <bruno@clisp.org>
62229         doc: Corrections regarding MacOS X 10.4 and 10.5.
62230         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
62231         MacOS X.
62232         Reported by Simon Josefsson.
62234 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
62236         Uninstall ".bin" files installed by relocwrapper.
62237         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
62238         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
62239         unless it is already there.
62241 2010-11-21  Bruno Haible  <bruno@clisp.org>
62243         Update for NetBSD 5.0.
62244         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
62245         NetBSD; the test fails on NetBSD 5.0.
62246         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
62247         about NetBSD.
62249 2010-11-21  Bruno Haible  <bruno@clisp.org>
62251         Update for HP-UX 11.23 and HP-UX 11.31.
62252         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
62253         HP-UX.
62255 2010-11-21  Bruno Haible  <bruno@clisp.org>
62257         Update for MacOS X 10.5.
62258         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
62259         MacOS X; the test fails on MacOS X 10.5.8.
62260         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
62261         about MacOS X.
62263 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
62265         bootstrap: add bootstrap_sync option.
62266         See discussion at
62267         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
62268         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
62269         * build-aux/bootstrap: Accept --bootstrap-sync to update
62270         bootstrap if it is not identical to the local gnulib's
62271         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
62272         enable this by default.  Accept --no-bootstrap-sync to disable
62273         it.
62275 2010-11-20  Bruno Haible  <bruno@clisp.org>
62277         Ensure that <features.h> is included before __GLIBC__ is tested.
62278         * lib/printf-parse.h: Include <features.h>.
62279         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
62280         Reported by Mike Frysinger <vapier@gentoo.org>.
62282         Ensure that <features.h> is included before __GLIBC__ is tested.
62283         * lib/wchar.in.h: Include <features.h>.
62284         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
62285         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
62286         Reported by Mike Frysinger <vapier@gentoo.org>.
62288         Ensure that <features.h> is included before __GLIBC__ is tested.
62289         * lib/arpa_inet.in.h: Include <features.h>.
62290         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
62291         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
62292         Reported by Mike Frysinger <vapier@gentoo.org>.
62294         Ensure that <features.h> is included before __GLIBC__ is tested.
62295         * build-aux/link-warning.h: Include <features.h>.
62296         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
62297         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
62298         Reported by Mike Frysinger <vapier@gentoo.org>.
62300         Ensure that <features.h> is included before __GLIBC__ is tested.
62301         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
62302         Reported by Mike Frysinger <vapier@gentoo.org>.
62304 2010-11-20  Bruno Haible  <bruno@clisp.org>
62306         memmem: Fix autoconf test.
62307         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
62309 2010-11-20  Bruno Haible  <bruno@clisp.org>
62311         Port to uClibc.
62312         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
62313         * lib/fcntl.in.h: Likewise.
62314         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
62315         * lib/mbrtowc.c (mbrtowc): Likewise.
62316         * lib/relocatable.c (find_shared_library_fullname): Likewise.
62317         * lib/strerror_r.c: Likewise.
62318         * lib/unistr/u8-strnlen.c: Likewise.
62319         * lib/vasnprintf.c (decimal_point_char): Likewise.
62320         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
62321         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
62322         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
62323         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
62324         * tests/test-sigaction.c (handler, main): Likewise.
62325         * lib/freading.h: Treat uClibc like a non-glibc platform.
62326         * lib/freading.c: Likewise.
62327         * lib/gettext.h: Likewise.
62328         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
62329         Likewise.
62330         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
62331         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
62332         * lib/propername.c (proper_name_utf8): Likewise.
62333         * lib/spawn.in.h: Likewise.
62334         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
62335         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
62336         mem_cd_iconveh_internal): Likewise.
62337         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
62338         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
62339         strstr, strcasestr): Likewise.
62340         * lib/unicodeio.c (unicode_to_mb): Likewise.
62341         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
62342         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
62343         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
62344         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
62345         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
62346         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
62347         * lib/unistr/u8-stpncpy.c: Likewise.
62348         * lib/vasnprintf.c (VASNPRINTF): Likewise.
62349         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
62350         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62351         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62352         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
62353         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
62354         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
62355         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
62356         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
62357         Likewise.
62358         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
62359         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
62360         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
62361         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
62362         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
62363         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
62364         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
62365         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
62366         * tests/test-getopt.h (OPTIND_MIN): Likewise.
62367         * tests/test-striconveha.c (main): Likewise.
62368         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62369         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
62370         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
62371         * doc/posix-functions/getline.texi: Likewise.
62372         Reported by Mike Frysinger <vapier@gentoo.org>.
62374 2010-11-20  Bruno Haible  <bruno@clisp.org>
62376         nproc: Fix condition.
62377         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
62378         HAVE_PTHREAD_AFFINITY_NP.
62380 2010-11-20  Bruno Haible  <bruno@clisp.org>
62382         Fix a comment.
62383         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
62385 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
62387         ftoastr: don't assume snprintf
62388         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
62389         Implement a subset of snprintf here, by using sprintf safely.
62390         * modules/ftoastr (Depends-on): Remove snprintf.
62392 2010-11-19  Jim Meyering  <meyering@redhat.com>
62394         test-rename.h: fix compilation failure
62395         * tests/test-rename.h (test_rename): Add omitted "}".
62397 2010-11-17  Jim Meyering  <meyering@redhat.com>
62399         maint.mk: add a URL discussing the no-@acronym policy
62400         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
62402 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
62404         ftoastr: depend on snprintf, improve comments
62405         * lib/ftoastr.c: Also mention Loitsch's draft.
62406         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
62407         needed in the current implementation, but it might simplify
62408         speeding up the code later.
62409         * modules/ftoastr: Depend on snprintf; this improves portability.
62410         Suggested by Bruno Haible in the same email.
62412         ftoastr: port to hosts lacking strtof and strtold
62413         Problem reported by Bruno Haible in
62414         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
62415         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
62416         environment and strtold (and presumably strtof) are not available.
62417         * modules/ftoastr (Files): Add m4/c-strtod.m4.
62418         (configure.ac): Require gl_C99_STRTOLD.
62420 2010-11-18  Bruno Haible  <bruno@clisp.org>
62422         c-strtold: Avoid link error on AIX 7.
62423         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
62424         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
62425         (gl_C_STRTOLD): Test whether strtold_l exists.
62426         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62428 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
62430         intprops: new macro INT_BITS_STRLEN_BOUND
62431         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
62432         ftoastr.h.  This exposes an internal of intprops.h that was formerly
62433         not exposed.  Also, it uses a slightly tighter bound than before;
62434         though this makes no practical difference, we might as well be as
62435         tight as we easily can.
62437         ftoastr: new module, for lossless conversion of floats to short strings
62438         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
62439         * modules/ftoastr: New files.
62441 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62443         bootstrap: port to Solaris sed
62444         * build-aux/bootstrap (get_version): Port to Solaris sed.
62445         See Ralf Wildenhues's note in
62446         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
62448 2010-11-14  Jim Meyering  <meyering@redhat.com>
62450         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
62451         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
62452         and move definition closer to sole use.
62454 2010-11-13  Jim Meyering  <meyering@redhat.com>
62456         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
62457         Now we require at least autoconf-2.59, which means the work-around
62458         is no longer needed.
62459         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
62460         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
62461         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62462         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
62463         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
62465 2010-11-13  Bruno Haible  <bruno@clisp.org>
62467         rename, renameat: Avoid test failures at NFS mounted locations.
62468         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
62469         functions.
62470         (test_rename): Use assert_nonexistent.
62471         * tests/test-rename.c: Include <dirent.h>.
62472         * tests/test-renameat.c: Likewise.
62473         Reported by Gary V. Vaughan <gary@gnu.org>.
62475         rename, renameat: Document Linux bug with NFS
62476         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
62477         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
62478         * doc/posix-functions/renameat.texi: Likewise.
62479         Suggested by Eric Blake.
62481 2010-11-13  Bruno Haible  <bruno@clisp.org>
62483         rename test: Add comments.
62484         * tests/test-rename.h (test_rename): Add structure and comments.
62486 2010-11-13  Eric Blake  <eblake@redhat.com>
62488         maintainer-makefile: cover a few more files
62489         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
62490         scripts generated within C files, for libvirt.
62492 2010-11-13  Bruno Haible  <bruno@clisp.org>
62494         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
62495         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
62496         character, return the number of bytes that belong together, not always
62497         1.
62498         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
62499         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
62500         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
62501         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
62502         number of bytes of an invalid character.
62503         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
62504         (main): Invoke it.
62505         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
62506         results.
62507         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
62508         malformed byte sequences.
62509         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
62510         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
62511         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
62512         Reported by Ben Pfaff and Paolo Bonzini.
62514 2010-11-13  Bruno Haible  <bruno@clisp.org>
62516         openat: Work around glibc bug with fchownat() and empty file names.
62517         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
62518         (gl_FUNC_FCHOWNAT): Invoke it.
62519         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
62520         * doc/posix-functions/fchownat.texi: Document the glibc bug.
62521         Reported by Gary V. Vaughan <gary@gnu.org>.
62523 2010-11-13  Bruno Haible  <bruno@clisp.org>
62525         openat: Ensure autoconf macro ordering.
62526         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
62527         gl_USE_SYSTEM_EXTENSIONS.
62528         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
62530 2010-11-13  Bruno Haible  <bruno@clisp.org>
62532         Update comments.
62533         * lib/unistr/u8-check.c: Update file name in comments.
62534         * lib/unistr/u8-mblen.c: Likewise.
62535         * lib/unistr/u8-prev.c: Likewise.
62536         * lib/unistr/u8-strmblen.c: Likewise.
62537         * lib/unistr/u8-strmbtouc.c: Likewise.
62539 2010-11-13  Jim Meyering  <meyering@redhat.com>
62541         tests: avoid test failure on Solaris 10 due to lack of PATH export
62542         * tests/test-update-copyright.sh: Don't forget to export PATH.
62544         init.sh: ensure that IFS is defined, just in case...
62545         * tests/init.sh (setup_): Ensure that IFS is defined,
62546         so that saving and restoring it works as expected.  This
62547         appears to be useful at least for an old version of dash
62548         from a long time ago (RH 6).  See here for details:
62549         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
62551         maint.mk: tighten "test a == b" check
62552         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
62553         test to files that contain something like #!/bin/sh.
62554         Without this, coreutils would get two false positives in
62555         the comments of C source files.
62557 2010-11-12  Eric Blake  <eblake@redhat.com>
62559         bootstrap: fix typo in previous attempt
62560         * build-aux/bootstrap (buildreq): Correct the grouping.
62561         Reported by Paul Eggert.
62563         maintainer-makefile: prohibit test x == x
62564         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
62565         Based on a report by Matthias Bolte.
62567         bootstrap: allow FreeBSD gzip
62568         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
62569         which has no '.' and goes to stderr.
62570         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
62571         Reported by Matthias Bolte.
62573         maintainer-makefile: check for i18n setup
62574         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
62575         will likely work.
62577 2010-11-12  Bruno Haible  <bruno@clisp.org>
62579         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
62580         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
62581         * lib/nanosleep.c (nanosleep): Likewise.
62583 2010-11-11  Bruno Haible  <bruno@clisp.org>
62585         fcntl-h: Fix for use of C++ on glibc systems.
62586         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
62587         also on glibc systems in C++ mode.
62588         Reported by Gary V. Vaughan <gary@gnu.org>.
62590 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
62592         mknod: avoid false failure with dash
62593         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
62595 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
62597         unlink: Fix "is it should" typo in diagnostic.
62598         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
62599         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
62601 2010-11-11  Bruno Haible  <bruno@clisp.org>
62603         Tests for module 'strerror_r-posix'.
62604         * modules/strerror_r-posix-tests: New file.
62605         * tests/test-strerror_r.c: New file.
62606         * tests/test-string-c++.cc: Check the signature of strerror_r.
62608         New module 'strerror_r-posix'.
62609         * lib/string.in.h (strerror_r): New declaration.
62610         * lib/strerror_r.c: New file.
62611         * m4/strerror_r.m4: New file.
62612         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
62613         of strerror_r.
62614         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
62615         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
62616         * modules/strerror_r-posix: New file.
62617         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
62618         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
62619         * doc/posix-functions/strerror_r.texi: Mention the new module and the
62620         portability problems.
62622 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
62624         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
62625         line is also considered for output. Quoted function name in shell
62626         command, so temporary files for functions like MyClass::operator()
62627         are removed correctly without errors.
62629 2010-11-09  Bruno Haible  <bruno@clisp.org>
62631         * doc/posix-functions/strerror.texi: List more failing platforms.
62633         * doc/posix-functions/strerror.texi: Add a comment.
62635 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62637         fdopendir: fix bug on MacOS X when low on file descriptors
62639         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
62640         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
62641         All callers changed.
62642         (fdopendir): Invoke save_cwd at the top level, not after using
62643         multiple dup() calls to use up file descriptors.  Then retry
62644         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
62645         less than the maximum number of open file descriptors, because
62646         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
62647         on Mac OS X 10.6.4 for tar 1.24
62648         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
62649         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
62650         and for tar 1.25
62651         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
62653 2010-11-07  Bruno Haible  <bruno@clisp.org>
62655         vasnprintf: Support I flag on glibc systems.
62656         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
62657         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
62658         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
62659         snprintf function.
62660         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
62661         glibc systems.
62662         * tests/test-vasnprintf-posix3.c: New file.
62663         * modules/vasnprintf-posix-tests (Files): Add it.
62664         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
62666 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62668         [html] Fix copy/paste bug: Use unique name for compiler warnings.
62669         * MODULES.html.sh: For compiler warnings, use name
62670         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
62672 2010-11-05  Eric Blake  <eblake@redhat.com>
62674         ceil, floor: avoid spurious failure with icc
62675         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
62676         [denormals-as-zero] when optimizing without -mieee-fp option.
62677         * tests/test-floorf2.c (floorf_reference): Likewise.
62678         * tests/test-ceilf1.c (dummy): New function.
62679         (main): Use it to outsmart icc's optimization.
62680         * tests/test-floorf1.c (dummy, main): Likewise.
62682         tests: require working signbit
62683         * modules/ceilf-tests (Depends-on): Add signbit.
62684         * modules/ceill-tests (Depends-on): Likewise.
62685         * modules/floorf-tests (Depends-on): Likewise.
62686         * modules/floorl-tests (Depends-on): Likewise.
62687         * modules/round-tests (Depends-on): Likewise.
62688         * modules/roundf-tests (Depends-on): Likewise.
62689         * modules/roundl-tests (Depends-on): Likewise.
62690         * modules/trunc-tests (Depends-on): Likewise.
62691         * modules/truncf-tests (Depends-on): Likewise.
62692         * modules/truncl-tests (Depends-on): Likewise.
62694         strtod: work around icc bug
62695         * lib/strtod.c (minus_zero): Define to working value.
62696         (strtod): Use it to avoid icc bug.
62698         copysign: enhance tests
62699         * modules/copysign-tests (Files): Add minus-zero.h.
62700         * tests/test-copysign.c (main): Also test zeros.
62702 2010-11-04  Eric Blake  <eblake@redhat.com>
62704         ceil, floor, round, trunc: enhance tests of -0
62705         * tests/test-ceilf1.c (main): Ensure correct sign of result.
62706         * tests/test-ceill.c (main): Likewise.
62707         * tests/test-floorf1.c (main): Likewise.
62708         * tests/test-floorl.c (main): Likewise.
62709         * tests/test-round1.c (main): Likewise.
62710         * tests/test-roundf1.c (main): Likewise.
62711         * tests/test-roundl.c (main): Likewise.
62712         * tests/test-trunc1.c (main): Likewise.
62713         * tests/test-truncf1.c (main): Likewise.
62714         * tests/test-truncl.c (main): Likewise.
62716 2010-11-04  Eric Blake  <eblake@redhat.com>
62718         frexp, tests: work around ICC bug with -zero
62719         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
62720         works with more compilers.
62721         * tests/minus-zero.h: New file.
62722         * modules/ceilf-tests (Files): Include it.
62723         * modules/ceill-tests (Files): Likewise.
62724         * modules/floorf-tests (Files): Likewise.
62725         * modules/floorl-tests (Files): Likewise.
62726         * modules/frexp-nolibm-tests (Files): Likewise.
62727         * modules/frexp-tests (Files): Likewise.
62728         * modules/frexpl-nolibm-tests (Files): Likewise.
62729         * modules/frexpl-tests (Files): Likewise.
62730         * modules/isnan-tests (Files): Likewise.
62731         * modules/isnand-nolibm-tests (Files): Likewise.
62732         * modules/isnand-tests (Files): Likewise.
62733         * modules/isnanf-nolibm-tests (Files): Likewise.
62734         * modules/isnanf-tests (Files): Likewise.
62735         * modules/isnanl-nolibm-tests (Files): Likewise.
62736         * modules/isnanl-tests (Files): Likewise.
62737         * modules/round-tests (Files): Likewise.
62738         * modules/roundf-tests (Files): Likewise.
62739         * modules/roundl-tests (Files): Likewise.
62740         * modules/ldexpl-tests (Files): Likewise.
62741         * modules/signbit-tests (Files): Likewise.
62742         * modules/snprintf-posix-tests (Files): Likewise.
62743         * modules/sprintf-posix-tests (Files): Likewise.
62744         * modules/strtod-tests (Files): Likewise.
62745         * modules/trunc-tests (Files): Likewise.
62746         * modules/truncf-tests (Files): Likewise.
62747         * modules/truncl-tests (Files): Likewise.
62748         * modules/vsnprintf-posix-tests (Files): Likewise.
62749         * modules/vsprintf-posix-tests (Files): Likewise.
62750         * modules/vasnprintf-posix-tests (Files): Likewise.
62751         * modules/vasprintf-posix-tests (Files): Likewise.
62752         * tests/test-ceilf1.c (main): Use it.
62753         * tests/test-ceill.c (main): Likewise.
62754         * tests/test-floorf1.c (main): Likewise.
62755         * tests/test-floorl.c (main): Likewise.
62756         * tests/test-frexp.c (main): Likewise.
62757         * tests/test-frexpl.c (main): Likewise.
62758         * tests/test-isnan.c (main): Likewise.
62759         * tests/test-isnand.h (main): Likewise.
62760         * tests/test-isnanf.h (main): Likewise.
62761         * tests/test-isnanl.h (main): Likewise.
62762         * tests/test-ldexpl.c (main): Likewise.
62763         * tests/test-round.c (main): Likewise.
62764         * tests/test-roundf.c (main): Likewise.
62765         * tests/test-roundl.c (main): Likewise.
62766         * tests/test-signbit.c (test_signbitf, test_signbitd)
62767         (test_signbitl): Likewise.
62768         * tests/test-snprintf-posix.h (test_function): Likewise.
62769         * tests/test-sprintf-posix.h (test_function): Likewise.
62770         * tests/test-strtod.c (main): Likewise.
62771         * tests/test-trunc1.c (main): Likewise.
62772         * tests/test-truncf1.c (main): Likewise.
62773         * tests/test-truncl.c (main): Likewise.
62775         isnanl: work around icc bug
62776         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
62778 2010-11-03  Eric Blake  <eblake@redhat.com>
62780         tests: fix compiler warnings
62781         * tests/test-getopt.h (test_getopt): Fix condition.
62782         * tests/test-getopt_long.h (test_getopt_long): Likewise.
62783         * tests/test-pipe2.c (main): Likewise.
62784         * tests/test-quotearg-simple.c (main): Avoid icc warning.
62786         utimens: fix broken m4 test
62787         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
62789 2010-10-28  Bruno Haible  <bruno@clisp.org>
62791         posix_spawn*, getdtablesize: Relax license.
62792         * modules/posix_spawn (License): Change to LGPLv2+.
62793         * modules/posix_spawnp (License): Likewise.
62794         * modules/posix_spawn-internal (License): Likewise.
62795         * modules/posix_spawnattr_init (License): Likewise.
62796         * modules/posix_spawnattr_getflags (License): Likewise.
62797         * modules/posix_spawnattr_setflags (License): Likewise.
62798         * modules/posix_spawnattr_getpgroup (License): Likewise.
62799         * modules/posix_spawnattr_setpgroup (License): Likewise.
62800         * modules/posix_spawnattr_getschedparam (License): Likewise.
62801         * modules/posix_spawnattr_setschedparam (License): Likewise.
62802         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
62803         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
62804         * modules/posix_spawnattr_getsigdefault (License): Likewise.
62805         * modules/posix_spawnattr_setsigdefault (License): Likewise.
62806         * modules/posix_spawnattr_getsigmask (License): Likewise.
62807         * modules/posix_spawnattr_setsigmask (License): Likewise.
62808         * modules/posix_spawnattr_destroy (License): Likewise.
62809         * modules/posix_spawn_file_actions_init (License): Likewise.
62810         * modules/posix_spawn_file_actions_addclose (License): Likewise.
62811         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
62812         * modules/posix_spawn_file_actions_addopen (License): Likewise.
62813         * modules/posix_spawn_file_actions_destroy (License): Likewise.
62814         * modules/getdtablesize (License): Likewise.
62815         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
62817 2010-10-26  Bruno Haible  <bruno@clisp.org>
62819         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
62820         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
62821         Cygwin and mingw.
62822         Suggested by Eric Blake.
62824 2010-10-26  Bruno Haible  <bruno@clisp.org>
62826         stdio: Work around compilation error due to renameat() on Solaris 10.
62827         * lib/stdio.in.h: Include <unistd.h> on Solaris.
62828         * lib/renameat.c: Don't include <unistd.h> here.
62829         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
62830         Reported by Paul Eggert and Eric Blake.
62832 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
62834         renameat: port to Solaris 10, which declares renameat in unistd.h
62836         * lib/renameat.c: Include unistd.h before stdio.h, because
62837         Solaris 10 declares renameat in unistd.h.  Problem encountered
62838         when building GNU tar 1.24 on Solaris 10.
62840 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
62842         fdopendir: fix C89 compilation
62843         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
62844         compilers.
62846 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
62848         inttostr: simplify by removing unnecessary redundancy
62849         * lib/anytostr.c: Don't include verify.h.
62850         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
62851         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
62852         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
62853         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
62854         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
62855         Likewise.
62856         * modules/inttostr (Depends-on): Remove 'verify'.
62858 2010-10-23  Bruno Haible  <bruno@clisp.org>
62860         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
62861         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
62862         Reported by Eric Blake.
62864 2010-10-23  Bruno Haible  <bruno@clisp.org>
62866         Tests: Fix LOCALE_JA on MirBSD 10.
62867         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
62868         to an UTF-8 locale.
62869         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
62870         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62871         Reported by Eric Blake.
62873 2010-10-21  Bruno Haible  <bruno@clisp.org>
62875         nl_langinfo test: Avoid test failure on NetBSD 5.
62876         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
62877         Reported by Eric Blake.
62879 2010-10-21  Eric Blake  <eblake@redhat.com>
62881         c-stack: work around libsigsegv 2.8 bug
62882         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
62883         overflow on at least PowerPC64.
62885 2010-10-17  Bruno Haible  <bruno@clisp.org>
62887         userspec: Drop redundant file.
62888         * modules/userspec (Files): Remove lib/inttostr.h.
62890 2010-10-17  Bruno Haible  <bruno@clisp.org>
62892         nl_langinfo tests: Silence some warnings.
62893         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
62894         Reported by Jim Meyering.
62896 2010-10-17  Bruno Haible  <bruno@clisp.org>
62898         Make use of GCC's attribute __alloc_size__.
62899         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
62900         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
62901         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
62902         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
62903         __alloc_size__.
62904         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
62905         Suggested by Jim Meyering.
62907 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
62909         bootstrap: anchor .gitignore entries.
62910         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
62911         with...
62912         (insert_vc_ignore): ... this new function, which prepends `/' to
62913         all .gitignore entries before passing them to
62914         insert_sorted_if_absent.
62916 2010-10-16  Bruno Haible  <bruno@clisp.org>
62918         nextafter: Fix configure check.
62919         * modules/nextafter (configure.ac): Correct expected prototype.
62921 2010-10-16  Bruno Haible  <bruno@clisp.org>
62923         termios: Update documentation.
62924         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
62926 2010-10-16  Bruno Haible  <bruno@clisp.org>
62928         tests: Make them compile with TinyCC.
62929         * tests/test-strstr.c (main): Remove parentheses around array
62930         initializer.
62932 2010-10-15  Eric Blake  <eblake@redhat.com>
62934         ignore-value: make header idempotent
62935         * lib/ignore-value.h: Add double-inclusion guards.
62936         Reported by Stefan Berger.
62938 2010-10-15  Jim Meyering  <meyering@redhat.com>
62940         GNUmakefile: handle "stable" target, not "major"
62941         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
62942         lists in maint.mk and announce-gen.  Without this, "make stable"
62943         would fail to ensure that $(VERSION) is up to date.
62945 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
62947         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
62948         & co.
62950 2010-10-14  Bruno Haible  <bruno@clisp.org>
62952         vasnprintf: Don't set errno to 0.
62953         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
62954         block that sets it to 0.
62955         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
62957 2010-10-14  Bruno Haible  <bruno@clisp.org>
62959         socketlib: Fix.
62960         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
62961         gl_PREREQ_SYS_H_WINSOCK2.
62962         Reported by Ian Beckwith <ianb@erislabs.net>.
62964 2010-10-13  Jim Meyering  <meyering@redhat.com>
62966         test-select-stdin.c: avoid warn_unused_result warnings
62967         * tests/test-select-stdin.c: Include "macros.h".
62968         ASSERT that read and fflush succeed.
62970 2010-10-13  Jim Meyering  <meyering@redhat.com>
62972         git-version-gen: do require git-VC'd files in cwd
62973         * build-aux/git-version-gen: Reject a git version string
62974         if there are no commits associated with the current directory.
62975         This avoids an unlikely false-positive (unrelated dir whose parent
62976         repository also contains a tag matching v*), as pointed out
62977         by Giuseppe Scrivano in
62978         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
62980 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
62982         argv-iter: omit nonconforming declaration
62983         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
62984         enum arg_iter_err declaration, which doesn't conform to C99.
62985         Solaris 10 cc warns about this.
62987 2010-10-13  Eric Blake  <eblake@redhat.com>
62989         termios: fix compilation on mingw
62990         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
62991         (gl_TERMIOS_H): Adjust it on mingw.
62992         * modules/termios (Makefile.am): Substitute new key.
62993         * lib/termios.in.h (includes): Make include_next conditional.
62994         * doc/posix-headers/termios.texi (termios.h): Update
62995         documentation.
62996         Reported by Daniel P. Berrange.
62998 2010-10-13  Jim Meyering  <meyering@redhat.com>
63000         git-version-gen: don't require that .git/ be in the current dir
63001         * build-aux/git-version-gen: Adjust this script so that it works
63002         when run from any working directory beneath the top-level .git/-
63003         containing directory.  Inspired by a patch from Giuseppe Scrivano,
63004         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
63006         test-select: avoid warn_unused_result warnings
63007         * tests/test-select.c: Include "macros.h".
63008         ASSERT that each call to read, write, and pipe succeeds.
63009         While not technically required, also check each "close".
63010         * modules/select-tests (Files): Add tests/macros.h.
63012         test-symlinkat: remove declaration of unused local
63013         * tests/test-symlinkat.c (main): Remove unused local, "buf".
63015         test-inttostr: avoid shadowing warnings
63016         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
63017         and use malloc rather than the stack for the same reason as
63018         mentioned in the comment justifying the other allocation.
63020 2010-10-11  Bruno Haible  <bruno@clisp.org>
63022         stdlib: Allow multiple gnulib generated replacements to coexist.
63023         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
63024         Reported by Sam Steingold <sds@gnu.org>.
63026 2010-10-11  Jim Meyering  <meyering@redhat.com>
63028         fix a documentation typo
63029         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
63031 2010-10-11  Eric Blake  <eblake@redhat.com>
63033         futimens: work around Solaris 11 bug
63034         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
63035         * tests/test-futimens.h (test_futimens): Enhance, rather than
63036         weaken test.
63037         * doc/posix-functions/futimens.texi (futimens): Document the bug.
63039 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63041         Indentation.
63042         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
63043         higher-level operators more to the left.
63045 2010-10-11  Jim Meyering  <meyering@redhat.com>
63047         test-futimens: avoid unwarranted test failure on Solaris 5.11
63048         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
63049         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
63050         because it tries to dereference the NULL name argument.
63052 2010-10-11  Bruno Haible  <bruno@clisp.org>
63054         Indentation.
63055         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
63056         indentation.
63058 2010-10-11  Jim Meyering  <meyering@redhat.com>
63060         spawn.in.h: make indentation consistent with parentheses
63061         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
63062         Make indentation consistent with parentheses.
63064 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
63066         Fix mismatched parens in previous commit
63067         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
63068         parens.
63070 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63072         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
63074         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
63075         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
63076         * lib/malloca.c: Include "verify.h".
63077         (verify1): Remove, replacing with a verify call.
63078         * lib/relocwrapper.c (verify1): Likewise.
63079         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
63080         Likewise.
63081         * modules/malloca (Depends-on): Add 'verify'.
63082         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
63083         * modules/vasnprintf (Depends-on): Add 'verify'.
63084         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63085         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63086         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63087         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63088         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63089         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63090         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63092         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
63094         Formerly the style was sometimes 2*X - 1, because the C standard
63095         was wrongly thought to disallow ?: in integral constant expressions.
63096         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
63097         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
63098         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
63099         * lib/stdint.in.h (_verify_intmax_size): Likewise.
63100         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
63101         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
63102         verify that time_t cannot be floating.
63104 2010-10-08  Eric Blake  <eblake@redhat.com>
63106         time: enforce recent POSIX ruling that time_t is integral
63107         * lib/time.in.h (__time_t_must_be_integral): Detect any
63108         problematic systems, allowing the rest of gnulib to assume POSIX.
63110 2010-10-08  Jim Meyering  <meyering@redhat.com>
63112         fdopendir: fix a bug on systems lacking openat and /proc support
63113         OpenBSD 4.7 is one such system.  The most noticeable effect was
63114         failure of any application making nontrivial use of fts: rm, du,
63115         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
63116           ./rm: traversal failed: `a': Bad file descriptor
63117         Debugging that, you see that even though FD 6 was closed just
63118         prior to the opendir call in fd_clone_opendir, its resulting
63119         dir->dd_fd was 8, rather than the expected value of 6:
63121         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
63122         93                close (fd);
63123         (gdb) n
63124         94                dir = fd_clone_opendir (dupfd);
63125         (gdb) n
63126         95                saved_errno = errno;
63127         (gdb) p dir->dd_fd
63128         $11 = 8
63130         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
63131         The problem is that on OpenBSD, fd_clone_opendir has to resort
63132         to using the old-style save/restore CWD mechanism, due to its
63133         lack of openat/proc support, and *that* would steal the FD (6)
63134         that opendir was supposed to use.
63136         The fix is to squirrel away the desired FD so that save_cwd uses a
63137         different one, and then free the dest FD right before calling opendir.
63138         That guarantees opendir will use the required file descriptor.
63140         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
63142 2010-10-08  Bruno Haible  <bruno@clisp.org>
63144         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
63145         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
63147 2010-10-08  Bruno Haible  <bruno@clisp.org>
63149         nanosleep: Make replacement POSIX compliant.
63150         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
63151         is out of range.
63152         Reported by Jim Meyering.
63154 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63156         bootstrap: add hook for altering gnulib.mk, for Bison
63157         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
63158         the Bison bootstrapping process can rewrite file names and variables
63159         in this file before later parts of 'bootstrap' use the file.
63160         Bison wants to include lib/gnulib.mk from the top-level makefile,
63161         so it needs the file names in this file to be relative to the top
63162         level, not relative to lib; plus it needs variable names to be
63163         rewritten.
63164         (slurp): Use the new function.
63166         bootstrap: reformat for readability
63167         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
63169 2010-10-08  Eric Blake  <eblake@redhat.com>
63171         docs: update cygwin progress
63172         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
63173         1.7.7.
63174         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
63175         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
63176         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
63177         * doc/posix-functions/carg.texi (carg): Likewise.
63178         * doc/posix-functions/cargf.texi (cargf): Likewise.
63179         * doc/posix-functions/casin.texi (casin): Likewise.
63180         * doc/posix-functions/casinf.texi (casinf): Likewise.
63181         * doc/posix-functions/casinh.texi (casinh): Likewise.
63182         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
63183         * doc/posix-functions/catan.texi (catan): Likewise.
63184         * doc/posix-functions/catanf.texi (catanf): Likewise.
63185         * doc/posix-functions/catanh.texi (catanh): Likewise.
63186         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
63187         * doc/posix-functions/ccos.texi (ccos): Likewise.
63188         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
63189         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
63190         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
63191         * doc/posix-functions/cexp.texi (cexp): Likewise.
63192         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
63193         * doc/posix-functions/cimag.texi (cimag): Likewise.
63194         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
63195         * doc/posix-functions/clog.texi (clog): Likewise.
63196         * doc/posix-functions/clogf.texi (clogf): Likewise.
63197         * doc/posix-functions/conj.texi (conj): Likewise.
63198         * doc/posix-functions/conjf.texi (conjf): Likewise.
63199         * doc/posix-functions/cpow.texi (cpow): Likewise.
63200         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
63201         * doc/posix-functions/cproj.texi (cproj): Likewise.
63202         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
63203         * doc/posix-functions/creal.texi (creal): Likewise.
63204         * doc/posix-functions/crealf.texi (crealf): Likewise.
63205         * doc/posix-functions/csin.texi (csin): Likewise.
63206         * doc/posix-functions/csinf.texi (csinf): Likewise.
63207         * doc/posix-functions/csinh.texi (csinh): Likewise.
63208         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
63209         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
63210         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
63211         * doc/posix-functions/ctan.texi (ctan): Likewise.
63212         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
63213         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
63214         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
63215         * doc/posix-headers/complex.texi (complex.h): Likewise.
63217 2010-10-07  Jim Meyering  <meyering@redhat.com>
63219         parse-datetime: avoid compilation failure on OpenBSD 4.7
63220         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
63221         This works around a compilation failure on OpenBSD 4.7:
63222         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
63224 2010-10-07  Eric Blake  <eblake@redhat.com>
63226         docs: update cygwin progress
63227         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
63228         1.7.6.
63229         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
63230         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
63231         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
63232         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
63233         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
63234         Likewise.
63235         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
63236         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
63237         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
63238         Likewise.
63239         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
63240         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
63241         Likewise.
63242         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
63243         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
63244         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
63245         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
63246         Likewise.
63247         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
63248         Likewise.
63249         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
63251         docs: update parse-datetime history
63252         * doc/parse-datetime.texi (Authors of parse_datetime): Better
63253         documentation of this function's history and alternatives.
63255         cygwin: use more robust version check
63256         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
63257         exclude an eventual cygwin 1.9.1.
63258         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
63259         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
63260         (gl_FUNC_STRCASESTR): Likewise.
63261         Reported by Bruno Haible.
63263 2010-10-06  Bruno Haible  <bruno@clisp.org>
63265         string, sys_select: Avoid #including large headers unless necessary.
63266         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
63267         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
63268         OSF/1, BeOS, Haiku.
63269         Reported by Jim Meyering.
63271 2010-10-05  Eric Blake  <eblake@redhat.com>
63273         memmem, strstr, strcasestr: fix bug with long periodic needle
63274         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
63275         periodic needle having false positive.
63276         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
63277         and cygwin 1.7.7.
63278         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
63279         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
63280         (gl_FUNC_STRCASESTR): Likewise.
63281         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
63282         * tests/test-memmem.c (main): Expose the bug.
63283         * tests/test-strcasestr.c (main): Likewise.
63284         * tests/test-strstr.c (main): Likewise.
63285         * tests/test-c-strcasestr.c (main): Likewise.
63286         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
63287         * doc/posix-functions/strstr.texi (strstr): Likewise.
63288         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
63289         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
63291 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63293         parse-datetime: do some more renaming
63294         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
63295         parse_datetime, not get_date.  Mention the renaming.
63296         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
63297         in comments.
63298         * m4/bison.m4: Likewise.
63300 2010-10-05  Eric Blake  <eblake@redhat.com>
63302         parse-datetime: better name than get_date
63303         * NEWS: Reword the deprecation notice.
63304         * modules/get_date: Rename to modules/parse-datetime.
63305         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
63306         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
63307         * lib/get_date.y: Rename to lib/parse-datetime.y.
63308         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
63309         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
63310         * doc/getdate.texi: Provide fallback wrapper.
63311         * lib/getdate.h: Move guts, and wrap...
63312         * lib/parse-datetime.h: ...new file.
63313         * lib/parse-datetime.y (get_date): Rename...
63314         (parse_datetime): ...to this.
63315         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
63316         (gl_PARSE_DATETIME): ...to this.
63317         * doc/posix-functions/getdate.texi (get_date): Provide fallback
63318         documentation.
63319         * modules/getdate (Files): Provide fallback docs and header.
63320         (Notice, Depends-on): Update references.
63321         * tests/test-parse-datetime.c: Likewise.
63322         * DEPENDENCIES: Likewise.
63323         * MODULES.html.sh (Date and time <time.h>): Likewise.
63324         * doc/parse-datetime.texi (Date input formats)
63325         (Authors of parse_datetime): Likewise.
63326         * modules/parse-datetime (Files, configure.ac, Makefile.am)
63327         (Include): Likewise.
63328         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
63329         * gnulib-tool: Likewise.
63330         * m4/bison.m4 (gl_BISON): Likewise.
63331         Suggested by Bruno Haible.
63333 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63335         more ports to Solaris tr, which needs [] around ranges
63336         * gnulib-tool: Solaris tr needs [] around ranges.
63337         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
63338         * tests/test-pipe-filter-gi1.c (main): Likewise.
63339         * tests/test-pipe-filter-ii1.c (main): Likewise.
63341 2010-10-05  Eric Blake  <eblake@redhat.com>
63343         bootstrap: fix Solaris regression
63344         * build-aux/bootstrap (check_versions): Solaris tr still needs []
63345         around ranges.
63346         Reported by Pádraig Brady.
63348         bootstrap: work with pkg-config
63349         * build-aux/bootstrap (check_versions): Also transliterate - in
63350         prerequisite name.
63351         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
63352         prerequisites that were already found, to avoid confusion.
63353         Reported by Justin Clift.
63355         faccessat: remove unused wrappers
63356         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
63357         presence of these wrappers dragged in -lgen on Solaris.
63358         Reported by Clemens Brogi; fix suggested by Paul Eggert.
63360 2010-10-05  Jim Meyering  <meyering@redhat.com>
63362         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
63363         * Makefile (sc_pragma_columns): New syntax-check rule.
63365 2010-10-04  Bruno Haible  <bruno@clisp.org>
63367         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
63368         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
63369         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
63370         Reported by Bruce Korb and Eric Blake.
63372 2010-10-04  Bruno Haible  <bruno@clisp.org>
63374         threadlib: Make option --with-libpth-prefix work.
63375         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
63376         use $LIBPTH, not just -lpth.
63378 2010-10-04  Bruno Haible  <bruno@clisp.org>
63380         Avoid line length limitation from HP NonStop system header files.
63381         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
63382         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
63383         * lib/ctype.in.h: Likewise.
63384         * lib/dirent.in.h: Likewise.
63385         * lib/errno.in.h: Likewise.
63386         * lib/fcntl.in.h: Likewise.
63387         * lib/float.in.h: Likewise.
63388         * lib/getopt.in.h: Likewise.
63389         * lib/iconv.in.h: Likewise.
63390         * lib/inttypes.in.h: Likewise.
63391         * lib/langinfo.in.h: Likewise.
63392         * lib/locale.in.h: Likewise.
63393         * lib/math.in.h: Likewise.
63394         * lib/netdb.in.h: Likewise.
63395         * lib/netinet_in.in.h: Likewise.
63396         * lib/poll.in.h: Likewise.
63397         * lib/pthread.in.h: Likewise.
63398         * lib/pty.in.h: Likewise.
63399         * lib/sched.in.h: Likewise.
63400         * lib/se-selinux.in.h: Likewise.
63401         * lib/search.in.h: Likewise.
63402         * lib/signal.in.h: Likewise.
63403         * lib/spawn.in.h: Likewise.
63404         * lib/stdarg.in.h: Likewise.
63405         * lib/stddef.in.h: Likewise.
63406         * lib/stdint.in.h: Likewise.
63407         * lib/stdio.in.h: Likewise.
63408         * lib/stdlib.in.h: Likewise.
63409         * lib/string.in.h: Likewise.
63410         * lib/strings.in.h: Likewise.
63411         * lib/sys_file.in.h: Likewise.
63412         * lib/sys_ioctl.in.h: Likewise.
63413         * lib/sys_select.in.h: Likewise.
63414         * lib/sys_socket.in.h: Likewise.
63415         * lib/sys_stat.in.h: Likewise.
63416         * lib/sys_time.in.h: Likewise.
63417         * lib/sys_times.in.h: Likewise.
63418         * lib/sys_utsname.in.h: Likewise.
63419         * lib/sys_wait.in.h: Likewise.
63420         * lib/sysexits.in.h: Likewise.
63421         * lib/termios.in.h: Likewise.
63422         * lib/time.in.h: Likewise.
63423         * lib/unistd.in.h: Likewise.
63424         * lib/wchar.in.h: Likewise.
63425         * lib/wctype.in.h: Likewise.
63426         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
63427         * modules/ctype (Makefile.am): Likewise.
63428         * modules/dirent (Makefile.am): Likewise.
63429         * modules/errno (Makefile.am): Likewise.
63430         * modules/fcntl-h (Makefile.am): Likewise.
63431         * modules/float (Makefile.am): Likewise.
63432         * modules/getopt-posix (Makefile.am): Likewise.
63433         * modules/iconv-h (Makefile.am): Likewise.
63434         * modules/inttypes (Makefile.am): Likewise.
63435         * modules/langinfo (Makefile.am): Likewise.
63436         * modules/locale (Makefile.am): Likewise.
63437         * modules/math (Makefile.am): Likewise.
63438         * modules/netdb (Makefile.am): Likewise.
63439         * modules/netinet_in (Makefile.am): Likewise.
63440         * modules/poll-h (Makefile.am): Likewise.
63441         * modules/pthread (Makefile.am): Likewise.
63442         * modules/pty (Makefile.am): Likewise.
63443         * modules/sched (Makefile.am): Likewise.
63444         * modules/search (Makefile.am): Likewise.
63445         * modules/selinux-h (Makefile.am): Likewise.
63446         * modules/signal (Makefile.am): Likewise.
63447         * modules/spawn (Makefile.am): Likewise.
63448         * modules/stdarg (Makefile.am): Likewise.
63449         * modules/stddef (Makefile.am): Likewise.
63450         * modules/stdint (Makefile.am): Likewise.
63451         * modules/stdio (Makefile.am): Likewise.
63452         * modules/stdlib (Makefile.am): Likewise.
63453         * modules/string (Makefile.am): Likewise.
63454         * modules/strings (Makefile.am): Likewise.
63455         * modules/sys_file (Makefile.am): Likewise.
63456         * modules/sys_ioctl (Makefile.am): Likewise.
63457         * modules/sys_select (Makefile.am): Likewise.
63458         * modules/sys_socket (Makefile.am): Likewise.
63459         * modules/sys_stat (Makefile.am): Likewise.
63460         * modules/sys_time (Makefile.am): Likewise.
63461         * modules/sys_times (Makefile.am): Likewise.
63462         * modules/sys_utsname (Makefile.am): Likewise.
63463         * modules/sys_wait (Makefile.am): Likewise.
63464         * modules/sysexits (Makefile.am): Likewise.
63465         * modules/termios (Makefile.am): Likewise.
63466         * modules/time (Makefile.am): Likewise.
63467         * modules/unistd (Makefile.am): Likewise.
63468         * modules/wchar (Makefile.am): Likewise.
63469         * modules/wctype (Makefile.am): Likewise.
63471 2010-10-04  Bruno Haible  <bruno@clisp.org>
63473         read-file tests: Avoid a test failure on NonStop Kernel.
63474         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
63475         a regular file.
63476         Reported by Joachim Schmitz <schmitz@hp.com>.
63478 2010-10-03  Bruno Haible  <bruno@clisp.org>
63480         gnulib-tool: Fixes for --create-testdir with --libtool.
63481         * gnulib-tool (func_get_automake_snippet): Don't augment
63482         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
63483         an executable.
63484         (func_create_testdir): Handle module 'alloca' like func_import.
63485         Reported by Bruce Korb <bruce.korb@gmail.com>.
63487 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
63489         Avoid some lines longer than 80 characters.
63490         * lib/stdint.in.h: Break long comment lines.
63491         * lib/math.in.h: Likewise.
63492         (_GL_NUM_UINT_WORDS): New macro, for readability.
63493         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
63494         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
63495         * lib/stdlib.in.h: Likewise.
63496         * lib/spawn.in.h: Likewise.
63497         * lib/sys_socket.in.h: Update an URL.
63498         * lib/sys_stat.in.h: Break long line.
63500 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
63502         Improve pmccabe2html.
63503         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
63504         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
63505         when the sources change. Remove the line in the HTML about "Used
63506         ranges" (which implied that there might be other unused ranges),
63507         rename "Resume" to "Summary" (easier to understand for more users).
63508         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
63509         styles, and some unnecessary blank lines.
63511 2010-10-03  Bruno Haible  <bruno@clisp.org>
63512             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
63514         acl: Add support for ACLs on NonStop Kernel.
63515         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
63516         Check whether the function aclsort() exists.
63517         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
63518         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
63519         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
63520         (acl_nontrivial [HAVE_ACLSORT]: New function.
63521         (file_has_acl): Implement for NonStop Kernel.
63522         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
63523         (qset_acl): Implement for NonStop Kernel.
63524         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
63525         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
63526         (main): Implement for NonStop Kernel.
63527         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
63528         Kernel. Handle this flavor.
63529         * tests/test-set-mode-acl.sh: Likewise.
63530         * tests/test-copy-acl.sh: Likewise.
63531         * tests/test-copy-file.sh: Likewise.
63533 2010-10-03  Bruno Haible  <bruno@clisp.org>
63535         Info about ACLs on NonStop Kernel.
63536         * doc/acl-resources.txt: Add info about NonStop Kernel.
63537         References by Joachim Schmitz <schmitz@hp.com>.
63539 2010-10-02  Bruno Haible  <bruno@clisp.org>
63541         Define missing EDQUOT on NonStop Kernel.
63542         * lib/errno.in.h (EDQUOT): Assign a value if missing.
63543         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
63544         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
63545         missing.
63546         * doc/posix-headers/errno.texi: Mention the NSK bug.
63547         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
63548         Reported by Joachim Schmitz <schmitz@hp.com>.
63550 2010-10-02  Bruno Haible  <bruno@clisp.org>
63552         Update doc for POSIX:2008.
63553         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
63554         Update URL of POSIX specification.
63556 2010-10-02  Bruno Haible  <bruno@clisp.org>
63558         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
63559         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
63560         from gnulib, not from Automake.
63562 2010-10-02  Bruno Haible  <bruno@clisp.org>
63564         New module 'system-posix'.
63565         * modules/system-posix: New file.
63566         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
63567         module is present.
63568         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63569         GNULIB_SYSTEM_POSIX.
63570         * modules/stdlib (Depends-on): Remove sys_wait.
63571         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
63572         * doc/posix-functions/system.texi: Mention the new module.
63573         * doc/posix-headers/stdlib.texi: Likewise.
63574         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
63575         define test_sys_wait_macros to a no-op.
63576         Reported by Sam Steingold <sds@gnu.org>.
63578 2010-09-30  Bruno Haible  <bruno@clisp.org>
63580         More renaming from 'getdate' to 'get_date'.
63581         * doc/get_date.texi: Renamed from doc/getdate.texi.
63582         * modules/get_date (Files): Update.
63583         * MODULES.html.sh (Date and time <time.h>): Update.
63584         * DEPENDENCIES: Update.
63585         * gnulib-tool: Update comment.
63586         * m4/bison.m4 (gl_BISON): Likewise.
63587         * m4/get_date.m4 (gl_GET_DATE): Likewise.
63589 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
63591         bootstrap: support ACLOCAL_FLAGS during aclocal
63592         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
63593         can add additional -I dir for third-party .m4 files.
63595 2010-09-30  Eric Blake  <eblake@redhat.com>
63597         bootstrap: use glibtoolize on MacOS
63598         * build-aux/bootstrap (check_versions): Convert libtool into
63599         libtoolize.
63600         (tool search): Move libtool check earlier, and look for
63601         glibtoolize for MacOS.
63602         (gnulib_tool_options): Auto-add --libtool when appropriate.
63603         Reported by Justin Clift.
63605         poll: fix typo that broke test on MacOS
63606         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
63607         Reported by Justin Clift.
63609         getdate: rename to get_date
63610         Note: getdate.h is not renamed, to minimize client impact.
63611         * modules/getdate: Mark obsolete.  Move old contents...
63612         * modules/get_date: ...to new module name.
63613         * modules/getdate-tests: Move...
63614         * modules/get_date-tests: ...here.
63615         * m4/getdate.m4: Move...
63616         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
63617         * lib/getdate.y: Move...
63618         * lib/get_date.y: ...here.
63619         * tests/test-getdate.c: Move...
63620         * tests/test-get_date.c: ...here.
63621         * doc/posix-functions/getdate.texi (getdate): Update name.
63622         * NEWS: Mention the change.
63624 2010-09-29  Bruno Haible  <bruno@clisp.org>
63626         Separate the module 'waitpid' from the module 'sys_wait'.
63627         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
63628         present.
63629         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
63630         gl_MODULE_INDICATOR_FOR_TESTS.
63631         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
63632         * modules/sys_wait (Depends-on): Remove waitpid.
63633         (Makefile.am): Substitute GNULIB_WAITPID.
63634         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
63635         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
63636         signature only if the 'waitpid' module is present.
63637         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
63638         * NEWS: Mention the change.
63639         * modules/grantpt (Depends-on): Add waitpid.
63640         * modules/wait-process (Depends-on): Likewise.
63642 2010-09-29  Bruno Haible  <bruno@clisp.org>
63644         More tests for module 'sys_wait'.
63645         * modules/sys_wait-c++-tests: New file.
63646         * tests/test-sys_wait-c++.cc: New file.
63647         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
63648         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
63650 2010-09-29  Bruno Haible  <bruno@clisp.org>
63652         New module 'waitpid'.
63653         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
63654         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
63655         Don't include <process.h>.
63656         (waitpid): Declare only, using modern idiom.
63657         * m4/waitpid.m4: New file.
63658         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
63659         * modules/waitpid: New file.
63660         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
63661         (Makefile.am): Update.
63662         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
63664 2010-09-28  Bruno Haible  <bruno@clisp.org>
63666         poll: Assume ANSI C.
63667         * lib/poll.c (poll): Use an ANSI C declaration.
63669 2010-09-28  Bruno Haible  <bruno@clisp.org>
63671         poll-h: Create poll.h on all platforms.
63672         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
63673         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
63674         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
63675         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
63676         (gl_REPLACE_POLL_H): Don't set POLL_H.
63677         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
63678         * modules/poll-h (Depends-on): Add include_next.
63679         (Makefile.am): Create poll.h unconditionally. Substitute also
63680         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
63682 2010-09-28  Bruno Haible  <bruno@clisp.org>
63684         Tests for module 'poll-h'.
63685         * modules/poll-h-c++-tests: New file.
63686         * tests/test-poll-h-c++.cc: New file.
63688         Tests for module 'poll-h'.
63689         * modules/poll-h-tests: New file.
63690         * tests/test-poll-h.c: New file.
63692 2010-09-28  Bruno Haible  <bruno@clisp.org>
63694         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
63695         * modules/poll-h (Depends-on): Add 'extensions'.
63697 2010-09-28  Bruno Haible  <bruno@clisp.org>
63699         New module 'poll-h'.
63700         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
63701         (poll): Use modern idiom.
63702         * modules/poll-h: New file.
63703         * modules/poll (Files): Remove lib/poll.in.h.
63704         (Depends-on): Add poll-h.
63705         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
63706         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
63707         * m4/poll_h.m4: New file.
63708         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
63709         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
63710         and invoke gl_REPLACE_POLL_H.
63711         * lib/poll.c: Use common idiom.
63712         * tests/test-poll.c: Likewise.
63713         * doc/posix-headers/poll.texi: Mention the poll-h module.
63714         Suggested by Eric Blake.
63716 2010-09-26  Bruno Haible  <bruno@clisp.org>
63718         sys_wait: Implement WSTOPSIG.
63719         * lib/sys_wait.in.h (WSTOPSIG): New macro.
63720         Reported by Simon Josefsson.
63722 2010-09-26  Simon Josefsson  <simon@josefsson.org>
63724         stdlib, sys_wait: Avoid compilation error on mingw.
63725         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
63727 2010-09-26  Bruno Haible  <bruno@clisp.org>
63729         stdlib tests: Avoid code duplication.
63730         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
63731         * modules/sys_wait-tests (Files): Likewise.
63732         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
63733         * tests/test-stdlib.c: Include test-sys_wait.h.
63734         (main): Invoke test_sys_wait_macros.
63735         * tests/test-sys_wait.c: Include test-sys_wait.h.
63736         (main): Invoke test_sys_wait_macros.
63738 2010-09-25  Simon Josefsson  <simon@josefsson.org>
63740         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
63741         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
63742         sure Windows sockets are working before calling getaddrinfo.
63743         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
63744         * doc/gnulib.texi (Windows sockets): Fix typo.
63746 2010-09-25  Bruno Haible  <bruno@clisp.org>
63748         Tests for module 'regex-quote'.
63749         * modules/regex-quote-tests: New file.
63750         * tests/test-regex-quote.c: New file.
63752         New module 'regex-quote'.
63753         * lib/regex-quote.h: New file.
63754         * lib/regex-quote.c: New file.
63755         * modules/regex-quote: New file.
63756         Suggested by Reuben Thomas <rrt@sc3d.org>.
63758 2010-09-24  Bruno Haible  <bruno@clisp.org>
63760         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
63761         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
63763 2010-09-23  Bruno Haible  <bruno@clisp.org>
63765         setenv: Relax license.
63766         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
63767         Blake.
63768         Requested by Eric Blake.
63770 2010-09-22  Bruno Haible  <bruno@clisp.org>
63772         termios: Relax license.
63773         * modules/termios (License): Change to LGPLv2+.
63774         Requested by Eric Blake.
63776 2010-09-22  Bruno Haible  <bruno@clisp.org>
63778         threadlib: Allow the package to change the default to 'no'.
63779         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
63780         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
63781         Reported by Paul Eggert.
63783 2010-09-22  Pádraig Brady  <P@draigbrady.com>
63784             Bruno Haible  <bruno@clisp.org>
63786         Fix endless loop in mbmemcasecoll.
63787         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
63788         byte.
63789         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
63791 2010-09-22  Bruno Haible  <bruno@clisp.org>
63793         Tests for module 'memcoll'.
63794         * modules/memcoll-tests: New file.
63795         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
63797         memcoll, xmemcoll: Clarify size vs. length.
63798         * modules/memcoll.c (memcoll0): Clarify specification.
63799         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
63800         passed to collate_error.
63802 2010-09-22  Bruno Haible  <bruno@clisp.org>
63804         Tests for module 'memcasecmp'.
63805         * modules/memcasecmp-tests: New file.
63806         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
63808 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
63810         * lib/pthread.in.h: Add split double-inclusion guard, and include
63811         system <pthread.h> if there is one.  Use @@-style as in other
63812         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
63813         pthread.h doesn't.
63814         (pthread_mutexattr_destroy, pthread_mutexattr_init):
63815         (pthread_mutexattr_settype, pthread_mutex_trylock):
63816         New static inline functions, if there's no system <pthread.h>.
63817         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
63818         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
63819         Approximate with mutexes if the system lacks spinlocks, as in
63820         MacOS.
63821         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
63822         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
63823         @@-style.  Check for spinlocks separately.
63824         (gl_PTHREAD_DEFAULTS): New macro.
63825         * modules/pthread: Redo to use a more typical style for in.h files.
63827 2010-09-21  Eric Blake  <eblake@redhat.com>
63829         net_if: enhance tests
63830         * tests/test-net_if.c (main): Move signature checks earlier.
63831         Print failures to stderr.
63832         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
63833         Document the bug that we do not yet fix.
63835 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
63837         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
63838         about gnulib, not GSS.
63840 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
63842         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
63843         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
63844         for Emacs.
63845         * build-aux/pmccabe2html: Make Makefile.am example code more
63846         cut-and-paste friendly.
63848 2010-09-21  Simon Josefsson  <simon@josefsson.org>
63850         * tests/test-net_if.c: New file.
63851         * modules/net_if-tests: New file.
63853 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
63855         pthread: add pthread_spin_destroy
63856         * lib/pthread.in.h (pthread_spin_destroy): New function.
63858 2010-09-19  Bruno Haible  <bruno@clisp.org>
63860         gnulib-tool: Fix --help output.
63861         * gnulib-tool (func_usage): Fix help message.
63862         Reported by Reuben Thomas <rrt@sc3d.org>.
63864 2010-09-18  Jim Meyering  <meyering@redhat.com>
63866         maint.mk: avoid unexpanded \n in two diagnostics
63867         * top/maint.mk (sc_prohibit_always_true_header_tests):
63868         Don't use a literal \n in a halt=... assignment.  It would not be
63869         expanded, and the two \n bytes would appear in the diagnostic output
63870         rather than the desired newline.  Use halt=$$(printf ... instead.
63871         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
63873 2010-09-18  Bruno Haible  <bruno@clisp.org>
63875         netinet_in: Doc tweak.
63876         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
63877         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
63879 2010-09-18  Jim Meyering  <meyering@redhat.com>
63881         init.sh: correct an outdated comment
63882         * tests/init.sh (create_exe_shims_):  s/function/alias/
63884         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
63885         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
63886         a file named "*.exe" is removed between the glob expansion and the
63887         processing of that oddly named file.
63889 2010-09-17  Eric Blake  <eblake@redhat.com>
63891         mirbsd: add some more support
63892         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
63893         in BSD family.
63894         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
63895         devices as OpenBSD.
63896         * m4/host-os.m4 (mirbsd): Add MirBSD.
63898         tests: fix unportable assumption on sys/wait.h
63899         * tests/test-sys_wait.c (main): Relax test.
63900         * tests/test-stdlib.c (main): Likewise.
63902         init.sh: accommodate directory with no .exes
63903         * tests/init.sh: Accomodate directory containing only scripts.
63905         tests: avoid compiler warning
63906         * tests/test-stdlib.c (main): Use the variable.
63908         fdutimens, fdutimensat: update signature, again
63909         * lib/utimens.h (gl_futimens): Delete, and move signature...
63910         (fdutimens): ...here.
63911         (fdutimensat): Rearrange signature.
63912         (lutimensat): Rename variable for clarity.
63913         * lib/fdutimensat.c (fdutimensat): Update signature.
63914         * lib/utimens.c (fdutimens): Likewise.
63915         (gl_futimens): Delete.
63916         (utimens, lutimens): Update callers.
63917         * lib/futimens.c (futimens): Likewise.
63918         * tests/test-fdutimensat.c: Likewise.
63919         * tests/test-utimens.c: Likewise.
63920         * tests/test-futimens.h: Update comment.
63921         * NEWS: Mention this.
63922         Suggested by Paul Eggert.
63924 2010-09-17  Bruno Haible  <bruno@clisp.org>
63926         Take over the maintenance of some older macros from Autoconf.
63927         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
63928         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
63929         GNU Autoconf.
63930         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
63931         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
63933 2010-09-17  Eric Blake  <eblake@redhat.com>
63935         fdutimensat: drop atflag validation
63936         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
63937         with valid fd, to close a race scenario where futimens is
63938         unsupported and FILE was replaced by a symlink.
63939         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
63940         accordingly.
63941         Suggested by Paul Eggert.
63943 2010-09-16  Bruno Haible  <bruno@clisp.org>
63945         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
63946         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
63948 2010-09-16  Bruno Haible  <bruno@clisp.org>
63950         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
63951         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
63952         login_tty exists.
63953         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
63955 2010-09-16  Bruno Haible  <bruno@clisp.org>
63957         login_tty: Make the replacement code work on BSD systems.
63958         * lib/login_tty.c: Include <sys/ioctl.h>.
63959         (login_tty): Use ioctl TIOCSCTTY when available.
63960         * modules/login_tty (Depends-on): Add sys_ioctl.
63961         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
63963 2010-09-16  Bruno Haible  <bruno@clisp.org>
63965         login_tty: Stricter unit test.
63966         * modules/login_tty-tests (Depends-on): Add tcgetsid.
63967         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
63968         and tcgetsid() after login_tty.
63969         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
63971 2010-09-16  Bruno Haible  <bruno@clisp.org>
63973         New module 'tcgetsid'.
63974         * lib/tcgetsid.c: New file.
63975         * m4/tcgetsid.m4: New file.
63976         * modules/tcgetsid: New file.
63977         * modules/termios (Depends-on): Add c++defs, warn-on-use.
63978         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
63979         GNULIB_TCGETSID, HAVE_TCGETSID.
63980         * lib/termios.in.h: Include <sys/types.h>.
63981         (tcgetsid): New declaration.
63982         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
63983         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
63984         * doc/posix-functions/tcgetsid.texi: Mention the new module.
63985         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
63987 2010-09-16  Bruno Haible  <bruno@clisp.org>
63989         Tests for module 'termios'.
63990         * modules/termios-c++-tests: New file.
63991         * modules/termios-tests: New file.
63992         * tests/test-termios-c++.cc: New file.
63993         * tests/test-termios.c: New file.
63995         New module 'termios'.
63996         * modules/termios: New file.
63997         * lib/termios.in.h: New file.
63998         * m4/termios_h.m4: New file.
63999         * doc/posix-headers/termios.texi: Mention the new module.
64001 2010-09-16  Eric Blake  <eblake@redhat.com>
64003         fdutimensat: add an atflag parameter
64004         * lib/fdutimensat.c (fdutimensat): Add new parameter.
64005         * lib/utimens.h (fdutimensat): Update prototype.
64006         * tests/test-fdutimensat.c: Adjust test to match.
64007         * NEWS: Document the change.
64008         Suggested by Paul Eggert.
64010 2010-09-16  Bruno Haible  <bruno@clisp.org>
64012         Fix typos in comments.
64013         * lib/striconveh.h: Fix typo in comment.
64014         * lib/login_tty.c (login_tty): Likewise.
64016 2010-09-15  Bruno Haible  <bruno@clisp.org>
64018         stdlib: clarify MirBSD WEXITSTATUS bug
64019         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
64020         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
64022 2010-09-15  Eric Blake  <eblake@redhat.com>
64024         stdlib: work around MirBSD WEXITSTATUS bug
64025         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
64026         * modules/stdlib (Depends-on): Add sys_wait.
64027         * tests/test-sys_wait.c (main): Enhance test.
64028         * tests/test-stdlib.c (main): Likewise.
64029         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
64031         docs: mention MacOS issue with WEXITSTATUS(constant)
64032         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
64033         issue.
64034         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
64036         strnlen: add tests
64037         * modules/strnlen-tests: New file.
64038         * tests/test-strnlen.c: Likewise.
64040 2010-09-14  Bruno Haible  <bruno@clisp.org>
64042         unistr/base: Avoid link errors when module 'libunistring' is also used.
64043         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
64044         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
64045         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
64046         Declare also when HAVE_LIBUNISTRING is set.
64047         Reported by Pádraig Brady <P@draigbrady.com>.
64049 2010-09-14  Eric Blake  <eblake@redhat.com>
64051         test-rawmemchr: make more robust
64052         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
64053         (Depends-on, configure.ac): Add needed prerequisites to use it.
64054         * modules/memchr-tests (Files, Depends-on, configure.ac):
64055         Likewise, to avoid implicit reliance on memchr module prereqs.
64056         * tests/test-memchr.c (main): Ensure proper masking.
64057         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
64058         reads.
64060         memchr: detect glibc Alpha bug
64061         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
64062         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
64063         Alpha.
64064         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
64065         * tests/test-memchr.c (main): Enhance test.
64066         Reported by Nelson H. F. Beebe.
64068 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64070         fts, getcwd, glob: audit for dirfd returning -1
64071         * lib/fts.c (opendir): Remove #define; no longer used.
64072         (opendirat): New arg PDIR_FD.  All callers changed.
64073         (fts_build, _opendir2): Use new opendirat to avoid the need for
64074         dirfd, or for checking whether dirfd returns a negative value.
64075         Don't use opendir; always use openat followed by fdopendir.
64076         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
64077         it.
64078         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
64079         returns -1 here.
64080         * modules/fts (Depends-on): Remove dirfd.
64081         * modules/getcwd (Depends-on): Likewise.
64083 2010-09-13  Eric Blake  <eblake@redhat.com>
64085         float: fix broken MirBSD header
64086         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
64087         * doc/posix-headers/float.texi (float.h): Document it.
64089 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64091         fts: use O_NOFOLLOW to avoid race condition when opening a directory
64092         * lib/fts.c (opendirat): New arg extra_flags.
64093         (__opendir2): Use it to avoid following symlinks when opening
64094         a directory, if symlinks are not supposed to be followed.  See
64095         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
64097         fdopendir: preserve argument fd before returning
64098         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
64099         (fdopendir_with_dup, fd_clone_opendir): New static functions.
64100         (fdopendir): Use them, arranging for FD to be open to the same
64101         directory that it was when it started.  (It might be temporarily
64102         closed while fdopendir is running, so this not thread- or
64103         signal-safe.)  Be careful to do the right thing even when file
64104         descriptors are scarce and dup fails with errno == EMFILE.  See
64105         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
64107 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
64109         regex: Pass the system regex if its only problem is 32-bit regoff_t.
64110         * NEWS: Document change.
64111         * m4/regex.m4: Disable test for regoff_t size.
64113 2010-09-13  Jim Meyering  <meyering@redhat.com>
64115         fts: don't operate on an invalid file descriptor after failed dup
64116         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
64117         negative file descriptor.
64119 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
64121         savedir: add streamsavedir, deprecate fdsavedir
64122         * NEWS: Mention deprecation of fdsavedir.
64123         * lib/savedir.c (streamsavedir): New extern function, whose name
64124         ends in "savedir" to be consistent with the others.  This differs
64125         from savedirstream in that it doesn't close its argument.  The
64126         next version of GNU tar will use this instead of fdsavedir, to
64127         avoid some race conditions and conserve file descriptors.
64128         (savedirstream): Reimplement as a wrapper around streamsavedir.
64129         (fdsavedir): Add a comment deprecating this function.  As far as
64130         I know, only GNU tar used it, and GNU tar doesn't need it any more.
64131         * lib/savedir.h (streamsavedir): New decl.
64132         (fdsavedir): Add a comment deprecating this.
64134 2010-09-10  Bruno Haible  <bruno@clisp.org>
64136         langinfo: Fix last commit.
64137         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
64138         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
64139         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
64141 2010-09-10  Bruno Haible  <bruno@clisp.org>
64143         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
64144         * lib/progreloc.c (O_EXEC): Define fallback.
64146 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
64148         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
64149         * NEWS: Document recent changes to fcntl-h.
64150         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
64151         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
64152         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
64153         Similarly for O_SEARCH; this last was already true, but not documented.
64154         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
64155         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
64156         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
64157         Likewise.
64158         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
64159         is zero, not whether it is defined.
64160         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
64161         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
64162         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
64164 2010-09-10  Bruno Haible  <bruno@clisp.org>
64166         langinfo, nl_langinfo: Fix for IRIX 5.3.
64167         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
64168         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
64169         HAVE_LANGINFO_YESEXPR.
64170         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
64171         HAVE_LANGINFO_YESEXPR.
64172         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
64173         HAVE_LANGINFO_T_FMT_AMPM is 0.
64174         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
64175         HAVE_LANGINFO_YESEXPR is 0.
64176         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
64177         NOEXPR.
64178         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
64179         * doc/posix-functions/nl_langinfo.texi: Likewise.
64180         Reported by Eric Blake.
64182 2010-09-10  Bruno Haible  <bruno@clisp.org>
64184         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
64185         * doc/glibc-functions/login_tty.texi: Mention the include file problem
64186         on FreeBSD 8.0 and OpenBSD 4.6.
64187         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
64188         * m4/pty_h.m4 (gl_PTY_H): Likewise.
64189         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
64190         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
64191         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
64192         ac_includes_default.
64193         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
64195 2010-09-09  Eric Blake  <eblake@redhat.com>
64197         strsignal: work around NetBSD bug
64198         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
64199         * lib/string.in.h (includes): Likewise.
64200         * doc/posix-functions/strsignal.texi (strsignal): Document the
64201         bug.
64202         Reported by Nelson H. F. Beebe.
64204         gnulib-tool: work with NetBSD /bin/sh
64205         * gnulib-tool (func_cache_var, func_cache_lookup_module)
64206         (func_get_description, func_get_comment, func_get_status)
64207         (func_get_notice, func_get_applicability, func_get_filelist)
64208         (func_get_dependencies, func_get_autoconf_early_snippet)
64209         (func_get_autoconf_snippet, func_get_automake_snippet)
64210         (func_get_include_directive, func_get_link_directive)
64211         (func_get_license, func_get_maintainer, func_import): Avoid
64212         shell syntax errors from parsing syntax extensions.
64214 2010-09-09  Bruno Haible  <bruno@clisp.org>
64216         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
64217         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
64218         a reliable way to determine whether the 'alias' command works.
64220 2010-09-08  Jim Meyering  <meyering@redhat.com>
64222         init.sh: penalize a set-x-impaired shell; don't disqualify it
64223         * tests/init.sh: Too many shells corrupt application stderr when
64224         you set -x, so we can't afford to disqualify them, since at least
64225         on Irix-6.5, that would disqualify all bourne shells.
64226         Instead, use a two-pass approach.
64227         On the first pass, try to find a shell that meets the stricter
64228         condition that set -x does not corrupt stderr.
64229         If no shell meets the stricter condition, retest each candidate
64230         shell, but without that extra condition.  Finally, when
64231         VERBOSE=yes is requested and set -x might cause trouble, simply
64232         issue a warning and refrain from enabling debug output.
64234 2010-09-08  Eric Blake  <eblake@redhat.com>
64236         unsetenv: fix OpenBSD bug
64237         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
64238         * doc/posix-functions/unsetenv.texi (unsetenv): Update
64239         documentation.
64240         Reported by Jim Meyering.
64242         strtod: work around IRIX 6.5 bug
64243         * lib/strtod.c (strtod): Reparse number on shorter string if
64244         exponent parse was invalid.
64245         * tests/test-strtod.c (main): Add check for "0x1p 2".
64246         Reported by Tom G. Christensen.
64248         getopt: optimize previous patch
64249         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
64250         empty variable.  Speed up awk script.
64251         Reported by Paolo Bonzini.
64253 2010-09-08  Jim Meyering  <meyering@redhat.com>
64255         test.sh: disqualify shells for which set -x corrupts stderr
64256         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
64257         and OpenBSD 4.7.  They make it so with "set -x", environment settings
64258         appear in stderr output.  For example, this command:
64259             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
64260         prints "P=1" on those two systems:
64262 2010-09-08  Bruno Haible  <bruno@clisp.org>
64264         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
64265         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
64266         commands, because some shells ignore redirections when there is an
64267         error in the command lookup.
64268         Reported by Eric Blake.
64270 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
64272         * lib/regex.h: Fix a mention of `regex_compile' (should be
64273         `re_compile_pattern').
64274         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
64275         (re_set_registers): Correct name of parameter in comment.
64277         * doc/regex.texi: Add documentation for missing syntax flags.
64278         Remove commented-out documentation of defunct syntax option
64279         RE_NO_EMPTY_ALTS.
64280         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
64281         Add documentation of re_set_registers.
64282         Document trick to re-use a pattern buffer by setting fastmap manually.
64283         Update documentation of struct re_pattern_buffer per public members.
64284         Uncomment documentation of equivalence class operators and
64285         collating symbol operators, since they are now implemented,
64286         Explain leftmost-longest matching in relation to alternatives.
64287         Tidy documentation of substring matching.
64288         Remove POSIX documentation, which is done better in
64289         glibc, and refer the reader there. Keep BSD API documentation, as
64290         that is not readily available elsewhere.
64292 2010-09-07  Eric Blake  <eblake@redhat.com>
64294         getopt: handle POSIXLY_CORRECT set but not exported
64295         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
64296         export state of POSIXLY_CORRECT, due to bash set -o posix.
64297         Reported by Dustin J. Mitchell.
64299 2010-09-05  Bruno Haible  <bruno@clisp.org>
64301         gnulib-tool: Highlight the changed options.
64302         * gnulib-tool (func_usage): Display the --import, --add-import,
64303         --remove-import explanations in bold font.
64305 2010-09-06  Karl Berry  <karl@gnu.org>
64307         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
64309 2010-09-05  Bruno Haible  <bruno@clisp.org>
64311         uniwidth/width: Update comment.
64312         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
64313         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
64315 2010-09-05  Bruno Haible  <bruno@clisp.org>
64317         isinf, isnan: Relax license.
64318         * modules/isinf (License): Change from GPL to LGPL, with consent from
64319         Ben Pfaff.
64320         * modules/isnan (License): Likewise.
64321         Requested by Ludovic Courtès.
64323 2010-09-04  Bruno Haible  <bruno@clisp.org>
64325         gnulib-tool: Help migration from --import to --add-import or --update.
64326         * gnulib-tool: Emit a verbose error message when --import is used
64327         without any module name.
64329 2010-09-04  Bruno Haible  <bruno@clisp.org>
64331         Update doc about gnulib-tool.
64332         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
64333         'gnulib-tool --update' in more detail.
64334         Reported by Eric Blake.
64336 2010-09-04  Bruno Haible  <bruno@clisp.org>
64338         gnulib-tool: Change --import. New options --add/remove-import.
64339         * gnulib-tool: New options --add-import, --remove-import.
64340         (func_usage): Document them.
64341         (have_associative): Define always.
64342         (func_import): In import mode, don't merge the specified settings with
64343         the cached settings. Implement remove-import mode.
64344         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
64345         Explain when to use them versus --import.
64346         (Simple update): Use --add-import instead of --import.
64347         * NEWS: Mention the change.
64349 2010-09-04  Bruno Haible  <bruno@clisp.org>
64351         * doc/gnulib-tool.texi (Initial import): Update paragraph about
64352         separate gnulib.mk.
64354 2010-09-04  Bruno Haible  <bruno@clisp.org>
64356         gnulib-tool: Don't talk about CVS any more.
64357         * gnulib-tool (func_usage, func_import): Write "version control"
64358         instead of CVS.
64360 2010-09-04  Jim Meyering  <meyering@redhat.com>
64362         maint.mk: avoid obscure sc_copyright_check failure in coreutils
64363         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
64364         false positives (whose names may be ill-chosen) when searching
64365         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
64366         would cause a false-positive.
64368         avoid coreutils "make distcheck" failure
64369         Coreutils tests with an absolute build directory name that contains
64370         a space.  Not quoting this directory name caused a failure.
64371         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
64372         * tests/test-vc-list-files-cvs.sh: Likewise.
64374 2010-09-04  Bruno Haible  <bruno@clisp.org>
64376         gnulib-tool: Avoid error when run in a package without Makefile.am.
64377         * gnulib-tool: When collecting the m4dirs in a package that does not
64378         have a Makefile.am, eliminate those directories that contain no
64379         gnulib-cache.m4. Fix expression that counts these directories.
64381 2010-09-04  Bruno Haible  <bruno@clisp.org>
64383         update-copyright test: Improve output when perl is missing or too old.
64384         * tests/test-update-copyright.sh: Move test of Perl version down after
64385         the test whether Perl exists. Provide an explanation relating Perl's
64386         error message to Automake's SKIP: message.
64388 2010-09-04  Bruno Haible  <bruno@clisp.org>
64390         Don't augment PATH in TESTS_ENVIRONMENT.
64391         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
64392         set abs_aux_dir instead of augmenting PATH.
64393         * modules/vc-list-files-tests (Makefile.am): Likewise.
64394         * tests/test-update-copyright.sh: Augment PATH here.
64395         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
64396         path_prepend_.
64397         * tests/test-vc-list-files-git.sh: Likewise.
64399 2010-09-04  Jim Meyering  <meyering@redhat.com>
64401         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
64402         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
64404 2010-09-04  Bruno Haible  <bruno@clisp.org>
64406         strdup: Fix compilation error in C++ mode.
64407         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
64408         the macro.
64410 2010-09-04  Bruno Haible  <bruno@clisp.org>
64412         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
64413         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
64414         macro into a function.
64415         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
64417 2010-09-04  Bruno Haible  <bruno@clisp.org>
64419         Set PATH_SEPARATOR the same way autoconf does.
64420         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
64421         the value of PATH_SEPARATOR the same way autoconf-generated configure
64422         scripts do.
64423         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
64424         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
64426 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
64428         Set PATH_SEPARATOR the same way autoconf does.
64429         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
64430         the same way autoconf-generated configure scripts do.
64431         * posix-modules: Likewise.
64433 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
64435         hash: fix safe_hasher const typo
64436         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
64437         const; otherwise, there is a type error later.
64439 2010-09-02  Jim Meyering  <meyering@redhat.com>
64441         test-update-copyright.sh: require perl 5.8.0
64442         * tests/test-update-copyright.sh: Require 5.8.0,
64443         which Tom G. Christensen has confirmed is adequate,
64444         while 5.6.1 is not.
64446 2010-09-02  Eric Blake  <eblake@redhat.com>
64448         tests: init.sh improvements for re-exec'ing with zsh
64449         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
64450         -vx through shell re-exec.
64451         Reported by Tom G. Christensen.
64453         wctype: fix typo in previous commit
64454         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
64455         Reported by Ludovic Courtès.
64457 2010-09-02  Jim Meyering  <meyering@redhat.com>
64459         test-update-copyright.sh: skip test if Perl is too old
64460         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
64461         Reported by Tom G. Christensen.
64463 2010-09-02  Bruno Haible  <bruno@clisp.org>
64465         wctype: Avoid compilation error on IRIX 6.5.30.
64466         * lib/wctype.in.h (iswblank): Declare with a replacement if
64467         REPLACE_ISWBLANK is set.
64468         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
64469         declared. Set REPLACE_ISWBLANK.
64470         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
64471         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
64472         * doc/posix-headers/wctype.texi: Likewise.
64473         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
64475 2010-09-01  Bruno Haible  <bruno@clisp.org>
64477         New module 'socketlib'.
64478         * modules/socketlib: New file.
64479         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
64480         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
64481         * modules/sockets (Depends-on): Add socketlib.
64482         Suggested by Sam Steingold <sds@gnu.org>.
64484 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64486         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
64488         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
64489         when one needs search access to a directory but not read access.
64490         On systems where it is available, it works in some cases where
64491         O_RDONLY does not, namely on directories that are searchable but
64492         not readable, and which need only to be searchable.  If O_SEARCH
64493         is not available, fall back to the traditional method of using
64494         O_RDONLY.
64496         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
64497         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
64498         when opening a directory that needs only to be searchable.
64499         * lib/chdir-safer.c (chdir_no_follow): Likewise.
64500         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
64501         * lib/openat-proc.c (openat_proc_name): Likewise.
64502         * lib/openat.c (openat_needs_fchdir): Likewise.
64503         * lib/save-cwd.c (save_cwd): Likewise.
64504         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
64506 2010-08-28  Bruno Haible  <bruno@clisp.org>
64508         New module 'host-cpu-c-abi'.
64509         * modules/host-cpu-c-abi: New file.
64510         * m4/host-cpu-c-abi.m4: New file, based on part of
64511         clisp/src/m4/general.m4.
64512         Requested by Sam Steingold <sds@gnu.org>.
64514 2010-08-31  Eric Blake  <eblake@redhat.com>
64515         and Jim Meyering  <meyering@redhat.com>
64517         hash: factor, and guard against misbehaving hasher function
64518         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
64519         of table->hasher's return value.  Also protect against a hash value
64520         so large that adding it to table->bucket results in a NULL pointer.
64521         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
64522         Use it in place of open-coded check-and-abort.
64524 2010-08-30  Bruno Haible  <bruno@clisp.org>
64526         hash: silence spurious clang warning
64527         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
64528         Reported by Eric Blake.
64530 2010-08-30  Eric Blake  <eblake@redhat.com>
64532         strstr, memmem, strcasestr: avoid leaked shell message
64533         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
64534         FreeBSD.
64535         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
64536         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
64538         tests: silence clang warning
64539         * tests/test-malloca.c (do_allocation): Avoid dead store.
64541 2010-08-29  Bruno Haible  <bruno@clisp.org>
64543         gettext: Fix recent mistake.
64544         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
64546 2010-08-29  Bruno Haible  <bruno@clisp.org>
64548         selinux-h: Offer a --without-selinux option.
64549         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
64550         --without-selinux was specified, skip all tests and define
64551         HAVE_SELINUX_SELINUX_H to 0.
64552         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
64553         set LIB_SELINUX to empty.
64554         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
64555         gl_LIBSELINUX. If --without-selinux was specified, replace
64556         selinux/context.h.
64557         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
64559 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64560             Bruno Haible  <bruno@clisp.org>
64562         Make the module 'realloc-gnu' work again on AIX and OSF/1.
64563         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
64564         of HAVE_REALLOC.
64565         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
64566         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
64567         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
64568         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
64570 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64571             Bruno Haible  <bruno@clisp.org>
64573         Make the module 'calloc-gnu' work again on AIX and OSF/1.
64574         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
64575         HAVE_CALLOC.
64576         * lib/xmalloc.c: Update accordingly.
64577         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
64578         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
64579         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
64581 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64582             Bruno Haible  <bruno@clisp.org>
64584         Make the module 'malloc-gnu' work again on AIX and OSF/1.
64585         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
64586         HAVE_MALLOC.
64587         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
64588         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
64589         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
64591 2010-08-29  Bruno Haible  <bruno@clisp.org>
64593         Update modules list.
64594         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
64595         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
64596         (String handling <string.h>): Add astrxfrm.
64597         (File system functions): Add readlinkat.
64599 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64601         Tests for module 'realloc-gnu'.
64602         * modules/realloc-gnu-tests: New file.
64603         * tests/test-realloc-gnu.c: New file.
64605         Tests for module 'calloc-gnu'.
64606         * modules/calloc-gnu-tests: New file.
64607         * tests/test-calloc-gnu.c: New file.
64609         Tests for module 'malloc-gnu'.
64610         * modules/malloc-gnu-tests: New file.
64611         * tests/test-malloc-gnu.c: New file.
64613 2010-08-28  Bruno Haible  <bruno@clisp.org>
64615         Rename module 'realloc' -> 'realloc-gnu'.
64616         * modules/realloc-gnu: New file, copied from modules/realloc.
64617         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
64618         obsolete.
64619         * modules/mgetgroups (Depends-on): Update.
64620         * doc/posix-functions/realloc.texi: Update.
64621         * NEWS: Mention the change.
64623         Rename module 'calloc' -> 'calloc-gnu'.
64624         * modules/calloc-gnu: New file, copied from modules/calloc.
64625         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
64626         obsolete.
64627         * doc/posix-functions/calloc.texi: Update.
64628         * NEWS: Mention the change.
64630         Rename module 'malloc' -> 'malloc-gnu'.
64631         * modules/malloc-gnu: New file, copied from modules/malloc.
64632         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
64633         obsolete.
64634         * modules/argp (Depends-on): Update.
64635         * modules/regex (Depends-on): Update.
64636         * doc/posix-functions/malloc.texi: Update.
64637         * NEWS: Mention the change.
64639 2010-08-28  Eric Blake  <eblake@redhat.com>
64641         pread, pwrite: add missing dependency
64642         * modules/pread (Depends-on): Add extensions.
64643         * modules/pwrite (Depends-on): Likewise.
64645 2010-08-28  Bruno Haible  <bruno@clisp.org>
64647         unistr/u*-strchr: Fix tests dependencies.
64648         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
64649         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
64650         Reported by Ian Beckwith <ianb@erislabs.net>.
64652 2010-08-28  Bruno Haible  <bruno@clisp.org>
64654         read-file: Don't occupy too much unused memory.
64655         * lib/read-file.c (fread_file): Shrink the buffer at the end.
64657 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
64658             Eric Blake  <eblake@redhat.com>
64659             Bruno Haible  <bruno@clisp.org>
64661         read-file: Avoid memory reallocations with regular files.
64662         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
64663         (fread_file): With regular files, use the remaining length as the
64664         initial buffer size.  Check against overflow.
64665         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
64666         sys_stat.
64668 2010-08-28  Bruno Haible  <bruno@clisp.org>
64670         ftello: Relax license.
64671         * modules/ftello (License): Relax to LGPLv2+.
64672         Reported by Eric Blake.
64674 2010-08-28  Bruno Haible  <bruno@clisp.org>
64676         Avoid relocwrapper link errors due to gnulib replacement functions.
64677         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
64678         function.
64679         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64681 2010-08-28  Bruno Haible  <bruno@clisp.org>
64683         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
64684         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
64685         defined.
64686         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
64687         Suggested by Eric Blake.
64689 2010-08-28  Bruno Haible  <bruno@clisp.org>
64691         sys_socket, netdb: Ensure socklen_t gets defined.
64692         * modules/sys_socket (Depends-on): Add socklen.
64693         * modules/netdb (Depends-on): Likewise.
64694         * modules/getaddrinfo (Depends-on): Remove socklen.
64695         * modules/getsockopt (Depends-on): Likewise.
64696         * modules/setsockopt (Depends-on): Likewise.
64697         * tests/test-sys_socket.c: Check that socklen_t is defined.
64698         * tests/test-netdb.c: Likewise.
64699         * m4/socklen.m4: Update comments.
64700         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64702 2010-08-27  Eric Blake  <eblake@redhat.com>
64704         login_tty: add missing dependency
64705         * modules/login_tty (Depends-on): Add pty.
64707 2010-08-26  Eric Blake  <eblake@redhat.com>
64709         lib-symbol-versions: fix m4 quoting
64710         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
64711         format for AC_LINK_IFELSE.
64713         glob: fix compile test
64714         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
64716         btowc: fix missing file
64717         * modules/btowc (Files): Also ship locale-fr.m4.
64719         lseek: fix link test
64720         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
64721         AC_LINK_IFELSE.
64723         include_next: silence autoconf 2.68 warning
64724         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
64725         AC_COMPILE_IFELSE as special.
64726         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
64727         autoconf < 2.68.
64729         acl: fix compilation test
64730         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
64731         AC_COMPILE_IFELSE.
64733 2010-08-26  Bruno Haible  <bruno@clisp.org>
64735         Modernize AC_TRY_RUN invocations.
64736         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
64737         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
64738         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
64739         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
64740         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
64741         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
64742         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
64743         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
64744         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
64745         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
64746         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
64747         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
64748         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
64749         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
64750         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
64751         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
64752         gl_MBRLEN_NUL_RETVAL): Likewise.
64753         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
64754         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
64755         Likewise.
64756         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
64757         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
64758         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
64759         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
64760         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
64761         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
64762         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
64763         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
64764         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
64765         Likewise.
64766         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
64767         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
64768         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64769         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
64770         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
64771         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
64772         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
64773         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
64774         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
64775         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64777 2010-08-26  Bruno Haible  <bruno@clisp.org>
64779         Modernize AC_TRY_LINK invocations.
64780         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
64781         AC_TRY_LINK.
64782         * m4/argp.m4 (gl_ARGP): Likewise.
64783         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
64784         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
64785         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
64786         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
64787         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
64788         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
64789         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
64790         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
64791         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
64792         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
64793         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
64794         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
64795         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
64796         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
64797         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
64798         * m4/hostent.m4 (gl_HOSTENT): Likewise.
64799         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
64800         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
64801         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
64802         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
64803         Likewise.
64804         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
64805         Likewise.
64806         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
64807         Likewise.
64808         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
64809         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
64810         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
64811         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
64812         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
64813         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
64814         * m4/servent.m4 (gl_SERVENT): Likewise.
64815         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
64816         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
64817         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
64818         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
64819         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
64820         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
64821         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
64822         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
64823         * modules/tsearch-tests (configure.ac): Likewise.
64825 2010-08-26  Bruno Haible  <bruno@clisp.org>
64827         Modernize AC_TRY_COMPILE invocations.
64828         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
64829         AC_TRY_COMPILE.
64830         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
64831         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
64832         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
64833         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
64834         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
64835         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
64836         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
64837         * m4/lock.m4 (gl_LOCK): Likewise.
64838         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
64839         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64840         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
64841         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
64842         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
64843         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
64844         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
64845         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
64846         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
64847         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
64848         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
64849         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
64850         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
64851         extraneous semicolon.
64853 2010-08-26  Jim Meyering  <meyering@redhat.com>
64855         stat-time: relax license LGPL
64856         * modules/stat-time (License): Change from GPL to LGPL,
64857         with consent from all contributors, for use in libguile.
64858         Requested by Ludovic Courtès.
64860 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
64862         poll: return immediately on POLLHUP.
64863         * lib/poll.c (poll): Always set timeout before wait_timeout is
64864         computed.
64866 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64868         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
64869         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
64870         rmdir ("dir/.//"), unlinkat.
64872 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64874         stdbool: avoid spurious failure with modern xlc
64875         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
64877 2010-08-24  Bruno Haible  <bruno@clisp.org>
64879         getloadavg: simplify code
64880         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
64881         gl_have_func. Update comments.
64883 2010-08-24  Eric Blake  <eblake@redhat.com>
64885         getloadavg: don't define SVR4 on cygwin
64886         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
64887         only define SVR4 when -lkvm is required.
64888         Reported by Yaakov Selkowitz.
64890 2010-08-24  Bruno Haible  <bruno@clisp.org>
64892         priv-set: fix comment
64893         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
64895 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64897         priv-set: fix comments
64898         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
64899         to match code, as suggested by David Bartley in:
64900         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
64902 2010-08-23  Eric Blake  <eblake@redhat.com>
64904         stdbool: avoid rejecting clang
64905         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
64906         * tests/test-stdbool.c: Enable more tests if using the system
64907         <stdbool.h> instead of the gnulib replacement.
64908         (main): Move xlc bug test to a runtime test for all compilers.
64909         Reported by Anders Kaseorg.
64911         argz: fix shell quoting issue
64912         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
64913         Reported by Charles Wilson.
64915 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
64916             Erik Faye-Lund <kusmabite@gmail.com>
64918         poll, select: handle ERROR_BROKEN_PIPE.
64919         * lib/poll.c (win32_compute_revents): Return POLLHUP when
64920         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
64921         * lib/select.c (win32_compute_revents): Do not mark a pipe
64922         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
64924 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
64926         fts: allow compilation with C++
64927         * lib/fts_.h: Specify extern "C" linkage with C++.
64929 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64931         Fix gnulib-tool sed script de-commentation for AIX sed.
64932         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
64933         sed.
64935 2010-08-17  Eric Blake  <eblake@redhat.com>
64937         test-stddef: test for (some) offsetof bugs
64938         * tests/test-stddef.c: Enhance test to ensure correct type of
64939         offsetof.
64940         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
64941         that we are not fixing at this time.
64943 2010-08-15  Bruno Haible  <bruno@clisp.org>
64945         stpncpy: Allow stpncpy to be defined as a macro.
64946         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
64947         if it's already correctly declared.
64948         * lib/string.in.h (stpncpy): Undefine before redefining.
64949         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
64951 2010-08-14  Bruno Haible  <bruno@clisp.org>
64953         Rename module 'memxfrm' to 'amemxfrm'.
64954         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
64955         (amemxfrm): Renamed from memxfrm.
64956         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
64957         (amemxfrm): Renamed from memxfrm.
64958         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
64959         * NEWS: Mention the change.
64960         * MODULES.html.sh (String handling <string.h>): Update.
64961         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
64962         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
64963         * lib/unicase/u16-casexfrm.c: Likewise.
64964         * lib/unicase/u32-casexfrm.c: Likewise.
64965         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
64966         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
64967         * lib/uninorm/u16-normxfrm.c: Likewise.
64968         * lib/uninorm/u32-normxfrm.c: Likewise.
64969         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
64970         memxfrm.
64971         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
64972         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
64973         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
64974         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
64975         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
64976         Suggested by Paul Eggert.
64978 2010-08-14  Bruno Haible  <bruno@clisp.org>
64980         Tests for module 'astrxfrm'.
64981         * modules/astrxfrm-tests: New file.
64982         * tests/test-astrxfrm.c: New file.
64984         New module 'astrxfrm'.
64985         * lib/astrxfrm.h: New file.
64986         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
64987         * modules/astrxfrm: New file.
64989 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
64991         regex: Tweak doc.
64992         * doc/regex.texi (Overview): Don't mention regex.c.
64993         (GNU Regular Expression Compiling): Likewise.
64994         (Match-end-of-line Operator): Mention 'not_eol'.
64996 2010-08-14  Brian Gough  <bjg@gnu.org>
64997             Bruno Haible  <bruno@clisp.org>
64999         git-merge-changelog: add doc relating to use with bzr and hg.
65000         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
65002 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
65004         pthread: fix pthread.h creation for srcdir != builddir
65005         * modules/pthread (Makefile.am): Fix the rule to work also in a
65006         non-srcdir build.
65008 2010-08-13  Karl Berry  <karl@gnu.org>
65010         * doc/regex.texi (Predefined Syntaxes): @smallexample.
65011         * doc/posix-*/*: force line break before @url of POSIX
65012         specifications.
65013         Suggested by Werner Lemberg.
65015 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65017         strtod: fix const diagnostic
65018         * lib/strtod.c (strtod): Don't assign const char * to char *,
65019         as this elicits a warning from GCC when warnings are enabled.
65021 2010-08-10  Pádraig Brady  <P@draigbrady.com>
65022         and Eric Blake  <eblake@redhat.com>
65024         copy-acl: ignore ENOTSUP on HP-UX
65025         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
65026         so that it is available for HP-UX.
65027         * lib/copy-acl.c (qcopy_acl): Use it.
65028         Reported by Patrick M. Callahan.
65030 2010-08-10  Eric Blake  <eblake@redhat.com>
65032         open, chown: relax license
65033         * modules/open (License): Change to LGPLv2+, with consent by all
65034         authors, for use in augeas.
65035         * modules/chown (License): Likewise.
65036         * modules/lchown (Likewise): Likewise.
65037         Requested by Adam Stokes.
65039 2010-08-09  Karl Berry  <karl@gnu.org>
65041         * build-aux/ar-lib: new file, import from Automake.
65042         * config/srclist.txt: autocheck for updates.
65044 2010-08-09  Eric Blake  <eblake@redhat.com>
65046         readlinkat: adjust client modules
65047         * modules/areadlinkat (Depends-on): Use readlinkat, not
65048         symlinkat.
65049         * modules/areadlinkat-with-size (Depends-on): Likewise.
65051         mknod: be more vocal about danger of running tests as root
65052         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
65053         root, since that is just asking for problems.
65054         Suggested by Bruno Haible, based on a report by Rainer Tammer.
65056         readlinkat: split into its own module
65057         * modules/symlinkat: Split readlinkat...
65058         * modules/readlinkat: ...into separate module.
65059         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
65060         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
65061         * lib/symlinkat.c (readlinkat): Move...
65062         * lib/readlinkat.c: ...into new file.
65063         * modules/symlinkat-tests: Split readlinkat test...
65064         * modules/readlinkat-tests: ...into separate module.
65065         * tests/test-symlinkat.c: Split...
65066         * tests/test-readlinkat.c: ...into new file.
65067         * NEWS: Document the split.
65068         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
65069         * lib/unistd.in.h (readlinkat): Likewise.
65070         Suggested by Bruno Haible.
65072 2010-08-08  Bruno Haible  <bruno@clisp.org>
65074         memxfrm: Speed up.
65075         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
65076         that usually only one call to strxfrm is necessary for each string
65077         part.
65078         Reported by Paul Eggert <eggert@cs.ucla.edu>.
65080 2010-08-07  Karl Berry  <karl@gnu.org>
65082         * doc/posix-headers/limits.texi,
65083         * doc/posix-functions/malloc.texi,
65084         * doc/posix-functions/strsignal.texi: missing @item.
65085         * doc/ld-version-script.texi: spurious leading i.
65086         * doc/regex.texi (Interval Operators): no commas inside @var.
65088 2010-08-01  Bruno Haible  <bruno@clisp.org>
65090         Integrate the regex documentation.
65091         * doc/gnulib.texi: Define 'cn' index.
65092         (Regular expressions): New a chapter that includes regex.texi and
65093         regexprops-generic.texi.
65094         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
65095         syntax.
65097         Whitespace cleanup.
65098         * doc/regex.texi: Remove trailing spaces.
65100         Add regex documentation.
65101         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
65102         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
65103         Written by Kathy A. Hargreaves and Karl Berry.
65105 2010-08-01  Bruno Haible  <bruno@clisp.org>
65107         link: Update documentation.
65108         * doc/posix-functions/link.texi: Update regarding Solaris.
65110 2010-07-31  Bruno Haible  <bruno@clisp.org>
65112         Update modules list.
65113         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
65114         (String handling <string.h>): Add memcmp2, memxfrm.
65115         (Container data structures): Add xlist, xsublist, xoset.
65116         (Core language properties): Add alignof, unused-parameter.
65117         (Process control, Numeric conversion functions <stdlib.h>): Renamed
65118         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
65119         (Unibyte characters <ctype.h>): New section.
65120         (String handling <string.h>): New section.
65121         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
65122         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
65123         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
65124         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
65125         tan, tanh, tanl, y0, y1, yn.
65126         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
65127         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
65128         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
65129         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
65130         unlockpt, vdprintf, vdprintf-posix.
65131         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
65132         (File system functions): Add concat-filename, sys_file, sys_ioctl,
65133         xconcat-filename.
65134         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
65135         getdtablesize, pipe2, pipe2-safer.
65136         (Security): New section.
65137         (Networking functions): Add accept4.
65138         (Signal handling): Add sigpipe.
65139         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
65140         mbmemcasecoll.
65141         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
65142         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
65143         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
65144         pipe-filter-ii.
65145         (Misc): Add argp-version-etc, login_tty, parse-duration.
65147 2010-07-31  Bruno Haible  <bruno@clisp.org>
65149         Improve doc in MODULES.html.
65150         * modules/linkat (Description): Add the word "function".
65151         * modules/mkfifo (Description): Likewise.
65152         * modules/mknod (Description): Likewise.
65153         * modules/remove (Description): Likewise.
65154         * modules/renameat (Description): Likewise.
65155         * modules/stat (Description): Likewise.
65156         * modules/symlink (Description): Likewise.
65157         * modules/unlink (Description): Likewise.
65159 2010-07-31  Bruno Haible  <bruno@clisp.org>
65161         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
65162         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
65163         option --enable/disable-c++ instead of --enable/disable-cxx.
65164         * NEWS: Mention the change.
65166 2010-07-31  Bruno Haible  <bruno@clisp.org>
65168         readlink, areadlink: Relax test a bit.
65169         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
65170         alternative to ENOTDIR.
65171         * tests/test-areadlink.h (test_areadlink): Likewise.
65172         Reported by Rainer Tammer.
65174 2010-07-31  Bruno Haible  <bruno@clisp.org>
65176         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
65177         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
65178         character, perform the search using U_STRCHR.
65179         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
65180         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
65181         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
65182         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
65183         Suggested by Paolo Bonzini.
65185 2010-07-31  Bruno Haible  <bruno@clisp.org>
65187         unistr/u*-strstr: Fix dependencies.
65188         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
65189         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
65190         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
65192 2010-07-31  Bruno Haible  <bruno@clisp.org>
65194         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
65195         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
65196         the beginning of the loop.
65197         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
65198         cases in 'switch' statement.
65200         unistr/u8-strchr: Fix several bugs.
65201         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
65202         the string. When not found, return NULL, not a pointer near the end.
65204         More tests for unistr/u8-strchr.
65205         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
65206         that the function does not read past the first occurrence of the byte
65207         being searched.
65208         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
65209         * tests/unistr/test-u16-strchr.c (main): New function.
65210         * tests/unistr/test-u32-strchr.c (main): New function.
65212 2010-07-31  Bruno Haible  <bruno@clisp.org>
65214         posix-modules: Ignore backup files of documentation files.
65215         * posix-modules: grep only through files named *.texi.
65217 2010-07-31  Bruno Haible  <bruno@clisp.org>
65219         symlinkat: Fix documentation.
65220         * doc/posix-functions/readlinkat.texi: Fix module name.
65222 2010-07-31  Bruno Haible  <bruno@clisp.org>
65224         fchownat: Replace also when chown has the trailing slash bug.
65225         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
65226         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
65227         introduced on 2010-04-10.
65228         Reported by Rainer Tammer.
65230 2010-07-31  Bruno Haible  <bruno@clisp.org>
65232         linkat: Work around AIX 7.1 bug.
65233         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
65234         whether linkat handles trailing slash correctly. If not, replace linkat
65235         and define LINKAT_TRAILING_SLASH_BUG.
65236         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
65237         check whether (fd1,file1) points to a directory if file1 or file2 ends
65238         in a slash. Code taken from lib/link.c.
65239         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
65240         Reported by Rainer Tammer.
65242 2010-07-31  Bruno Haible  <bruno@clisp.org>
65244         Correctly determine whether pow is available in libc on AIX 7 with xlc.
65245         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
65246         This disables an xlc optimization that was causing wrong test results.
65247         Reported by Rainer Tammer.
65249 2010-07-31  Bruno Haible  <bruno@clisp.org>
65251         iconv: Work around AIX 6.1..7.1 bug.
65252         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
65253         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
65254         cross-compiling, guess no on all versions of AIX.
65255         Reported by Rainer Tammer.
65257 2010-07-31  Bruno Haible  <bruno@clisp.org>
65259         readlink: Relax test a bit.
65260         * tests/test-readlink.h (test_readlink): Allow different errno value
65261         when readlink is called with a file name that ends in / and refers to
65262         a file.
65263         Suggested by Eric Blake.
65264         Reported by Rainer Tammer.
65266 2010-07-31  Bruno Haible  <bruno@clisp.org>
65268         copysign: Does not require -lm on glibc systems.
65269         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
65270         gl_COMMON_DOUBLE_MATHFUNC.
65271         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
65273 2010-07-31  Bruno Haible  <bruno@clisp.org>
65275         duplocale: Work around AIX 7.1 bug.
65276         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
65277         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
65278         * lib/duplocale.c (rpl_duplocale): Update comment.
65279         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
65280         Reported by Rainer Tammer.
65282 2010-07-30  Bruno Haible  <bruno@clisp.org>
65284         dirfd: Avoid link error on AIX 7.1.
65285         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
65286         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
65287         exist, set REPLACE_DIRFD.
65288         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
65289         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
65290         * doc/posix-functions/dirfd.texi: Update.
65291         Reported by Rainer Tammer.
65293 2010-07-30  Eric Blake  <eblake@redhat.com>
65295         strtod: next round of AIX fixes
65296         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
65297         exponent.
65298         * tests/test-strtod.c (main): Enhance tests.
65299         * doc/posix-functions/strtod.texi (strtod): Document next bug.
65300         Reported by Rainer Tammer.
65302         futimens: fix configure check
65303         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
65304         Reported by Bruno Haible.
65306 2010-07-30  Bruno Haible  <bruno@clisp.org>
65308         getline: Update regarding AIX.
65309         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
65310         Reported by Rainer Tammer.
65312 2010-07-30  Bruno Haible  <bruno@clisp.org>
65314         wcwidth: Drop replacement on AIX 7.
65315         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
65316         AIX 7.
65317         Reported by Rainer Tammer.
65319 2010-07-30  Bruno Haible  <bruno@clisp.org>
65321         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
65322         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
65323         a 'char *'.
65324         Reported by Rainer Tammer.
65326 2010-07-30  Bruno Haible  <bruno@clisp.org>
65328         unlink: Update regarding AIX.
65329         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
65330         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
65331         Reported by Rainer Tammer.
65333 2010-07-30  Bruno Haible  <bruno@clisp.org>
65335         symlink: Update regarding AIX.
65336         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
65337         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
65338         Reported by Rainer Tammer.
65340 2010-07-30  Bruno Haible  <bruno@clisp.org>
65342         strndup: Update regarding AIX.
65343         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
65344         AIX 7.
65345         Reported by Rainer Tammer.
65347 2010-07-30  Bruno Haible  <bruno@clisp.org>
65349         stat: Update regarding AIX.
65350         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
65351         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
65352         Reported by Rainer Tammer.
65354 2010-07-30  Bruno Haible  <bruno@clisp.org>
65356         truncl: Fix autoconf test.
65357         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
65358         whether truncl works.
65359         Reported by Rainer Tammer.
65361 2010-07-30  Bruno Haible  <bruno@clisp.org>
65363         round: Update regarding AIX.
65364         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
65365         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
65366         Reported by Rainer Tammer.
65368 2010-07-30  Bruno Haible  <bruno@clisp.org>
65370         rename: Update regarding AIX.
65371         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
65372         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
65373         Reported by Rainer Tammer.
65375 2010-07-30  Bruno Haible  <bruno@clisp.org>
65377         printf.m4: Update regarding AIX.
65378         * m4/printf.m4: Update comments regarding AIX.
65379         Reported by Rainer Tammer.
65381 2010-07-30  Bruno Haible  <bruno@clisp.org>
65383         iconv: Update regarding AIX.
65384         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
65385         AIX 7.
65386         Reported by Rainer Tammer.
65388 2010-07-30  Bruno Haible  <bruno@clisp.org>
65390         getopt: Update regarding AIX.
65391         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
65392         no on AIX.
65393         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
65394         Reported by Rainer Tammer.
65396 2010-07-30  Bruno Haible  <bruno@clisp.org>
65398         ldexpl; Update regarding AIX.
65399         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
65400         on AIX 7.
65401         Reported by Rainer Tammer.
65403 2010-07-30  Bruno Haible  <bruno@clisp.org>
65405         frexpl: Update regarding AIX.
65406         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
65407         on AIX 7.
65408         Reported by Rainer Tammer.
65410 2010-07-30  Bruno Haible  <bruno@clisp.org>
65412         open, fopen: Update regarding AIX.
65413         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
65414         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
65415         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
65416         * doc/posix-functions/fopen.texi: Likewise.
65417         Reported by Rainer Tammer.
65419 2010-07-30  Bruno Haible  <bruno@clisp.org>
65421         chown: Update doc regarding AIX.
65422         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
65423         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
65424         Reported by Rainer Tammer.
65426 2010-07-30  Eric Blake  <eblake@redhat.com>
65428         strtod: fix bug in replacement function on AIX
65429         * lib/strtod.c (strtod): Special case broken "0x" parse in
65430         underlying strtod.
65431         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
65432         * doc/posix-functions/strtod.texi (strtod): Likewise.
65433         Reported by Rainer Tammer.
65435 2010-07-30  Bruno Haible  <bruno@clisp.org>
65437         mbrlen: Fix cross-compilation guess for AIX.
65438         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
65439         guess. Leftover from 2008-12-22.
65441 2010-07-30  Bruno Haible  <bruno@clisp.org>
65443         mbrtowc: Fix cross-compilation guess for AIX.
65444         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
65445         guess. Leftover from 2008-12-21.
65447 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
65449         init.sh: work around trap limitation of some shells
65450         * tests/init.sh (setup_): Move exit trap outside of shell function.
65452 2010-07-29  Eric Blake  <eblake@redhat.com>
65454         strtod: aid debugging
65455         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
65456         understanding why strtod is rejected.
65458 2010-07-28  Bruno Haible  <bruno@clisp.org>
65460         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
65461         * lib/unistr/u8-chr.c: Include <string.h>.
65462         * tests/unistr/test-u8-chr.c: Likewise.
65463         * tests/unistr/test-u16-chr.c: Likewise.
65464         * tests/unistr/test-u32-chr.c: Likewise.
65465         * tests/unistr/test-u8-strchr.c: Likewise.
65466         * tests/unistr/test-u16-strchr.c: Likewise.
65467         * tests/unistr/test-u32-strchr.c: Likewise.
65468         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
65469         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
65470         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
65471         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
65473 2010-07-28  Bruno Haible  <bruno@clisp.org>
65475         Use spaces for indentation, not tabs.
65476         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
65478 2010-07-27  Bruno Haible  <bruno@clisp.org>
65480         mbspcasecmp: Fix function specification.
65481         * lib/string.in.h (mbspcasecmp): Fix specification comment.
65482         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
65483         Reported by Eric Blake <eblake@redhat.com>.
65485 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
65487         timespec: use cast and not conditional, as truncation isn't possible
65488         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
65489         instead of a conditional.  Comment about the situation in more detail.
65490         This undoes most of the 2009-10-29 patch.
65492 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
65494         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
65495         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
65496         * lib/unistr/u8-strchr.c: Likewise.
65497         * modules/unistr/u8-chr: Depend on memchr.
65499         unistr/u*-strchr: add tests
65500         * modules/unistr/u8-strchr-tests: New file.
65501         * modules/unistr/u16-strchr-tests: New file.
65502         * modules/unistr/u32-strchr-tests: New file.
65503         * tests/unistr/test-strchr.h: New file.
65504         * tests/unistr/test-u8-strchr.c: New file.
65505         * tests/unistr/test-u16-strchr.c: New file.
65506         * tests/unistr/test-u32-strchr.c: New file.
65508         unistr/u*-chr: test multibyte sequences more
65509         * tests/unistr/test-chr.h: Do complete testing of the characters in the
65510         test vector.
65511         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
65512         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
65513         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
65515         unistr/u*-chr: test multibyte sequences
65516         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
65518         unistr/u*-chr: prepare for multibyte tests
65519         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
65520         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
65521         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
65522         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
65523         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
65524         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
65526 2010-07-18  Bruno Haible  <bruno@clisp.org>
65528         unistr/u8-strchr: Optimize non-ASCII argument case.
65529         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
65530         because the first byte often matches anyway.
65531         Reported by Pádraig Brady <P@draigbrady.com>.
65533 2010-07-15  Karl Berry  <karl@gnu.org>
65535         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
65537 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
65539         getcwd: on Solaris, work better if ancestors are inaccessible
65540         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
65541         buffer and size, try again with a large buffer.  This works better
65542         on Solaris, since its getcwd succeeds even if the path to the root
65543         is inaccessible, and this is helpful in common cases such as .zfs
65544         hidden directories.  Problem reported by J Chapman Flack in
65545         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
65546         Use system getcwd if it's declared, not merely if it's partly
65547         working; use the partly-working test only to avoid needless effort
65548         if the system getcwd fails.
65549         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
65550         comment that was already obsolete and is now even more obsolete.
65551         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
65552         now might call strdup.
65554 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
65556         pthread: Add enough so that coreutils/src/sort.c compiles.
65557         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
65558         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
65559         gnulib. Include <sched.h> and <time.h>, as per POSIX.
65560         Include <sys/types.h>, in case it defines pthread_t.
65561         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
65562         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
65563         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
65564         (pthread_rwlockattr_t, pthread_spinlock_t):
65565         New typedefs, if HAVE_PTHREAD_T is not defined.
65566         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
65567         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
65568         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
65569         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
65570         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
65571         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
65572         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
65573         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
65574         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
65575         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
65576         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
65577         New macros.
65578         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
65579         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
65580         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
65581         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
65582         (pthread_spin_unlock): New dummy functions.
65583         (pthread_create): Return EAGAIN; don't set errno.
65584         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
65585         require AC_C_INLINE.
65586         * modules/pthread (Depends-on): Add sched, time.
65587         (pthread.h): Use AM_V_GEN.
65589 2010-07-13  Bruno Haible  <bruno@clisp.org>
65591         striconveh: Don't malloc memory if the result buffer is sufficient.
65592         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
65593         buffer if its size is sufficient.
65594         Reported by Ludovic Courtès <ludo@gnu.org>.
65596 2010-07-13  Bruno Haible  <bruno@clisp.org>
65598         strtod: Add safety check.
65599         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
65601 2010-07-12  Bruno Haible  <bruno@clisp.org>
65603         Unify tests that set gl_cv_func_ldexpl_no_libm.
65604         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
65605         gl_FUNC_LDEXPL.
65606         (gl_FUNC_LDEXPL): Invoke it.
65607         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65609 2010-07-12  Bruno Haible  <bruno@clisp.org>
65611         Unify tests that set gl_cv_func_ldexp_no_libm.
65612         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
65613         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
65614         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
65615         (configure.ac): Simply invoke gl_FUNC_LDEXP.
65616         * modules/strtod (Files): Add m4/ldexp.m4.
65618 2010-07-12  Bruno Haible  <bruno@clisp.org>
65620         Unify tests that set gl_cv_func_frexpl_no_libm.
65621         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
65622         gl_FUNC_FREXPL_NO_LIBM.
65623         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
65624         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65626 2010-07-12  Bruno Haible  <bruno@clisp.org>
65628         Unify tests that set gl_cv_func_frexp_no_libm.
65629         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
65630         gl_FUNC_FREXP_NO_LIBM.
65631         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
65632         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
65634 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
65636         memcoll: clarify sizes versus lengths, document better, and tweak perf
65637         * lib/memcoll.c (strcoll_loop, memcoll0):
65638         Improve quality of descriptive comments.  Name variables
65639         consistently as to whether they are lengths (which do not include
65640         terminating null) versus sizes (which do).
65641         * lib/xmemcoll.c (xmemcoll0): Likewise.
65642         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
65643         returned when s1size == 0; this is easier to compile and saves
65644         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
65646 2010-07-12  Bruno Haible  <bruno@clisp.org>
65648         Tests for module '_Exit'.
65649         * modules/_Exit-tests: New file.
65650         * tests/test-_Exit.sh: New file.
65651         * tests/test-_Exit.c: New file.
65653         New module '_Exit'.
65654         * lib/stdlib.in.h (__attribute__): New macro.
65655         (_Exit): New declaration.
65656         * lib/_Exit.c: New file.
65657         * m4/_Exit.m4: New file.
65658         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
65659         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
65660         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
65661         * modules/_Exit: New file.
65662         * tests/test-stdlib-c++.cc (_Exit): Check signature.
65663         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
65665 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
65667         strtod: make it more-accurate typically, and don't require libm
65668         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
65669         Include limits.h.  Don't include string.h.
65670         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
65671         (locale_isspace): New function, so that no casts are needed to
65672         check whether *s is a space.
65673         (ldexp): Provide an unused dummy if not available.
65674         (scale_radix_exp, parse_number, underlying_strtod): New functions.
65675         (strtod): Use them.  This implementation prefers to use the
65676         underlying strtod if available, falling back on our own code
65677         only to fix known bugs.  This is more likely to produce an
65678         accurate result.  Also, it avoids the use of libm functions.
65679         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
65680         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
65681         was absent, but it caused a test failure with coreutils.
65682         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
65683         with libm.
65684         * modules/strtod (Makefile.am, Link): libm is no longer needed.
65685         * modules/strtod-tests (Makefile.am): Likewise.
65687 2010-07-11  Pádraig Brady  <P@draigBrady.com>
65688             Bruno Haible  <bruno@clisp.org>
65690         unistr/u8-strchr: Optimize ASCII argument case.
65691         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
65693 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
65695         (x)memcoll: minor tweaks
65696         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
65697         is after the type that it qualifies.
65698         (memcoll0): Likewise.
65699         * lib/memcoll.h (memcoll0): Likewise.
65700         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
65701         * lib/xmemcoll.h (xmemcoll0): Likewise.
65702         * lib/memcoll.c (memcoll0): Correct the comment.  This function
65703         differs from memcoll in that the NUL byte is part of the argument.
65704         Omit the abort-checks, as performance is a real issue here.  Plus,
65705         the checks were wrong anyway (an off-by-one error).  Omit local
65706         variable 'diff', as it's a bit clearer that way.
65707         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
65708         no longer needed.
65710 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
65712         (x)memcoll: speedup when input is known to be NUL delimited
65713         * lib/memcoll.c: Include stdlib.
65714         (memcoll0): New function.
65715         (strcoll_loop): New function, refactored for use in both memcoll
65716         and memcoll0.
65717         * lib/memcoll.h (memcoll0): Add prototype.
65718         * lib/xmemcoll.c (xmemcoll0): New function.
65719         (collate_error): New function, refactored for use in both xmemcoll
65720         and xmemcoll0.
65721         * lib/xmemcoll.h (xmemcoll0): Add prototype.
65722         * m4/memcoll.m4: add inline invocation.
65724 2010-07-06  Pádraig Brady  <P@draigBrady.com>
65726         * build-aux/bootstrap: Remove any local translations
65727         from the translation project synchronization directory,
65728         so that local only translations are not distributed.
65730 2010-07-04  Bruno Haible  <bruno@clisp.org>
65732         fsusage: Clarify which code applies to which platforms.
65733         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
65734         platform.
65735         * lib/fsusage.c (get_fs_usage): Likewise.
65737 2010-07-04  Bruno Haible  <bruno@clisp.org>
65739         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
65740         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
65741         Reported by Martin Lambers <marlam@marlam.de>.
65743 2010-07-04  Jim Meyering  <meyering@redhat.com>
65745         hash: once again explicitly disallow insertion of NULL
65746         * lib/hash.c (hash_insert0): Reinstate just-removed test:
65747         inserting a NULL pointer cannot work with these functions.
65748         Add a comment with details.
65749         This reverts part of the 2010-07-01 commit, 5bef1a35
65750         "hash: extend module to deal with non-pointer keys".
65752 2010-07-01  Bruno Haible  <bruno@clisp.org>
65754         stdbool: Update doc.
65755         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
65756         Info from Christian Weisgerber <naddy@mips.inka.de>.
65758 2010-07-01  Jim Meyering  <meyering@redhat.com>
65760         hash: extend module to deal with non-pointer keys
65761         * lib/hash.c (hash_insert0): New interface, much like hash_insert
65762         but that allows insertion of non-pointer entries.
65763         Do not disallow an ENTRY value of NULL.
65764         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
65765         * lib/hash.h (hash_insert0): Declare.
65767 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
65769         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
65770         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
65771         not present (i.e. with autoconf 2.59 and when using gettextize, not
65772         gnulib), require AC_GNU_SOURCE instead.
65774 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
65776         idpriv-drop: Fix tests.
65777         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
65778         not to the test-idpriv-droptemp program.
65780 2010-06-29  Bruno Haible  <bruno@clisp.org>
65782         string: Fix syntax error with g++ 2.96.
65783         * lib/string.in.h (__pure__): Remove definition.
65784         (_GL_ATTRIBUTE_PURE): New macro.
65785         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
65786         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
65787         Reported by Christian Weisgerber <naddy@mips.inka.de>.
65789 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
65791         unitypes: Fix bug introduced on 2010-05-18.
65792         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
65794 2010-06-22  Eric Blake  <eblake@redhat.com>
65796         memmem: slight optimization
65797         * lib/str-two-way.h (critical_factorization): Update comments.
65798         Reduce work during factorization phase.
65799         Reported by Carlos Bueno <carlos@bueno.org>.
65801 2010-06-21  Bruno Haible  <bruno@clisp.org>
65803         Fix HAVE_CALLOC_POSIX misnomer.
65804         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
65805         !HAVE_CALLOC_POSIX.
65806         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
65807         HAVE_CALLOC_POSIX.
65808         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
65809         instead of HAVE_CALLOC_POSIX.
65810         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
65811         HAVE_CALLOC_POSIX.
65813         Use modern idiom for calloc() replacement.
65814         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
65815         AC_FUNC_CALLOC.
65816         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
65817         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
65818         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
65819         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
65820         (gl_REPLACE_CALLOC): New macro.
65822 2010-06-21  Bruno Haible  <bruno@clisp.org>
65824         Fix HAVE_REALLOC_POSIX misnomer.
65825         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
65826         !HAVE_REALLOC_POSIX.
65827         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
65828         HAVE_REALLOC_POSIX.
65829         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
65830         instead of HAVE_REALLOC_POSIX.
65831         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
65832         HAVE_REALLOC_POSIX.
65834         Use modern idiom for realloc() replacement.
65835         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
65836         AC_FUNC_REALLOC.
65837         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
65838         Autoconf's AC_FUNC_REALLOC.
65839         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
65840         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
65841         (gl_REPLACE_REALLOC): New macro.
65842         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
65844 2010-06-21  Bruno Haible  <bruno@clisp.org>
65846         Fix HAVE_MALLOC_POSIX misnomer.
65847         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
65848         !HAVE_MALLOC_POSIX.
65849         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
65850         HAVE_MALLOC_POSIX.
65851         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
65852         instead of HAVE_MALLOC_POSIX.
65853         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
65854         HAVE_MALLOC_POSIX.
65856         Use modern idiom for malloc() replacement.
65857         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
65858         AC_FUNC_MALLOC.
65859         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
65860         Autoconf's AC_FUNC_MALLOC.
65861         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
65862         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
65863         (gl_REPLACE_MALLOC): New macro.
65864         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
65866 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
65868         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
65869         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
65870         This macro takes 3 arguments, not 4.
65872 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
65874         ipv6: fix detection under mingw
65875         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
65876         in6_addr.
65878 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
65880         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
65881         that strtod() works when cross-compiling to a glibc version known
65882         to work.
65884 2010-06-15  Bruno Haible  <bruno@clisp.org>
65886         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
65888 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
65890         select: Correct timeout.
65891         * lib/select.c (rpl_select): Compute wait_timeout correctly.
65893 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
65895         git-version-gen: init shell var to avoid env var influence
65896         * build-aux/git-version-gen (v): Init shell var to empty.
65898 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
65900         priv-set: Don't assume that priv.h exists merely because getppriv does.
65901         See Jan Andersen's bug report about AIX 5L in
65902         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
65903         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
65904         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
65905         * lib/priv-set.h: Likewise.
65906         * tests/test-priv-set.c: Likewise.
65908 2010-06-13  Bruno Haible  <bruno@clisp.org>
65910         relocatable: Make it easier to test whether to install wrappers.
65911         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
65912         RELOCATABLE_VIA_WRAPPER.
65914 2010-06-13  Bruno Haible  <bruno@clisp.org>
65916         gnulib-tool: Display specified modules and dependencies differently.
65917         * gnulib-tool (func_show_module_list): New function.
65918         (func_import, func_create_testdir): Invoke it.
65919         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
65921 2010-06-13  Bruno Haible  <bruno@clisp.org>
65923         gnulib-tool: Align code of func_import and func_create_testdir.
65924         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
65925         specified_modules.
65927 2010-06-12  Jim Meyering  <meyering@redhat.com>
65929         test-inttostr: avoid spurious failure on Solaris 9
65930         * tests/test-inttostr.c (main): Skip the test when snprintf fails
65931         to accept "%ju".  Reported by Bruno Haible.
65933 2010-06-11  Jim Meyering  <meyering@redhat.com>
65935         test-sys_socket: mark variables as used more readably
65936         * tests/test-sys_socket.c (main): Mark otherwise unused variables
65937         as "used" explicitly via (void) statement casts.  This is more
65938         readable than using them in an artificial return expression.
65939         Suggestion from Bruno Haible.
65941 2010-06-11  Bruno Haible  <bruno@clisp.org>
65943         Avoid some more warnings from "gcc -Wwrite-strings".
65944         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
65945         to 'const char *'.
65946         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
65947         * tests/test-c-strcasestr.c (main): Likewise.
65948         * tests/test-mbscasestr1.c (main): Likewise.
65949         * tests/test-mbscasestr2.c (main): Likewise.
65950         * tests/test-memmem.c (main): Likewise.
65951         * tests/test-strstr.c (main): Likewise.
65952         * tests/test-strcasestr.c (main): Likewise.
65954 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65956         init.sh: change framework_failure_ to fail with status 99, not 1
65957         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
65958         automake's parallel-tests rule that this is an unexpected failure,
65959         even if the test is listed in XFAIL_TESTS.
65961 2010-06-11  Jim Meyering  <meyering@redhat.com>
65963         test-inttostr: avoid warnings about 4-6KB literal strings
65964         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
65965         Include "macros.h", for its definition of ASSERT.
65966         (CK): s/assert/ASSERT/
65967         * modules/inttostr-tests (Files): Add macros.h.
65969         init.sh: don't use $ME_ or skip_ before they are defined
65970         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
65971         their first uses.  Also hoist their companions: warn_, fail_,
65972         framework_failure_, $stderr_fileno.  Prompted by a patch from
65973         Stefano Lattarini.
65975         test-sys_socket: avoid set-but-not-used warnings from gcc
65976         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
65977         avoid warning about set-but-not-used variables.
65979         test-xvasprintf: avoid 'const' discard warnings
65980         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
65981         "const" when assigning from literal strings.
65982         (test_xasprintf): Add "void" in function argument list to placate
65983         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
65985         tests: avoid compilation warnings in argmatch and exclude tests...
65986         in packages that define ARGMATCH_DIE_DECL, like coreutils.
65987         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
65988         Since it always exits, declare with the "noreturn" attribute.
65989         * tests/test-argmatch.c: Likewise.
65991         tests: avoid 'const' discard warnings in mbsstr tests
65992         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
65993         * tests/test-mbsstr2.c (main): Likewise.
65995         test-verify: avoid warning from gcc's -Wmissing-declarations
65996         * tests/test-verify.c (function): Declare to be static.
65998         test-inttostr.c: include <string.h> for use of strcmp
65999         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
66001         test-linkat: avoid failed assertion on "other" architectures
66002         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
66003         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
66004         sparc: https://bugs.launchpad.net/bugs/591968
66006 2010-06-11  Jim Meyering  <meyering@redhat.com>
66008         printf.m4: avoid autoconf's "Expanded Before Required" warning
66009         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
66010         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
66011         autoconf warning.
66013 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
66015         Replacement header templates are now named with ".in", not "_".
66016         * doc/gnulib-intro.texi: Correct.
66018 2010-06-10  Jim Meyering  <meyering@redhat.com>
66020         inttostr-tests: depend on snprintf, not snprintf-posix
66021         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
66022         snprintf-posix, to avoid this aclocal failure:
66023           missing file gnulib-tests/vasnprintf.c
66024           configure.ac:45: error: expected source file, required through \
66025           AC_LIBSOURCES, not found
66027 2010-06-10  Jim Meyering  <meyering@redhat.com>
66029         inttostr: add a new function, inttostr, and tests
66030         The namesake function was not available.  The existence of the
66031         template file, inttostr.c makes its addition nontrivial.
66032         * lib/anytostr.c: Rename from inttostr.c.
66033         (anytostr): Rename from inttostr.
66034         * lib/inttostr.c: New file.
66035         * modules/inttostr (Files): Add anytostr.c.
66036         (Makefile.am): Set lib_SOURCES instead of ...
66037         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
66038         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
66039         * lib/offtostr.c: Likewise.
66040         * lib/uinttostr.c: Likewise.
66041         * lib/umaxtostr.c: Likewise.
66042         * modules/inttostr-tests: New file.
66043         * tests/test-inttostr.c: New file.  Test these functions.
66045 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
66046             Bruno Haible  <bruno@clisp.org>
66048         Add "Extending Gnulib" chapter to manual.
66049         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
66050         chapter.
66051         (Extending Gnulib): New chapter.
66052         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
66053         chapter.
66055 2010-06-09  Bruno Haible  <bruno@clisp.org>
66057         Avoid relocwrapper link errors due to gnulib replacement functions.
66058         * lib/areadlink.c: Use the system's malloc, realloc functions.
66059         (areadlink): Set errno to ENOMEM explicitly.
66060         * modules/areadlink (Depends-on): Remove malloc-posix.
66061         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66063 2010-06-09  Bruno Haible  <bruno@clisp.org>
66065         Avoid relocwrapper link errors due to gnulib replacement functions.
66066         * lib/canonicalize-lgpl.c: Use the system's malloc function.
66067         * lib/malloca.c: Likewise.
66068         * lib/relocatable.c: Likewise.
66069         * lib/progreloc.c: Use the system's malloc, sprintf functions.
66070         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
66071         * lib/setenv.c: Use the system's malloc, realloc functions.
66072         * lib/strerror.c: Use the system's sprintf function.
66073         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66075 2010-06-04  Bruno Haible  <bruno@clisp.org>
66077         Prefer documented low-level autoconf macro names.
66078         * m4/lib-link.m4: Use m4_translit instead of translit.
66079         * m4/environ.m4: Likewise.
66080         * m4/mathfunc.m4: Likewise.
66081         * m4/onceonly.m4: Likewise.
66082         * m4/stdint.m4: Likewise.
66083         Suggested by Eric Blake.
66085 2010-06-04  Martin Lambers  <marlam@marlam.de>
66086             Bruno Haible  <bruno@clisp.org>
66088         havelib: Allow library names with '+' characters.
66089         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
66090         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
66092 2010-06-09  Bruno Haible  <bruno@clisp.org>
66094         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
66095         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
66096         realloc failed.
66098 2010-06-08  Peter Simons  <simons@cryp.to>
66100         maint.mk: make the news-check rule more configurable
66101         * top/maint.mk (news-check-lines-spec): New variable.
66102         (news-check): Use "sed -n 1,10p" in place of "head".
66104 2010-06-07  Jim Meyering  <meyering@redhat.com>
66106         do-release-commit-and-tag: fix typo in --help
66107         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
66109         regex: avoid new dead-code warning with gcc-4.6.0
66110         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
66111         if-block containing a while-loop.  It's been unused for at least
66112         5 years.
66114 2010-06-05  Bruno Haible  <bruno@clisp.org>
66116         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
66117         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
66119 2010-06-04  Bruno Haible  <bruno@clisp.org>
66121         Update to GNU gettext 0.18.1.
66122         * modules/gettext (configure.ac): Require gettext infrastructure from
66123         version 0.18.1.
66125 2010-06-03  Bruno Haible  <bruno@clisp.org>
66127         Don't use AC_LIBOBJ with file names in subdirectories.
66128         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
66129         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
66130         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
66131         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
66132         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
66133         gl_LIBUNISTRING_LIBSOURCE.
66134         (Makefile.am): Augment lib_SOURCES here, conditionally.
66135         * NEWS: Drop requirement for Automake option 'subdir-objects'.
66137 2010-06-03  Bruno Haible  <bruno@clisp.org>
66139         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
66140         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
66141         expansion does not end with a newline.
66142         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
66143         unnecessary newline.
66145 2010-06-03  Bruno Haible  <bruno@clisp.org>
66147         Reduce dependencies.
66148         * tests/test-quotearg.h: New file, extracted from
66149         tests/test-quotearg.c.
66150         * tests/test-quotearg-simple.c: New file, extracted from
66151         tests/test-quotearg.c.
66152         * tests/test-quotearg.c: Don't include <ctype.h>.
66153         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
66154         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
66155         use_quote_double_quotes, use_quotearg_colon): Moved to
66156         tests/test-quotearg.h.
66157         (results_g, flag_results, custom_quotes, custom_results): Moved
66158         to tests/test-quotearg-simple.c.
66159         (main): Moved the part that does not depend on gettext to
66160         tests/test-quotearg-simple.c. Return 77 if the test cannot be
66161         performed.
66162         * modules/quotearg-simple: New file.
66163         * modules/quotearg-simple-tests: New file.
66164         * modules/quotearg (Depends-on): Add quotearg-simple.
66165         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
66166         (Files): Add tests/test-quotearg.h.
66167         Reported by Paolo Bonzini.
66169 2010-06-03  Bruno Haible  <bruno@clisp.org>
66171         Reduce dependencies.
66172         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
66174 2010-06-03  Bruno Haible  <bruno@clisp.org>
66176         time: Undefine more broken macros.
66177         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
66178         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
66179         Reported by Eric Blake.
66181 2010-06-03  Bruno Haible  <bruno@clisp.org>
66183         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
66184         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
66185         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
66186         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
66187         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
66188         Reported by Ludovic Courtès <ludo@gnu.org>.
66190 2010-06-02  Eric Blake  <eblake@redhat.com>
66192         time: work with mingw + pthreads-win32 library
66193         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
66194         if timespec is defined only in pthread.h.
66195         * modules/time (Makefile.am): Substitute it.
66196         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
66197         <pthread.h>, when needed.
66198         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
66199         from the library.
66201 2010-05-31  Bruno Haible  <bruno@clisp.org>
66203         Avoid expanding two macros in the wrong order.
66204         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
66205         gl_LIBUNISTRING if it is defined.
66206         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
66207         autoconf >= 2.64.
66208         Reported by Ludovic Courtès <ludo@gnu.org>.
66210 2010-05-27  Jim Meyering  <meyering@redhat.com>
66212         maint.mk: also prohibit "#undef" of always-defined symbols
66213         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
66214         Allow more than one space before the symbol name.
66215         (sc_prohibit_always-defined_macros): Use grep's -E, now that
66216         the regexp uses alternation.
66218 2010-05-26  Eric Blake  <eblake@redhat.com>
66220         maint.mk: avoid echo -e
66221         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
66222         Convert all uses of echo -* to printf.
66223         Reported by Matthias Bolte.
66225 2010-05-25  Bruno Haible  <bruno@clisp.org>
66227         Update to GNU gettext 0.18, part 2.
66228         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
66229         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
66231 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66233         Add missing include in test-pwrite.c.
66234         * tests/test-pwrite.c: Include string.h, for strcmp.
66236 2010-05-24  Bruno Haible  <bruno@clisp.org>
66238         * NEWS: Mention requirement for Automake option 'subdir-objects'.
66240 2010-05-24  Bruno Haible  <bruno@clisp.org>
66242         Don't use conversion with transliteration in u{8,16,32}_strcoll.
66243         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
66244         iconveh_error argument.
66245         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
66246         U_STRCONV_TO_LOCALE.
66247         * lib/unistr/u16-strcoll.c: Likewise.
66248         * lib/unistr/u32-strcoll.c: Likewise.
66249         * modules/unistr/u8-strcoll (Depends-on): Add
66250         uniconv/u8-strconv-to-enc, localcharset. Remove
66251         uniconv/u8-strconv-to-locale.
66252         (configure.ac): Bump version number.
66253         * modules/unistr/u16-strcoll (Depends-on): Add
66254         uniconv/u16-strconv-to-enc, localcharset. Remove
66255         uniconv/u16-strconv-to-locale.
66256         (configure.ac): Bump version number.
66257         * modules/unistr/u32-strcoll (Depends-on): Add
66258         uniconv/u32-strconv-to-enc, localcharset. Remove
66259         uniconv/u32-strconv-to-locale.
66260         (configure.ac): Bump version number.
66262 2010-05-24  Bruno Haible  <bruno@clisp.org>
66264         Avoid a test failure on NetBSD 5.0.
66265         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
66266         an iconv() bug.
66268 2010-05-24  Bruno Haible  <bruno@clisp.org>
66270         Adjust #include directive style.
66271         * modules/regex (Includes): Recommend to write <regex.h>.
66273 2010-05-24  Bruno Haible  <bruno@clisp.org>
66275         regex: Don't require alloca.
66276         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
66277         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
66278         only inside if (0).
66280 2010-05-23  Jim Meyering  <meyering@redhat.com>
66282         test-renameat.c: include <sys/stat.h>
66283         * tests/test-renameat.c: Include <sys/stat.h>; required for
66284         definition of S_IS* macros.
66286 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
66288         Update maintainer documentation for 'relocatable-prog' module.
66289         * doc/relocatable-maint.texi: Update.
66290         Comments by Bruno Haible.
66292 2010-05-23  Bruno Haible  <bruno@clisp.org>
66294         git-merge-changelog: Enable --split-merged-entry by default.
66295         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
66296         (usage): Don't mention this option any more.
66297         Reported by Ralf Wildenhues.
66299 2010-05-23  Jim Meyering  <meyering@redhat.com>
66301         test-pwrite: do not leave behind a test file named "out"
66302         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
66303         The trivial-looking use of init.sh is really necessary.
66304         It ensures that the temporary file, "out", is created in
66305         a temporary directory, and removed upon termination.
66306         * tests/test-pwrite.sh: Re-add file.
66307         * modules/pwrite-tests: Reference it.
66309 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66311         Fix output redirection buglet in init.sh.
66312         * tests/init.sh: Fix redirection of stderr.
66314 2010-05-20  Simon Josefsson  <simon@josefsson.org>
66316         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
66318 2010-05-17  Simon Josefsson  <simon@josefsson.org>
66320         * modules/valgrind-tests: New file.
66321         * m4/valgrind-tests.m4: New file.
66322         * doc/valgrind-tests.texi: New file.
66323         * doc/gnulib.texi (Running self-tests under valgrind): New
66324         section.
66326 2010-05-19  Bruno Haible  <bruno@clisp.org>
66328         Clean up dead code in recent commit.
66329         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
66330         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
66331         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
66332         Suggested by Paolo Bonzini.
66334 2010-05-19  Bruno Haible  <bruno@clisp.org>
66336         Avoid valgrind error reports from libunistring.
66337         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
66338         * modules/libunistring (Files): Add it.
66339         * modules/libunistring-optional (Files): Likewise.
66341 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
66342             Bruno Haible  <bruno@clisp.org>
66344         New module 'libunistring-optional'.
66345         * modules/libunistring-optional: New file.
66346         * m4/libunistring-base.m4: New file.
66347         * m4/libunistring-optional.m4: New file.
66348         * lib/unicase.in.h: Renamed from lib/unicase.h.
66349         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
66350         * lib/unictype.in.h: Renamed from lib/unictype.h.
66351         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
66352         * lib/uniname.in.h: Renamed from lib/uniname.h.
66353         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
66354         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
66355         * lib/unistr.in.h: Renamed from lib/unistr.h.
66356         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
66357         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
66358         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
66359         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
66360         gl_LIBUNISTRING. If the library was found, determine the installed
66361         version and set LIBUNISTRING_VERSION.
66362         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
66363         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
66364         handle a configuration option --with-included-libunistring.
66365         * modules/libunistring (Files): Add m4/absolute-header.m4.
66366         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
66367         Add m4/libunistring-base.m4.
66368         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66369         (Makefile.am): Build unicase.h from unicase.in.h.
66370         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
66371         Add m4/libunistring-base.m4.
66372         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66373         (Makefile.am): Build uniconv.h from uniconv.in.h.
66374         * modules/unictype/base (Files): Use unictype.in.h instead of
66375         unictype.h. Add m4/libunistring-base.m4.
66376         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66377         (Makefile.am): Build unictype.h from unictype.in.h.
66378         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
66379         Add m4/libunistring-base.m4.
66380         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66381         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
66382         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
66383         Add m4/libunistring-base.m4.
66384         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66385         (Makefile.am): Build uniname.h from uniname.in.h.
66386         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
66387         Add m4/libunistring-base.m4.
66388         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66389         (Makefile.am): Build uninorm.h from uninorm.in.h.
66390         * modules/unistdio/base (Files): Use unistdio.in.h instead of
66391         unistdio.h. Add m4/libunistring-base.m4.
66392         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66393         (Makefile.am): Build unistdio.h from unistdio.in.h.
66394         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
66395         Add m4/libunistring-base.m4.
66396         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66397         (Makefile.am): Build unistr.h from unistr.in.h.
66398         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
66399         Add m4/libunistring-base.m4.
66400         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66401         (Makefile.am): Build unitypes.h from unitypes.in.h.
66402         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
66403         Add m4/libunistring-base.m4.
66404         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66405         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
66406         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
66407         uniwidth.h. Add m4/libunistring-base.m4.
66408         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
66409         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
66410         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
66411         instead of augmenting lib_SOURCES.
66412         * modules/unicase/empty-suffix-context: Likewise.
66413         * modules/unicase/locale-language: Likewise.
66414         * modules/unicase/tolower: Likewise.
66415         * modules/unicase/totitle: Likewise.
66416         * modules/unicase/toupper: Likewise.
66417         * modules/unicase/u8-casecmp: Likewise.
66418         * modules/unicase/u8-casecoll: Likewise.
66419         * modules/unicase/u8-casefold: Likewise.
66420         * modules/unicase/u8-casexfrm: Likewise.
66421         * modules/unicase/u8-ct-casefold: Likewise.
66422         * modules/unicase/u8-ct-tolower: Likewise.
66423         * modules/unicase/u8-ct-totitle: Likewise.
66424         * modules/unicase/u8-ct-toupper: Likewise.
66425         * modules/unicase/u8-is-cased: Likewise.
66426         * modules/unicase/u8-is-casefolded: Likewise.
66427         * modules/unicase/u8-is-lowercase: Likewise.
66428         * modules/unicase/u8-is-titlecase: Likewise.
66429         * modules/unicase/u8-is-uppercase: Likewise.
66430         * modules/unicase/u8-prefix-context: Likewise.
66431         * modules/unicase/u8-suffix-context: Likewise.
66432         * modules/unicase/u8-tolower: Likewise.
66433         * modules/unicase/u8-totitle: Likewise.
66434         * modules/unicase/u8-toupper: Likewise.
66435         * modules/unicase/u16-casecmp: Likewise.
66436         * modules/unicase/u16-casecoll: Likewise.
66437         * modules/unicase/u16-casefold: Likewise.
66438         * modules/unicase/u16-casexfrm: Likewise.
66439         * modules/unicase/u16-ct-casefold: Likewise.
66440         * modules/unicase/u16-ct-tolower: Likewise.
66441         * modules/unicase/u16-ct-totitle: Likewise.
66442         * modules/unicase/u16-ct-toupper: Likewise.
66443         * modules/unicase/u16-is-cased: Likewise.
66444         * modules/unicase/u16-is-casefolded: Likewise.
66445         * modules/unicase/u16-is-lowercase: Likewise.
66446         * modules/unicase/u16-is-titlecase: Likewise.
66447         * modules/unicase/u16-is-uppercase: Likewise.
66448         * modules/unicase/u16-prefix-context: Likewise.
66449         * modules/unicase/u16-suffix-context: Likewise.
66450         * modules/unicase/u16-tolower: Likewise.
66451         * modules/unicase/u16-totitle: Likewise.
66452         * modules/unicase/u16-toupper: Likewise.
66453         * modules/unicase/u32-casecmp: Likewise.
66454         * modules/unicase/u32-casecoll: Likewise.
66455         * modules/unicase/u32-casefold: Likewise.
66456         * modules/unicase/u32-casexfrm: Likewise.
66457         * modules/unicase/u32-ct-casefold: Likewise.
66458         * modules/unicase/u32-ct-tolower: Likewise.
66459         * modules/unicase/u32-ct-totitle: Likewise.
66460         * modules/unicase/u32-ct-toupper: Likewise.
66461         * modules/unicase/u32-is-cased: Likewise.
66462         * modules/unicase/u32-is-casefolded: Likewise.
66463         * modules/unicase/u32-is-lowercase: Likewise.
66464         * modules/unicase/u32-is-titlecase: Likewise.
66465         * modules/unicase/u32-is-uppercase: Likewise.
66466         * modules/unicase/u32-prefix-context: Likewise.
66467         * modules/unicase/u32-suffix-context: Likewise.
66468         * modules/unicase/u32-tolower: Likewise.
66469         * modules/unicase/u32-totitle: Likewise.
66470         * modules/unicase/u32-toupper: Likewise.
66471         * modules/unicase/ulc-casecmp: Likewise.
66472         * modules/unicase/ulc-casecoll: Likewise.
66473         * modules/unicase/ulc-casexfrm: Likewise.
66474         * modules/uniconv/u8-conv-from-enc: Likewise.
66475         * modules/uniconv/u8-conv-to-enc: Likewise.
66476         * modules/uniconv/u8-strconv-from-enc: Likewise.
66477         * modules/uniconv/u8-strconv-from-locale: Likewise.
66478         * modules/uniconv/u8-strconv-to-enc: Likewise.
66479         * modules/uniconv/u8-strconv-to-locale: Likewise.
66480         * modules/uniconv/u16-conv-from-enc: Likewise.
66481         * modules/uniconv/u16-conv-to-enc: Likewise.
66482         * modules/uniconv/u16-strconv-from-enc: Likewise.
66483         * modules/uniconv/u16-strconv-from-locale: Likewise.
66484         * modules/uniconv/u16-strconv-to-enc: Likewise.
66485         * modules/uniconv/u16-strconv-to-locale: Likewise.
66486         * modules/uniconv/u32-conv-from-enc: Likewise.
66487         * modules/uniconv/u32-conv-to-enc: Likewise.
66488         * modules/uniconv/u32-strconv-from-enc: Likewise.
66489         * modules/uniconv/u32-strconv-from-locale: Likewise.
66490         * modules/uniconv/u32-strconv-to-enc: Likewise.
66491         * modules/uniconv/u32-strconv-to-locale: Likewise.
66492         * modules/unictype/bidicategory-byname: Likewise.
66493         * modules/unictype/bidicategory-name: Likewise.
66494         * modules/unictype/bidicategory-of: Likewise.
66495         * modules/unictype/bidicategory-test: Likewise.
66496         * modules/unictype/block-list: Likewise.
66497         * modules/unictype/block-test: Likewise.
66498         * modules/unictype/category-C: Likewise.
66499         * modules/unictype/category-Cc: Likewise.
66500         * modules/unictype/category-Cf: Likewise.
66501         * modules/unictype/category-Cn: Likewise.
66502         * modules/unictype/category-Co: Likewise.
66503         * modules/unictype/category-Cs: Likewise.
66504         * modules/unictype/category-L: Likewise.
66505         * modules/unictype/category-Ll: Likewise.
66506         * modules/unictype/category-Lm: Likewise.
66507         * modules/unictype/category-Lo: Likewise.
66508         * modules/unictype/category-Lt: Likewise.
66509         * modules/unictype/category-Lu: Likewise.
66510         * modules/unictype/category-M: Likewise.
66511         * modules/unictype/category-Mc: Likewise.
66512         * modules/unictype/category-Me: Likewise.
66513         * modules/unictype/category-Mn: Likewise.
66514         * modules/unictype/category-N: Likewise.
66515         * modules/unictype/category-Nd: Likewise.
66516         * modules/unictype/category-Nl: Likewise.
66517         * modules/unictype/category-No: Likewise.
66518         * modules/unictype/category-P: Likewise.
66519         * modules/unictype/category-Pc: Likewise.
66520         * modules/unictype/category-Pd: Likewise.
66521         * modules/unictype/category-Pe: Likewise.
66522         * modules/unictype/category-Pf: Likewise.
66523         * modules/unictype/category-Pi: Likewise.
66524         * modules/unictype/category-Po: Likewise.
66525         * modules/unictype/category-Ps: Likewise.
66526         * modules/unictype/category-S: Likewise.
66527         * modules/unictype/category-Sc: Likewise.
66528         * modules/unictype/category-Sk: Likewise.
66529         * modules/unictype/category-Sm: Likewise.
66530         * modules/unictype/category-So: Likewise.
66531         * modules/unictype/category-Z: Likewise.
66532         * modules/unictype/category-Zl: Likewise.
66533         * modules/unictype/category-Zp: Likewise.
66534         * modules/unictype/category-Zs: Likewise.
66535         * modules/unictype/category-and: Likewise.
66536         * modules/unictype/category-and-not: Likewise.
66537         * modules/unictype/category-byname: Likewise.
66538         * modules/unictype/category-name: Likewise.
66539         * modules/unictype/category-none: Likewise.
66540         * modules/unictype/category-of: Likewise.
66541         * modules/unictype/category-or: Likewise.
66542         * modules/unictype/category-test: Likewise.
66543         * modules/unictype/combining-class: Likewise.
66544         * modules/unictype/ctype-alnum: Likewise.
66545         * modules/unictype/ctype-alpha: Likewise.
66546         * modules/unictype/ctype-blank: Likewise.
66547         * modules/unictype/ctype-cntrl: Likewise.
66548         * modules/unictype/ctype-digit: Likewise.
66549         * modules/unictype/ctype-graph: Likewise.
66550         * modules/unictype/ctype-lower: Likewise.
66551         * modules/unictype/ctype-print: Likewise.
66552         * modules/unictype/ctype-punct: Likewise.
66553         * modules/unictype/ctype-space: Likewise.
66554         * modules/unictype/ctype-upper: Likewise.
66555         * modules/unictype/ctype-xdigit: Likewise.
66556         * modules/unictype/decimal-digit: Likewise.
66557         * modules/unictype/digit: Likewise.
66558         * modules/unictype/mirror: Likewise.
66559         * modules/unictype/numeric: Likewise.
66560         * modules/unictype/property-alphabetic: Likewise.
66561         * modules/unictype/property-ascii-hex-digit: Likewise.
66562         * modules/unictype/property-bidi-arabic-digit: Likewise.
66563         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
66564         * modules/unictype/property-bidi-block-separator: Likewise.
66565         * modules/unictype/property-bidi-boundary-neutral: Likewise.
66566         * modules/unictype/property-bidi-common-separator: Likewise.
66567         * modules/unictype/property-bidi-control: Likewise.
66568         * modules/unictype/property-bidi-embedding-or-override: Likewise.
66569         * modules/unictype/property-bidi-eur-num-separator: Likewise.
66570         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
66571         * modules/unictype/property-bidi-european-digit: Likewise.
66572         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
66573         * modules/unictype/property-bidi-left-to-right: Likewise.
66574         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
66575         * modules/unictype/property-bidi-other-neutral: Likewise.
66576         * modules/unictype/property-bidi-pdf: Likewise.
66577         * modules/unictype/property-bidi-segment-separator: Likewise.
66578         * modules/unictype/property-bidi-whitespace: Likewise.
66579         * modules/unictype/property-byname: Likewise.
66580         * modules/unictype/property-combining: Likewise.
66581         * modules/unictype/property-composite: Likewise.
66582         * modules/unictype/property-currency-symbol: Likewise.
66583         * modules/unictype/property-dash: Likewise.
66584         * modules/unictype/property-decimal-digit: Likewise.
66585         * modules/unictype/property-default-ignorable-code-point: Likewise.
66586         * modules/unictype/property-deprecated: Likewise.
66587         * modules/unictype/property-diacritic: Likewise.
66588         * modules/unictype/property-extender: Likewise.
66589         * modules/unictype/property-format-control: Likewise.
66590         * modules/unictype/property-grapheme-base: Likewise.
66591         * modules/unictype/property-grapheme-extend: Likewise.
66592         * modules/unictype/property-grapheme-link: Likewise.
66593         * modules/unictype/property-hex-digit: Likewise.
66594         * modules/unictype/property-hyphen: Likewise.
66595         * modules/unictype/property-id-continue: Likewise.
66596         * modules/unictype/property-id-start: Likewise.
66597         * modules/unictype/property-ideographic: Likewise.
66598         * modules/unictype/property-ids-binary-operator: Likewise.
66599         * modules/unictype/property-ids-trinary-operator: Likewise.
66600         * modules/unictype/property-ignorable-control: Likewise.
66601         * modules/unictype/property-iso-control: Likewise.
66602         * modules/unictype/property-join-control: Likewise.
66603         * modules/unictype/property-left-of-pair: Likewise.
66604         * modules/unictype/property-line-separator: Likewise.
66605         * modules/unictype/property-logical-order-exception: Likewise.
66606         * modules/unictype/property-lowercase: Likewise.
66607         * modules/unictype/property-math: Likewise.
66608         * modules/unictype/property-non-break: Likewise.
66609         * modules/unictype/property-not-a-character: Likewise.
66610         * modules/unictype/property-numeric: Likewise.
66611         * modules/unictype/property-other-alphabetic: Likewise.
66612         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
66613         * modules/unictype/property-other-grapheme-extend: Likewise.
66614         * modules/unictype/property-other-id-continue: Likewise.
66615         * modules/unictype/property-other-id-start: Likewise.
66616         * modules/unictype/property-other-lowercase: Likewise.
66617         * modules/unictype/property-other-math: Likewise.
66618         * modules/unictype/property-other-uppercase: Likewise.
66619         * modules/unictype/property-paired-punctuation: Likewise.
66620         * modules/unictype/property-paragraph-separator: Likewise.
66621         * modules/unictype/property-pattern-syntax: Likewise.
66622         * modules/unictype/property-pattern-white-space: Likewise.
66623         * modules/unictype/property-private-use: Likewise.
66624         * modules/unictype/property-punctuation: Likewise.
66625         * modules/unictype/property-quotation-mark: Likewise.
66626         * modules/unictype/property-radical: Likewise.
66627         * modules/unictype/property-sentence-terminal: Likewise.
66628         * modules/unictype/property-soft-dotted: Likewise.
66629         * modules/unictype/property-space: Likewise.
66630         * modules/unictype/property-terminal-punctuation: Likewise.
66631         * modules/unictype/property-test: Likewise.
66632         * modules/unictype/property-titlecase: Likewise.
66633         * modules/unictype/property-unassigned-code-value: Likewise.
66634         * modules/unictype/property-unified-ideograph: Likewise.
66635         * modules/unictype/property-uppercase: Likewise.
66636         * modules/unictype/property-variation-selector: Likewise.
66637         * modules/unictype/property-white-space: Likewise.
66638         * modules/unictype/property-xid-continue: Likewise.
66639         * modules/unictype/property-xid-start: Likewise.
66640         * modules/unictype/property-zero-width: Likewise.
66641         * modules/unictype/scripts: Likewise.
66642         * modules/unictype/syntax-c-ident: Likewise.
66643         * modules/unictype/syntax-c-whitespace: Likewise.
66644         * modules/unictype/syntax-java-ident: Likewise.
66645         * modules/unictype/syntax-java-whitespace: Likewise.
66646         * modules/unilbrk/u8-possible-linebreaks: Likewise.
66647         * modules/unilbrk/u8-width-linebreaks: Likewise.
66648         * modules/unilbrk/u16-possible-linebreaks: Likewise.
66649         * modules/unilbrk/u16-width-linebreaks: Likewise.
66650         * modules/unilbrk/u32-possible-linebreaks: Likewise.
66651         * modules/unilbrk/u32-width-linebreaks: Likewise.
66652         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
66653         * modules/unilbrk/ulc-width-linebreaks: Likewise.
66654         * modules/uniname/uniname: Likewise.
66655         * modules/uninorm/canonical-decomposition: Likewise.
66656         * modules/uninorm/composition: Likewise.
66657         * modules/uninorm/decomposing-form: Likewise.
66658         * modules/uninorm/decomposition: Likewise.
66659         * modules/uninorm/filter: Likewise.
66660         * modules/uninorm/nfc: Likewise.
66661         * modules/uninorm/nfd: Likewise.
66662         * modules/uninorm/nfkc: Likewise.
66663         * modules/uninorm/nfkd: Likewise.
66664         * modules/uninorm/u8-normalize: Likewise.
66665         * modules/uninorm/u8-normcmp: Likewise.
66666         * modules/uninorm/u8-normcoll: Likewise.
66667         * modules/uninorm/u8-normxfrm: Likewise.
66668         * modules/uninorm/u16-normalize: Likewise.
66669         * modules/uninorm/u16-normcmp: Likewise.
66670         * modules/uninorm/u16-normcoll: Likewise.
66671         * modules/uninorm/u16-normxfrm: Likewise.
66672         * modules/uninorm/u32-normalize: Likewise.
66673         * modules/uninorm/u32-normcmp: Likewise.
66674         * modules/uninorm/u32-normcoll: Likewise.
66675         * modules/uninorm/u32-normxfrm: Likewise.
66676         * modules/unistdio/u8-asnprintf: Likewise.
66677         * modules/unistdio/u8-asprintf: Likewise.
66678         * modules/unistdio/u8-snprintf: Likewise.
66679         * modules/unistdio/u8-sprintf: Likewise.
66680         * modules/unistdio/u8-u8-asnprintf: Likewise.
66681         * modules/unistdio/u8-u8-asprintf: Likewise.
66682         * modules/unistdio/u8-u8-snprintf: Likewise.
66683         * modules/unistdio/u8-u8-sprintf: Likewise.
66684         * modules/unistdio/u8-u8-vasnprintf: Likewise.
66685         * modules/unistdio/u8-u8-vasprintf: Likewise.
66686         * modules/unistdio/u8-u8-vsnprintf: Likewise.
66687         * modules/unistdio/u8-u8-vsprintf: Likewise.
66688         * modules/unistdio/u8-vasnprintf: Likewise.
66689         * modules/unistdio/u8-vasprintf: Likewise.
66690         * modules/unistdio/u8-vsnprintf: Likewise.
66691         * modules/unistdio/u8-vsprintf: Likewise.
66692         * modules/unistdio/u16-asnprintf: Likewise.
66693         * modules/unistdio/u16-asprintf: Likewise.
66694         * modules/unistdio/u16-snprintf: Likewise.
66695         * modules/unistdio/u16-sprintf: Likewise.
66696         * modules/unistdio/u16-u16-asnprintf: Likewise.
66697         * modules/unistdio/u16-u16-asprintf: Likewise.
66698         * modules/unistdio/u16-u16-snprintf: Likewise.
66699         * modules/unistdio/u16-u16-sprintf: Likewise.
66700         * modules/unistdio/u16-u16-vasnprintf: Likewise.
66701         * modules/unistdio/u16-u16-vasprintf: Likewise.
66702         * modules/unistdio/u16-u16-vsnprintf: Likewise.
66703         * modules/unistdio/u16-u16-vsprintf: Likewise.
66704         * modules/unistdio/u16-vasnprintf: Likewise.
66705         * modules/unistdio/u16-vasprintf: Likewise.
66706         * modules/unistdio/u16-vsnprintf: Likewise.
66707         * modules/unistdio/u16-vsprintf: Likewise.
66708         * modules/unistdio/u32-asnprintf: Likewise.
66709         * modules/unistdio/u32-asprintf: Likewise.
66710         * modules/unistdio/u32-snprintf: Likewise.
66711         * modules/unistdio/u32-sprintf: Likewise.
66712         * modules/unistdio/u32-u32-asnprintf: Likewise.
66713         * modules/unistdio/u32-u32-asprintf: Likewise.
66714         * modules/unistdio/u32-u32-snprintf: Likewise.
66715         * modules/unistdio/u32-u32-sprintf: Likewise.
66716         * modules/unistdio/u32-u32-vasnprintf: Likewise.
66717         * modules/unistdio/u32-u32-vasprintf: Likewise.
66718         * modules/unistdio/u32-u32-vsnprintf: Likewise.
66719         * modules/unistdio/u32-u32-vsprintf: Likewise.
66720         * modules/unistdio/u32-vasnprintf: Likewise.
66721         * modules/unistdio/u32-vasprintf: Likewise.
66722         * modules/unistdio/u32-vsnprintf: Likewise.
66723         * modules/unistdio/u32-vsprintf: Likewise.
66724         * modules/unistdio/ulc-asnprintf: Likewise.
66725         * modules/unistdio/ulc-asprintf: Likewise.
66726         * modules/unistdio/ulc-fprintf: Likewise.
66727         * modules/unistdio/ulc-snprintf: Likewise.
66728         * modules/unistdio/ulc-sprintf: Likewise.
66729         * modules/unistdio/ulc-vasnprintf: Likewise.
66730         * modules/unistdio/ulc-vasprintf: Likewise.
66731         * modules/unistdio/ulc-vfprintf: Likewise.
66732         * modules/unistdio/ulc-vsnprintf: Likewise.
66733         * modules/unistdio/ulc-vsprintf: Likewise.
66734         * modules/unistr/u8-check: Likewise.
66735         * modules/unistr/u8-chr: Likewise.
66736         * modules/unistr/u8-cmp: Likewise.
66737         * modules/unistr/u8-cmp2: Likewise.
66738         * modules/unistr/u8-cpy: Likewise.
66739         * modules/unistr/u8-cpy-alloc: Likewise.
66740         * modules/unistr/u8-endswith: Likewise.
66741         * modules/unistr/u8-mblen: Likewise.
66742         * modules/unistr/u8-mbsnlen: Likewise.
66743         * modules/unistr/u8-mbtouc: Likewise.
66744         * modules/unistr/u8-mbtouc-unsafe: Likewise.
66745         * modules/unistr/u8-mbtoucr: Likewise.
66746         * modules/unistr/u8-move: Likewise.
66747         * modules/unistr/u8-next: Likewise.
66748         * modules/unistr/u8-prev: Likewise.
66749         * modules/unistr/u8-set: Likewise.
66750         * modules/unistr/u8-startswith: Likewise.
66751         * modules/unistr/u8-stpcpy: Likewise.
66752         * modules/unistr/u8-stpncpy: Likewise.
66753         * modules/unistr/u8-strcat: Likewise.
66754         * modules/unistr/u8-strchr: Likewise.
66755         * modules/unistr/u8-strcmp: Likewise.
66756         * modules/unistr/u8-strcoll: Likewise.
66757         * modules/unistr/u8-strcpy: Likewise.
66758         * modules/unistr/u8-strcspn: Likewise.
66759         * modules/unistr/u8-strdup: Likewise.
66760         * modules/unistr/u8-strlen: Likewise.
66761         * modules/unistr/u8-strmblen: Likewise.
66762         * modules/unistr/u8-strmbtouc: Likewise.
66763         * modules/unistr/u8-strncat: Likewise.
66764         * modules/unistr/u8-strncmp: Likewise.
66765         * modules/unistr/u8-strncpy: Likewise.
66766         * modules/unistr/u8-strnlen: Likewise.
66767         * modules/unistr/u8-strpbrk: Likewise.
66768         * modules/unistr/u8-strrchr: Likewise.
66769         * modules/unistr/u8-strspn: Likewise.
66770         * modules/unistr/u8-strstr: Likewise.
66771         * modules/unistr/u8-strtok: Likewise.
66772         * modules/unistr/u8-to-u16: Likewise.
66773         * modules/unistr/u8-to-u32: Likewise.
66774         * modules/unistr/u8-uctomb: Likewise.
66775         * modules/unistr/u16-check: Likewise.
66776         * modules/unistr/u16-chr: Likewise.
66777         * modules/unistr/u16-cmp: Likewise.
66778         * modules/unistr/u16-cmp2: Likewise.
66779         * modules/unistr/u16-cpy: Likewise.
66780         * modules/unistr/u16-cpy-alloc: Likewise.
66781         * modules/unistr/u16-endswith: Likewise.
66782         * modules/unistr/u16-mblen: Likewise.
66783         * modules/unistr/u16-mbsnlen: Likewise.
66784         * modules/unistr/u16-mbtouc: Likewise.
66785         * modules/unistr/u16-mbtouc-unsafe: Likewise.
66786         * modules/unistr/u16-mbtoucr: Likewise.
66787         * modules/unistr/u16-move: Likewise.
66788         * modules/unistr/u16-next: Likewise.
66789         * modules/unistr/u16-prev: Likewise.
66790         * modules/unistr/u16-set: Likewise.
66791         * modules/unistr/u16-startswith: Likewise.
66792         * modules/unistr/u16-stpcpy: Likewise.
66793         * modules/unistr/u16-stpncpy: Likewise.
66794         * modules/unistr/u16-strcat: Likewise.
66795         * modules/unistr/u16-strchr: Likewise.
66796         * modules/unistr/u16-strcmp: Likewise.
66797         * modules/unistr/u16-strcoll: Likewise.
66798         * modules/unistr/u16-strcpy: Likewise.
66799         * modules/unistr/u16-strcspn: Likewise.
66800         * modules/unistr/u16-strdup: Likewise.
66801         * modules/unistr/u16-strlen: Likewise.
66802         * modules/unistr/u16-strmblen: Likewise.
66803         * modules/unistr/u16-strmbtouc: Likewise.
66804         * modules/unistr/u16-strncat: Likewise.
66805         * modules/unistr/u16-strncmp: Likewise.
66806         * modules/unistr/u16-strncpy: Likewise.
66807         * modules/unistr/u16-strnlen: Likewise.
66808         * modules/unistr/u16-strpbrk: Likewise.
66809         * modules/unistr/u16-strrchr: Likewise.
66810         * modules/unistr/u16-strspn: Likewise.
66811         * modules/unistr/u16-strstr: Likewise.
66812         * modules/unistr/u16-strtok: Likewise.
66813         * modules/unistr/u16-to-u32: Likewise.
66814         * modules/unistr/u16-to-u8: Likewise.
66815         * modules/unistr/u16-uctomb: Likewise.
66816         * modules/unistr/u32-check: Likewise.
66817         * modules/unistr/u32-chr: Likewise.
66818         * modules/unistr/u32-cmp: Likewise.
66819         * modules/unistr/u32-cmp2: Likewise.
66820         * modules/unistr/u32-cpy: Likewise.
66821         * modules/unistr/u32-cpy-alloc: Likewise.
66822         * modules/unistr/u32-endswith: Likewise.
66823         * modules/unistr/u32-mblen: Likewise.
66824         * modules/unistr/u32-mbsnlen: Likewise.
66825         * modules/unistr/u32-mbtouc: Likewise.
66826         * modules/unistr/u32-mbtouc-unsafe: Likewise.
66827         * modules/unistr/u32-mbtoucr: Likewise.
66828         * modules/unistr/u32-move: Likewise.
66829         * modules/unistr/u32-next: Likewise.
66830         * modules/unistr/u32-prev: Likewise.
66831         * modules/unistr/u32-set: Likewise.
66832         * modules/unistr/u32-startswith: Likewise.
66833         * modules/unistr/u32-stpcpy: Likewise.
66834         * modules/unistr/u32-stpncpy: Likewise.
66835         * modules/unistr/u32-strcat: Likewise.
66836         * modules/unistr/u32-strchr: Likewise.
66837         * modules/unistr/u32-strcmp: Likewise.
66838         * modules/unistr/u32-strcoll: Likewise.
66839         * modules/unistr/u32-strcpy: Likewise.
66840         * modules/unistr/u32-strcspn: Likewise.
66841         * modules/unistr/u32-strdup: Likewise.
66842         * modules/unistr/u32-strlen: Likewise.
66843         * modules/unistr/u32-strmblen: Likewise.
66844         * modules/unistr/u32-strmbtouc: Likewise.
66845         * modules/unistr/u32-strncat: Likewise.
66846         * modules/unistr/u32-strncmp: Likewise.
66847         * modules/unistr/u32-strncpy: Likewise.
66848         * modules/unistr/u32-strnlen: Likewise.
66849         * modules/unistr/u32-strpbrk: Likewise.
66850         * modules/unistr/u32-strrchr: Likewise.
66851         * modules/unistr/u32-strspn: Likewise.
66852         * modules/unistr/u32-strstr: Likewise.
66853         * modules/unistr/u32-strtok: Likewise.
66854         * modules/unistr/u32-to-u16: Likewise.
66855         * modules/unistr/u32-to-u8: Likewise.
66856         * modules/unistr/u32-uctomb: Likewise.
66857         * modules/uniwbrk/u8-wordbreaks: Likewise.
66858         * modules/uniwbrk/u16-wordbreaks: Likewise.
66859         * modules/uniwbrk/u32-wordbreaks: Likewise.
66860         * modules/uniwbrk/ulc-wordbreaks: Likewise.
66861         * modules/uniwbrk/wordbreak-property: Likewise.
66862         * modules/uniwidth/u8-strwidth: Likewise.
66863         * modules/uniwidth/u8-width: Likewise.
66864         * modules/uniwidth/u16-strwidth: Likewise.
66865         * modules/uniwidth/u16-width: Likewise.
66866         * modules/uniwidth/u32-strwidth: Likewise.
66867         * modules/uniwidth/u32-width: Likewise.
66868         * modules/uniwidth/width: Likewise.
66869         * modules/unicase/cased-tests (Makefile.am): Link all test programs
66870         with $(LIBUNISTRING).
66871         * modules/unicase/ignorable-tests: Likewise.
66872         * modules/unicase/locale-language-tests: Likewise.
66873         * modules/unicase/tolower-tests: Likewise.
66874         * modules/unicase/totitle-tests: Likewise.
66875         * modules/unicase/toupper-tests: Likewise.
66876         * modules/unicase/u8-casecmp-tests: Likewise.
66877         * modules/unicase/u8-casecoll-tests: Likewise.
66878         * modules/unicase/u8-casefold-tests: Likewise.
66879         * modules/unicase/u8-is-cased-tests: Likewise.
66880         * modules/unicase/u8-is-casefolded-tests: Likewise.
66881         * modules/unicase/u8-is-lowercase-tests: Likewise.
66882         * modules/unicase/u8-is-titlecase-tests: Likewise.
66883         * modules/unicase/u8-is-uppercase-tests: Likewise.
66884         * modules/unicase/u8-tolower-tests: Likewise.
66885         * modules/unicase/u8-totitle-tests: Likewise.
66886         * modules/unicase/u8-toupper-tests: Likewise.
66887         * modules/unicase/u16-casecmp-tests: Likewise.
66888         * modules/unicase/u16-casecoll-tests: Likewise.
66889         * modules/unicase/u16-casefold-tests: Likewise.
66890         * modules/unicase/u16-is-cased-tests: Likewise.
66891         * modules/unicase/u16-is-casefolded-tests: Likewise.
66892         * modules/unicase/u16-is-lowercase-tests: Likewise.
66893         * modules/unicase/u16-is-titlecase-tests: Likewise.
66894         * modules/unicase/u16-is-uppercase-tests: Likewise.
66895         * modules/unicase/u16-tolower-tests: Likewise.
66896         * modules/unicase/u16-totitle-tests: Likewise.
66897         * modules/unicase/u16-toupper-tests: Likewise.
66898         * modules/unicase/u32-casecmp-tests: Likewise.
66899         * modules/unicase/u32-casecoll-tests: Likewise.
66900         * modules/unicase/u32-casefold-tests: Likewise.
66901         * modules/unicase/u32-is-cased-tests: Likewise.
66902         * modules/unicase/u32-is-casefolded-tests: Likewise.
66903         * modules/unicase/u32-is-lowercase-tests: Likewise.
66904         * modules/unicase/u32-is-titlecase-tests: Likewise.
66905         * modules/unicase/u32-is-uppercase-tests: Likewise.
66906         * modules/unicase/u32-tolower-tests: Likewise.
66907         * modules/unicase/u32-totitle-tests: Likewise.
66908         * modules/unicase/u32-toupper-tests: Likewise.
66909         * modules/unicase/ulc-casecmp-tests: Likewise.
66910         * modules/unicase/ulc-casecoll-tests: Likewise.
66911         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
66912         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
66913         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
66914         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
66915         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
66916         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
66917         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
66918         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
66919         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
66920         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
66921         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
66922         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
66923         * modules/unictype/bidicategory-byname-tests: Likewise.
66924         * modules/unictype/bidicategory-name-tests: Likewise.
66925         * modules/unictype/bidicategory-of-tests: Likewise.
66926         * modules/unictype/bidicategory-test-tests: Likewise.
66927         * modules/unictype/block-list-tests: Likewise.
66928         * modules/unictype/block-of-tests: Likewise.
66929         * modules/unictype/block-test-tests: Likewise.
66930         * modules/unictype/category-C-tests: Likewise.
66931         * modules/unictype/category-Cc-tests: Likewise.
66932         * modules/unictype/category-Cf-tests: Likewise.
66933         * modules/unictype/category-Cn-tests: Likewise.
66934         * modules/unictype/category-Co-tests: Likewise.
66935         * modules/unictype/category-Cs-tests: Likewise.
66936         * modules/unictype/category-L-tests: Likewise.
66937         * modules/unictype/category-Ll-tests: Likewise.
66938         * modules/unictype/category-Lm-tests: Likewise.
66939         * modules/unictype/category-Lo-tests: Likewise.
66940         * modules/unictype/category-Lt-tests: Likewise.
66941         * modules/unictype/category-Lu-tests: Likewise.
66942         * modules/unictype/category-M-tests: Likewise.
66943         * modules/unictype/category-Mc-tests: Likewise.
66944         * modules/unictype/category-Me-tests: Likewise.
66945         * modules/unictype/category-Mn-tests: Likewise.
66946         * modules/unictype/category-N-tests: Likewise.
66947         * modules/unictype/category-Nd-tests: Likewise.
66948         * modules/unictype/category-Nl-tests: Likewise.
66949         * modules/unictype/category-No-tests: Likewise.
66950         * modules/unictype/category-P-tests: Likewise.
66951         * modules/unictype/category-Pc-tests: Likewise.
66952         * modules/unictype/category-Pd-tests: Likewise.
66953         * modules/unictype/category-Pe-tests: Likewise.
66954         * modules/unictype/category-Pf-tests: Likewise.
66955         * modules/unictype/category-Pi-tests: Likewise.
66956         * modules/unictype/category-Po-tests: Likewise.
66957         * modules/unictype/category-Ps-tests: Likewise.
66958         * modules/unictype/category-S-tests: Likewise.
66959         * modules/unictype/category-Sc-tests: Likewise.
66960         * modules/unictype/category-Sk-tests: Likewise.
66961         * modules/unictype/category-Sm-tests: Likewise.
66962         * modules/unictype/category-So-tests: Likewise.
66963         * modules/unictype/category-Z-tests: Likewise.
66964         * modules/unictype/category-Zl-tests: Likewise.
66965         * modules/unictype/category-Zp-tests: Likewise.
66966         * modules/unictype/category-Zs-tests: Likewise.
66967         * modules/unictype/category-and-not-tests: Likewise.
66968         * modules/unictype/category-and-tests: Likewise.
66969         * modules/unictype/category-byname-tests: Likewise.
66970         * modules/unictype/category-name-tests: Likewise.
66971         * modules/unictype/category-none-tests: Likewise.
66972         * modules/unictype/category-of-tests: Likewise.
66973         * modules/unictype/category-or-tests: Likewise.
66974         * modules/unictype/category-test-withtable-tests: Likewise.
66975         * modules/unictype/combining-class-tests: Likewise.
66976         * modules/unictype/ctype-alnum-tests: Likewise.
66977         * modules/unictype/ctype-alpha-tests: Likewise.
66978         * modules/unictype/ctype-blank-tests: Likewise.
66979         * modules/unictype/ctype-cntrl-tests: Likewise.
66980         * modules/unictype/ctype-digit-tests: Likewise.
66981         * modules/unictype/ctype-graph-tests: Likewise.
66982         * modules/unictype/ctype-lower-tests: Likewise.
66983         * modules/unictype/ctype-print-tests: Likewise.
66984         * modules/unictype/ctype-punct-tests: Likewise.
66985         * modules/unictype/ctype-space-tests: Likewise.
66986         * modules/unictype/ctype-upper-tests: Likewise.
66987         * modules/unictype/ctype-xdigit-tests: Likewise.
66988         * modules/unictype/decimal-digit-tests: Likewise.
66989         * modules/unictype/digit-tests: Likewise.
66990         * modules/unictype/mirror-tests: Likewise.
66991         * modules/unictype/numeric-tests: Likewise.
66992         * modules/unictype/property-alphabetic-tests: Likewise.
66993         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
66994         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
66995         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
66996         * modules/unictype/property-bidi-block-separator-tests: Likewise.
66997         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
66998         * modules/unictype/property-bidi-common-separator-tests: Likewise.
66999         * modules/unictype/property-bidi-control-tests: Likewise.
67000         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
67001         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
67002         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
67003         * modules/unictype/property-bidi-european-digit-tests: Likewise.
67004         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
67005         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
67006         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
67007         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
67008         * modules/unictype/property-bidi-pdf-tests: Likewise.
67009         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
67010         * modules/unictype/property-bidi-whitespace-tests: Likewise.
67011         * modules/unictype/property-byname-tests: Likewise.
67012         * modules/unictype/property-combining-tests: Likewise.
67013         * modules/unictype/property-composite-tests: Likewise.
67014         * modules/unictype/property-currency-symbol-tests: Likewise.
67015         * modules/unictype/property-dash-tests: Likewise.
67016         * modules/unictype/property-decimal-digit-tests: Likewise.
67017         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
67018         * modules/unictype/property-deprecated-tests: Likewise.
67019         * modules/unictype/property-diacritic-tests: Likewise.
67020         * modules/unictype/property-extender-tests: Likewise.
67021         * modules/unictype/property-format-control-tests: Likewise.
67022         * modules/unictype/property-grapheme-base-tests: Likewise.
67023         * modules/unictype/property-grapheme-extend-tests: Likewise.
67024         * modules/unictype/property-grapheme-link-tests: Likewise.
67025         * modules/unictype/property-hex-digit-tests: Likewise.
67026         * modules/unictype/property-hyphen-tests: Likewise.
67027         * modules/unictype/property-id-continue-tests: Likewise.
67028         * modules/unictype/property-id-start-tests: Likewise.
67029         * modules/unictype/property-ideographic-tests: Likewise.
67030         * modules/unictype/property-ids-binary-operator-tests: Likewise.
67031         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
67032         * modules/unictype/property-ignorable-control-tests: Likewise.
67033         * modules/unictype/property-iso-control-tests: Likewise.
67034         * modules/unictype/property-join-control-tests: Likewise.
67035         * modules/unictype/property-left-of-pair-tests: Likewise.
67036         * modules/unictype/property-line-separator-tests: Likewise.
67037         * modules/unictype/property-logical-order-exception-tests: Likewise.
67038         * modules/unictype/property-lowercase-tests: Likewise.
67039         * modules/unictype/property-math-tests: Likewise.
67040         * modules/unictype/property-non-break-tests: Likewise.
67041         * modules/unictype/property-not-a-character-tests: Likewise.
67042         * modules/unictype/property-numeric-tests: Likewise.
67043         * modules/unictype/property-other-alphabetic-tests: Likewise.
67044         * modules/unictype/property-other-default-ignorable-code-point-tests:
67045         Likewise.
67046         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
67047         * modules/unictype/property-other-id-continue-tests: Likewise.
67048         * modules/unictype/property-other-id-start-tests: Likewise.
67049         * modules/unictype/property-other-lowercase-tests: Likewise.
67050         * modules/unictype/property-other-math-tests: Likewise.
67051         * modules/unictype/property-other-uppercase-tests: Likewise.
67052         * modules/unictype/property-paired-punctuation-tests: Likewise.
67053         * modules/unictype/property-paragraph-separator-tests: Likewise.
67054         * modules/unictype/property-pattern-syntax-tests: Likewise.
67055         * modules/unictype/property-pattern-white-space-tests: Likewise.
67056         * modules/unictype/property-private-use-tests: Likewise.
67057         * modules/unictype/property-punctuation-tests: Likewise.
67058         * modules/unictype/property-quotation-mark-tests: Likewise.
67059         * modules/unictype/property-radical-tests: Likewise.
67060         * modules/unictype/property-sentence-terminal-tests: Likewise.
67061         * modules/unictype/property-soft-dotted-tests: Likewise.
67062         * modules/unictype/property-space-tests: Likewise.
67063         * modules/unictype/property-terminal-punctuation-tests: Likewise.
67064         * modules/unictype/property-test-tests: Likewise.
67065         * modules/unictype/property-titlecase-tests: Likewise.
67066         * modules/unictype/property-unassigned-code-value-tests: Likewise.
67067         * modules/unictype/property-unified-ideograph-tests: Likewise.
67068         * modules/unictype/property-uppercase-tests: Likewise.
67069         * modules/unictype/property-variation-selector-tests: Likewise.
67070         * modules/unictype/property-white-space-tests: Likewise.
67071         * modules/unictype/property-xid-continue-tests: Likewise.
67072         * modules/unictype/property-xid-start-tests: Likewise.
67073         * modules/unictype/property-zero-width-tests: Likewise.
67074         * modules/unictype/scripts-tests: Likewise.
67075         * modules/unictype/syntax-c-ident-tests: Likewise.
67076         * modules/unictype/syntax-c-whitespace-tests: Likewise.
67077         * modules/unictype/syntax-java-ident-tests: Likewise.
67078         * modules/unictype/syntax-java-whitespace-tests: Likewise.
67079         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
67080         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
67081         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
67082         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
67083         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
67084         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
67085         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
67086         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
67087         * modules/uniname/uniname-tests: Likewise.
67088         * modules/uninorm/canonical-decomposition-tests: Likewise.
67089         * modules/uninorm/compat-decomposition-tests: Likewise.
67090         * modules/uninorm/composition-tests: Likewise.
67091         * modules/uninorm/decomposing-form-tests: Likewise.
67092         * modules/uninorm/decomposition-tests: Likewise.
67093         * modules/uninorm/filter-tests: Likewise.
67094         * modules/uninorm/nfc-tests: Likewise.
67095         * modules/uninorm/nfd-tests: Likewise.
67096         * modules/uninorm/nfkc-tests: Likewise.
67097         * modules/uninorm/nfkd-tests: Likewise.
67098         * modules/uninorm/u8-normcmp-tests: Likewise.
67099         * modules/uninorm/u8-normcoll-tests: Likewise.
67100         * modules/uninorm/u16-normcmp-tests: Likewise.
67101         * modules/uninorm/u16-normcoll-tests: Likewise.
67102         * modules/uninorm/u32-normcmp-tests: Likewise.
67103         * modules/uninorm/u32-normcoll-tests: Likewise.
67104         * modules/unistdio/u8-asnprintf-tests: Likewise.
67105         * modules/unistdio/u8-vasnprintf-tests: Likewise.
67106         * modules/unistdio/u8-vasprintf-tests: Likewise.
67107         * modules/unistdio/u8-vsnprintf-tests: Likewise.
67108         * modules/unistdio/u8-vsprintf-tests: Likewise.
67109         * modules/unistdio/u16-asnprintf-tests: Likewise.
67110         * modules/unistdio/u16-vasnprintf-tests: Likewise.
67111         * modules/unistdio/u16-vasprintf-tests: Likewise.
67112         * modules/unistdio/u16-vsnprintf-tests: Likewise.
67113         * modules/unistdio/u16-vsprintf-tests: Likewise.
67114         * modules/unistdio/u32-asnprintf-tests: Likewise.
67115         * modules/unistdio/u32-vasnprintf-tests: Likewise.
67116         * modules/unistdio/u32-vasprintf-tests: Likewise.
67117         * modules/unistdio/u32-vsnprintf-tests: Likewise.
67118         * modules/unistdio/u32-vsprintf-tests: Likewise.
67119         * modules/unistdio/ulc-asnprintf-tests: Likewise.
67120         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
67121         * modules/unistdio/ulc-vasprintf-tests: Likewise.
67122         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
67123         * modules/unistdio/ulc-vsprintf-tests: Likewise.
67124         * modules/unistr/u8-check-tests: Likewise.
67125         * modules/unistr/u8-chr-tests: Likewise.
67126         * modules/unistr/u8-cmp-tests: Likewise.
67127         * modules/unistr/u8-cmp2-tests: Likewise.
67128         * modules/unistr/u8-cpy-alloc-tests: Likewise.
67129         * modules/unistr/u8-cpy-tests: Likewise.
67130         * modules/unistr/u8-mblen-tests: Likewise.
67131         * modules/unistr/u8-mbsnlen-tests: Likewise.
67132         * modules/unistr/u8-mbtouc-tests: Likewise.
67133         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
67134         * modules/unistr/u8-mbtoucr-tests: Likewise.
67135         * modules/unistr/u8-move-tests: Likewise.
67136         * modules/unistr/u8-next-tests: Likewise.
67137         * modules/unistr/u8-prev-tests: Likewise.
67138         * modules/unistr/u8-set-tests: Likewise.
67139         * modules/unistr/u8-stpcpy-tests: Likewise.
67140         * modules/unistr/u8-stpncpy-tests: Likewise.
67141         * modules/unistr/u8-strcat-tests: Likewise.
67142         * modules/unistr/u8-strcmp-tests: Likewise.
67143         * modules/unistr/u8-strcoll-tests: Likewise.
67144         * modules/unistr/u8-strcpy-tests: Likewise.
67145         * modules/unistr/u8-strdup-tests: Likewise.
67146         * modules/unistr/u8-strlen-tests: Likewise.
67147         * modules/unistr/u8-strmblen-tests: Likewise.
67148         * modules/unistr/u8-strmbtouc-tests: Likewise.
67149         * modules/unistr/u8-strncat-tests: Likewise.
67150         * modules/unistr/u8-strncmp-tests: Likewise.
67151         * modules/unistr/u8-strncpy-tests: Likewise.
67152         * modules/unistr/u8-strnlen-tests: Likewise.
67153         * modules/unistr/u8-to-u16-tests: Likewise.
67154         * modules/unistr/u8-to-u32-tests: Likewise.
67155         * modules/unistr/u8-uctomb-tests: Likewise.
67156         * modules/unistr/u16-check-tests: Likewise.
67157         * modules/unistr/u16-chr-tests: Likewise.
67158         * modules/unistr/u16-cmp-tests: Likewise.
67159         * modules/unistr/u16-cmp2-tests: Likewise.
67160         * modules/unistr/u16-cpy-alloc-tests: Likewise.
67161         * modules/unistr/u16-cpy-tests: Likewise.
67162         * modules/unistr/u16-mblen-tests: Likewise.
67163         * modules/unistr/u16-mbsnlen-tests: Likewise.
67164         * modules/unistr/u16-mbtouc-tests: Likewise.
67165         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
67166         * modules/unistr/u16-mbtoucr-tests: Likewise.
67167         * modules/unistr/u16-move-tests: Likewise.
67168         * modules/unistr/u16-next-tests: Likewise.
67169         * modules/unistr/u16-prev-tests: Likewise.
67170         * modules/unistr/u16-set-tests: Likewise.
67171         * modules/unistr/u16-stpcpy-tests: Likewise.
67172         * modules/unistr/u16-stpncpy-tests: Likewise.
67173         * modules/unistr/u16-strcat-tests: Likewise.
67174         * modules/unistr/u16-strcmp-tests: Likewise.
67175         * modules/unistr/u16-strcoll-tests: Likewise.
67176         * modules/unistr/u16-strcpy-tests: Likewise.
67177         * modules/unistr/u16-strdup-tests: Likewise.
67178         * modules/unistr/u16-strlen-tests: Likewise.
67179         * modules/unistr/u16-strmblen-tests: Likewise.
67180         * modules/unistr/u16-strmbtouc-tests: Likewise.
67181         * modules/unistr/u16-strncat-tests: Likewise.
67182         * modules/unistr/u16-strncmp-tests: Likewise.
67183         * modules/unistr/u16-strncpy-tests: Likewise.
67184         * modules/unistr/u16-strnlen-tests: Likewise.
67185         * modules/unistr/u16-to-u32-tests: Likewise.
67186         * modules/unistr/u16-to-u8-tests: Likewise.
67187         * modules/unistr/u16-uctomb-tests: Likewise.
67188         * modules/unistr/u32-check-tests: Likewise.
67189         * modules/unistr/u32-chr-tests: Likewise.
67190         * modules/unistr/u32-cmp-tests: Likewise.
67191         * modules/unistr/u32-cmp2-tests: Likewise.
67192         * modules/unistr/u32-cpy-alloc-tests: Likewise.
67193         * modules/unistr/u32-cpy-tests: Likewise.
67194         * modules/unistr/u32-mblen-tests: Likewise.
67195         * modules/unistr/u32-mbsnlen-tests: Likewise.
67196         * modules/unistr/u32-mbtouc-tests: Likewise.
67197         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
67198         * modules/unistr/u32-mbtoucr-tests: Likewise.
67199         * modules/unistr/u32-move-tests: Likewise.
67200         * modules/unistr/u32-next-tests: Likewise.
67201         * modules/unistr/u32-prev-tests: Likewise.
67202         * modules/unistr/u32-set-tests: Likewise.
67203         * modules/unistr/u32-stpcpy-tests: Likewise.
67204         * modules/unistr/u32-stpncpy-tests: Likewise.
67205         * modules/unistr/u32-strcat-tests: Likewise.
67206         * modules/unistr/u32-strcmp-tests: Likewise.
67207         * modules/unistr/u32-strcoll-tests: Likewise.
67208         * modules/unistr/u32-strcpy-tests: Likewise.
67209         * modules/unistr/u32-strdup-tests: Likewise.
67210         * modules/unistr/u32-strlen-tests: Likewise.
67211         * modules/unistr/u32-strmblen-tests: Likewise.
67212         * modules/unistr/u32-strmbtouc-tests: Likewise.
67213         * modules/unistr/u32-strncat-tests: Likewise.
67214         * modules/unistr/u32-strncmp-tests: Likewise.
67215         * modules/unistr/u32-strncpy-tests: Likewise.
67216         * modules/unistr/u32-strnlen-tests: Likewise.
67217         * modules/unistr/u32-to-u16-tests: Likewise.
67218         * modules/unistr/u32-to-u8-tests: Likewise.
67219         * modules/unistr/u32-uctomb-tests: Likewise.
67220         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
67221         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
67222         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
67223         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
67224         * modules/uniwidth/u8-strwidth-tests: Likewise.
67225         * modules/uniwidth/u8-width-tests: Likewise.
67226         * modules/uniwidth/u16-strwidth-tests: Likewise.
67227         * modules/uniwidth/u16-width-tests: Likewise.
67228         * modules/uniwidth/u32-strwidth-tests: Likewise.
67229         * modules/uniwidth/u32-width-tests: Likewise.
67230         * modules/uniwidth/width-tests: Likewise.
67232 2010-05-18  Richard Jones  <rjones@redhat.com>
67234         doc: users.txt: list hivex
67235         * users.txt: Add hivex.
67237 2010-05-18  Richard Jones  <rjones@redhat.com>
67239         doc: users.txt: list febootstrap
67240         * users.txt: Add febootstrap.
67242 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
67244         bootstrap: fix an error when gnulib is not used as a git submodule
67245         * build-aux/bootstrap (gnulib_path): If its length is zero then
67246         assign "gnulib" to it.
67247         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
67249 2010-05-16  Bruno Haible  <bruno@clisp.org>
67251         Avoid autoconf warnings about AM_ICONV.
67252         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
67253         2.64.
67255 2010-05-16  Bruno Haible  <bruno@clisp.org>
67257         absolute-header: Make the macro usable in more situations.
67258         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
67259         from gl_ABSOLUTE_HEADER.
67260         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
67262 2010-05-16  James Youngman  <jay@gnu.org>
67264         doc: update users.txt
67265         * users.txt: Add CSSC.
67267 2010-05-16  Jim Meyering  <meyering@redhat.com>
67269         init.sh: fix an error in the previous change; add more comments
67270         * tests/init.sh: Compare exit code in loop against 9, not 2.
67271         Patch by Bruno Haible.
67272         Make the two tests more similar by adding an empty "then" clause.
67273         Add comments.
67275         init.sh: avoid unnecessary shell re-exec
67276         * tests/init.sh: Improve the re-exec-required check to first test the
67277         current shell.  If it passes the test, do not search for a shell that
67278         does pass, and do not re-exec.  This test is particularly contorted to
67279         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
67280         of $(...) evokes a syntax error and causes immediate shell exit with
67281         status 2.  Bruno Haible reported that the re-exec made it impossible
67282         to single-step through any init.sh-using script.
67284 2010-05-16  Bruno Haible  <bruno@clisp.org>
67286         Fix collision between gnulib's and libintl's printf replacements.
67287         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
67288         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
67289         (printf): When using GNU C, map the __printf__ function to rpl_printf
67290         via __asm__. When not using GNU C, define rpl_printf instead of
67291         __printf__.
67292         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
67293         commit.
67294         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
67295         commit.
67296         * m4/asm-underscore.m4: New file.
67297         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
67298         * modules/stdio (Files): Add m4/asm-underscore.m4.
67299         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
67300         Reported by Ben Pfaff.
67302 2010-05-16  Bruno Haible  <bruno@clisp.org>
67304         verify: Avoid skipping the test on openSUSE 11.0.
67305         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
67307 2010-05-13  Bruno Haible  <bruno@clisp.org>
67309         Avoid useless warnings from G++.
67310         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
67311         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
67312         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
67314 2010-05-11  Jim Meyering  <meyering@redhat.com>
67316         maint.mk: tweak preceding change
67317         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
67318         regexps tighter by anchoring at EOL, and make the new group "shy"
67319         for slightly decreased overhead.
67321 2010-05-11  Eric Blake  <eblake@redhat.com>
67323         maint.mk: gnulib doesn't guarantee NSIG
67324         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
67326 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
67328         test-pwrite.c: Remove unused variable declaration.
67329         * tests/test-pwrite.c (main): Remove read_buf declaration.
67331         Remove useless test-pwrite.sh file.
67332         * tests/test-pwrite.sh: Delete file.
67333         * modules/pwrite-tests: Remove references.
67334         Reported by Bruno Haible.
67336 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
67338         init.sh: fix a typo
67339         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
67341 2010-05-10  Jim Meyering  <meyering@redhat.com>
67343         maint.mk: avoid using a temporary file in the always-defined-macros check
67344         * top/maint.mk (.re-defmac): Remove rule.
67345         (gl_trap_): Remove definition.
67346         (sc_prohibit_always-defined_macros): Rewrite not to create and
67347         depend on a temporary file.  Instead, depend on GNU grep's ability
67348         to read a list of regular expressions from stdin when given "-f -".
67350 2010-05-09  Bruno Haible  <bruno@clisp.org>
67352         Update to GNU gettext 0.18, part 1.
67353         * m4/gettext.m4: Update to GNU gettext 0.18.
67354         * m4/intl.m4: Likewise.
67355         * m4/po.m4: Likewise.
67356         * modules/gettext (Files): Add m4/fcntl-o.m4.
67357         (configure.ac): Require gettext infrastructure from version 0.18.
67359 2010-05-09  Jim Meyering  <meyering@redhat.com>
67361         init.sh: enable MALLOC_PERTURB_
67362         * tests/init.sh: Enable glibc's malloc-perturbing option.
67364         maint.mk: improve sc_cross_check_PATH_usage_in_tests
67365         With my recent change in init.sh from the two-line form:
67366             -#   : ${srcdir=.}
67367             -#   . "$srcdir/init.sh"; path_prepend_ .
67368             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
67369         I noticed that using the one-line form would cause this test
67370         to fail with a false-positive, or to stop working altogether,
67371         depending on whether help-version changed or all the tests did.
67372         * top/maint.mk (_hv_regex): Remove this definition.
67373         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
67374         (_hv_regex_strong): Use a stronger regex to check for conformance.
67375         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
67376         Give a separate diagnostic for lack of conforming use.
67378         maint.mk: prohibit definition of symbols defined by gnulib
67379         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
67380         definition of symbols defined by gnulib.
67382 2010-05-09  Bruno Haible  <bruno@clisp.org>
67384         acl: Avoid test failure on Cygwin-hosted mingw.
67385         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
67387 2010-05-09  Bruno Haible  <bruno@clisp.org>
67389         error: Use system's fcntl function.
67390         * lib/error.c (fcntl): Undefine.
67392 2010-05-09  Jim Meyering  <meyering@redhat.com>
67394         verify: adjust formatting to be more consistent
67395         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
67396         argument-list '('s, and after one comma.
67398 2010-05-09  Bruno Haible  <bruno@clisp.org>
67400         error: More reliable output on mingw.
67401         * lib/error.c: Include <windows.h>.
67402         (is_open): New function.
67403         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
67404         defined.
67406 2010-05-09  Bruno Haible  <bruno@clisp.org>
67408         vasnprintf: Fix syntax errors in libintl build on mingw.
67409         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
67410         pad_ourselves and prec_ourselves after use.
67412 2010-05-08  Bruno Haible  <bruno@clisp.org>
67414         * lib/config.charset: Update comments for Cygwin 1.7.
67415         * lib/localcharset.c: Likewise.
67417 2010-05-07  Jim Meyering  <meyering@redhat.com>
67419         init.sh: improve comments
67420         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
67421         . "${srcdir=.}/init.sh"; path_prepend_ .
67422         Add a note about path_prepend_ and the alternative of using
67423         TESTS_ENVIRONMENT.
67425 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
67427         exclude: Unescape hashed patterns in wildcard mode.
67428         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
67429         to the hash list.
67430         * tests/test-exclude8.sh: New test case.
67431         * modules/exclude-tests: Add new test.
67433 2010-05-05  Eric Blake  <eblake@redhat.com>
67435         verify: automate tests
67436         * modules/verify-tests: New module.
67437         * tests/test-verify.sh: New file.
67438         * tests/test-verify.c: Guard each negative test with a unique id.
67439         Also avoid warning about unused left hand of comma expressions.
67441 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
67443         Further improvements to verify.h, suggested by Eric Blake.
67444         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
67445         the GL_* versions, to avoid collision with OpenGL.
67446         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
67447         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
67448         than testing merely whether it's defined.
67450         Modify verify.h to pacify gcc -Wredundant_decls.
67451         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
67452         These use the prefix "GL_" since they're likely to be useful elsewhere.
67453         We may need to break them out into a different .h file.
67454         (__COUNTER__): Define to 0 if the compiler doesn't support it.
67455         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
67456         of verify_function__.
67458 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
67460         Tests for module pwrite.
67461         * modules/pwrite-tests: New file.
67462         * tests/test-pwrite.sh: New file.
67463         * tests/test-pwrite.c: New file.
67465         New module pwrite.
67466         * lib/unistd.in.h (pwrite): New declaration.
67467         * lib/pwrite.c: New file, from glibc with modifications.
67468         * m4/pwrite.m4: New file.
67469         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
67470         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
67471         REPLACE_PWRITE.
67472         * modules/pwrite: New file.
67473         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
67474         REPLACE_PWRITE.
67475         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
67476         * doc/posix-functions/pwrite.texi: Mention the new module.
67478 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
67480         pread: Update documentation.
67481         * doc/posix-functions/pread.texi: Mention the 'pread' module.
67483 2010-05-04  Eric Blake  <eblake@redhat.com>
67485         docs: update cygwin progress
67486         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
67487         this bug.
67488         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
67489         Added in cygwin 1.7.2.
67490         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
67491         Likewise.
67492         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
67493         Likewise.
67494         * doc/glibc-functions/dup3.texi (dup3): Likewise.
67495         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
67496         * doc/glibc-functions/accept4.texi (accept4): Likewise.
67497         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
67498         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
67499         Mention nproc module.
67500         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
67501         bug in cygwin 1.7.5 addition.
67502         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
67503         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
67504         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
67505         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
67506         1.7.5.
67507         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
67508         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
67509         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
67510         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
67511         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
67512         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
67513         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
67514         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
67515         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
67516         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
67517         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
67518         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
67519         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
67520         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
67521         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
67522         Likewise.
67523         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
67524         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
67525         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
67526         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
67527         Likewise.
67528         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
67529         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
67530         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
67531         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
67532         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
67533         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
67534         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
67535         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
67536         Likewise.
67537         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
67538         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
67539         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
67540         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
67541         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
67542         Likewise.
67543         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
67544         Likewise.
67545         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
67546         Likewise.
67547         * doc/glibc-functions/xdrrec_endofrecord.texi
67548         (xdrrec_endofrecord): Likewise.
67549         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
67550         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
67551         Likewise.
67552         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
67553         Likewise.
67555 2010-05-04  Jim Meyering  <meyering@redhat.com>
67557         gendocs.sh: make its "-s FILE" option more useful
67558         * build-aux/gendocs.sh: When honoring the -s FILE option, update
67559         $PACKAGE to reflect the probably-different basename of "FILE".
67561 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
67563         bootstrap: don't ignore download_po_files failure
67564         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
67565         failure.
67567 2010-05-03  Jim Meyering  <meyering@redhat.com>
67569         maint.mk: allow to pass options to gendocs.sh
67570         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
67571         (gendocs_options_): New overridable variable.
67573         gnu-web-doc-update: don't ignore configure or build failure
67574         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
67576         announce-gen: backslash-escape '@'s in --help output
67577         * build-aux/announce-gen: Fix syntax errors.
67579         maint.mk, announce-gen: allow project-specific announcement mail headers
67580         * top/maint.mk (translation_project_): Define default.
67581         (announcement_Cc_, announcement_mail_headers_): Likewise.
67582         (announcement): Invoke announce-gen with new --mail-headers option.
67583         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
67585         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
67586         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
67587         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
67588         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
67589         line in the "err2" output file when running "make check" in verbose
67590         mode (i.e., with set -x enabled).
67592 2010-05-03  Bruno Haible  <bruno@clisp.org>
67594         wctob: Fix for weird platforms.
67595         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
67596         argument value.
67598 2010-05-03  Jim Meyering  <meyering@redhat.com>
67600         maint.mk: prohibit unwarranted use of <strings.h>
67601         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
67602         strings.h in a file that does not also use strcasecmp, strncasecmp,
67603         ffs or ffsll.
67605         maint.mk: remove obsolete comments
67606         * top/maint.mk: Remove stale, commented-out rules.
67608 2010-05-02  Bruno Haible  <bruno@clisp.org>
67610         wcwidth: Declare also when it's aliased.
67611         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
67612         macro.
67614 2010-05-02  Bruno Haible  <bruno@clisp.org>
67616         Fix regression from 2010-04-25.
67617         * gnulib-tool (func_modules_transitive_closure): Check the status of
67618         all modules, not only of the tests that are of the form foo-tests where
67619         foo is a module.
67621 2010-05-02  Bruno Haible  <bruno@clisp.org>
67623         wctob: Work around nasty Cygwin 1.7.2 bug.
67624         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
67625         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
67627 2010-05-01  Bruno Haible  <bruno@clisp.org>
67629         fpurge: Sharper test.
67630         * tests/test-fpurge.c (main): Add one more ftell check.
67631         * modules/fpurge-tests (Depends-on): Add ftell.
67632         Suggested by Eric Blake.
67634 2010-05-01  Bruno Haible  <bruno@clisp.org>
67636         ftello: Another test.
67637         * tests/test-ftello3.c: New file.
67638         * modules/ftello-tests (Files): Add it.
67639         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
67640         MOSTLYCLEANFILES.
67642         ftell: Another test.
67643         * tests/test-ftell3.c: New file.
67644         * modules/ftell-tests (Files): Add it.
67645         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
67646         MOSTLYCLEANFILES.
67648 2010-05-01  Bruno Haible  <bruno@clisp.org>
67650         ftell, ftello: Work around Solaris bug.
67651         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
67652         * lib/ftello.c: Include stdio-impl.h.
67653         (ftello): On Solaris, when _IOWRT is set, compute the result without
67654         looking at _IOREAD.
67655         * modules/ftello (Files): Add lib/stdio-impl.h.
67656         * doc/posix-functions/ftell.texi: Mention Solaris bug.
67657         * doc/posix-functions/ftello.texi: Likewise.
67658         Reported by Eric Blake.
67660 2010-05-01  Bruno Haible  <bruno@clisp.org>
67662         freading: Adapt to special meaning of _IOREAD flag on Solaris.
67663         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
67664         the _IOWRT flag is also set.
67666 2010-05-01  Bruno Haible  <bruno@clisp.org>
67668         Fix doc about a HP-UX stdio bug.
67669         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
67670         * doc/posix-functions/ftello.texi: Likewise.
67672 2010-05-01  Bruno Haible  <bruno@clisp.org>
67674         lseek test: Fix failure on Solaris.
67675         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
67676         output.
67678 2010-04-30  Jim Meyering  <meyering@redhat.com>
67680         bootstrap: don't ignore failure to generate po*/Makevars
67681         * build-aux/bootstrap (with_gettext): Don't ignore failure
67682         to create po/Makevars or runtime-po/Makevars.
67684 2010-04-29  Eric Blake  <eblake@redhat.com>
67686         headers: relax license to LGPLv2+
67687         * modules/fcntl-h (License): Relax license.
67688         * modules/getopt-posix (License): Likewise.
67689         * modules/locale (License): Likewise.
67690         * modules/math (License): Likewise.
67691         * modules/pty (License): Likewise.
67692         * modules/sched (License): Likewise.
67693         * modules/search (License): Likewise.
67694         * modules/spawn (License): Likewise.
67695         * modules/stdarg (License): Likewise.
67696         * modules/sysexits (License): Likewise.
67698 2010-04-29  Jim Meyering  <meyering@redhat.com>
67700         inttypes: relax license to LGPLv2+
67701         * modules/inttypes (License): Relax license.
67703 2010-04-29  Simon Josefsson  <simon@josefsson.org>
67705         * top/maint.mk (indent): Run twice to produce idempotent results.
67707 2010-04-28  Bruno Haible  <bruno@clisp.org>
67709         getdate: Generate getdate.c in the source directory.
67710         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
67711         MOSTLYCLEANFILES.
67712         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
67714 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
67716         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
67717         is not declared as a const *; avoid warnings in that case.
67719 2010-04-28  Eric Blake  <eblake@redhat.com>
67721         canonicalize-lgpl: avoid compiler warning
67722         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
67723         declaration' / 'extraneous semicolon' warning with some compilers.
67724         Reported by Andreas Gruenbacher.
67726 2010-04-28  Jim Meyering  <meyering@redhat.com>
67728         init.sh: ensure a more reliable exit status when exiting via trap
67729         * tests/init.sh (setup_): Don't rely on $? in signal handler.
67730         Inspired by patches from Dmitry V. Levin.
67731         Also trap on signal 3 (SIGQUIT).
67733 2010-04-27  Bruno Haible  <bruno@clisp.org>
67735         Update doc about utimes().
67736         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
67737         'utimens' module.
67738         Reported by Andreas Gruenbacher <agruen@suse.de>.
67740 2010-04-27  Eric Blake  <eblake@redhat.com>
67742         full-read, full-write: relax license
67743         * modules/full-read (License): Drop to LGPLv2+.
67744         * modules/full-write (License): Likewise.
67745         * modules/safe-read (License): Likewise.
67746         * modules/safe-write (License): Likewise.
67748         pthread: mention library for linking
67749         * modules/pthread (Link): Mention $(LIB_PTHREAD).
67751 2010-04-27  Jim Meyering  <meyering@redhat.com>
67753         maint.mk: fix a bug introduced in last change
67754         * top/maint.mk (gl_assured_headers_): Now that all names are on
67755         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
67756         is not anchored to end of word, it should be adequate.
67758         maint.mk: avoid side-effect in latest syntax-check
67759         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
67760         to run commands via $(shell...), and hence to incur cost only when
67761         the new rule is actually run.
67763         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
67764         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
67765         and use that to create a regexp used to detect all #if HAVE_..._H uses.
67766         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
67767         (gl_assured_headers_, az_, AZ_): Define.
67768         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
67770 2010-04-26  Jim Meyering  <jim@meyering.net>
67771             Bruno Haible  <bruno@clisp.org>
67773         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
67774         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
67775         Prompted by an exchange with Gilles Espinasse.
67777 2010-04-26  Jim Meyering  <meyering@redhat.com>
67779         git-version-gen: aesthetic tweak
67780         * build-aux/git-version-gen: Use "$nl" rather than a literal,
67781         so that the command remains on a single line.
67783 2010-04-26  Eric Blake  <eblake@redhat.com>
67785         git-version-gen: allow use on EBCDIC hosts
67786         * build-aux/git-version-gen (dirty): Use literal rather than tying
67787         ourselves to ascii.
67788         Reported by Steve Goetze.
67790 2010-04-25  Bruno Haible  <bruno@clisp.org>
67792         netdb: Add support for GNULIB_POSIXCHECK.
67793         * lib/netdb.in.h: Include warn-on-use.h.
67794         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
67795         functions are used when GNULIB_POSIXCHECK is defined and the
67796         getaddrinfo module is not in use.
67797         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
67798         freeaddrinfo, gai_strerror, getnameinfo are declared.
67799         * modules/netdb (Depends-on): Add warn-on-use.
67800         (Makefile.am): Include warn-on-use.h in netdb.h.
67802 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
67804         build: avoid "make check" failure without .git/ directory
67805         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
67806         there is no .git/ directory.
67808 2010-04-25  Bruno Haible  <bruno@clisp.org>
67810         ptsname: Fix misuse of ttyname_r.
67811         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
67812         of errno.
67814 2010-04-25  Bruno Haible  <bruno@clisp.org>
67816         ttyname_r: Make it work on Solaris 10.
67817         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
67818         if the system function has the POSIX declaration. Test whether the
67819         function fails if the buffer is less than 128 bytes large.
67820         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
67821         system's ttyname_r function. Provide a reasonably large buffer.
67822         * modules/ttyname_r (Depends-on): Add extensions.
67823         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
67825 2010-04-25  Bruno Haible  <bruno@clisp.org>
67827         Use the 'extensions' module for some more functions on Solaris.
67828         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
67829         module.
67830         * doc/posix-functions/ctime_r.texi: Likewise.
67831         * doc/posix-functions/getgrgid_r.texi: Likewise.
67832         * doc/posix-functions/getgrnam_r.texi: Likewise.
67833         * doc/posix-functions/getpwnam_r.texi: Likewise.
67834         * doc/posix-functions/getpwuid_r.texi: Likewise.
67835         * doc/posix-functions/readdir_r.texi: Likewise.
67836         * doc/posix-functions/sigwait.texi: Likewise.
67837         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
67838         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
67840 2010-04-25  Bruno Haible  <bruno@clisp.org>
67842         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
67843         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
67844         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
67845         * lib/ttyname_r.c: Include <limits.h>.
67846         (ttyname_r): Define using the system's ttyname_r function, if it exists
67847         and not on Solaris.
67848         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
67849         set.
67850         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
67851         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
67852         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
67853         Reported by Simon Josefsson.
67855 2010-04-25  Bruno Haible  <bruno@clisp.org>
67857         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
67858         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
67859         * doc/posix-functions/ctime_r.texi: Likewise.
67860         * doc/posix-functions/getgrgid_r.texi: Likewise.
67861         * doc/posix-functions/getgrnam_r.texi: Likewise.
67862         * doc/posix-functions/getlogin_r.texi: Likewise.
67863         * doc/posix-functions/getpwnam_r.texi: Likewise.
67864         * doc/posix-functions/getpwuid_r.texi: Likewise.
67865         * doc/posix-functions/readdir_r.texi: Likewise.
67866         * doc/posix-functions/sigwait.texi: Likewise.
67867         * doc/posix-functions/ttyname_r.texi: Likewise.
67868         Reported by Simon Josefsson.
67870 2010-04-25  Bruno Haible  <bruno@clisp.org>
67872         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
67873         * gnulib-tool (func_usage): Document that --with-*-tests options apply
67874         also to --create-testdir.
67875         (func_acceptable): Don't consider the status of *-tests modules here.
67876         (func_modules_transitive_closure): Consider it here, before including a
67877         test module.
67878         (func_import, func_create_testdir): Set inc_all_direct_tests,
67879         inc_all_indirect_tests.
67880         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
67881         --create-testdir and --create-megatestdir.
67883 2010-04-25  Bruno Haible  <bruno@clisp.org>
67885         gnulib-tool: Add --without-*-tests options.
67886         * gnulib-tool (func_usage): Document the --without-*-tests options.
67887         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
67888         excl_unportable_tests): New variables.
67889         Fail if they are specified with --import or --update.
67890         (func_acceptable): Respect the excl_*_tests variables.
67891         (func_import): Set the excl_*_tests variables to empty.
67893 2010-04-25  Simon Josefsson  <simon@josefsson.org>
67894             Bruno Haible  <bruno@clisp.org>
67896         Work around a MacOS X 10.4 bug with openpty.
67897         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
67898         * tests/test-openpty.c (main): Close the master side explicitly.
67900 2010-04-25  Bruno Haible  <bruno@clisp.org>
67902         strnlen: Fix a C++ test error on MacOS X and Solaris.
67903         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
67904         the function is not declared.
67905         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
67906         Simon Josefsson.
67908 2010-04-24  Bruno Haible  <bruno@clisp.org>
67910         Avoid a gcc warning.
67911         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
67912         of correct type for %08lx directive.
67913         Reported by Eric Blake.
67915 2010-04-24  Bruno Haible  <bruno@clisp.org>
67917         vasnprintf: Correct errno value in case of out-of-memory.
67918         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
67919         or sprintf. Use the errno value from SNPRINTF or sprintf.
67920         Reported by Ian Beckwith <ianb@erislabs.net>.
67922 2010-04-24  Bruno Haible  <bruno@clisp.org>
67924         ansi-c++-opt: Find correct compiler when cross-compiling.
67925         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
67926         AC_CHECK_PROGS.
67927         Reported by Simon Josefsson.
67929 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
67931         vc-list-files: Add support for subversion
67932         * build-aux/vc-list-files: Use "svn list" to generate the list of
67933         files controlled by subversion.
67935 2010-04-23  Jim Meyering  <meyering@redhat.com>
67937         vc-list-files tests: convert to use init.sh
67938         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
67939         path_prepend_.
67940         Use Exit, not exit.
67941         Use skip_ rather than open coding it.
67942         Remove trap set-up and compare definitions.
67943         * tests/test-vc-list-files-git.sh: Likewise.
67944         * modules/vc-list-files-tests (Files): Add tests/init.sh.
67946 2010-04-22  Simon Josefsson  <simon@josefsson.org>
67948         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
67949         backup files.
67951 2010-04-21  Simon Josefsson  <simon@josefsson.org>
67953         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
67955 2010-04-20  Eric Blake  <eblake@redhat.com>
67957         tests: be robust to ignored SIGPIPE
67958         * tests/test-select-in.sh: Consume all output.
67959         * tests/test-lseek.sh: Check correct exit status, while avoiding
67960         EPIPE.
67962 2010-04-20  Simon Josefsson  <simon@josefsson.org>
67963             Bruno Haible  <bruno@clisp.org>
67965         visibility: Don't use -fvisibility if it leads to a warning.
67966         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
67967         yes, don't pretend that visibility works if it leads to a warning.
67968         Reported by Mike Gran <spk121@yahoo.com>.
67970 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
67972         * build-aux/bootstrap: Use "git -h" for testing for supported options
67973         instead of "git --help".  The short-form option only shows a summary,
67974         and doesn't layout the full man page.  Grep for the full option name
67975         in the summary, too.
67977 2010-04-19  Bruno Haible  <bruno@clisp.org>
67979         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
67980         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
67981         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
67982         mention of RELOCATABLE_STRIP.
67983         Reported by Sylvain Beucler <beuc@beuc.net>.
67985 2010-04-19  Bruno Haible  <bruno@clisp.org>
67987         * lib/diffseq.h: Fix typo in comment.
67988         Reported by Eric Blake.
67990 2010-04-19  Bruno Haible  <bruno@clisp.org>
67992         ioctl: Move autoconf macro to a .m4 file.
67993         * m4/ioctl.m4: New file, extracted from modules/ioctl.
67994         * modules/ioctl (Files): Add it.
67995         (configure.ac): Simply invoke gl_FUNC_IOCTL.
67996         Reported by Ian Beckwith <ianb@erislabs.net>.
67998 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
67999             Bruno Haible  <bruno@clisp.org>
68001         diffseq: Accommodate use-case with abstract arrays.
68002         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
68003         is not defined.
68004         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
68005         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
68007 2010-04-18  Bruno Haible  <bruno@clisp.org>
68009         * doc/posix-headers/stdbool.texi: More precise wording.
68011 2010-04-17  Jim Meyering  <meyering@redhat.com>
68013         maint.mk: use gnu-style indentation in an embedded perl script
68014         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
68015         Rename variable: s/two/last_two_bytes/
68017 2010-04-16  Eric Blake  <eblake@redhat.com>
68019         test-stdbool: skip test that fails with Solaris CC
68020         * tests/test-stdbool.c (f): Skip test that causes compilation
68021         error under buggy C++ compiler.
68022         * lib/stdbool.in.h: Document the limitation.
68023         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
68025         setenv: allow compilation with C++
68026         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
68027         register keyword.
68029         stdint: allow test to pass with C++
68030         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
68032         getopt: allow compilation with C++
68033         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
68034         struct.
68035         * lib/getopt.c (_getopt_internal_r): Use correct type.
68036         Reported by Dagobert Michelson, via Joel E. Denny.
68038 2010-04-16  Bruno Haible  <bruno@clisp.org>
68040         Override netdb.h always.
68041         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
68042         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
68043         Reported by Ludovic Courtès <ludo@gnu.org>.
68045 2010-04-15  Bruno Haible  <bruno@clisp.org>
68047         openpty: Fix mistake from 2010-03-21.
68048         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
68049         Reported by Simon Josefsson.
68051 2010-04-15  Eric Blake  <eblake@redhat.com>
68053         test-forkpty: fix expected signature
68054         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
68055         Reported by Simon Josefsson.
68057 2010-04-15  Jim Meyering  <meyering@redhat.com>
68059         maint.mk: texinfo_suffix_re_: correct the default regexp
68060         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
68062         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
68063         make it configurable via texinfo_suffix_re_.
68065 2010-04-14  Eric Blake  <eblake@redhat.com>
68067         strtok_r: relax license to LGPLv2+
68068         * modules/strtok_r (License): Relax license.
68069         Reported by Matthias Bolte.
68071 2010-04-14  Simon Josefsson  <simon@josefsson.org>
68073         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
68074         version 1.4.4 by default instead of requiring the libgcrypt
68075         version used during build.  This makes it possible to use the
68076         application with older but still binary compatible libgcrypt
68077         versions.
68079 2010-04-13  Eric Blake  <eblake@redhat.com>
68081         getopt-gnu: match recent glibc fixes and posix ruling
68082         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
68083         '+' handling, when requesting extensions.
68084         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
68085         'W;' handling.
68086         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
68087         * doc/posix-functions/getopt.texi (getopt): Document this.
68088         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
68089         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
68090         Likewise.
68092         getopt: merge bug fixes from glibc
68093         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
68094         diagnostics.  Honor '+:' correctly.  Reject ';'.
68096         getopt-posix: detect MacOS bug
68097         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
68098         optind when missing a required argument.
68099         * doc/posix-functions/getopt.texi (getopt): Document the bug.
68100         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
68101         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
68102         Likewise.
68104         getopt-posix: avoid spurious failure on Solaris
68105         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
68106         an indicator that setting optind=1 is sufficient for reset.
68108         getopt-posix: avoid spurious failure on FreeBSD
68109         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
68110         in POSIX mode, since the m4 test uses it.
68112         gnulib-tool: silence warning on BSD sh
68113         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
68115 2010-04-13  Jim Meyering  <meyering@redhat.com>
68117         doc: users.txt: GNU patch now uses gnulib
68118         * users.txt: Add patch.
68120 2010-04-12  Jim Meyering  <meyering@redhat.com>
68122         maint.mk: generate more concise timing data for syntax-check rules
68123         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
68124         " done" from each line that reports a syntax-check test duration.
68126 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
68128         git-version-gen: use "git update-index..." rather than "git status"
68129         * build-aux/git-version-gen: Use git update-index --refresh, not
68130         "git status".  With some versions of git, "git status" would fail
68131         to update the index and result in an unwarranted "-dirty" suffix.
68133 2010-04-11  Jim Meyering  <meyering@redhat.com>
68135         openat: correct formatting (no semantic change)
68136         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
68137         Suggested by Bruno Haible.
68139 2010-04-11  Bruno Haible  <bruno@clisp.org>
68141         Stricter declaration checking in testdirs.
68142         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68143         If for_tests is true, augment AM_CPPFLAGS to define
68144         GNULIB_STRICT_CHECKING.
68145         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
68146         GNULIB_STRICT_CHECKING is defined, verify that the function is
68147         declared.
68149 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
68150             Bruno Haible  <bruno@clisp.org>
68152         libunistring: Improve configure output.
68153         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
68154         Don't say "consider installing GNU libunistring" when checking again
68155         with libiconv.
68157 2010-04-11  Bruno Haible  <bruno@clisp.org>
68159         libunistring: Correct value of $LTLIBUNISTRING.
68160         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
68161         correct the value of $LTLIBUNISTRING.
68163 2010-04-11  Bruno Haible  <bruno@clisp.org>
68165         havelib: Add static libraries to LIBS in the right order.
68166         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
68167         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
68169 2010-04-11  Bruno Haible  <bruno@clisp.org>
68171         libunistring: Detect libunistring also when it depends on libiconv.
68172         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
68173         the second AC_LIB_HAVE_LINKFLAGS invocation.
68175 2010-04-11  James Youngman  <jay@gnu.org>
68177         close-stream: declare local scalars to be "const"
68178         * lib/close-stream.c (close_stream): Make boolean variables const
68179         to document the fact that we set but do not change them.
68181 2010-04-11  Bruno Haible  <bruno@clisp.org>
68183         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
68185 2010-04-11  Jim Meyering  <meyering@redhat.com>
68187         maint.mk: don't include dist-check.mk
68188         * top/maint.mk: Remove bogus include directive.
68190         maint.mk: improve empty-line-at-EOF check
68191         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
68192         solution, rather than tail+Perl-based one.  The latter would read
68193         a few kilobytes from the end of each file, and did not handle empty
68194         files properly.
68196         maint.mk: print the elapsed time for each syntax-check rule
68197         * top/maint.mk (sc_m_rules_): Save start time in a file.
68198         (sc_z_rules_): New rules: remove temp file and print elapsed time.
68199         (local-check): Interpose the .z rules
68201 2010-04-11  Jim Meyering  <meyering@redhat.com>
68203         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
68204         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
68205         empty file with one that ends in an empty line.
68207 2010-04-10  Bruno Haible  <bruno@clisp.org>
68209         mkdir: Make it work on mingw64.
68210         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
68211         * lib/mkdir.c: Update comment.
68212         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
68214 2010-04-10  Bruno Haible  <bruno@clisp.org>
68216         Don't override improved macro from newer autoconf.
68217         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
68218         autoconf >= 2.62.
68219         Reported by Joel E. Denny <jdenny@clemson.edu>.
68221 2010-04-10  Jim Meyering  <meyering@redhat.com>
68223         maint.mk: new syntax-check rule: prohibit empty lines at end of file
68224         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
68226         maint.mk: correct a diagnostic
68227         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
68228         in diagnostic; now use $prohibit.
68230 2010-04-10  Bruno Haible  <address@hidden>
68232         fchownat: Fix a C++ test error on Solaris 8.
68233         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
68234         the function does not exist.
68236 2010-04-10  Bruno Haible  <bruno@clisp.org>
68238         vasnprintf: Add more tests.
68239         * tests/test-vasnprintf-posix.c: Include <errno.h>.
68240         (test_function): Test converting an invalid wide string.
68242         vasnprintf: Correct handling of unconvertible wide string arguments.
68243         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
68244         VASNPRINTF.
68245         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
68246         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
68247         smaller than the expected maximum need for the directive. Set errno to
68248         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
68249         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
68250         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
68251         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
68252         * modules/vasnprintf (Files): Add m4/printf.m4.
68253         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68255 2010-04-10  Bruno Haible  <bruno@clisp.org>
68257         vasnprintf: Fix crash in %ls directive.
68258         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
68259         string is passed as argument to %ls, with no precision and no width.
68260         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68262 2010-04-10  Bruno Haible  <bruno@clisp.org>
68264         vasnprintf: Fix multiple test failures on mingw.
68265         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
68266         _snprintf, or snwprintf, not _snwprintf.
68268 2010-04-10  Bruno Haible  <bruno@clisp.org>
68270         write: Fix a C++ test error on mingw.
68271         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
68273 2010-04-10  Bruno Haible  <bruno@clisp.org>
68275         vasnprintf test: Reduce code duplication.
68276         * tests/test-vasnprintf.c (test_function): New function, extracted from
68277         test_vasnprintf.
68278         (test_vasnprintf, test_asnprintf): Invoke it.
68280 2010-04-10  Bruno Haible  <bruno@clisp.org>
68282         strnlen: Fix warning in C++ mode on MacOS X.
68283         * lib/string.in.h (strnlen): Use the modern idiom.
68284         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
68285         defining strnlen as a macro already in <config.h>.
68286         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68287         REPLACE_STRNLEN.
68288         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
68289         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68291 2010-04-08  James Youngman  <jay@gnu.org>
68293         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
68294         the example.
68296 2010-04-09  Jim Meyering  <meyering@redhat.com>
68298         maint.mk: print better diagnostic when there is no $(_hv_file)
68299         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
68300         announce that when $(_hv_file) (aka help-version) does not exist.
68302         init.sh: run tr in the "C" locale to avoid multibyte interpretation
68303         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
68304         not try to interpret its random input bytes.  Jarno Rajahalme reported
68305         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
68306         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
68307         (mktempd_): Likewise, just in case.
68309         ftruncate: add two years to projected module removal date: 2012
68310         * m4/ftruncate.m4: Adjust comments.
68312         ftruncate: mark module as obsolete; even MinGW provides it, now
68313         * modules/ftruncate (Status): Obsolete.
68314         (Notice): Say that.
68315         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
68316         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
68318 2010-04-08  Bruno Haible  <bruno@clisp.org>
68320         Fix side effects from tests-related modules.
68321         * modules/dprintf-posix (Comment): New section.
68322         * modules/fprintf-posix (Comment): Likewise.
68323         * modules/obstack-printf-posix (Comment): Likewise.
68324         * modules/printf-posix (Comment): Likewise.
68325         * modules/snprintf-posix (Comment): Likewise.
68326         * modules/sprintf-posix (Comment): Likewise.
68327         * modules/vasnprintf-posix (Comment): Likewise.
68328         * modules/vasprintf-posix (Comment): Likewise.
68329         * modules/vdprintf-posix (Comment): Likewise.
68330         * modules/vfprintf-posix (Comment): Likewise.
68331         * modules/vprintf-posix (Comment): Likewise.
68332         * modules/vsnprintf-posix (Comment): Likewise.
68333         * modules/vsprintf-posix (Comment): Likewise.
68334         * modules/xprintf-posix (Comment): Likewise.
68335         * modules/xvasprintf-posix (Comment): Likewise.
68336         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
68337         * modules/floorf-tests (Depends-on): Likewise.
68338         * modules/round-tests (Depends-on): Likewise.
68339         * modules/roundf-tests (Depends-on): Likewise.
68340         * modules/trunc-tests (Depends-on): Likewise.
68341         * modules/truncf-tests (Depends-on): Likewise.
68342         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
68343         'fprintf-posix' module is not present.
68344         * tests/test-floorf2.c (check): Likewise.
68345         * tests/test-trunc2.c (check): Likewise.
68346         * tests/test-truncf2.c (check): Likewise.
68347         * tests/test-round2.c (equal): Likewise.
68348         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68350 2010-04-07  Karl Berry  <karl@gnu.org>
68352         * config/srclist.txt,
68353         * config/srclistvars.sh,
68354         * config/srclist-update: doc fixes.
68356 2010-04-07  Jim Meyering  <meyering@redhat.com>
68358         maint.mk: add a PATH crosschecking syntax-check rule
68359         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
68360         Useful if you use a test like the one in help-version (coreutils,
68361         diffutils, grep, gzip) that ensures $(VERSION) matches what is
68362         printed by prog --version.
68364 2010-04-06  Bruno Haible  <bruno@clisp.org>
68366         Fix link error on mingw.
68367         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
68368         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
68370 2010-04-06  Bruno Haible  <bruno@clisp.org>
68372         Assume rmdir exists.
68373         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
68375 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
68377         doc: update users.txt
68378         * users.txt: Add gcal.
68380 2010-04-06  Jim Meyering  <meyering@redhat.com>
68382         init.sh: simply unset TMPDIR rather than risking env -i
68383         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
68384         although it probably works fine on all Unix-based systems, some
68385         systems (Cygwin?) cannot tolerate a totally cleared environment.
68386         Suggestion from Eric Blake.
68388 2010-04-06  Jim Meyering  <meyering@redhat.com>
68390         init.sh: portability fix: use env's POSIX-specified -i option not -u
68391         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
68392         than unportable env -u.  Solaris 5.11's env lacks support for -u.
68394 2010-04-05  Bruno Haible  <bruno@clisp.org>
68396         btowc: Work around Cygwin 1.7.2 bug.
68397         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
68398         does not map NUL to 0.
68399         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
68401 2010-04-05  Bruno Haible  <bruno@clisp.org>
68403         Make the multithread modules work on Cygwin 1.7.2.
68404         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
68405         imported symbols can be declared weak, so that it returns "no" on
68406         Cygwin 1.7.2.
68408 2010-04-05  Bruno Haible  <bruno@clisp.org>
68410         Use the module 'strncat'.
68411         * modules/unistr/u8-strncat (Depends-on): Add strncat.
68413         Tests for module 'strncat'.
68414         * modules/strncat-tests: New file.
68415         * tests/test-strncat.c: New file.
68417         New module 'strncat'.
68418         * lib/string.in.h (strncat): New declaration.
68419         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
68420         * m4/strncat.m4: New file, based on m4/memchr.m4.
68421         * modules/strncat: New file.
68422         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
68423         is declared.
68424         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
68425         REPLACE_STRNCAT.
68426         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
68427         REPLACE_STRNCAT.
68428         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
68429         module.
68430         * tests/test-string-c++.cc: Check signature of strncat.
68432 2010-04-05  Jim Meyering  <meyering@redhat.com>
68434         xstrtoumax-tests: convert to use init.sh
68435         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
68436         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
68437         Use Exit, not exit.
68438         Remove uses of $EXEEXT and "./" to run a program in the current dir.
68440         xstrtoimax-tests: convert to use init.sh
68441         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
68442         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
68443         Use Exit, not exit.
68444         Remove uses of $EXEEXT and "./" to run a program in the current dir.
68446 2010-04-05  Bruno Haible  <bruno@clisp.org>
68448         sys_socket: Avoid #define replacements in C++ mode.
68449         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
68450         warning to the function if possible, rather than #defining the symbol
68451         to a dysfunctional alias.
68453 2010-04-05  Bruno Haible  <bruno@clisp.org>
68455         fseeko: Fix C++ test error on mingw.
68456         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
68457         gl_FUNC_FSEEKO.
68458         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
68459         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
68460         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
68461         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
68463 2010-04-05  Bruno Haible  <bruno@clisp.org>
68465         duplocale: Improve test output.
68466         * tests/test-duplocale.c (main): Print reason for skipped test.
68468 2010-04-05  Bruno Haible  <bruno@clisp.org>
68470         Assume rmdir exists.
68471         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
68472         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
68474 2010-04-05  Bruno Haible  <bruno@clisp.org>
68476         Fix link error on Solaris 8 with cc.
68477         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
68479 2010-04-05  Bruno Haible  <bruno@clisp.org>
68481         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
68482         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
68484 2010-04-05  Bruno Haible  <bruno@clisp.org>
68486         vasprintf: Update documentation.
68487         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
68489 2010-04-05  Bruno Haible  <bruno@clisp.org>
68491         ptsname: Improve test.
68492         * tests/test-ptsname.c (main): Also try the various master names of BSD
68493         systems.
68495 2010-04-05  Bruno Haible  <bruno@clisp.org>
68497         memchr: Avoid a possible C++ test error.
68498         * lib/string.in.h (memchr): Provide declaration if function is missing.
68499         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
68500         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
68501         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
68502         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
68504 2010-04-05  Bruno Haible  <bruno@clisp.org>
68506         strtok_r: Improve idiom.
68507         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
68508         AC_LIBOBJ is used.
68510 2010-04-05  Bruno Haible  <bruno@clisp.org>
68512         strdup: Improve idiom.
68513         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
68514         AC_LIBOBJ is used.
68515         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
68516         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
68517         when AC_LIBOBJ is used.
68519 2010-04-05  Bruno Haible  <bruno@clisp.org>
68521         mbsinit, mbrtowc, wcrtomb: Improve idioms.
68522         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
68523         don't set REPLACE_MBSINIT to 1.
68524         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
68525         don't set REPLACE_MBRTOWC to 1.
68526         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
68527         exist, don't set REPLACE_MBSRTOWCS to 1.
68528         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
68529         exist, don't set REPLACE_MBSNRTOWCS to 1.
68530         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
68531         don't set REPLACE_WCRTOMB to 1.
68532         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
68533         exist, don't set REPLACE_WCSRTOMBS to 1.
68534         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
68535         exist, don't set REPLACE_WCSNRTOMBS to 1.
68537 2010-04-05  Bruno Haible  <bruno@clisp.org>
68539         ldexpl: Improve idiom.
68540         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
68541         make sure to set HAVE_DECL_LDEXPL to 0.
68543 2010-04-05  Jim Meyering  <meyering@redhat.com>
68545         xstrtol-tests: convert to use init.sh
68546         * modules/xstrtol-tests (Files): Add tests/init.sh.
68547         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
68548         Use Exit, not exit.
68549         Remove uses of $EXEEXT and "./" to run a program in the current dir.
68551         atexit-tests: convert to use init.sh
68552         * modules/atexit-tests (Files): Add tests/init.sh.
68553         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
68554         Use Exit, not exit.
68555         Remove uses of $EXEEXT and "./" to run a program in the current dir.
68557         init.sh: fix typo
68558         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
68560         init.sh: make it easier for a test script to write to the tty, ...
68561         when using automake's parallel-tests mode.
68562         * tests/init.sh (stderr_fileno_): Define overridable variable.
68563         (warn_): New function, to use it.
68564         (fail_, skip_, framework_failure_): Use warn_.
68566 2010-04-04  Bruno Haible  <bruno@clisp.org>
68568         btowc: Avoid warning.
68569         * lib/btowc.c: Include <stdlib.h>.
68570         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
68572 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
68573             Bruno Haible  <bruno@clisp.org>
68575         wchar: Port to NetBSD 1.5.
68576         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
68577         * lib/wctype.in.h (WEOF): Likewise.
68579 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
68580             Bruno Haible  <bruno@clisp.org>
68582         Port extended stdio to NetBSD 1.5.
68583         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
68584         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
68585         older.
68587 2010-04-04  Bruno Haible  <bruno@clisp.org>
68589         string: Remove unused substitution.
68590         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
68591         HAVE_DECL_STRERROR.
68592         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
68594 2010-04-04  Bruno Haible  <bruno@clisp.org>
68596         strtod: Avoid a possible C++ test error.
68597         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
68598         set REPLACE_STRTOD.
68600 2010-04-04  Bruno Haible  <bruno@clisp.org>
68602         strerror: Update documentation.
68603         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
68605 2010-04-04  Bruno Haible  <bruno@clisp.org>
68607         stdio: Fix some C++ test errors on Solaris 8 with GCC.
68608         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
68609         _GL_CXXALIAS_SYS_CAST.
68611 2010-04-04  Bruno Haible  <bruno@clisp.org>
68613         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
68614         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
68615         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
68616         REPLACE_FREXPL to 1.
68617         * doc/posix-functions/frexpl.texi: Update documentation.
68619 2010-04-04  Bruno Haible  <bruno@clisp.org>
68621         math: Fix some C++ test errors on Solaris 8 and Cygwin.
68622         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
68624 2010-04-04  Bruno Haible  <bruno@clisp.org>
68626         Implement nanosleep for native Windows.
68627         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
68629 2010-04-04  Bruno Haible  <bruno@clisp.org>
68631         math: Fix some C++ test errors on Solaris 8.
68632         * lib/math.in.h (truncf, trunc): Use simpler idiom.
68634 2010-04-04  Bruno Haible  <bruno@clisp.org>
68636         math: Fix some C++ test errors on Cygwin.
68637         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
68638         truncl): Provide declaration if the system does not have it.
68639         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
68640         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
68641         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
68642         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
68643         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
68644         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
68645         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
68646         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
68647         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
68648         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
68649         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
68650         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
68651         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
68652         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
68653         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
68654         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
68655         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
68656         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
68657         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
68658         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
68659         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
68660         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
68662 2010-04-04  Bruno Haible  <bruno@clisp.org>
68664         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
68665         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
68666         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
68667         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
68668         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
68669         * m4/isinf.m4 (gl_ISINF): Likewise.
68670         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
68672 2010-04-04  Bruno Haible  <bruno@clisp.org>
68674         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
68675         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
68677 2010-04-04  Bruno Haible  <bruno@clisp.org>
68679         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
68680         * modules/tmpfile (configure.ac): Update.
68682         tmpfile: Fix C++ test error on mingw.
68683         * lib/stdio.in.h (tmpfile): New declaration.
68684         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
68685         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
68686         * modules/tmpfile (Depends-on): Add stdio.
68687         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68688         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
68689         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
68690         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
68691         REPLACE_TMPFILE.
68692         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
68694 2010-04-04  Bruno Haible  <bruno@clisp.org>
68696         ioctl: Fix C++ test error on mingw.
68697         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
68698         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
68699         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
68701 2010-04-03  Bruno Haible  <bruno@clisp.org>
68703         wcwidth: Fix C++ test error on mingw.
68704         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
68705         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
68706         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
68708 2010-04-03  Bruno Haible  <bruno@clisp.org>
68710         nanosleep: Fix C++ test error on mingw.
68711         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
68712         * lib/time.in.h (nanosleep): Use modern idiom.
68713         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
68714         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
68715         REPLACE_NANOSLEEP to 1.
68716         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
68717         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
68719 2010-04-03  Bruno Haible  <bruno@clisp.org>
68721         strptime: Fix C++ test error on mingw.
68722         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
68723         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
68724         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
68725         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
68726         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
68727         not REPLACE_STRPTIME.
68728         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
68729         REPLACE_STRPTIME.
68731 2010-04-03  Bruno Haible  <bruno@clisp.org>
68733         timegm: Fix C++ test error on mingw.
68734         * lib/time.in.h (timegm): Use modern idiom.
68735         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
68736         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
68737         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
68738         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
68740 2010-04-03  Bruno Haible  <bruno@clisp.org>
68742         timegm: Assume declaration if function exists.
68743         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
68744         if it exists. Don't clobber ac_cv_func_timegm.
68746 2010-04-03  Bruno Haible  <bruno@clisp.org>
68748         time_r: Fix C++ test error on mingw.
68749         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
68750         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
68751         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
68752         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
68753         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
68755 2010-04-03  Bruno Haible  <bruno@clisp.org>
68757         time_r: Minor updates.
68758         * modules/time_r (Description): Mention the provided functions.
68759         * lib/time_r.c: Don't include <string.h>.
68760         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
68761         * doc/posix-functions/localtime_r.texi: Likewise.
68763 2010-04-03  Bruno Haible  <bruno@clisp.org>
68765         time: Fix regression introduced on 2010-03-08.
68766         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
68767         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
68769 2010-04-03  Jim Meyering  <meyering@redhat.com>
68771         maint.mk: don't silently disable project-specific syntax-check rules
68772         * top/maint.mk (_prohibit_regexp): Define, to help people realize
68773         that they need to convert their project-specific syntax-check rules
68774         to use the new _sc_search_regexp.
68776 2010-04-03  Bruno Haible  <bruno@clisp.org>
68778         fchdir: Fix regression introduced on 2010-03-08.
68779         * lib/unistd.in.h (fchdir): Fix declaration.
68780         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
68781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
68782         REPLACE_FCHDIR.
68783         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
68784         REPLACE_FCHDIR.
68786 2010-04-03  Bruno Haible  <bruno@clisp.org>
68788         getpagesize: Fix C++ test error on mingw.
68789         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
68790         system does not declare the function.
68791         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
68792         declared.
68793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
68794         HAVE_DECL_GETPAGESIZE.
68795         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
68797 2010-04-03  Bruno Haible  <bruno@clisp.org>
68799         stdio: Make C++ tests work on mingw.
68800         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
68801         does not declare the function.
68803 2010-04-03  Bruno Haible  <bruno@clisp.org>
68805         ftello: Fix C++ test error on mingw.
68806         * lib/stdio.in.h (ftello): Use modern idiom.
68807         * lib/ftello.c (ftello): Renamed from rpl_ftello.
68808         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
68809         is missing and that it needs to be replaced.
68810         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
68811         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
68812         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
68814 2010-04-03  Bruno Haible  <bruno@clisp.org>
68816         fseeko: Fix C++ test error on mingw.
68817         * lib/stdio.in.h (fseeko): Use modern idiom.
68818         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
68819         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
68820         is missing and that it needs to be replaced.
68821         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
68822         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
68823         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
68825 2010-04-03  Bruno Haible  <bruno@clisp.org>
68827         mkstemp: Fix C++ test error on mingw.
68828         * lib/stdlib.in.h (mkstemp): Use modern idiom.
68829         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
68830         function is missing and that it needs to be replaced.
68831         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
68832         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
68834 2010-04-03  Bruno Haible  <bruno@clisp.org>
68836         stpncpy: Fix C++ test error on mingw.
68837         * lib/string.in.h (stpncpy): Use modern idiom.
68838         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
68839         function is missing and that it needs to be replaced.
68840         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68841         REPLACE_STPNCPY.
68842         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
68844 2010-04-03  Bruno Haible  <bruno@clisp.org>
68846         sys_stat: Fix C++ test error on mingw.
68847         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
68848         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
68850 2010-04-03  Bruno Haible  <bruno@clisp.org>
68852         pty: Update doc.
68853         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
68855 2010-04-03  Bruno Haible  <bruno@clisp.org>
68857         unistd: Fix C++ test error on mingw.
68858         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
68860 2010-04-03  Bruno Haible  <bruno@clisp.org>
68862         Update doc regarding mingw.
68863         * doc/glibc-functions/openpty.texi: Update regarding mingw.
68864         * doc/glibc-functions/login_tty.texi: Likewise.
68865         * doc/glibc-functions/forkpty.texi: Likewise.
68867 2010-04-03  Bruno Haible  <bruno@clisp.org>
68869         stdlib: Avoid compilation failure of c-strtold on mingw.
68870         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
68872 2010-04-03  Bruno Haible  <bruno@clisp.org>
68874         locale: Make C++ tests work on Cygwin and mingw.
68875         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
68876         cannot provide the function.
68877         Reported by Simon Josefsson.
68879 2010-04-03  Bruno Haible  <bruno@clisp.org>
68881         localename: Port to MacOS X 10.6.
68882         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
68883         memory layout of the locales in MacOS X 10.6 as well.
68884         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
68886 2010-04-02  Bruno Haible  <bruno@clisp.org>
68888         gnulib-tool: Ensure that long-running tests are executed last.
68889         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
68890         running tests after the one for the other tests.
68892 2010-04-02  Bruno Haible  <bruno@clisp.org>
68894         gnulib-tool: Ensure the tests in the main directory are executed first.
68895         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
68896         start with the current directory.
68898 2010-04-02  Bruno Haible  <bruno@clisp.org>
68900         Tests for module 'havelib', moved here from GNU gettext.
68901         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
68902         modifications.
68903         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
68904         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
68905         with modifications.
68906         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
68907         modifications.
68908         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
68909         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
68910         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
68911         with modifications.
68912         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
68913         with modifications.
68914         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
68915         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
68916         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
68917         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
68918         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
68919         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
68920         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
68921         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
68922         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
68923         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
68924         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
68925         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
68926         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
68927         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
68928         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
68929         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
68930         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
68931         with modifications.
68932         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
68933         with modifications.
68934         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
68935         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
68936         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
68937         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
68938         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
68939         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
68940         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
68941         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
68942         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
68943         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
68944         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
68945         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
68946         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
68947         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
68948         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
68949         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
68950         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
68951         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
68952         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
68953         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
68954         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
68955         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
68956         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
68957         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
68958         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
68959         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
68960         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
68961         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
68962         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
68963         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
68964         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
68965         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
68966         * tests/havelib/rpathx/rpathx.c: New file, from
68967         gettext/autoconf-lib-link.
68968         * tests/havelib/rpathx/Makefile.am: New file, from
68969         gettext/autoconf-lib-link.
68970         * tests/havelib/rpathx/configure.ac: New file, from
68971         gettext/autoconf-lib-link with modifications.
68972         * tests/havelib/rpathy/rpathy.c: New file, from
68973         gettext/autoconf-lib-link.
68974         * tests/havelib/rpathy/Makefile.am: New file, from
68975         gettext/autoconf-lib-link.
68976         * tests/havelib/rpathy/configure.ac: New file, from
68977         gettext/autoconf-lib-link with modifications.
68978         * tests/havelib/rpathz/rpathz.c: New file, from
68979         gettext/autoconf-lib-link.
68980         * tests/havelib/rpathz/Makefile.am: New file, from
68981         gettext/autoconf-lib-link.
68982         * tests/havelib/rpathz/configure.ac: New file, from
68983         gettext/autoconf-lib-link with modifications.
68984         * tests/havelib/rpathlx/usex.c: New file, from
68985         gettext/autoconf-lib-link.
68986         * tests/havelib/rpathlx/Makefile.am: New file, from
68987         gettext/autoconf-lib-link.
68988         * tests/havelib/rpathlx/configure.ac: New file, from
68989         gettext/autoconf-lib-link with modifications.
68990         * tests/havelib/rpathly/usey.c: New file, from
68991         gettext/autoconf-lib-link.
68992         * tests/havelib/rpathly/Makefile.am: New file, from
68993         gettext/autoconf-lib-link.
68994         * tests/havelib/rpathly/configure.ac: New file, from
68995         gettext/autoconf-lib-link with modifications.
68996         * tests/havelib/rpathlz/usez.c: New file, from
68997         gettext/autoconf-lib-link.
68998         * tests/havelib/rpathlz/Makefile.am: New file, from
68999         gettext/autoconf-lib-link.
69000         * tests/havelib/rpathlz/configure.ac: New file, from
69001         gettext/autoconf-lib-link with modifications.
69002         * tests/havelib/rpathlyx/usey.c: New file, from
69003         gettext/autoconf-lib-link.
69004         * tests/havelib/rpathlyx/Makefile.am: New file, from
69005         gettext/autoconf-lib-link.
69006         * tests/havelib/rpathlyx/configure.ac: New file, from
69007         gettext/autoconf-lib-link with modifications.
69008         * tests/havelib/rpathlzyx/usez.c: New file, from
69009         gettext/autoconf-lib-link.
69010         * tests/havelib/rpathlzyx/Makefile.am: New file, from
69011         gettext/autoconf-lib-link.
69012         * tests/havelib/rpathlzyx/configure.ac: New file, from
69013         gettext/autoconf-lib-link with modifications.
69014         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
69015         with modifications.
69017 2010-04-02  Bruno Haible  <bruno@clisp.org>
69019         gnulib-tool: Create distributed built sources also for the tests.
69020         * gnulib-tool (func_create_testdir): Also generate distributed built
69021         sources in the tests directory.
69023 2010-04-02  Bruno Haible  <bruno@clisp.org>
69025         gnulib-tool: Obey user's environment variables.
69026         * gnulib-tool (func_create_testdir): When creating built sources,
69027         respect the environment variables for autoconf, automake, etc. given by
69028         the user.
69030 2010-04-02  Bruno Haible  <bruno@clisp.org>
69032         gnulib-tool: Provide the value of --m4-base to modules.
69033         * gnulib-tool (func_import, func_create_testdir): Emit a definition
69034         of gl_m4_base.
69036 2010-04-02  Eric Blake  <eblake@redhat.com>
69038         maint.mk: fix some fallout
69039         * NEWS: Document the incompatible change, and its effect on cfg.mk.
69040         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
69042 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
69044         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
69045         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
69046         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
69047         (sc_cast_of_x_alloc_return_value): Likewise.
69048         (sc_cast_of_alloca_return_value): Likewise.
69049         (sc_space_tab): Likewise.
69050         (sc_prohibit_atoi_atof): Likewise.
69051         (sc_prohibit_magic_number_exit): Likewise.
69052         (sc_error_exit_success): Likewise.
69053         (sc_file_system): Likewise.
69054         (sc_prohibit_have_config_h): Likewise.
69055         (sc_require_config_h): Likewise.
69056         (sc_prohibit_HAVE_MBRTOWC): Likewise.
69057         (sc_obsolete_symbols): Likewise.
69058         (sc_changelog): Likewise.
69059         (sc_program_name): Likewise.
69060         (sc_the_the): Likewise.
69061         (sc_trailing_blank): Likewise.
69062         (sc_two_space_separator_in_usage): Likewise.
69063         (sc_useless_cpp_parens): Likewise.
69064         (sc_GPL_version): Likewise.
69065         (sc_GFDL_version): Likewise.
69066         (sc_texinfo_acronym): Likewise.
69067         (sc_prohibit_cvs_keyword): Likewise.
69068         (sc_prohibit_stat_st_blocks): Likewise.
69069         (sc_prohibit_S_IS_definition): Likewise.
69070         (sc_redundant_const): Likewise.
69071         (sc_makefile_TAB_only_indentation): Likewise.
69072         (sc_m4_quote_check): Likewise.
69073         (sc_makefile_path_separator_check): Likewise.
69074         (sc_copyright_check): Likewise.
69075         (sc_Wundef_boolean): Likewise.
69076         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
69078         maint.mk: match 0 or more whitespace-before-function-call '('
69079         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
69080         that have zero or two-and-more spaces between the function name
69081         and the open parenthesis.
69082         (sc_error_message_warn_fatal): Likewise.
69083         (sc_error_message_uppercase): Likewise.
69084         (sc_error_message_period): Likewise.
69086 2010-03-31  Eric Blake  <eblake@redhat.com>
69088         maint.mk: check for [ as well as test
69089         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
69090         Based on a libvirt report by Matthias Bolte.
69092         gnumakefile: don't squelch _version output
69093         * top/GNUmakefile (_version): Create one-shot dependency rather
69094         than using $(shell) when version must be regenerated.
69095         (_autoreconf): Run verbosely, by default.
69097         sys_time: avoid compiler warnings
69098         * lib/sys_time.in.h (includes): Ensure gcc pragma is
69099         unconditional, fixing regression from 2010-03-29.
69100         Reported by Simon Josefsson.
69102 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
69104         maint.mk: s/_header_without_use/_sc_header_without_use/
69105         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
69106         (sc_prohibit_assert_without_use): Use the new name.
69107         (sc_prohibit_close_stream_without_use): Likewise.
69108         (sc_prohibit_getopt_without_use): Likewise.
69109         (sc_prohibit_quotearg_without_use): Likewise.
69110         (sc_prohibit_quote_without_use): Likewise.
69111         (sc_prohibit_long_options_without_use): Likewise.
69112         (sc_prohibit_inttostr_without_use): Likewise.
69113         (sc_prohibit_ignore_value_without_use): Likewise.
69114         (sc_prohibit_error_without_use): Likewise.
69115         (sc_prohibit_xalloc_without_use): Likewise.
69116         (sc_prohibit_hash_without_use): Likewise.
69117         (sc_prohibit_hash_pjw_without_use): Likewise.
69118         (sc_prohibit_safe_read_without_use): Likewise.
69119         (sc_prohibit_argmatch_without_use): Likewise.
69120         (sc_prohibit_canonicalize_without_use): Likewise.
69121         (sc_prohibit_root_dev_ino_without_use): Likewise.
69122         (sc_prohibit_openat_without_use): Likewise.
69123         (sc_prohibit_c_ctype_without_use): Likewise.
69124         (sc_prohibit_signal_without_use): Likewise.
69125         (sc_prohibit_intprops_without_use): Likewise.
69127 2010-03-30  Eric Blake  <eblake@redhat.com>
69129         maint: improve module indicators
69130         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
69131         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
69132         columns, and avoid extra macro expansion.
69134         fdopendir: work around FreeBSD bug
69135         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
69136         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
69137         * modules/dirent (Makefile.am): Substitute it.
69138         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
69139         declaration.
69140         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
69141         fix.
69142         Reported by Christian Weisgerber <naddy@mips.inka.de>.
69144 2010-03-29  Bruno Haible  <bruno@clisp.org>
69146         Emit #pragma system_header after the inclusion guard, not before.
69147         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
69148         guard that spans the entire file, not before. This enables an
69149         optimization in GCC's preprocessor.
69150         * lib/ctype.in.h: Likewise.
69151         * lib/dirent.in.h: Likewise.
69152         * lib/errno.in.h: Likewise.
69153         * lib/float.in.h: Likewise.
69154         * lib/getopt.in.h: Likewise.
69155         * lib/iconv.in.h: Likewise.
69156         * lib/langinfo.in.h: Likewise.
69157         * lib/locale.in.h: Likewise.
69158         * lib/math.in.h: Likewise.
69159         * lib/netdb.in.h: Likewise.
69160         * lib/netinet_in.in.h: Likewise.
69161         * lib/pty.in.h: Likewise.
69162         * lib/sched.in.h: Likewise.
69163         * lib/se-selinux.in.h: Likewise.
69164         * lib/search.in.h: Likewise.
69165         * lib/spawn.in.h: Likewise.
69166         * lib/stdarg.in.h: Likewise.
69167         * lib/stdint.in.h: Likewise.
69168         * lib/string.in.h: Likewise.
69169         * lib/strings.in.h: Likewise.
69170         * lib/sys_file.in.h: Likewise.
69171         * lib/sys_ioctl.in.h: Likewise.
69172         * lib/sys_time.in.h: Likewise.
69173         * lib/sys_times.in.h: Likewise.
69174         * lib/sys_utsname.in.h: Likewise.
69175         * lib/sys_wait.in.h: Likewise.
69176         * lib/sysexits.in.h: Likewise.
69177         * lib/wctype.in.h: Likewise.
69179 2010-03-28  James Youngman  <jay@gnu.org>
69181         save-cwd: don't leak a file descriptor when the caller execs.
69182         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
69183         saved file descriptor.
69184         * modules/save-cwd (Depends-on): Depend on cloexec.
69186 2010-03-29  Bruno Haible  <bruno@clisp.org>
69188         Remove vestiges of fts-lgpl module.
69189         * lib/fts_.h: Assume GNULIB_FTS is 1.
69190         * lib/fts.c: Likewise.
69191         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
69193 2010-03-28  Bruno Haible  <bruno@clisp.org>
69195         Fix definition of tests witness macro.
69196         * gnulib-tool (func_import): Fix definition of witness macro.
69198 2010-03-28  Bruno Haible  <bruno@clisp.org>
69200         Fix ioctl's protoype on glibc systems.
69201         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
69202         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
69203         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
69204         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
69205         signature. If not, arrange to replace the ioctl function.
69206         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
69207         REPLACE_IOCTL.
69208         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
69209         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
69210         Reported by Ludovic Courtès <ludo@gnu.org>.
69212 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
69214         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
69215         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
69216         made it so grep -r --include=GLOB* ... did not work.
69218 2010-03-26  Jim Meyering  <meyering@redhat.com>
69219             Eric Blake  <eblake@redhat.com>
69221         maint.mk: prohibit use of test's -o and -a operators
69222         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
69224 2010-03-28  Bruno Haible  <bruno@clisp.org>
69226         Remove unused GNULIB_XYZ macro definitions.
69227         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
69228         invocation.
69230 2010-03-28  Bruno Haible  <bruno@clisp.org>
69232         Mark privileged tests modules.
69233         * modules/idpriv-drop-tests (Status): New section.
69234         * modules/idpriv-droptemp-tests (Status): New section.
69236 2010-03-28  Bruno Haible  <bruno@clisp.org>
69238         Split C++ tests into separate tests modules.
69239         * modules/dirent-c++-tests: New file, extracted from
69240         modules/dirent-tests.
69241         * modules/dirent-tests: Depend on it.
69242         * modules/fcntl-h-c++-tests: New file, extracted from
69243         modules/fcntl-h-tests.
69244         * modules/fcntl-h-tests: Depend on it.
69245         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
69246         * modules/glob-tests: Depend on it.
69247         * modules/iconv-h-c++-tests: New file, extracted from
69248         modules/iconv-h-tests.
69249         * modules/iconv-h-tests: Depend on it.
69250         * modules/langinfo-c++-tests: New file, extracted from
69251         modules/langinfo-tests.
69252         * modules/langinfo-tests: Depend on it.
69253         * modules/locale-c++-tests: New file, extracted from
69254         modules/locale-tests.
69255         * modules/locale-tests: Depend on it.
69256         * modules/math-c++-tests: New file, extracted from modules/math-tests.
69257         * modules/math-tests: Depend on it.
69258         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
69259         * modules/pty-tests: Depend on it.
69260         * modules/search-c++-tests: New file, extracted from
69261         modules/search-tests.
69262         * modules/search-tests: Depend on it.
69263         * modules/signal-c++-tests: New file, extracted from
69264         modules/signal-tests.
69265         * modules/signal-tests: Depend on it.
69266         * modules/spawn-c++-tests: New file, extracted from
69267         modules/spawn-tests.
69268         * modules/spawn-tests: Depend on it.
69269         * modules/stdio-c++-tests: New file, extracted from
69270         modules/stdio-tests.
69271         * modules/stdio-tests: Depend on it.
69272         * modules/stdlib-c++-tests: New file, extracted from
69273         modules/stdlib-tests.
69274         * modules/stdlib-tests: Depend on it.
69275         * modules/string-c++-tests: New file, extracted from
69276         modules/string-tests.
69277         * modules/string-tests: Depend on it.
69278         * modules/sys_ioctl-c++-tests: New file, extracted from
69279         modules/sys_ioctl-tests.
69280         * modules/sys_ioctl-tests: Depend on it.
69281         * modules/sys_select-c++-tests: New file, extracted from
69282         modules/sys_select-tests.
69283         * modules/sys_select-tests: Depend on it.
69284         * modules/sys_socket-c++-tests: New file, extracted from
69285         modules/sys_socket-tests.
69286         * modules/sys_socket-tests: Depend on it.
69287         * modules/sys_stat-c++-tests: New file, extracted from
69288         modules/sys_stat-tests.
69289         * modules/sys_stat-tests: Depend on it.
69290         * modules/sys_time-c++-tests: New file, extracted from
69291         modules/sys_time-tests.
69292         * modules/sys_time-tests: Depend on it.
69293         * modules/time-c++-tests: New file, extracted from modules/time-tests.
69294         * modules/time-tests: Depend on it.
69295         * modules/unistd-c++-tests: New file, extracted from
69296         modules/unistd-tests.
69297         * modules/unistd-tests: Depend on it.
69298         * modules/wchar-c++-tests: New file, extracted from
69299         modules/wchar-tests.
69300         * modules/wchar-tests: Depend on it.
69301         * modules/wctype-c++-tests: New file, extracted from
69302         modules/wctype-tests.
69303         * modules/wctype-tests: Depend on it.
69304         Reported by Simon Josefsson.
69306 2010-03-28  Bruno Haible  <bruno@clisp.org>
69308         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
69309         * gnulib-tool (func_exists_module): New function, extracted from
69310         func_verify_module.
69311         (func_verify_module): Use it.
69312         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
69313         'foo' only if 'foo' exists.
69314         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
69315         module.
69317 2010-03-28  Bruno Haible  <bruno@clisp.org>
69319         gnulib-tool: Add support for special categories of tests.
69320         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
69321         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
69322         (func_usage): Document them.
69323         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
69324         inc_unportable_tests, inc_all_tests): New variables.
69325         (func_acceptable): Consider these variables.
69326         (func_modules_transitive_closure): Make it work when the 'Status' field
69327         consists of multiple words.
69328         (func_import): Store and restore the values of inc_cxx_tests,
69329         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
69330         inc_all_tests in gnulib-comp.m4.
69331         (func_create_testdir): Set inc_all_tests to true.
69332         * doc/gnulib.texi (Extra tests modules): New section.
69333         Suggested by Jim Meyering.
69335 2010-03-28  Bruno Haible  <bruno@clisp.org>
69337         ansi-c++-opt: Allow turning off the C++ build by default.
69338         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
69339         gl_CXX_CHOICE_DEFAULT_NO is defined.
69340         Requested by Eric Blake.
69342 2010-03-28  Bruno Haible  <bruno@clisp.org>
69344         unistd: Avoid #define replacements in C++ mode.
69345         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
69346         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
69347         setsockopt, shutdown, select): In C++, attach a warning to the function
69348         if possible, rather than #defining the symbol to a dysfunctional alias.
69349         Reported by John W. Eaton <jwe@gnu.org>.
69351 2010-03-28  Bruno Haible  <bruno@clisp.org>
69353         Fix link errors on mingw.
69354         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
69355         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
69356         $(LIBSOCKET).
69357         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
69358         $(LIBSOCKET).
69360 2010-03-28  Bruno Haible  <bruno@clisp.org>
69361             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69363         lib-ignore: Determine different options for different compilers.
69364         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
69365         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
69366         Add comments.
69367         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
69368         * NEWS: Mention the change.
69370 2010-03-27  Bruno Haible  <bruno@clisp.org>
69372         Remove unused GNULIB_XYZ macro definitions.
69373         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
69374         * modules/fseek (configure.ac): Likewise.
69375         * modules/ioctl (configure.ac): Likewise.
69376         * modules/open (configure.ac): Likewise.
69377         * modules/stdlib-safer (configure.ac): Likewise.
69379 2010-03-27  Bruno Haible  <bruno@clisp.org>
69381         Add a remark about certain modules.
69382         * modules/malloc (Comment): New section.
69383         * modules/realloc (Comment): Likewise.
69384         * modules/sigpipe (Comment): Likewise.
69386 2010-03-27  Bruno Haible  <bruno@clisp.org>
69388         Resolve conflict between the two kinds of module indicators.
69389         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
69390         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
69391         * modules/canonicalize (configure.ac): Invoke
69392         gl_MODULE_INDICATOR_FOR_TESTS.
69393         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
69394         GNULIB_XYZ.
69395         * tests/test-dirent-c++.cc: Likewise.
69396         * tests/test-dirent-safer.c: Likewise.
69397         * tests/test-dup2.c: Likewise.
69398         * tests/test-fchdir.c: Likewise.
69399         * tests/test-fcntl-h-c++.cc: Likewise.
69400         * tests/test-getopt.c: Likewise.
69401         * tests/test-getopt.h: Likewise.
69402         * tests/test-langinfo-c++.cc: Likewise.
69403         * tests/test-locale-c++.cc: Likewise.
69404         * tests/test-math-c++.cc: Likewise.
69405         * tests/test-pty-c++.cc: Likewise.
69406         * tests/test-search-c++.cc: Likewise.
69407         * tests/test-signal-c++.cc: Likewise.
69408         * tests/test-spawn-c++.cc: Likewise.
69409         * tests/test-stdio-c++.cc: Likewise.
69410         * tests/test-stdlib-c++.cc: Likewise.
69411         * tests/test-string-c++.cc: Likewise.
69412         * tests/test-sys_ioctl-c++.cc: Likewise.
69413         * tests/test-sys_select-c++.cc: Likewise.
69414         * tests/test-sys_socket-c++.cc: Likewise.
69415         * tests/test-sys_stat-c++.cc: Likewise.
69416         * tests/test-sys_time-c++.cc: Likewise.
69417         * tests/test-time-c++.cc: Likewise.
69418         * tests/test-unistd-c++.cc: Likewise.
69419         * tests/test-wchar-c++.cc: Likewise.
69420         * tests/uninorm/test-u8-nfc.c: Likewise.
69421         * tests/uninorm/test-u8-nfd.c: Likewise.
69422         * tests/uninorm/test-u8-nfkc.c: Likewise.
69423         * tests/uninorm/test-u8-nfkd.c: Likewise.
69424         * tests/uninorm/test-u16-nfc.c: Likewise.
69425         * tests/uninorm/test-u16-nfd.c: Likewise.
69426         * tests/uninorm/test-u16-nfkc.c: Likewise.
69427         * tests/uninorm/test-u16-nfkd.c: Likewise.
69428         * tests/uninorm/test-u32-nfc.c: Likewise.
69429         * tests/uninorm/test-u32-nfc-big.c: Likewise.
69430         * tests/uninorm/test-u32-nfd.c: Likewise.
69431         * tests/uninorm/test-u32-nfd-big.c: Likewise.
69432         * tests/uninorm/test-u32-nfkc.c: Likewise.
69433         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
69434         * tests/uninorm/test-u32-nfkd.c: Likewise.
69435         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
69436         * tests/uninorm/test-u32-normalize-big.c: Likewise.
69438 2010-03-27  Bruno Haible  <bruno@clisp.org>
69440         Distinguish two kinds of module indicators.
69441         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
69442         gl_MODULE_INDICATOR.
69443         (gl_MODULE_INDICATOR): New macro.
69444         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
69445         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
69446         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
69447         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
69448         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
69449         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
69450         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
69451         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
69452         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
69453         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
69454         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
69455         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
69456         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
69457         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
69458         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
69459         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
69460         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
69461         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
69462         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
69463         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
69464         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
69465         * modules/cloexec (configure.ac): Likewise.
69466         * modules/getopt-gnu (configure.ac): Likewise.
69467         * modules/uninorm/u8-normalize (configure.ac): Likewise.
69468         * modules/uninorm/u16-normalize (configure.ac): Likewise.
69469         * modules/uninorm/u32-normalize (configure.ac): Likewise.
69470         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
69472 2010-03-27  Bruno Haible  <bruno@clisp.org>
69474         New module description field 'Comment'.
69475         * gnulib-tool: New option --extract-comment.
69476         (func_usage): Document it.
69477         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
69478         (func_get_comment): New function.
69479         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
69481 2010-03-27  Bruno Haible  <bruno@clisp.org>
69483         Addendum to 2010-02-07 commit.
69484         * gnulib-tool (func_usage): Document --extract-applicability option.
69486 2010-03-27  Bruno Haible  <bruno@clisp.org>
69488         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
69489         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
69490         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
69491         rather than link errors.
69493 2010-03-27  Bruno Haible  <bruno@clisp.org>
69495         Avoid side effects from tests-related modules on the compilation of lib.
69496         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
69497         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
69498         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
69499         parameter. Emit into AM_CPPFLAGS a definition of the designated C
69500         macro.
69501         (func_import): Define a witness macro. Assign it a value that depends
69502         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
69503         tests-related modules.
69504         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
69505         Reported by Jim Meyering.
69507 2010-03-27  Bruno Haible  <bruno@clisp.org>
69509         Factorize common .m4 code.
69510         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
69511         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
69512         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
69513         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
69514         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
69515         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
69516         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
69517         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
69518         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
69519         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
69520         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
69521         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
69522         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
69523         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
69524         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
69525         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
69526         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
69527         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
69528         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
69529         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
69530         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
69531         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
69532         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
69533         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
69534         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
69535         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
69536         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
69537         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
69538         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
69539         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
69540         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
69541         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
69543 2010-03-27  Bruno Haible  <bruno@clisp.org>
69545         Fix a compilation error on Cygwin with g++ >= 4.3.
69546         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
69547         if it is undefined or if we alias it to chmod.
69548         (lstat): Don't warn about the use of this function if it is undefined
69549         or if we alias it to stat.
69550         Reported by Simon Josefsson.
69552 2010-03-27  Bruno Haible  <bruno@clisp.org>
69554         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
69555         * modules/getlogin (configure.ac): Update.
69557         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
69558         * modules/getlogin_r (configure.ac): Update.
69560         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
69561         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
69562         * modules/inet_ntop (configure.ac): Update.
69564         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
69565         * modules/inet_pton (configure.ac): Update.
69567         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
69568         * modules/mbslen (configure.ac): Update.
69570         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
69571         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
69572         * modules/forkpty (configure.ac): Update.
69573         * modules/openpty (configure.ac): Update.
69575 2010-03-26  Simon Josefsson  <simon@josefsson.org>
69577         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
69578         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
69580 2010-03-25  Eric Blake  <eblake@redhat.com>
69582         maint: use pragma consistently across replacement headers
69583         * lib/ctype.in.h (system_header): Hoist for consistent placement.
69584         * lib/dirent.in.h (system_header): Likewise.
69585         * lib/errno.in.h (system_header): Likewise.
69586         * lib/float.in.h (system_header): Likewise.
69587         * lib/getopt.in.h (system_header): Likewise.
69588         * lib/iconv.in.h (system_header): Likewise.
69589         * lib/inttypes.in.h (system_header): Likewise.
69590         * lib/langinfo.in.h (system_header): Likewise.
69591         * lib/locale.in.h (system_header): Likewise.
69592         * lib/math.in.h (system_header): Likewise.
69593         * lib/netdb.in.h (system_header): Likewise.
69594         * lib/netinet_in.in.h (system_header): Likewise.
69595         * lib/pty.in.h (system_header): Likewise.
69596         * lib/sched.in.h (system_header): Likewise.
69597         * lib/se-selinux.in.h (system_header): Likewise.
69598         * lib/search.in.h (system_header): Likewise.
69599         * lib/spawn.in.h (system_header): Likewise.
69600         * lib/stdarg.in.h (system_header): Likewise.
69601         * lib/stdint.in.h (system_header): Likewise.
69602         * lib/string.in.h (system_header): Likewise.
69603         * lib/strings.in.h (system_header): Likewise.
69604         * lib/sys_file.in.h (system_header): Likewise.
69605         * lib/sys_ioctl.in.h (system_header): Likewise.
69606         * lib/sys_socket.in.h (system_header): Likewise.
69607         * lib/sys_times.in.h (system_header): Likewise.
69608         * lib/sys_utsname.in.h (system_header): Likewise.
69609         * lib/sys_wait.in.h (system_header): Likewise.
69610         * lib/sysexits.in.h (system_header): Likewise.
69611         * lib/unistd.in.h (system_header): Likewise.
69612         * lib/wctype.in.h (system_header): Likewise.
69614         arpa/inet: fix mingw compilation warning
69615         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
69616         Reported by Matthew Bolte.
69618 2010-03-25  Bruno Haible  <bruno@clisp.org>
69620         Avoid collision between gnulib wrapper and libintl wrapper.
69621         * lib/printf.c (printf): Don't define if a printf wrapper is already
69622         defined in intl/printf.c.
69623         Reported by Michel Boaventura <michel@michelboaventura.com>.
69625 2010-03-25  Bruno Haible  <bruno@clisp.org>
69627         Use ANSI C.
69628         * lib/readutmp.h (getutent): Provide ANSI C prototype.
69630 2010-03-25  Bruno Haible  <bruno@clisp.org>
69632         Minor formatting changes.
69633         * lib/acosl.c: Insert space before function argument list.
69634         * lib/argz.c: Likewise.
69635         * lib/asinl.c: Likewise.
69636         * lib/expl.c: Likewise.
69637         * lib/gen-uni-tables.c: Likewise.
69638         * lib/gettext.h: Likewise.
69639         * lib/glthread/lock.h: Likewise.
69640         * lib/tanl.c: Likewise.
69641         * lib/uniname/uniname.c: Likewise.
69642         * tests/test-idpriv-drop.c: Likewise.
69643         * tests/test-idpriv-droptemp.c: Likewise.
69644         * tests/test-lock.c: Likewise.
69645         * tests/test-tls.c: Likewise.
69646         * lib/argp-help.c: Insert space before function-like macro argument
69647         list.
69648         * lib/memcmp.c: Likewise.
69649         * tests/test-base64.c: Likewise.
69650         * lib/localename.c: Insert space before sizeof's argument list.
69651         * lib/safe-alloc.h: Likewise.
69652         * lib/file-set.h: Insert space before macro argument list.
69653         * tests/test-argp.c: Likewise.
69654         * lib/argp-namefrob.h: Insert space before function parameter list.
69655         * lib/getaddrinfo.c: Likewise.
69656         * lib/netdb.in.h: Likewise.
69657         * lib/parse-duration.h: Likewise.
69658         * lib/parse-duration.c: Likewise.
69659         * lib/poll.c: Likewise.
69660         * lib/select.c: Likewise.
69661         * lib/trim.h: Likewise.
69662         * tests/test-usleep.c: Likewise.
69663         * lib/ldexpl.c: Insert space before function parameter list and before
69664         function argument list.
69665         * lib/logl.c: Likewise.
69666         * lib/sqrtl.c: Likewise.
69667         * lib/trim.c: Likewise.
69668         * lib/cosl.c: Use GNU style indentation. Insert space before function
69669         argument list.
69670         * lib/sinl.c: Likewise.
69671         * lib/tsearch.c: Insert space after 'for'.
69672         Reported by Jim Meyering.
69674 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
69676         * maint.mk (sc_Wundef_boolean): Check for the presence of the
69677         config header before grepping, as it's not present before
69678         autoreconf/configure are run.  Reported by Simon Josefsson.
69680 2010-03-23  Bruno Haible  <bruno@clisp.org>
69682         pt_chown: Make it work with automake < 1.11.
69683         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
69684         Reported by Simon Josefsson.
69686 2010-03-23  Bruno Haible  <bruno@clisp.org>
69688         pt_chown: Don't depend on GPLed modules.
69689         * lib/pt_chown.c: Don't include idpriv.h.
69690         (main): Don't drop privileges.
69691         * modules/pt_chown (Depends-on): Remove idpriv-drop.
69692         Reported by Simon Josefsson.
69694 2010-03-24  Simon Josefsson  <simon@josefsson.org>
69696         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
69697         suggestions from karl@freefriends.org (Karl Berry).
69699 2010-03-22  Eric Blake  <eblake@redhat.com>
69701         gethostname: further tweaks
69702         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
69703         are overriding gethostname.
69704         Suggested by Bruno Haible.
69706 2010-03-21  Bruno Haible  <bruno@clisp.org>
69708         Fix comments.
69709         * lib/forkpty.c (rpl_forkpty): Fix comment.
69710         * lib/openpty.c (rpl_openpty): Likewise.
69711         Reported by Eric Blake.
69713 2010-03-22  Eric Blake  <eblake@redhat.com>
69715         gethostname: fix build on mingw
69716         * lib/unistd.in.h (includes): Work around fact that mingw
69717         <winsock2.h> re-includes <unistd.h>, by avoiding any
69718         redeclarations if we are being included by <winsock2.h>.
69719         Reported by Matthias Bolte.
69721 2010-03-21  Bruno Haible  <bruno@clisp.org>
69723         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
69724         * lib/forkpty.c (forkpty): New replacement function, from glibc with
69725         modifications.
69726         * lib/pty.in.h (forkpty): Update declaration. Add comments.
69727         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
69728         provide the replacement.
69729         * modules/forkpty (Depends-on): Add openpty, login_tty.
69730         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
69731         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
69732         * doc/glibc-functions/forkpty.texi: More supported platforms.
69733         * config/srclist.txt: Add forkpty.c (commented).
69735 2010-03-21  Bruno Haible  <bruno@clisp.org>
69737         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
69738         (Makefile.am): Verify that PTY_LIB is defined.
69740         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
69742 2010-03-21  Bruno Haible  <bruno@clisp.org>
69744         Tests for module 'login_tty'.
69745         * modules/login_tty-tests: New file.
69746         * tests/test-login_tty.c: New file.
69748         New module 'login_tty'.
69749         * lib/login_tty.c: New file.
69750         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
69751         * modules/login_tty: New file.
69752         * doc/glibc-functions/login_tty.texi: Mention the new module.
69754 2010-03-21  Bruno Haible  <bruno@clisp.org>
69756         login_tty: Documentation.
69757         * doc/glibc-functions/login_tty.texi: New file.
69758         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
69760 2010-03-21  Bruno Haible  <bruno@clisp.org>
69762         pty: Consistent macro naming.
69763         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
69764         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
69765         * modules/pty (configure.ac): Update.
69767 2010-03-21  Bruno Haible  <bruno@clisp.org>
69769         Tests for openpty: Make stricter.
69770         * tests/test-openpty.c (main): Add test of canonical processing and
69771         erase.
69772         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
69774         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
69775         * lib/openpty.c (openpty): New replacement function.
69776         * lib/pty.in.h: Include <termios.h>.
69777         (openpty): Update declaration. Add comments.
69778         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
69779         is not declared, arrange to provide the replacement. Check for _getpty
69780         and posix_openpt.
69781         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
69782         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
69783         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
69784         * modules/pty-tests (test_pty_c___LDADD): New variable.
69785         * doc/glibc-functions/openpty.texi: More supported platforms.
69787 2010-03-21  Bruno Haible  <bruno@clisp.org>
69789         setenv: Tweaks.
69790         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
69791         the test program.
69792         * doc/posix-functions/setenv.texi: Update platforms list.
69794 2010-03-21  Bruno Haible  <bruno@clisp.org>
69796         New module 'unlockpt'.
69797         * lib/unlockpt.c: New file, from glibc with modifications.
69798         * m4/unlockpt.m4: New file.
69799         * modules/unlockpt: New file.
69800         * lib/stdlib.in.h (unlockpt): New declaration.
69801         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
69802         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
69803         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
69804         HAVE_UNLOCKPT.
69805         * doc/posix-functions/unlockpt.texi: Mention the new module.
69806         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
69807         * config/srclist.txt: Add unlockpt.c (commented).
69809 2010-03-21  Jim Meyering  <meyering@redhat.com>
69811         maint.mk: prohibit inclusion of "intprops.h" without use
69812         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
69814 2010-03-21  Bruno Haible  <bruno@clisp.org>
69816         New module 'grantpt'.
69817         * lib/grantpt.c: New file, from glibc with modifications.
69818         * m4/grantpt.m4: New file.
69819         * modules/grantpt: New file.
69820         * lib/stdlib.in.h (grantpt): New declaration.
69821         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
69822         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
69823         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
69824         HAVE_GRANTPT.
69825         * doc/posix-functions/grantpt.texi: Mention the new module.
69826         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
69827         * config/srclist.txt: Add grantpt.c (commented).
69829 2010-03-21  Bruno Haible  <bruno@clisp.org>
69831         New module 'pt_chown'.
69832         * lib/pt_chown.c: New file, from glibc with modifications.
69833         * lib/pty-private.h: New file, from glibc with modifications.
69834         * modules/pt_chown: New file.
69835         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
69837 2010-03-21  Bruno Haible  <bruno@clisp.org>
69839         Tests for module 'ptsname'.
69840         * modules/ptsname-tests: New file.
69841         * tests/test-ptsname.c: New file.
69843         New module 'ptsname'.
69844         * lib/ptsname.c: New file, from glibc with modifications.
69845         * m4/ptsname.m4: New file.
69846         * modules/ptsname: New file.
69847         * lib/stdlib.in.h (ptsname): New declaration.
69848         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
69849         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
69850         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
69851         HAVE_PTSNAME.
69852         * doc/posix-functions/ptsname.texi: Mention the new module.
69853         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
69854         * config/srclist.txt: Add ptsname.c (commented).
69856 2010-03-21  Bruno Haible  <bruno@clisp.org>
69858         Tests for module 'ttyname_r'.
69859         * modules/ttyname_r-tests: New file.
69860         * tests/test-ttyname_r.c: New file.
69862         New module 'ttyname_r'.
69863         * lib/ttyname_r.c: New file.
69864         * m4/ttyname_r.m4: New file.
69865         * modules/ttyname_r: New file.
69866         * lib/unistd.in.h (ttyname_r): New declaration.
69867         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
69868         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
69869         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
69870         HAVE_TTYNAME_R.
69871         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
69872         * doc/posix-functions/ttyname_r.texi: Mention the new module.
69874 2010-03-20  Bruno Haible  <bruno@clisp.org>
69876         signal: Undefine macro definitions in C++ mode.
69877         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
69878         sigfillset): Undefine macro definitions from the system header in C++
69879         mode.
69880         Reported by John W. Eaton <jwe@gnu.org>.
69882 2010-03-20  Bruno Haible  <bruno@clisp.org>
69884         Ensure no #include statements inside extern "C" { ... }.
69885         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
69886         contain #include statements.
69887         * lib/time.in.h: Likewise.
69889 2010-03-20  Bruno Haible  <bruno@clisp.org>
69891         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
69892         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
69893         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
69894         Reported by John W. Eaton <jwe@gnu.org>.
69896 2010-03-20  Bruno Haible  <bruno@clisp.org>
69898         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
69899         Reported by Jim Meyering.
69901 2010-03-20  Bruno Haible  <bruno@clisp.org>
69903         pipe: Set errno upon failure.
69904         * lib/pipe.h: Specify that when -1 is returned, errno is set.
69905         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
69906         errno value in error message.
69908 2010-03-20  Bruno Haible  <bruno@clisp.org>
69909             Jim Meyering  <meyering@redhat.com>
69911         lchown: Avoid "unused variable" warning.
69912         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
69914 2010-03-20  Bruno Haible  <bruno@clisp.org>
69916         Work around unlink() bug on MacOS X 10.5.6.
69917         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
69918         attempting to unlink a parent directory.
69919         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
69920         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
69921         activate for the replacement function.
69922         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
69924 2010-03-20  Bruno Haible  <bruno@clisp.org>
69926         Fix link errors on Solaris 8.
69927         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
69928         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
69930 2010-03-19  Jim Meyering  <meyering@redhat.com>
69932         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
69933         The _LIBC implementation of build_range_exp correctly honors the
69934         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
69935         However, the non-_LIBC implementation would ignore that syntax-bit
69936         flag and return REG_ERANGE unconditionally.
69937         This change makes it honor that flag.
69938         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
69939         Make two pointer parameters "const".
69940         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
69941         (parse_bracket_exp): Update caller.
69943         regex.m4: correct the reversed range endpoint ([b-a]) test
69944         * m4/regex.m4: When requiring that [b-a] evoke failure,
69945         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
69946         test pass once again for x86-based systems.
69948 2010-03-19  Bruno Haible  <bruno@clisp.org>
69950         scandir: Fix link error on Solaris 8.
69951         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
69952         macros.
69954 2010-03-19  Bruno Haible  <bruno@clisp.org>
69956         getusershell: Fix documentation.
69957         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
69958         module.
69959         * doc/glibc-functions/setusershell.texi: Likewise.
69961         getusershell: Provide declaration, missing on Solaris 9.
69962         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
69963         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
69964         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
69965         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
69966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
69967         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
69968         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
69969         HAVE_GETUSERSHELL.
69970         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
69972 2010-03-19  Bruno Haible  <bruno@clisp.org>
69974         wctype: Provide iswblank function.
69975         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
69976         exists and is fine.
69977         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
69978         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
69979         * tests/test-wctype.c (main): Re-enable the iswblank tests.
69980         * doc/posix-functions/iswblank.texi: Update.
69982 2010-03-19  Bruno Haible  <bruno@clisp.org>
69984         Tests of module 'pty' in C++ mode.
69985         * modules/pty-tests: New file.
69986         * tests/test-pty-c++.cc: New file.
69987         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
69989 2010-03-19  Eric Blake  <eblake@redhat.com>
69991         logb: fix documentation
69992         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
69993         1.5 declaration bug.
69995         forkpty, openpty: prefer glibc's const-safe prototype
69996         * lib/forkpty.c (rpl_forkpty): New file.
69997         * lib/openpty.c (rpl_openpty): Likewise.
69998         * modules/forkpty (Files): Distribute it.
69999         * modules/openpty (Files): Likewise.
70000         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
70001         check...
70002         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
70003         replacement for non-const BSD signature.
70004         * modules/pty (Makefile.am): Substitute witnesses.
70005         * lib/pty.in.h (forkpty, openpty): Declare replacements.
70006         * tests/test-forkpty.c: Update signature check.
70007         * tests/test-openpty.c: Likewise.
70008         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
70009         * doc/glibc-functions/openpty.texi (openpty): Likewise.
70011         forkpty, openpty: split functions into new modules
70012         * modules/pty (Makefile.am): Substitute new witnesses.
70013         (Libraries): Move library detection...
70014         * modules/forkpty: ...into new module.
70015         * modules/openpty: Another new module.
70016         * modules/pty-tests: Rename and split...
70017         * modules/forkpty-tests: ...to this...
70018         * modules/openpty-tests: ...and this.
70019         * tests/test-pty.c: Rename and split...
70020         * tests/test-forkpty.c: ...to this...
70021         * tests/test-openpty.c: ...and this.
70022         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
70023         (gl_PTY): Split library searching...
70024         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
70025         (gl_FORKPTY, gl_OPENPTY): New macros.
70026         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
70027         * NEWS: Mention the split.
70028         * MODULES.html.sh (Misc): Document the modules.
70029         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
70030         * doc/glibc-functions/openpty.texi (openpty): Likewise.
70032         pty: improve replacement header
70033         * lib/pty.in.h: New file.
70034         * modules/pty (Files): Ship it.
70035         (Makefile.am): Always build replacement.
70036         * m4/pty.m4: Rename...
70037         * m4/pty_h.m4: ...to this.
70038         (gl_PTY): Modernize setting of witness macros; update check of
70039         forkpty to take proper advantage of cache.
70040         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
70042         getopt: avoid compiler warning
70043         * lib/getopt.c (attribute_hidden): Remove unused macro.
70045 2010-03-18  Bruno Haible  <bruno@clisp.org>
70047         Fix link errors on Solaris 8.
70048         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
70049         * modules/search-tests (test_search_c___LDADD): Likewise.
70050         * modules/signal-tests (test_signal_c___LDADD): Likewise.
70051         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
70052         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
70053         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
70054         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
70055         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
70056         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
70058 2010-03-18  Bruno Haible  <bruno@clisp.org>
70060         Fix bug introduced on 2010-03-14.
70061         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
70062         (gl_SPAWN_H): Require it.
70063         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
70064         Reported by Simon Josefsson.
70066 2010-03-18  Bruno Haible  <bruno@clisp.org>
70068         Fix typo introduced on 2009-12-31.
70069         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
70070         posix_spawn_file_actions_adddup2.
70072 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
70073         and Eric Blake  <eblake@redhat.com>
70075         test-vc-list-files-git: make more robust
70076         * tests/test-vc-list-files-git.sh: Unset problematic environment
70077         variables.  Chain commands together.
70079 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
70081         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
70082         `AC_CHECK_DECL' invocation.
70084 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
70086         * lib/inttostr.c (inttostr): Make sure the invocation of verify
70087         appears before executable statements. Suggested by Petr Sumbera
70088         <Petr.Sumbera@Sun.COM>.
70090 2010-03-14  Bruno Haible  <bruno@clisp.org>
70092         * tests/test-flock.c (test_exclusive): Comment out a test that causes
70093         portability problems. Instead use a simpler test.
70094         (main): Check that invalid arguments are rejected only on Linux.
70096 2010-03-14  Bruno Haible  <bruno@clisp.org>
70098         Fix bug introduced on 2009-12-31.
70099         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
70100         gl_PREREQ_SYS_H_WINSOCK2 always.
70101         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
70102         SYS_SOCKET_H variable.
70103         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
70104         Update comments.
70105         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
70106         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
70107         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
70108         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
70109         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
70111 2010-03-14  Bruno Haible  <bruno@clisp.org>
70113         Fix values returned by sinl, cosl.
70114         * lib/trigl.h: Add specification comments.
70115         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
70116         that combines the values from the precomputed table with the values of
70117         the Chebyshev polynomials.
70119 2010-03-14  Bruno Haible  <bruno@clisp.org>
70121         Fix compilation error when modules 'posix_spawn[p]' are not used.
70122         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
70123         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
70125 2010-03-14  Bruno Haible  <bruno@clisp.org>
70127         Fix compilation error on mingw when module 'time_r' is not used.
70128         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
70129         is 1.
70130         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
70131         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
70132         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
70133         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
70135 2010-03-14  Bruno Haible  <bruno@clisp.org>
70137         Fix compilation error with Sun C.
70138         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
70139         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
70140         instead of GCC specific ULONG_LONG_MAX.
70141         * lib/xstrtoll.c: Likewise.
70142         * lib/xstrtoull.c: Likewise.
70144 2010-03-13  Bruno Haible  <bruno@clisp.org>
70146         Allow the user to disable C++ code and tests.
70147         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
70148         (gl_PROG_ANSI_CXX): Require it.
70150 2010-03-13  Bruno Haible  <bruno@clisp.org>
70152         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
70153         cases.
70155 2010-03-13  Bruno Haible  <bruno@clisp.org>
70157         Test that gnulib does not break the standard C++ headers.
70158         * tests/test-locale-c++2.cc: New file.
70159         * modules/locale-tests (Files): Add it.
70160         (Makefile.am): Compile it for test-locale-c++.
70161         * tests/test-math-c++2.cc: New file.
70162         * modules/math-tests (Files): Add it.
70163         (Makefile.am): Compile it for test-math-c++.
70164         * tests/test-signal-c++2.cc: New file.
70165         * modules/signal-tests (Files): Add it.
70166         (Makefile.am): Compile it for test-signal-c++.
70167         * tests/test-stdio-c++2.cc: New file.
70168         * modules/stdio-tests (Files): Add it.
70169         (Makefile.am): Compile it for test-stdio-c++.
70170         * tests/test-stdlib-c++2.cc: New file.
70171         * modules/stdlib-tests (Files): Add it.
70172         (Makefile.am): Compile it for test-stdlib-c++.
70173         * tests/test-string-c++2.cc: New file.
70174         * modules/string-tests (Files): Add it.
70175         (Makefile.am): Compile it for test-string-c++.
70176         * tests/test-time-c++2.cc: New file.
70177         * modules/time-tests (Files): Add it.
70178         (Makefile.am): Compile it for test-time-c++.
70179         Reported by John W. Eaton <jwe@gnu.org>.
70181 2010-03-13  Bruno Haible  <bruno@clisp.org>
70183         * gnulib-tool (func_usage): Clarify which options are available for
70184         --create-testdir and --create-megatestdir.
70186 2010-03-13  Bruno Haible  <bruno@clisp.org>
70188         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
70189         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
70190         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
70191         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
70192         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
70193         when appropriate.
70194         Reported by Jim Meyering.
70196 2010-03-12  Simon Josefsson  <simon@josefsson.org>
70198         * gnulib-tool (func_import): Explain origin of code.
70200 2010-03-12  Bruno Haible  <bruno@clisp.org>
70202         Fix problem with automake's definition of CXXLINK.
70203         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
70204         Reported by Simon Josefsson and Ludovic Courtès.
70206 2010-03-12  Bruno Haible  <bruno@clisp.org>
70208         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
70209         stable releases.
70211 2010-03-11  Bruno Haible  <bruno@clisp.org>
70213         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
70214         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
70215         whether the system provides one variant or multiple variants of the
70216         function.
70217         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
70218         C++ compilers.
70219         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
70220         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
70221         Reported by Jim Meyering.
70223 2010-03-09  Simon Josefsson  <simon@josefsson.org>
70225         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
70227 2010-03-08  Bruno Haible  <bruno@clisp.org>
70229         gnulib-tool: Add support for --libtool in --create-testdir.
70230         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
70231         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
70233 2010-03-08  Eric Blake  <eblake@redhat.com>
70235         gnulib-tool.texi: mention possibility of git submodule
70236         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
70237         submodules.
70238         * doc/.gitignore: Ignore another generated file.
70240 2010-03-08  Karl Berry  <karl@gnu.org>
70242         * doc/gnulib-tool.texi (VCS Issues): Mention third option
70243         of committing gnulib files while skipping others.
70245 2010-03-07  Bruno Haible  <bruno@clisp.org>
70247         Tests of module 'wctype' in C++ mode.
70248         * tests/test-wctype-c++.cc: New file.
70249         * modules/wctype-tests (Files): Add it and tests/signature.h.
70250         (Depends-on): Add ansi-c++-opt.
70251         (Makefile.am): Arrange to compile and run test-wctype-c++.
70253         Tests of module 'wchar' in C++ mode.
70254         * tests/test-wchar-c++.cc: New file.
70255         * modules/wchar-tests (Files): Add it and tests/signature.h.
70256         (Depends-on): Add ansi-c++-opt.
70257         (Makefile.am): Arrange to compile and run test-wchar-c++.
70258         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
70259         gl_MODULE_INDICATOR.
70261         Tests of module 'unistd' in C++ mode.
70262         * tests/test-unistd-c++.cc: New file.
70263         * modules/unistd-tests (Files): Add it and tests/signature.h.
70264         (Depends-on): Add ansi-c++-opt.
70265         (Makefile.am): Arrange to compile and run test-unistd-c++.
70266         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
70267         gl_MODULE_INDICATOR.
70269         Tests of module 'time' in C++ mode.
70270         * tests/test-time-c++.cc: New file.
70271         * modules/time-tests (Files): Add it and tests/signature.h.
70272         (Depends-on): Add ansi-c++-opt.
70273         (Makefile.am): Arrange to compile and run test-time-c++.
70274         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
70276         Tests of module 'sys_time' in C++ mode.
70277         * tests/test-sys_time-c++.cc: New file.
70278         * modules/sys_time-tests (Files): Add it and tests/signature.h.
70279         (Depends-on): Add ansi-c++-opt.
70280         (Makefile.am): Arrange to compile and run test-sys_time-c++.
70281         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
70282         gl_MODULE_INDICATOR.
70284         Tests of module 'sys_stat' in C++ mode.
70285         * tests/test-sys_stat-c++.cc: New file.
70286         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
70287         (Depends-on): Add ansi-c++-opt.
70288         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
70289         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
70290         gl_MODULE_INDICATOR.
70292         Tests of module 'sys_socket' in C++ mode.
70293         * tests/test-sys_socket-c++.cc: New file.
70294         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
70295         (Depends-on): Add ansi-c++-opt.
70296         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
70297         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
70298         gl_MODULE_INDICATOR.
70300         Tests of module 'sys_select' in C++ mode.
70301         * tests/test-sys_select-c++.cc: New file.
70302         * modules/sys_select-tests (Files): Add it and tests/signature.h.
70303         (Depends-on): Add ansi-c++-opt.
70304         (Makefile.am): Arrange to compile and run test-sys_select-c++.
70305         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
70306         gl_MODULE_INDICATOR.
70308         Tests of module 'sys_ioctl' in C++ mode.
70309         * tests/test-sys_ioctl-c++.cc: New file.
70310         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
70311         (Depends-on): Add ansi-c++-opt.
70312         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
70313         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
70314         gl_MODULE_INDICATOR.
70316         Tests of module 'string' in C++ mode.
70317         * tests/test-string-c++.cc: New file.
70318         * modules/string-tests (Files): Add it and tests/signature.h.
70319         (Depends-on): Add ansi-c++-opt.
70320         (Makefile.am): Arrange to compile and run test-string-c++.
70321         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
70322         gl_MODULE_INDICATOR.
70324         Tests of module 'stdlib' in C++ mode.
70325         * tests/test-stdlib-c++.cc: New file.
70326         * modules/stdlib-tests (Files): Add it and tests/signature.h.
70327         (Depends-on): Add ansi-c++-opt.
70328         (Makefile.am): Arrange to compile and run test-stdlib-c++.
70329         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
70330         gl_MODULE_INDICATOR.
70332         Tests of module 'stdio' in C++ mode.
70333         * tests/test-stdio-c++.cc: New file.
70334         * modules/stdio-tests (Files): Add it and tests/signature.h.
70335         (Depends-on): Add ansi-c++-opt.
70336         (Makefile.am): Arrange to compile and run test-stdio-c++.
70337         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
70338         gl_MODULE_INDICATOR.
70340         Tests of module 'spawn' in C++ mode.
70341         * tests/test-spawn-c++.cc: New file.
70342         * modules/spawn-tests (Files): Add it and tests/signature.h.
70343         (Depends-on): Add ansi-c++-opt.
70344         (Makefile.am): Arrange to compile and run test-spawn-c++.
70345         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
70346         gl_MODULE_INDICATOR.
70348         Tests of module 'signal' in C++ mode.
70349         * tests/test-signal-c++.cc: New file.
70350         * modules/signal-tests (Files): Add it and tests/signature.h.
70351         (Depends-on): Add ansi-c++-opt.
70352         (Makefile.am): Arrange to compile and run test-signal-c++.
70353         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
70354         gl_MODULE_INDICATOR.
70356         Tests of module 'search' in C++ mode.
70357         * tests/test-search-c++.cc: New file.
70358         * modules/search-tests (Files): Add it and tests/signature.h.
70359         (Depends-on): Add ansi-c++-opt.
70360         (Makefile.am): Arrange to compile and run test-search-c++.
70361         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
70362         gl_MODULE_INDICATOR.
70364         Tests of module 'math' in C++ mode.
70365         * tests/test-math-c++.cc: New file.
70366         * modules/math-tests (Files): Add it and tests/signature.h.
70367         (Depends-on): Add ansi-c++-opt.
70368         (Makefile.am): Arrange to compile and run test-math-c++.
70369         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
70371         Tests of module 'locale' in C++ mode.
70372         * tests/test-locale-c++.cc: New file.
70373         * modules/locale-tests (Files): Add it and tests/signature.h.
70374         (Depends-on): Add ansi-c++-opt.
70375         (Makefile.am): Arrange to compile and run test-locale-c++.
70376         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
70377         gl_MODULE_INDICATOR.
70379         Tests of module 'langinfo' in C++ mode.
70380         * tests/test-langinfo-c++.cc: New file.
70381         * modules/langinfo-tests (Files): Add it and tests/signature.h.
70382         (Depends-on): Add ansi-c++-opt.
70383         (Makefile.am): Arrange to compile and run test-langinfo-c++.
70384         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
70385         gl_MODULE_INDICATOR.
70387         Tests of module 'iconv-h' in C++ mode.
70388         * tests/test-iconv-h-c++.cc: New file.
70389         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
70390         (Depends-on): Add ansi-c++-opt.
70391         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
70393         Tests of module 'glob' in C++ mode.
70394         * tests/test-glob-c++.cc: New file.
70395         * modules/glob-tests (Files): Add it.
70396         (Depends-on): Add ansi-c++-opt.
70397         (Makefile.am): Arrange to compile and run test-glob-c++.
70399         Tests of module 'fcntl-h' in C++ mode.
70400         * tests/test-fcntl-h-c++.cc: New file.
70401         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
70402         (Depends-on): Add ansi-c++-opt.
70403         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
70404         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
70405         gl_MODULE_INDICATOR.
70407         Tests of module 'dirent' in C++ mode.
70408         * tests/test-dirent-c++.cc: New file.
70409         * modules/dirent-tests (Files): Add it and tests/signature.h.
70410         (Depends-on): Add ansi-c++-opt.
70411         (Makefile.am): Arrange to compile and run test-dirent-c++.
70412         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
70413         gl_MODULE_INDICATOR.
70415         New module 'ansi-c++-opt'.
70416         * modules/ansi-c++-opt: New file.
70417         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
70419         Document C++ namespace mode.
70420         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
70422         wctype: Avoid #define replacements in C++ mode.
70423         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
70424         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
70425         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
70426         In C++, define a namespaced alias symbol.
70427         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
70428         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
70429         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
70430         rule.
70432         wchar: Avoid #define replacements in C++ mode.
70433         * lib/wchar.in.h: Include c++defs.h.
70434         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
70435         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
70436         symbol.
70437         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
70438         * modules/wchar (Depends-on): Add c++defs.
70439         (Makefile.am): Update wchar.h rule.
70441         unistd: Avoid #define replacements in C++ mode.
70442         * lib/unistd.in.h: Include c++defs.h.
70443         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
70444         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
70445         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
70446         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
70447         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
70448         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
70449         symbol.
70450         (environ): Update.
70451         * modules/unistd (Depends-on): Add c++defs.
70452         (Makefile.am): Update unistd.h rule.
70454         time: Avoid #define replacements in C++ mode.
70455         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
70456         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
70457         define a namespaced alias symbol.
70458         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
70459         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
70460         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
70461         * modules/time (Depends-on): Add c++defs, warn-on-use.
70462         (Makefile.am): Update time.h rule.
70463         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
70464         * modules/nanosleep (configure.ac): Likewise.
70465         * modules/strptime (configure.ac): Likewise.
70466         * modules/timegm (configure.ac): Likewise.
70468         sys_time: Avoid #define replacements in C++ mode.
70469         * lib/sys_time.in.h: Include c++defs.h.
70470         (gettimeofday): In C++, define a namespaced alias symbol.
70471         * modules/sys_time (Depends-on): Add c++defs.
70472         (Makefile.am): Update sys/time.h rule.
70474         sys_stat: Avoid #define replacements in C++ mode.
70475         * lib/sys_stat.in.h: Include c++defs.h.
70476         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
70477         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
70478         namespaced alias symbol.
70479         In C++, define a namespaced alias symbol.
70480         * modules/sys_stat (Depends-on): Add c++defs.
70481         (Makefile.am): Update sys/stat.h rule.
70483         sys_socket: Avoid #define replacements in C++ mode.
70484         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
70485         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
70486         definitions also when the system has a <sys/socket.h>.
70487         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
70488         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
70489         In C++, define a namespaced alias symbol.
70490         * modules/sys_socket (Depends-on): Add c++defs.
70491         (Makefile.am): Update sys/socket.h rule.
70493         sys_select: Avoid #define replacements in C++ mode.
70494         * lib/sys_select.in.h: Include c++defs.h. Enable the function
70495         definitions also when the system has a <sys/select.h>.
70496         (select): In C++, define a namespaced alias symbol.
70497         * modules/sys_select (Depends-on): Add c++defs.
70498         (Makefile.am): Update sys/select.h rule.
70500         sys_ioctl: Avoid #define replacements in C++ mode.
70501         * lib/sys_ioctl.in.h: Include c++defs.h.
70502         (ioctl): In C++, define a namespaced alias symbol.
70503         * modules/sys_ioctl (Depends-on): Add c++defs.
70504         (Makefile.am): Update sys/ioctl.h rule.
70506         string: Avoid #define replacements in C++ mode.
70507         * lib/string.in.h: Include c++defs.h.
70508         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
70509         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
70510         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
70511         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
70512         strsignal, strverscmp): In C++, define a namespaced alias symbol.
70513         * modules/string (Depends-on): Add c++defs.
70514         (Makefile.am): Update string.h rule.
70516         stdlib: Avoid #define replacements in C++ mode.
70517         * lib/stdlib.in.h: Include c++defs.h.
70518         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
70519         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
70520         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
70521         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
70522         symbol.
70523         * modules/stdlib (Depends-on): Add c++defs.
70524         (Makefile.am): Update stdlib.h rule.
70526         stdio: Avoid #define replacements in C++ mode.
70527         * lib/stdio.in.h: Include c++defs.h.
70528         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
70529         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
70530         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
70531         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
70532         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
70533         namespaced alias symbol.
70534         * modules/stdio (Depends-on): Add c++defs.
70535         (Makefile.am): Update stdio.h rule.
70537         spawn: Avoid #define replacements in C++ mode.
70538         * lib/spawn.in.h: Include c++defs.h.
70539         (posix_spawn, posix_spawnp, posix_spawnattr_init,
70540         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
70541         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
70542         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
70543         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
70544         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
70545         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
70546         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
70547         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
70548         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
70549         In C++, define a namespaced alias symbol.
70550         * modules/spawn (Depends-on): Add c++defs.
70551         (Makefile.am): Update spawn.h rule.
70553         signal: Avoid #define replacements in C++ mode.
70554         * lib/signal.in.h: Include c++defs.h.
70555         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
70556         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
70557         namespaced alias symbol.
70558         * modules/signal (Depends-on): Add c++defs.
70559         (Makefile.am): Update signal.h rule.
70561         search: Avoid #define replacements in C++ mode.
70562         * lib/search.in.h: Include c++defs.h.
70563         (_gl_search_compar_fn, _gl_search_action_fn): New types.
70564         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
70565         symbol.
70566         * modules/search (Depends-on): Add c++defs.
70567         (Makefile.am): Update search.h rule.
70569         math: Avoid #define replacements in C++ mode.
70570         * lib/math.in.h: Include c++defs.h.
70571         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
70572         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
70573         trunc, truncl): In C++, define a namespaced alias symbol.
70574         * modules/math (Depends-on): Add c++defs.
70575         (Makefile.am): Update math.h rule.
70577         locale: Avoid #define replacements in C++ mode.
70578         * lib/locale.in.h: Include c++defs.h.
70579         (duplocale): In C++, define a namespaced alias symbol.
70580         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
70581         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
70582         * modules/locale (Depends-on): Add c++defs.
70583         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
70585         langinfo: Avoid #define replacements in C++ mode.
70586         * lib/langinfo.in.h: Include c++defs.h.
70587         (nl_langinfo): In C++, define a namespaced alias symbol.
70588         * modules/langinfo (Depends-on): Add c++defs.
70589         (Makefile.am): Update langinfo.h rule.
70591         iconv-h: Avoid #define replacements in C++ mode.
70592         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
70593         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
70594         symbol.
70595         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
70596         whenever iconv is present.
70597         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
70598         (Makefile.am): Update iconv.h rule.
70600         glob: Avoid #define replacements in C++ mode.
70601         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
70602         (_gl_glob_errfunc_fn): New type.
70603         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
70604         symbol.
70605         * modules/glob (Depends-on): Add c++defs, warn-on-use.
70606         (Makefile.am): Update glob.h rule.
70608         fcntl-h: Avoid #define replacements in C++ mode.
70609         * lib/fcntl.in.h: Include c++defs.h.
70610         (fcntl, open, openat): In C++, define a namespaced alias symbol.
70611         * modules/fcntl-h (Depends-on): Add c++defs.
70612         (Makefile.am): Update fcntl.h rule.
70614         dirent: Avoid #define replacements in C++ mode.
70615         * lib/dirent.in.h: Include c++defs.h.
70616         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
70617         namespaced alias symbol.
70618         (dirfd): Update declaration.
70619         * modules/dirent (Depends-on): Add c++defs.
70620         (Makefile.am): Update dirent.h rule.
70622         ctype: Make it usable in C++ code.
70623         * lib/ctype.in.h: Include c++defs.h.
70624         (isblank): Declare as extern "C".
70625         * modules/ctype (Depends-on): Add c++defs.
70626         (Makefile.am): Update ctype.h rule.
70628         New module 'c++defs'.
70629         * modules/c++defs: New file.
70630         * build-aux/c++defs.h: New file.
70631         Reported by John W. Eaton <jwe@gnu.org>.
70633 2010-03-07  Bruno Haible  <bruno@clisp.org>
70635         logb: Provide missing declaration for Cygwin.
70636         * lib/math.in.h (logb): New declaration.
70637         * m4/logb.m4: New file.
70638         * modules/logb (Files): Add m4/logb.m4.
70639         (Depends-on): Add math.
70640         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
70641         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
70642         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
70643         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
70644         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
70646 2010-03-07  Bruno Haible  <bruno@clisp.org>
70648         Fix test-cond link error.
70649         * tests/test-cond.c: Include <stdio.h>.
70651 2010-03-07  Bruno Haible  <bruno@clisp.org>
70653         Fix test-dirent-safer link error.
70654         * modules/dirent-safer-tests (Makefile.am): Define
70655         test_dirent_safer_LDADD.
70657 2010-03-07  Bruno Haible  <bruno@clisp.org>
70659         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
70660         among default module list.
70662 2010-03-07  Bruno Haible  <bruno@clisp.org>
70664         Fix link error on platforms with GNU libiconv.
70665         * modules/unistr/u8-strcoll-tests (Makefile): Define
70666         test_u8_strcoll_LDADD.
70667         * modules/unistr/u16-strcoll-tests (Makefile): Define
70668         test_u16_strcoll_LDADD.
70669         * modules/unistr/u32-strcoll-tests (Makefile): Define
70670         test_u32_strcoll_LDADD.
70672 2010-03-07  Bruno Haible  <bruno@clisp.org>
70674         Use POSIX declarations for socket functions.
70675         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
70676         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
70677         rpl_sendto): Change declaration to match POSIX.
70678         * lib/connect.c (rpl_connect): Likewise.
70679         * lib/accept.c (rpl_accept): Likewise.
70680         * lib/bind.c (rpl_bind): Likewise.
70681         * lib/getpeername.c (rpl_getpeername): Likewise.
70682         * lib/getsockname.c (rpl_getsockname): Likewise.
70683         * lib/recv.c (rpl_recv): Likewise.
70684         * lib/send.c (rpl_send): Likewise.
70685         * lib/recvfrom.c (rpl_recvfrom): Likewise.
70686         * lib/sendto.c (rpl_sendto): Likewise.
70688 2010-03-06  Bruno Haible  <bruno@clisp.org>
70690         Clarify access, euidaccess, faccessat.
70691         * doc/posix-functions/faccessat.texi: Mention security problem under
70692         "Other problems", not "Portability problems".
70693         * doc/posix-functions/access.texi: Likewise. Mention a related security
70694         problem.
70695         * doc/glibc-functions/euidaccess.texi: Mention security problems.
70696         * lib/euidaccess.c: Add comments about platforms.
70697         * lib/unistd.in.h (access, euidaccess): Add warnings.
70699 2010-03-07  Bruno Haible  <bruno@clisp.org>
70701         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
70702         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
70703         (POSIX_SPAWN_SETSCHEDULER): Likewise.
70704         (POSIX_SPAWN_USEVFORK): Define in a way that works when
70705         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
70706         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
70707         declare when POSIX_SPAWN_SETSCHEDULER is zero.
70708         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
70709         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
70710         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
70711         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
70712         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
70713         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
70714         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
70715         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
70716         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
70717         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
70718         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
70719         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
70720         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
70721         Likewise.
70722         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
70723         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
70724         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
70725         Likewise.
70726         * tests/test-spawn.c (main): Make it work when
70727         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
70729 2010-03-07  Bruno Haible  <bruno@clisp.org>
70731         Fix incorrect Makefile.am generation in German locale.
70732         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70733         Execute sed command with character range in C locale.
70735 2010-03-06  Bruno Haible  <bruno@clisp.org>
70737         Tests for module 'iconv-h'.
70738         * modules/iconv-h-tests: New file.
70739         * tests/test-iconv-h.c: New file.
70741         New module 'iconv-h'.
70742         * modules/iconv-h: New file.
70743         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
70744         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
70745         (configure.ac): Remove gl_ICONV_H.
70746         (Makefile.am): Remove rule for iconv.h.
70748 2010-03-06  Bruno Haible  <bruno@clisp.org>
70750         More consistent naming of *.m4 files.
70751         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
70752         * modules/wctype (Files): Update.
70754         More consistent naming of *.m4 files.
70755         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
70756         * modules/wchar (Files): Update.
70758 2010-03-06  Jim Meyering  <meyering@redhat.com>
70760         euidaccess: relax license to LGPLv2+
70761         * modules/euidaccess (License): Relax to LGPLv2+.
70763 2010-03-06  Bruno Haible  <bruno@clisp.org>
70765         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
70766         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
70767         (Makefile.am): Augment lib_SOURCES instead.
70769 2010-03-04  Jim Meyering  <meyering@redhat.com>
70771         utime: remove obsolete module
70772         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
70773         unnecessary for years, and has been marked as obsolete for 10 months.
70774         * modules/utime: Remove file.
70775         * lib/utime.c: Remove file.
70776         * m4/utime.m4: Remove file.
70777         * m4/utimes-null.m4: Remove file.
70778         * doc/posix-functions/utime.texi (utime): Remove reference to
70779         the module.  Move the sole "fixed by gnulib" item into the
70780         "problems not fixed by Gnulib" list.
70781         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
70783 2010-03-05  Simon Josefsson  <simon@josefsson.org>
70785         * modules/exit (License): Relax license to LGPLv2+.
70786         (Status): Mark as obsolete.
70787         * NEWS: Mention deprecated 'exit' module.
70788         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
70789         of now obsolete 'exit'.
70791 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70793         fts-lgpl: remove unused module
70794         * modules/fts-lgpl: Remove.
70795         * MODULES.html.sh (func_all_modules): Adjust.
70796         * check-module (find_included_lib_files): Adjust.
70797         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
70799 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
70801         copy-acl: enhance Solaris ACL error handling
70802         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
70803         * lib/set-mode-acl.c (qset_acl): Likewise.
70805 2010-03-02  Bruno Haible  <bruno@clisp.org>
70807         spawn: Don't override the system defined values on FreeBSD 8.
70808         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
70809         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
70810         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
70811         if HAVE_POSIX_SPAWN is 1.
70812         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
70814 2010-03-01  Bruno Haible  <bruno@clisp.org>
70816         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
70817         regarding Automake.
70819 2010-02-25  Bruno Haible  <bruno@clisp.org>
70821         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
70822         * gnulib-tool: Define 'echo' as a function only before the ksh alias
70823         setting, not afterwards.
70824         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
70826 2010-02-24  Eric Blake  <eblake@redhat.com>
70828         bootstrap, git-version-gen: use timestamp
70829         * build-aux/git-version-gen (scriptversion): Force UTC.
70830         * build-aux/bootstrap (scriptversion): New variable.
70832         bootstrap: allow older git
70833         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
70834         older than 1.6.4.  Requested by the libvirt project.
70836 2010-02-23  Eric Blake  <eblake@redhat.com>
70838         warn-on-use: work with old autoconf
70839         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
70840         AS_VAR semantics of autoconf 2.60.
70841         Reported by Bruno Haible.
70843         bootstrap: improve some comments
70844         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
70845         clarification comments.
70847         gettimeofday: provide correct function
70848         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
70849         when replacement is declared, otherwise provide gettimeofday.
70850         Reported by Michael Goffioul.
70852 2010-02-23  Jim Meyering  <meyering@redhat.com>
70854         lib-ignore: relax license to "unlimited", not LGPLv2+
70855         * modules/lib-ignore (License): Relax to "unlimited".
70857 2010-02-23  Jim Meyering  <meyering@redhat.com>
70859         lib-ignore: relax license to LGPLv2+
70860         * modules/lib-ignore (License): Relax to LGPLv2+.
70862 2010-02-22  Eric Blake  <eblake@redhat.com>
70864         lseek: avoid bash 3.2 broken pipe bug
70865         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
70866         warning from bash 3.2.
70867         Reported by Ben Pfaff, with analysis from Bruno Haible.
70869         bootstrap: support non-FSF copyright holder
70870         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
70871         bootstrap.conf override of COPYRIGHT_HOLDER.
70872         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
70874         bootstrap: interoperate with gettext 0.14.1
70875         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
70877         bootstrap: allow for alternate submodule location
70878         * build-aux/bootstrap (gnulib_path): New variable; use instead of
70879         hardcoding submodule location.
70880         (gnulib_mk): Allow direct use of Makefile.am.
70882         bootstrap: use GNULIB_SRCDIR to reduce disk usage
70883         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
70884         rather than reconfiguring where the submodule points.
70886         gettimeofday: restore support for platforms that lack function
70887         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
70888         replacement if function is missing.
70889         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
70890         * modules/sys_time (Makefile.am): Substitute it.
70891         * lib/sys_time.in.h (gettimeofday): Check it.
70892         Reported by Michael Goffioul.
70894 2010-02-21  Bruno Haible  <bruno@clisp.org>
70896         * lib/stdio.in.h (obstack_printf): Fix typo.
70898 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
70900         vc-list-files: use bzr ls's -R option
70901         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
70902         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
70904 2010-02-21  Jim Meyering  <meyering@redhat.com>
70906         init.sh: fix EXEEXT shims to work also for names like test-prog
70907         * tests/init.sh: Re-exec a better shell, when needed.
70908         If the current shell lacks support for posix $(...), an init.sh-using
70909         test will now try to find a shell that supports that.  If EXEEXT is
70910         nonempty, we also require support for hyphen-in-alias-name and shell
70911         substitutions like ${var#glob}.  Failure to find such a shell results
70912         in a skipped test.
70914 2010-02-21  Bruno Haible  <bruno@clisp.org>
70916         Really work around "broken pipe" error message from bash 3.2.
70917         * gnulib-tool (func_reset_sigpipe): Remove function.
70918         (echo): In bash 3.2, define to a function that uses printf.
70919         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
70921 2010-02-20  Bruno Haible  <bruno@clisp.org>
70923         Restore support for automake 1.9.6 with autoconf 2.61.
70924         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
70925         Reported by James Youngman <jay@gnu.org>.
70927 2010-02-20  Bruno Haible  <bruno@clisp.org>
70929         Improve *printf warning condition.
70930         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
70931         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
70932         and the function is overridden due to SIGPIPE emulation.
70934 2010-02-20  Bruno Haible  <bruno@clisp.org>
70936         * lib/stdio.in.h: Tweak comments.
70938 2010-02-19  Bruno Haible  <bruno@clisp.org>
70940         Make it easier to find modules. New gnulib-tool option '--find'.
70941         * gnulib-tool: New option --find.
70942         (func_usage): Document it.
70943         (func_sanitize_modulelist): New function, extracted from
70944         func_all_modules.
70945         (func_all_modules): Invoke it.
70946         * doc/gnulib-tool.texi (Which modules?): New node.
70948 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
70950         * lib/sys_select.in.h: Provide select replacement even if
70951         sys/select.h exists on a system, for Interix.
70953 2010-02-18  Jim Meyering  <meyering@redhat.com>
70955         init.sh: don't use $(...) just yet
70956         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
70957         to accommodate e.g., Solaris' /bin/sh.
70959 2010-02-17  Bruno Haible  <bruno@clisp.org>
70961         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
70962         Reported by Ludovic Courtès <ludo@gnu.org>.
70964 2010-02-16  Simon Josefsson  <simon@josefsson.org>
70966         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
70967         linking with -lintl.
70969 2010-02-17  Simon Josefsson  <simon@josefsson.org>
70971         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
70972         if not provided by the system's netdb.h.  Reported by
70973         ludo@gnu.org (Ludovic Courtès).
70975 2010-02-15  Jim Meyering  <meyering@redhat.com>
70977         init.sh: improve portability and efficiency
70978         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
70979         "dummy" in a for loop.
70980         Use '!', not '^' to select the complement of a character set used
70981         in a "case" statement.
70982         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
70983         Suggestions from Eric Blake.
70985         init.sh: automatically accommodate programs with the .exe suffix
70986         Automatically arrange for an invocation of "prog" to execute the
70987         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
70988         may use the simpler "prog", yet still work when built on a system
70989         that requires specifying the added suffix.
70990         Do this by constructing a function named "prog" that invokes
70991         "prog.exe" for each .exe file in selected directories.
70992         * tests/init.sh (find_exe_basenames_): New function.
70993         (create_exe_shim_functions_): New function.
70994         (path_prepend_): Use it.
70996         maint.mk: mark syntax-check sc_*.m rules as .PHONY
70997         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
70998         "make -t syntax-check" doesn't create a ton of sc_*.m files.
71000 2010-02-14  Jim Meyering  <meyering@redhat.com>
71002         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
71003         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
71004         (sc_prohibit_hash_pjw_without_use): New rule.
71006         maint.mk: allow the default upload destination dir to be overridden
71007         * top/maint.mk (upload_dest_dir_): Define with a default that
71008         preserves the status quo.
71009         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
71010         Reported by Peter Simons.
71012         maint.mk: prohibit inclusion of "hash.h" without_use
71013         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
71015 2010-02-10  Jim Meyering  <meyering@redhat.com>
71017         maint.mk: prohibit inclusion of "ignore-value.h" without_use
71018         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
71020 2010-02-09  Eric Blake  <ebb9@byu.net>
71021         and Bruno Haible  <bruno@clisp.org>
71023         obstack-printf-posix: ensure declaration
71024         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
71025         extracted from gl_FUNC_OBSTACK_PRINTF.
71026         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
71027         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
71028         Likewise.
71029         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
71030         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
71031         0.
71033 2010-02-08  Bruno Haible  <bruno@clisp.org>
71035         gnulib-tool: Fix typo in 2010-02-07 commit.
71036         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
71037         Reported by Eric Blake.
71039 2010-02-07  Bruno Haible  <bruno@clisp.org>
71041         gnulib-tool: Fix up caching patches.
71042         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
71043         option --no-cache. Use associative arrays when supported by the shell.
71044         (sed_comments): New variable.
71045         (modcache): Renamed from do_cache.
71046         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
71047         abbreviate unnecessarily.
71048         (have_associative): New variable.
71049         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
71050         way also for ksh and zsh.
71051         (func_init_sed_convert_to_cache_statements): New function, extracted
71052         from func_cache_lookup_module. Add support for associative arrays.
71053         Don't set the c_MODULE_cached variable here. Ignore all lines before
71054         the first field header. Remove only the final newline, not all trailing
71055         newlines. Support empty fields correctly. Limit the use of 'eval' to
71056         assignments.
71057         (func_get_description, func_get_status, func_get_notice,
71058         func_get_applicability, func_get_filelist, func_get_dependencies,
71059         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
71060         func_get_automake_snippet, func_get_include_directive,
71061         func_get_link_directive, func_get_license, func_get_maintainer):
71062         Update documentation. List the unoptimized code first. Add support for
71063         associative arrays. Limit the use of 'eval' to assignments.
71064         (func_get_applicability): Undo stylistic pessimisations.
71065         (func_get_automake_snippet, func_get_include_directive): Reduce code
71066         duplication.
71067         (func_modules_transitive_closure, func_modules_add_dummy,
71068         func_modules_notice, func_modules_to_filelist, func_add_file,
71069         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
71070         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
71071         func_create_testdir, func_create_megatestdir): Update documentation.
71073 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71075         * gnulib-tool (func_cache_lookup_module): Store the module name
71076         belonging to the cache variable; error out if two different
71077         module names map to the same cache variable name.
71079 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71081         gnulib-tool: Make caching optional.
71082         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
71083         Update matching short versions of --no-changelog.
71084         (func_usage): Update.
71085         (sed_extract_cache_prog): Renamed from ...
71086         (sed_extract_prog): ... this; revert to old extraction script.
71087         (func_get_description, func_get_status)
71088         (func_get_notice, func_get_applicability, func_get_filelist)
71089         (func_get_dependencies, func_get_autoconf_early_snippet)
71090         (func_get_autoconf_snippet, func_get_automake_snippet)
71091         (func_get_include_directive, func_get_link_directive)
71092         (func_get_license, func_get_maintainer): If $do_cache is false,
71093         use old, non-caching extraction scripts.
71094         Suggestion by Bruno Haible.
71096 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71098         gnulib-tool: cache module metainformation.
71099         * gnulib-tool (sed_extract_prog): Match newline before each
71100         header, and rewrite header to a shell variable suffix.
71101         (func_cache_var, func_cache_lookup_module): New functions,
71102         to turn a module name into a cache variable prefix, and to
71103         look up and cache module metainformation.
71104         (func_get_description, func_get_status)
71105         (func_get_notice, func_get_applicability, func_get_filelist)
71106         (func_get_dependencies, func_get_autoconf_early_snippet)
71107         (func_get_autoconf_snippet, func_get_automake_snippet)
71108         (func_get_include_directive, func_get_link_directive)
71109         (func_get_license, func_get_maintainer): Use
71110         func_cache_lookup_module.
71112 2010-02-07  Bruno Haible  <bruno@clisp.org>
71114         fnctl: Fix missing dependency.
71115         * modules/fcntl (Depends-on): Add getdtablesize.
71116         Reported by John W. Eaton <jwe@gnu.org>.
71118 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
71120         Argp: fix recognition of short alias options.
71122         * lib/argp-parse.c (convert_options): Fix improper use of
71123         `|' between character values.
71124         * tests/test-argp.c (group1_option): New alias option
71125         --read (-r).
71126         (group1_parser): Special handling for 'r'.
71127         (test15): New test case.
71128         (test_fun): Add test15.
71129         * tests/test-argp-2.sh: Update expected --help and --usage
71130         outputs.
71132 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
71134         * tests/test-argp.c: Fix indentation.
71136 2010-02-04  Eric Blake  <ebb9@byu.net>
71138         gettimeofday: expose type of second argument
71139         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
71140         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
71141         * tests/test-gettimeofday.c: Use it to silence warning.
71142         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
71143         the issue.
71145 2010-02-03  Jim Meyering  <meyering@redhat.com>
71147         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
71148         * lib/regcomp.c (TYPE_SIGNED): Define.
71149         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
71151         regcomp.c: avoid a new -Wshadow warning
71152         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
71154 2010-02-01  Jim Meyering  <meyering@redhat.com>
71156         removing useless parentheses in cpp #define directives
71157         For motivation, see commit c0221df4, "define STREQ(a,b)
71158         consistently, removing useless parentheses"
71159         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
71160         * lib/mountlist.c (MNT_IGNORE): Likewise.
71161         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
71163 2010-02-01  Eric Blake  <ebb9@byu.net>
71165         sys_time: use link-warning
71166         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
71167         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
71168         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
71169         * modules/sys_time (Depends-on): Add warn-on-use.
71170         (Makefile.am): Always build replacement.
71171         (configure.ac): Update substitutions.
71172         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
71173         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
71174         bother with SYS_TIME_H.
71175         * modules/gettimeofday (configure.ac): Declare indicator.
71176         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
71177         in use.
71179         closein-tests: silence compiler warning
71180         * tests/test-closein.c (main): Ignore fread result.
71181         * modules/closein-tests (Depends-on): Add ignore-value.
71183         tests: silence warning about system return
71184         * tests/test-areadlink-with-size.c (main): Ignore system result.
71185         * tests/test-areadlink.c (main): Likewise.
71186         * tests/test-areadlinkat-with-size.c (main): Likewise.
71187         * tests/test-areadlinkat.c (main): Likewise.
71188         * tests/test-canonicalize-lgpl.c (main): Likewise.
71189         * tests/test-canonicalize.c (main): Likewise.
71190         * tests/test-chown.c (main): Likewise.
71191         * tests/test-fchownat.c (main): Likewise.
71192         * tests/test-fdutimensat.c (main): Likewise.
71193         * tests/test-fstatat.c (main): Likewise.
71194         * tests/test-futimens.c (main): Likewise.
71195         * tests/test-lchown.c (main): Likewise.
71196         * tests/test-link.c (main): Likewise.
71197         * tests/test-linkat.c (main): Likewise.
71198         * tests/test-lstat.c (main): Likewise.
71199         * tests/test-mkdir.c (main): Likewise.
71200         * tests/test-mkdirat.c (main): Likewise.
71201         * tests/test-mkfifo.c (main): Likewise.
71202         * tests/test-mkfifoat.c (main): Likewise.
71203         * tests/test-mknod.c (main): Likewise.
71204         * tests/test-readlink.c (main): Likewise.
71205         * tests/test-remove.c (main): Likewise.
71206         * tests/test-rename.c (main): Likewise.
71207         * tests/test-renameat.c (main): Likewise.
71208         * tests/test-rmdir.c (main): Likewise.
71209         * tests/test-symlink.c (main): Likewise.
71210         * tests/test-symlinkat.c (main): Likewise.
71211         * tests/test-unlink.c (main): Likewise.
71212         * tests/test-unlinkat.c (main): Likewise.
71213         * tests/test-utimens.c (main): Likewise.
71214         * tests/test-utimensat.c (main): Likewise.
71215         * modules/areadlink-tests (Depends-on): Add ignore-value.
71216         * modules/areadlink-with-size-tests (Depends-on): Likewise.
71217         * modules/areadlinkat-tests (Depends-on): Likewise.
71218         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
71219         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
71220         * modules/canonicalize-tests (Depends-on): Likewise.
71221         * modules/chown-tests (Depends-on): Likewise.
71222         * modules/fdutimensat-tests (Depends-on): Likewise.
71223         * modules/futimens-tests (Depends-on): Likewise.
71224         * modules/lchown-tests (Depends-on): Likewise.
71225         * modules/link-tests (Depends-on): Likewise.
71226         * modules/linkat-tests (Depends-on): Likewise.
71227         * modules/lstat-tests (Depends-on): Likewise.
71228         * modules/mkdir-tests (Depends-on): Likewise.
71229         * modules/mkfifo-tests (Depends-on): Likewise.
71230         * modules/mkfifoat-tests (Depends-on): Likewise.
71231         * modules/mknod-tests (Depends-on): Likewise.
71232         * modules/openat-tests (Depends-on): Likewise.
71233         * modules/readlink-tests (Depends-on): Likewise.
71234         * modules/remove-tests (Depends-on): Likewise.
71235         * modules/rename-tests (Depends-on): Likewise.
71236         * modules/renameat-tests (Depends-on): Likewise.
71237         * modules/rmdir-tests (Depends-on): Likewise.
71238         * modules/symlink-tests (Depends-on): Likewise.
71239         * modules/symlinkat-tests (Depends-on): Likewise.
71240         * modules/unlink-tests (Depends-on): Likewise.
71241         * modules/utimens-tests (Depends-on): Likewise.
71242         * modules/utimensat-tests (Depends-on): Likewise.
71244 2010-01-31  Bruno Haible  <bruno@clisp.org>
71246         Perform the same test for many <math.h> functions.
71247         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
71248         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
71249         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
71250         of gl_MATHFUNC.
71251         * modules/acos (configure.ac): Likewise.
71252         * modules/asin (configure.ac): Likewise.
71253         * modules/atan (configure.ac): Likewise.
71254         * modules/atan2 (configure.ac): Likewise.
71255         * modules/cbrt (configure.ac): Likewise.
71256         * modules/copysign (configure.ac): Likewise.
71257         * modules/cos (configure.ac): Likewise.
71258         * modules/cosh (configure.ac): Likewise.
71259         * modules/erf (configure.ac): Likewise.
71260         * modules/erfc (configure.ac): Likewise.
71261         * modules/exp (configure.ac): Likewise.
71262         * modules/fmod (configure.ac): Likewise.
71263         * modules/hypot (configure.ac): Likewise.
71264         * modules/j0 (configure.ac): Likewise.
71265         * modules/j1 (configure.ac): Likewise.
71266         * modules/jn (configure.ac): Likewise.
71267         * modules/lgamma (configure.ac): Likewise.
71268         * modules/log (configure.ac): Likewise.
71269         * modules/log10 (configure.ac): Likewise.
71270         * modules/log1p (configure.ac): Likewise.
71271         * modules/pow (configure.ac): Likewise.
71272         * modules/remainder (configure.ac): Likewise.
71273         * modules/sin (configure.ac): Likewise.
71274         * modules/sinh (configure.ac): Likewise.
71275         * modules/tan (configure.ac): Likewise.
71276         * modules/tanh (configure.ac): Likewise.
71277         * modules/y0 (configure.ac): Likewise.
71278         * modules/y1 (configure.ac): Likewise.
71279         * modules/yn (configure.ac): Likewise.
71280         Suggested by Paolo Bonzini.
71282 2010-01-31  Bruno Haible  <bruno@clisp.org>
71284         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
71286 2010-01-31  Bruno Haible  <bruno@clisp.org>
71288         Work around getdelim() bug on FreeBSD 8.0.
71289         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
71290         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
71291         not work.
71292         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
71293         is 1.
71294         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
71295         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
71296         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
71297         a non-zero size.
71298         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
71300 2010-01-31  Bruno Haible  <bruno@clisp.org>
71302         Work around getline() bug on FreeBSD 8.0.
71303         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
71304         and a non-zero size.
71305         * tests/test-getline.c (main): Likewise.
71306         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
71307         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
71309 2010-01-28  Eric Blake  <ebb9@byu.net>
71311         regex: fix build failure
71312         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
71313         platforms.
71315 2010-01-28  Jim Meyering  <meyering@redhat.com>
71317         regex: do not ignore memory allocation failure
71318         * lib/regex_internal.c (create_cd_newstate): Detect
71319         re_node_set_init_copy failure.   Extracted from glibc commit
71320         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
71322         regex: sync more white-space changes from libc
71323         * lib/regex_internal.c: White-space only changes.
71324         * lib/regexec.c: Likewise.
71326         regex: add many uses of __attribute_warn_unused_result__
71327         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
71328         * lib/regexec.c: Likewise.
71329         Extracted from a messy glibc commit.
71331         regcomp.c: spelling and merge-artifact from glibc
71332         * lib/regcomp.c: Merge remainder of glibc's
71333         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
71335         regcomp.c: sync white-space changes from glibc
71336         * lib/regcomp.c: Merge to accommodate white space
71337         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
71339         regcomp.c: do not ignore internal return values
71340         * lib/regcomp.c: Do not ignore internal return values.
71341         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
71342         but without its white-space changes and spelling fixes.
71344         regex_internal.h: define __attribute_warn_unused_result__
71345         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
71347         maint: add a syntax-check rule to check for vulnerable Makefile.in
71348         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
71350 2010-01-27  Jim Meyering  <meyering@redhat.com>
71352         ncftpput-ftp: clean up spaces
71353         * build-aux/ncftpput-ftp: Make Copyright line consistent.
71354         Remove trailing blanks.
71356 2010-01-27  Simon Josefsson  <simon@josefsson.org>
71358         * build-aux/git-version-gen: Fix copyright statement.
71359         * build-aux/gnupload: Likewise.
71360         * tests/test-arcfour.c: Likewise.
71361         * tests/test-arctwo.c: Likewise.
71362         * tests/test-count-one-bits.c: Likewise.
71363         * tests/test-crc.c: Likewise.
71364         * tests/test-des.c: Likewise.
71365         * tests/test-gc-arcfour.c: Likewise.
71366         * tests/test-gc-arctwo.c: Likewise.
71367         * tests/test-gc-des.c: Likewise.
71368         * tests/test-gc-hmac-md5.c: Likewise.
71369         * tests/test-gc-hmac-sha1.c: Likewise.
71370         * tests/test-gc-md2.c: Likewise.
71371         * tests/test-gc-md4.c: Likewise.
71372         * tests/test-gc-md5.c: Likewise.
71373         * tests/test-gc-pbkdf2-sha1.c: Likewise.
71374         * tests/test-gc-rijndael.c: Likewise.
71375         * tests/test-gc-sha1.c: Likewise.
71376         * tests/test-gc.c: Likewise.
71377         * tests/test-gethostname.c: Likewise.
71378         * tests/test-gettimeofday.c: Likewise.
71379         * tests/test-hash.c: Likewise.
71380         * tests/test-hmac-md5.c: Likewise.
71381         * tests/test-hmac-sha1.c: Likewise.
71382         * tests/test-md2.c: Likewise.
71383         * tests/test-md4.c: Likewise.
71384         * tests/test-md5.c: Likewise.
71385         * tests/test-memchr.c: Likewise.
71386         * tests/test-memchr2.c: Likewise.
71387         * tests/test-memcmp.c: Likewise.
71388         * tests/test-memmem.c: Likewise.
71389         * tests/test-memrchr.c: Likewise.
71390         * tests/test-rawmemchr.c: Likewise.
71391         * tests/test-read-file.c: Likewise.
71392         * tests/test-rijndael.c: Likewise.
71393         * tests/test-sockets.c: Likewise.
71394         * tests/test-strchrnul.c: Likewise.
71395         * tests/test-strstr.c: Likewise.
71396         * tests/test-strtod.c: Likewise.
71397         * build-aux/ncftpput-ftp: Likewise.
71399 2010-01-26  Eric Blake  <ebb9@byu.net>
71401         ignore-value: update recommended header name
71402         * modules/ignore-value (Include): Only use <> for headers that
71403         exist in glibc.
71405 2010-01-26  Jim Meyering  <meyering@redhat.com>
71407         test-userspec.c: avoid compiler warnings
71408         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
71409         and "initialization discards qualifiers..." warnings.
71410         Put the first "uid" in its own scope, and make char* members "const".
71412 2010-01-25  Bruno Haible  <bruno@clisp.org>
71414         gnulib-tool: Make warning diagnostics consistent.
71415         * gnulib-tool (func_warning): New function.
71416         Use it everywhere where gnulib-tool produces output to stderr and it is
71417         not a fatal error.
71419 2010-01-25  Bruno Haible  <bruno@clisp.org>
71421         Fix test dependencies.
71422         * modules/xstrtol-tests (Depends-on): Add inttypes.
71423         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
71425 2010-01-25  Pádraig Brady  <P@draigBrady.com>
71427         syntax-check: detect incorrect boolean macro values in config.h
71428         * modules/maintainer-makefile (configure.ac): Parameterize the location
71429         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
71430         The logic is from Eric Blake and the location indicated by Jim Meyering.
71431         Note the more natural CONFIG_HEADER name is prohibited by automake
71432         for backwards compatibility reasons.
71433         * top/maint.mk (sc_Wundef_boolean): New rule.
71435 2010-01-25  Jim Meyering  <meyering@redhat.com>
71437         bootstrap: detect MacOS 10.6's shasum, too
71438         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
71439         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
71441 2010-01-23  Jim Meyering  <meyering@redhat.com>
71443         xstrtoll: new module
71444         * modules/xstrtoll: New file.
71445         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
71446         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
71447         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
71448         ./configure fails if you use this module and lack "long long".
71449         * modules/xstrtoll-tests: New module.
71450         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
71451         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
71452         new init.sh-based test framework.
71454 2010-01-24  Bruno Haible  <bruno@clisp.org>
71456         Tests for module 'yn'.
71457         * modules/yn-tests: New file.
71458         * tests/test-yn.c: New file.
71460         Tests for module 'y1'.
71461         * modules/y1-tests: New file.
71462         * tests/test-y1.c: New file.
71464         Tests for module 'y0'.
71465         * modules/y0-tests: New file.
71466         * tests/test-y0.c: New file.
71468         Tests for module 'tanh'.
71469         * modules/tanh-tests: New file.
71470         * tests/test-tanh.c: New file.
71472         Tests for module 'tan'.
71473         * modules/tan-tests: New file.
71474         * tests/test-tan.c: New file.
71476         Tests for module 'sqrt'.
71477         * modules/sqrt-tests: New file.
71478         * tests/test-sqrt.c: New file.
71480         Tests for module 'sinh'.
71481         * modules/sinh-tests: New file.
71482         * tests/test-sinh.c: New file.
71484         Tests for module 'sin'.
71485         * modules/sin-tests: New file.
71486         * tests/test-sin.c: New file.
71488         Tests for module 'rint'.
71489         * modules/rint-tests: New file.
71490         * tests/test-rint.c: New file.
71492         Tests for module 'remainder'.
71493         * modules/remainder-tests: New file.
71494         * tests/test-remainder.c: New file.
71496         Tests for module 'pow'.
71497         * modules/pow-tests: New file.
71498         * tests/test-pow.c: New file.
71500         Tests for module 'nextafter'.
71501         * modules/nextafter-tests: New file.
71502         * tests/test-nextafter.c: New file.
71504         Tests for module 'modf'.
71505         * modules/modf-tests: New file.
71506         * tests/test-modf.c: New file.
71508         Tests for module 'logb'.
71509         * modules/logb-tests: New file.
71510         * tests/test-logb.c: New file.
71512         Tests for module 'log1p'.
71513         * modules/log1p-tests: New file.
71514         * tests/test-log1p.c: New file.
71516         Tests for module 'log10'.
71517         * modules/log10-tests: New file.
71518         * tests/test-log10.c: New file.
71520         Tests for module 'log'.
71521         * modules/log-tests: New file.
71522         * tests/test-log.c: New file.
71524         Tests for module 'lgamma'.
71525         * modules/lgamma-tests: New file.
71526         * tests/test-lgamma.c: New file.
71528         Tests for module 'ldexp'.
71529         * modules/ldexp-tests: New file.
71530         * tests/test-ldexp.c: New file.
71532         Tests for module 'jn'.
71533         * modules/jn-tests: New file.
71534         * tests/test-jn.c: New file.
71536         Tests for module 'j1'.
71537         * modules/j1-tests: New file.
71538         * tests/test-j1.c: New file.
71540         Tests for module 'j0'.
71541         * modules/j0-tests: New file.
71542         * tests/test-j0.c: New file.
71544         Tests for module 'hypot'.
71545         * modules/hypot-tests: New file.
71546         * tests/test-hypot.c: New file.
71548         Tests for module 'fmod'.
71549         * modules/fmod-tests: New file.
71550         * tests/test-fmod.c: New file.
71552         Tests for module 'fabs'.
71553         * modules/fabs-tests: New file.
71554         * tests/test-fabs.c: New file.
71556         Tests for module 'exp'.
71557         * modules/exp-tests: New file.
71558         * tests/test-exp.c: New file.
71560         Tests for module 'erfc'.
71561         * modules/erfc-tests: New file.
71562         * tests/test-erfc.c: New file.
71564         Tests for module 'erf'.
71565         * modules/erf-tests: New file.
71566         * tests/test-erf.c: New file.
71568         Tests for module 'cosh'.
71569         * modules/cosh-tests: New file.
71570         * tests/test-cosh.c: New file.
71572         Tests for module 'cos'.
71573         * modules/cos-tests: New file.
71574         * tests/test-cos.c: New file.
71576         Tests for module 'copysign'.
71577         * modules/copysign-tests: New file.
71578         * tests/test-copysign.c: New file.
71580         Tests for module 'cbrt'.
71581         * modules/cbrt-tests: New file.
71582         * tests/test-cbrt.c: New file.
71584         Tests for module 'atan2'.
71585         * modules/atan2-tests: New file.
71586         * tests/test-atan2.c: New file.
71588         Tests for module 'atan'.
71589         * modules/atan-tests: New file.
71590         * tests/test-atan.c: New file.
71592         Tests for module 'asin'.
71593         * modules/asin-tests: New file.
71594         * tests/test-asin.c: New file.
71596         Tests for module 'acos'.
71597         * modules/acos-tests: New file.
71598         * tests/test-acos.c: New file.
71600 2010-01-24  Bruno Haible  <bruno@clisp.org>
71602         Fix tests for common <math.h> functions.
71603         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
71604         code snippet that references the function pointer, rather than merely
71605         calling the function. Substitute the FUNC_LIBM variable.
71606         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
71607         * modules/acos (configure.ac): Likewise.
71608         * modules/asin (configure.ac): Likewise.
71609         * modules/atan (configure.ac): Likewise.
71610         * modules/atan2 (configure.ac): Likewise.
71611         * modules/cbrt (configure.ac): Likewise.
71612         * modules/copysign (configure.ac): Likewise.
71613         * modules/cos (configure.ac): Likewise.
71614         * modules/cosh (configure.ac): Likewise.
71615         * modules/erf (configure.ac): Likewise.
71616         * modules/erfc (configure.ac): Likewise.
71617         * modules/exp (configure.ac): Likewise.
71618         * modules/fabs (configure.ac): Likewise.
71619         * modules/fmod (configure.ac): Likewise.
71620         * modules/hypot (configure.ac): Likewise.
71621         * modules/j0 (configure.ac): Likewise.
71622         * modules/j1 (configure.ac): Likewise.
71623         * modules/jn (configure.ac): Likewise.
71624         * modules/ldexp (configure.ac): Likewise.
71625         * modules/lgamma (configure.ac): Likewise.
71626         * modules/log (configure.ac): Likewise.
71627         * modules/log10 (configure.ac): Likewise.
71628         * modules/log1p (configure.ac): Likewise.
71629         * modules/logb (configure.ac): Likewise.
71630         * modules/modf (configure.ac): Likewise.
71631         * modules/nextafter (configure.ac): Likewise.
71632         * modules/pow (configure.ac): Likewise.
71633         * modules/remainder (configure.ac): Likewise.
71634         * modules/rint (configure.ac): Likewise.
71635         * modules/sin (configure.ac): Likewise.
71636         * modules/sinh (configure.ac): Likewise.
71637         * modules/tan (configure.ac): Likewise.
71638         * modules/tanh (configure.ac): Likewise.
71639         * modules/y0 (configure.ac): Likewise.
71640         * modules/y1 (configure.ac): Likewise.
71641         * modules/yn (configure.ac): Likewise.
71643 2010-01-24  Bruno Haible  <bruno@clisp.org>
71645         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
71646         * tests/test-acosl.c (x): New variable.
71647         (main): Store argument in x and fetch it from x.
71648         * tests/test-asinl.c (x): New variable.
71649         (main): Store argument in x and fetch it from x.
71650         * tests/test-atanl.c (x): New variable.
71651         (main): Store argument in x and fetch it from x.
71652         * tests/test-cosl.c (x): New variable.
71653         (main): Store argument in x and fetch it from x.
71654         * tests/test-expl.c (x): New variable.
71655         (main): Store argument in x and fetch it from x.
71656         * tests/test-logl.c (x): New variable.
71657         (main): Store argument in x and fetch it from x.
71658         * tests/test-sinl.c (x): New variable.
71659         (main): Store argument in x and fetch it from x.
71660         * tests/test-sqrtl.c (x): New variable.
71661         (main): Store argument in x and fetch it from x.
71662         * tests/test-tanl.c (x): New variable.
71663         (main): Store argument in x and fetch it from x.
71665 2010-01-24  Bruno Haible  <bruno@clisp.org>
71667         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
71668         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
71669         assignments to the initial TESTS_ENVIRONMENT.
71670         * doc/gnulib.texi (Unit test modules): Document it.
71671         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
71672         TESTS_ENVIRONMENT.
71673         * modules/btowc-tests (Makefile.am): Likewise.
71674         * modules/c-stack-tests (Makefile.am): Likewise.
71675         * modules/c-strcase-tests (Makefile.am): Likewise.
71676         * modules/copy-file-tests (Makefile.am): Likewise.
71677         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
71678         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
71679         * modules/mbrtowc-tests (Makefile.am): Likewise.
71680         * modules/mbscasecmp-tests (Makefile.am): Likewise.
71681         * modules/mbscasestr-tests (Makefile.am): Likewise.
71682         * modules/mbschr-tests (Makefile.am): Likewise.
71683         * modules/mbscspn-tests (Makefile.am): Likewise.
71684         * modules/mbsinit-tests (Makefile.am): Likewise.
71685         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
71686         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
71687         * modules/mbspbrk-tests (Makefile.am): Likewise.
71688         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
71689         * modules/mbsrchr-tests (Makefile.am): Likewise.
71690         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
71691         * modules/mbsspn-tests (Makefile.am): Likewise.
71692         * modules/mbsstr-tests (Makefile.am): Likewise.
71693         * modules/nl_langinfo-tests (Makefile.am): Likewise.
71694         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
71695         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
71696         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
71697         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
71698         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
71699         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
71700         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
71701         * modules/wcrtomb-tests (Makefile.am): Likewise.
71702         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
71703         * modules/wcsrtombs-tests (Makefile.am): Likewise.
71704         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
71705         assignments from TESTS_ENVIRONMENT.
71706         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
71707         augmentation.
71708         * modules/argp-version-etc-tests (Makefile.am): Likewise.
71709         * modules/atexit-tests (Makefile.am): Likewise.
71710         * modules/binary-io-tests (Makefile.am): Likewise.
71711         * modules/closein-tests (Makefile.am): Likewise.
71712         * modules/dprintf-posix-tests (Makefile.am): Likewise.
71713         * modules/exclude-tests (Makefile.am): Likewise.
71714         * modules/fflush-tests (Makefile.am): Likewise.
71715         * modules/fpending-tests (Makefile.am): Likewise.
71716         * modules/fprintf-posix-tests (Makefile.am): Likewise.
71717         * modules/freadahead-tests (Makefile.am): Likewise.
71718         * modules/freadptr-tests (Makefile.am): Likewise.
71719         * modules/freadseek-tests (Makefile.am): Likewise.
71720         * modules/fseek-tests (Makefile.am): Likewise.
71721         * modules/fseeko-tests (Makefile.am): Likewise.
71722         * modules/ftell-tests (Makefile.am): Likewise.
71723         * modules/ftello-tests (Makefile.am): Likewise.
71724         * modules/idpriv-drop-tests (Makefile.am): Likewise.
71725         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
71726         * modules/lseek-tests (Makefile.am): Likewise.
71727         * modules/parse-duration-tests (Makefile.am): Likewise.
71728         * modules/perror-tests (Makefile.am): Likewise.
71729         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
71730         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
71731         * modules/pipe-tests (Makefile.am): Likewise.
71732         * modules/pread-tests (Makefile.am): Likewise.
71733         * modules/printf-posix-tests (Makefile.am): Likewise.
71734         * modules/select-tests (Makefile.am): Likewise.
71735         * modules/sigpipe-tests (Makefile.am): Likewise.
71736         * modules/tsearch-tests (Makefile.am): Likewise.
71737         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
71738         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
71739         * modules/uniname/uniname-tests (Makefile.am): Likewise.
71740         * modules/uniwidth/width-tests (Makefile.am): Likewise.
71741         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
71742         * modules/version-etc-tests (Makefile.am): Likewise.
71743         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
71744         * modules/vprintf-posix-tests (Makefile.am): Likewise.
71745         * modules/xalloc-die-tests (Makefile.am): Likewise.
71746         * modules/xprintf-posix-tests (Makefile.am): Likewise.
71747         * modules/xstrtoimax-tests (Makefile.am): Likewise.
71748         * modules/xstrtol-tests (Makefile.am): Likewise.
71749         * modules/xstrtoumax-tests (Makefile.am): Likewise.
71750         * modules/yesno-tests (Makefile.am): Likewise.
71751         Suggested by Jim Meyering.
71753 2010-01-24  Bruno Haible  <bruno@clisp.org>
71755         More documentation.
71756         * doc/gnulib.texi (Writing modules): New chapter.
71757         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
71758         the new chapter.
71760 2010-01-24  Jim Meyering  <meyering@redhat.com>
71762         maint.mk: do not prepend "./" after filtering
71763         * top/maint.mk (_prepend_srcdir_prefix): New variable
71764         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
71765         "./" when $(srcdir) is ".".
71767         define STREQ(a,b) consistently, removing useless parentheses
71768         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
71769         since the only risk is that "a" or "b" contains an unparenthesized
71770         comma, but if either did that, STREQ would have 3 or more arguments.
71771         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
71772         * lib/fts.c (STREQ): Remove unnecessary parentheses.
71773         * lib/hash-triple.c (STREQ): Likewise.
71774         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
71775         * lib/getugroups.c (STREQ): Likewise.
71777 2010-01-23  Jim Meyering  <meyering@redhat.com>
71779         maint.mk: fix syntax-check in a non-srcdir build directory
71780         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
71781         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
71783 2010-01-22  Jim Meyering  <meyering@redhat.com>
71785         userspec: add unit tests
71786         * tests/test-userspec.c: New file.
71787         * modules/userspec-tests: Likewise.
71789 2010-01-21  Jim Meyering  <meyering@redhat.com>
71791         maint.mk: handle source file names containing "." robustly
71792         * top/maint.mk (_dot_escaped_srcdir): Define.
71793         (VC_LIST): Use it in LHS of sed substitution.
71795 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
71797         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
71798         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
71799         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
71800         from a non-srcdir build.
71802 2010-01-20  Eric Blake  <ebb9@byu.net>
71804         warn-on-use: use instead of link-warning
71805         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
71806         * modules/unistd (Depends-on, Makefile.am): Likewise.
71807         * modules/arpa_inet (Depends-on): Replace link-warning with
71808         warn-on-use.
71809         (Makefile.am): Update rules accordingly.
71810         * modules/ctype (Depends-on, Makefile.am): Likewise.
71811         * modules/dirent (Depends-on, Makefile.am): Likewise.
71812         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
71813         * modules/inttypes (Depends-on, Makefile.am): Likewise.
71814         * modules/langinfo (Depends-on, Makefile.am): Likewise.
71815         * modules/locale (Depends-on, Makefile.am): Likewise.
71816         * modules/math (Depends-on, Makefile.am): Likewise.
71817         * modules/search (Depends-on, Makefile.am): Likewise.
71818         * modules/signal (Depends-on, Makefile.am): Likewise.
71819         * modules/spawn (Depends-on, Makefile.am): Likewise.
71820         * modules/stdlib (Depends-on, Makefile.am): Likewise.
71821         * modules/string (Depends-on, Makefile.am): Likewise.
71822         * modules/strings (Depends-on, Makefile.am): Likewise.
71823         * modules/sys_file (Depends-on, Makefile.am): Likewise.
71824         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
71825         * modules/sys_select (Depends-on, Makefile.am): Likewise.
71826         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
71827         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
71828         * modules/sys_times (Depends-on, Makefile.am): Likewise.
71829         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
71830         * modules/wchar (Depends-on, Makefile.am): Likewise.
71831         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
71832         should be poisoned.
71833         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
71834         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
71835         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
71836         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
71837         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
71838         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
71839         * m4/math_h.m4 (gl_MATH_H): Likewise.
71840         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
71841         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
71842         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
71843         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
71844         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
71845         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
71846         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
71847         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
71848         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
71849         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
71850         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
71851         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
71852         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
71853         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
71854         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
71855         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
71856         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
71857         GL_LINK_WARNING.
71858         * lib/ctype.in.h: Likewise.
71859         * lib/dirent.in.h: Likewise.
71860         * lib/fcntl.in.h: Likewise.
71861         * lib/inttypes.in.h: Likewise.
71862         * lib/langinfo.in.h: Likewise.
71863         * lib/locale.in.h: Likewise.
71864         * lib/math.in.h: Likewise.
71865         * lib/search.in.h: Likewise.
71866         * lib/signal.in.h: Likewise.
71867         * lib/spawn.in.h: Likewise.
71868         * lib/stdio.in.h: Likewise.
71869         * lib/stdlib.in.h: Likewise.
71870         * lib/string.in.h: Likewise.
71871         * lib/strings.in.h: Likewise.
71872         * lib/sys_file.in.h: Likewise.
71873         * lib/sys_ioctl.in.h: Likewise.
71874         * lib/sys_select.in.h: Likewise.
71875         * lib/sys_socket.in.h: Likewise.
71876         * lib/sys_stat.in.h: Likewise.
71877         * lib/sys_times.in.h: Likewise.
71878         * lib/sys_utsname.in.h: Likewise.
71879         * lib/unistd.in.h: Likewise.
71880         * lib/wchar.in.h: Likewise.
71882 2010-01-20  Bruno Haible  <bruno@clisp.org>
71884         Avoid duplicate -lm.
71885         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
71886         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
71887         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
71888         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
71889         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
71890         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
71891         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
71892         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
71893         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
71894         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
71895         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
71896         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
71897         Reported by Paolo Bonzini.
71899 2010-01-19  Bruno Haible  <bruno@clisp.org>
71901         langinfo, nl_langinfo: Relicense under LGPLv2+.
71902         * modules/langinfo (License): Change to LGPLv2+.
71903         * modules/nl_langinfo (License): Likewise.
71904         Patch by David Lutterkort <lutter@redhat.com>.
71906 2010-01-19  Bruno Haible  <bruno@clisp.org>
71908         Avoid compilation error with cc on OSF/1 5.1.
71909         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
71910         statement, not before.
71911         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71913 2010-01-18  Bruno Haible  <bruno@clisp.org>
71915         Avoid a link error due to the __printf__ symbol.
71916         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
71917         and 2.6.x.
71918         (__format__, __printf__): Remove definitions.
71919         * lib/argp-fmtstream.h: Likewise.
71920         * lib/argp.h: Likewise.
71921         * lib/error.h: Likewise.
71922         * lib/vasnprintf.h: Likewise.
71923         * lib/xprintf.h: Likewise.
71924         * lib/xvasprintf.h: Likewise.
71925         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71927 2010-01-18  Bruno Haible  <bruno@clisp.org>
71929         Tests for module 'tanl'.
71930         * modules/tanl-tests: New file.
71931         * tests/test-tanl.c: New file.
71933         Tests for module 'sqrtl'.
71934         * modules/sqrtl-tests: New file.
71935         * tests/test-sqrtl.c: New file.
71937         Tests for module 'sinl'.
71938         * modules/sinl-tests: New file.
71939         * tests/test-sinl.c: New file.
71941         Tests for module 'logl'.
71942         * modules/logl-tests: New file.
71943         * tests/test-logl.c: New file.
71945         Tests for module 'expl'.
71946         * modules/expl-tests: New file.
71947         * tests/test-expl.c: New file.
71949         Tests for module 'cosl'.
71950         * modules/cosl-tests: New file.
71951         * tests/test-cosl.c: New file.
71953         Tests for module 'atanl'.
71954         * modules/atanl-tests: New file.
71955         * tests/test-atanl.c: New file.
71957         Tests for module 'asinl'.
71958         * modules/asinl-tests: New file.
71959         * tests/test-asinl.c: New file.
71961         Tests for module 'acosl'.
71962         * modules/acosl-tests: New file.
71963         * tests/test-acosl.c: New file.
71965         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
71966         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
71967         tanl): Use the standard gnulib idiom.
71968         * lib/cosl.c: Don't include trigl.c and sincosl.c.
71969         * lib/sinl.c: Likewise.
71970         * lib/tanl.c: Don't include trigl.c.
71971         (kernel_tanl): Make static.
71972         * lib/sincosl.c: Include trigl.h first.
71973         * lib/trigl.c: Likewise.
71974         * m4/acosl.m4: New file.
71975         * m4/asinl.m4: New file.
71976         * m4/atanl.m4: New file.
71977         * m4/cosl.m4: New file.
71978         * m4/expl.m4: New file.
71979         * m4/logl.m4: New file.
71980         * m4/sinl.m4: New file.
71981         * m4/sqrtl.m4: New file.
71982         * m4/tanl.m4: New file.
71983         * m4/mathl.m4: Remove file.
71984         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
71985         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
71986         Don't initialize GNULIB_MATHL.
71987         * modules/acosl: New file.
71988         * modules/asinl: New file.
71989         * modules/atanl: New file.
71990         * modules/cosl: New file.
71991         * modules/expl: New file.
71992         * modules/logl: New file.
71993         * modules/sinl: New file.
71994         * modules/sqrtl: New file.
71995         * modules/tanl: New file.
71996         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
71997         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
71998         substitute GNULIB_MATHL.
71999         * modules/mathl: Rewritten.
72000         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
72001         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
72002         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
72003         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
72004         * doc/posix-functions/expl.texi: Mention the 'expl' module.
72005         * doc/posix-functions/logl.texi: Mention the 'logl' module.
72006         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
72007         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
72008         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
72010 2010-01-18  Bruno Haible  <bruno@clisp.org>
72012         sqrt: Make gl_FUNC_SQRT requirable.
72013         * m4/sqrt.m4: New file.
72014         * modules/sqrt (Files): Add it.
72015         (configure.ac): Invoke gl_FUNC_SQRT.
72017 2010-01-18  Bruno Haible  <bruno@clisp.org>
72019         New modules for common <math.h> functions.
72020         * m4/mathfunc.m4: New file.
72021         * modules/acos: New file.
72022         * modules/asin: New file.
72023         * modules/atan: New file.
72024         * modules/atan2: New file.
72025         * modules/cbrt: New file.
72026         * modules/copysign: New file.
72027         * modules/cos: New file.
72028         * modules/cosh: New file.
72029         * modules/erf: New file.
72030         * modules/erfc: New file.
72031         * modules/exp: New file.
72032         * modules/fabs: New file.
72033         * modules/fmod: New file.
72034         * modules/hypot: New file.
72035         * modules/j0: New file.
72036         * modules/j1: New file.
72037         * modules/jn: New file.
72038         * modules/ldexp: New file.
72039         * modules/lgamma: New file.
72040         * modules/log: New file.
72041         * modules/log10: New file.
72042         * modules/log1p: New file.
72043         * modules/logb: New file.
72044         * modules/modf: New file.
72045         * modules/nextafter: New file.
72046         * modules/pow: New file.
72047         * modules/remainder: New file.
72048         * modules/rint: New file.
72049         * modules/sin: New file.
72050         * modules/sinh: New file.
72051         * modules/sqrt: New file.
72052         * modules/tan: New file.
72053         * modules/tanh: New file.
72054         * modules/y0: New file.
72055         * modules/y1: New file.
72056         * modules/yn: New file.
72057         * doc/posix-functions/acos.texi: Mention the 'acos' module.
72058         * doc/posix-functions/asin.texi: Mention the 'asin' module.
72059         * doc/posix-functions/atan.texi: Mention the 'atan' module.
72060         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
72061         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
72062         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
72063         * doc/posix-functions/cos.texi: Mention the 'cos' module.
72064         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
72065         * doc/posix-functions/erf.texi: Mention the 'erf' module.
72066         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
72067         * doc/posix-functions/exp.texi: Mention the 'exp' module.
72068         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
72069         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
72070         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
72071         * doc/posix-functions/j0.texi: Mention the 'j0' module.
72072         * doc/posix-functions/j1.texi: Mention the 'j1' module.
72073         * doc/posix-functions/jn.texi: Mention the 'jn' module.
72074         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
72075         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
72076         * doc/posix-functions/log.texi: Mention the 'log' module.
72077         * doc/posix-functions/log10.texi: Mention the 'log10' module.
72078         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
72079         * doc/posix-functions/logb.texi: Mention the 'logb' module.
72080         * doc/posix-functions/modf.texi: Mention the 'modf' module.
72081         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
72082         * doc/posix-functions/pow.texi: Mention the 'pow' module.
72083         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
72084         * doc/posix-functions/rint.texi: Mention the 'rint' module.
72085         * doc/posix-functions/sin.texi: Mention the 'sin' module.
72086         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
72087         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
72088         * doc/posix-functions/tan.texi: Mention the 'tan' module.
72089         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
72090         * doc/posix-functions/y0.texi: Mention the 'y0' module.
72091         * doc/posix-functions/y1.texi: Mention the 'y1' module.
72092         * doc/posix-functions/yn.texi: Mention the 'yn' module.
72094 2010-01-18  Jim Meyering  <meyering@redhat.com>
72096         ignore-value: relax license to LGPLv2+
72097         * modules/ignore-value (License): Relax to LGPLv2+.
72099         getdate: don't leak when TZ contains two or more '"'s
72100         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
72101         double quote in TZ after the first one.
72103         readtokens: do not leak internal token_lengths buffer
72104         * lib/readtokens.c (readtokens): Free the local, lengths,
72105         when the supplied "token_lengths" parameter is NULL.
72107 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72109         Fix a couple of missing LIBTHREAD link failures on AIX.
72110         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
72111         $(LIBTHREAD).
72112         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
72114         Link test-poll against INET_PTON_LIB.
72115         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
72116         for inet_pton on Solaris 10.
72118 2010-01-17  Bruno Haible  <bruno@clisp.org>
72120         unistdio/*-sprintf: Fix typo in module description.
72121         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
72122         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
72123         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
72124         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
72125         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
72126         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
72127         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
72128         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72130 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72132         gnulib-tool: fix filelist for AIX, HP-UX ksh.
72133         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
72134         variables in shell case patterns, for AIX and HP-UX ksh.
72136         Split large sed scripts, for HP-UX sed.
72137         * modules/stdio: Split sed scripts around 50 sed commands,
72138         to avoid HP-UX limit of 99 commands, in the near future.
72139         * modules/string: Likewise.
72140         * modules/unistd: Likewise.
72142         gnulib-tool: avoid writing in the current directory.
72143         * gnulib-tool (func_emit_lib_Makefile_am)
72144         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
72145         not in the current directory, so concurrent gnulib-tool
72146         instances do not interfere.
72148 2010-01-16  Jim Meyering  <meyering@redhat.com>
72150         doc: update users.txt
72151         * users.txt: Add grep.
72152         (diffutils, gzip): Update URLs.
72154 2010-01-12  Bruno Haible  <bruno@clisp.org>
72156         posix_spawn: Avoid test failure on Cygwin.
72157         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
72158         characters.
72159         Reported by Simon Josefsson.
72161 2010-01-12  Bruno Haible  <bruno@clisp.org>
72163         * tests/test-cond.c (main): When skipping the test, show the reason.
72165 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72167         * lib/striconv.c (str_cd_iconv): Avoid if before free.
72169 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72171         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
72172         VC_LIST_ALWAYS_EXCLUDE_REGEX.
72174 2010-01-12  Eric Blake  <ebb9@byu.net>
72176         build: guarantee AS_VAR_IF
72177         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
72178         (gl_AS_VAR_IF): Move...
72179         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
72180         Reported by Simon Josefsson.
72182 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72184         * lib/stdio.in.h: Fix typo.
72186 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72188         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
72189         libgpg-error.
72191 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72193         * tests/test-xalloc-die.sh: Use $EXEEXT.
72195 2010-01-12  Simon Josefsson  <simon@josefsson.org>
72196             Bruno Haible  <bruno@clisp.org>
72198         getlogin, getlogin_r: Avoid test failure.
72199         * tests/test-getlogin.c: Include <stdio.h>.
72200         (main): Skip the test when the function fails because stdin is not a
72201         tty.
72202         * tests/test-getlogin_r.c: Include <stdio.h>.
72203         (main): Skip the test when the function fails because stdin is not a
72204         tty.
72206 2010-01-11  Eric Blake  <ebb9@byu.net>
72208         tests: avoid more large file warnings
72209         * tests/test-fflush.c: Avoid warning about ftell use.
72210         * tests/test-fseek.c: Avoid warning about fseek use.
72212 2010-01-10  Bruno Haible  <bruno@clisp.org>
72214         nproc: Work better on Linux when /proc and /sys are not mounted.
72215         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
72216         as lower bound when, on glibc/Linux systems,
72217         sysconf (_SC_NPROCESSORS_CONF) returns 1.
72218         Suggested by Pádraig Brady <P@draigbrady.com>.
72219         Reported by Dmitry V. Levin <ldv@altlinux.org>.
72221         nproc: Refactor.
72222         * lib/nproc.c (num_processors_via_affinity_mask): New function,
72223         extracted from num_processors.
72224         (num_processors): Call it.
72226 2010-01-11  Jim Meyering  <meyering@redhat.com>
72228         utimecmp: avoid new warning from upcoming gcc-4.5.0
72229         * lib/utimecmp.c (BILLION): Define using #define rather than an
72230         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
72232 2010-01-11  Eric Blake  <ebb9@byu.net>
72234         math: add portability warnings for classification macros
72235         * modules/math (Depends-on): Add warn-on-use.
72236         (Makefile.am): Provide new substitutions.
72237         * m4/math_h.m4 (gl_MATH_H): Require inline.
72238         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
72239         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
72240         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
72241         implement warnings.
72243         unistd: warn on use of environ without module
72244         * modules/unistd (Depends-on): Add warn-on-use.
72245         (Makefile.am): Provide new substitutions.
72246         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
72247         * lib/unistd.in.h (environ): Wrap with a warning helper function.
72249         stdio: warn on suspicious uses
72250         * modules/stdio (Depends-on): Add warn-on-use.
72251         (Makefile.am): Provide new substitutions.
72252         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
72253         fseeko.
72254         * lib/stdio.in.h (gets): Always warn on use.
72255         (fseek, ftell): Adjust when warnings are issued, and honor
72256         _GL_NO_LARGE_FILES as a way to silence the warning.
72257         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
72258         any warning about large file offsets.
72259         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
72260         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
72261         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
72262         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
72263         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
72264         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
72265         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
72266         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
72268         warn-on-use: new module
72269         * modules/warn-on-use: New file.
72270         * build-aux/warn-on-use.h: Likewise.
72271         * m4/warn-on-use.m4: Likewise.
72272         * MODULES.html.sh (Support for building): Mention it.
72274 2010-01-10  Bruno Haible  <bruno@clisp.org>
72276         Tests for module 'unistr/u32-strdup'.
72277         * modules/unistr/u32-strdup-tests: New file.
72278         * tests/unistr/test-u32-strdup.c: New file.
72280         Tests for module 'unistr/u16-strdup'.
72281         * modules/unistr/u16-strdup-tests: New file.
72282         * tests/unistr/test-u16-strdup.c: New file.
72284         Tests for module 'unistr/u8-strdup'.
72285         * modules/unistr/u8-strdup-tests: New file.
72286         * tests/unistr/test-u8-strdup.c: New file.
72287         * tests/unistr/test-strdup.h: New file.
72289         Tests for module 'unistr/u32-strncmp'.
72290         * modules/unistr/u32-strncmp-tests: New file.
72291         * tests/unistr/test-u32-strncmp.c: New file.
72293         Tests for module 'unistr/u16-strncmp'.
72294         * modules/unistr/u16-strncmp-tests: New file.
72295         * tests/unistr/test-u16-strncmp.c: New file.
72297         Tests for module 'unistr/u8-strncmp'.
72298         * modules/unistr/u8-strncmp-tests: New file.
72299         * tests/unistr/test-u8-strncmp.c: New file.
72300         * tests/unistr/test-strncmp.h: New file.
72302         Tests for module 'unistr/u32-strcoll'.
72303         * modules/unistr/u32-strcoll-tests: New file.
72304         * tests/unistr/test-u32-strcoll.c: New file.
72306         Tests for module 'unistr/u16-strcoll'.
72307         * modules/unistr/u16-strcoll-tests: New file.
72308         * tests/unistr/test-u16-strcoll.c: New file.
72310         Tests for module 'unistr/u8-strcoll'.
72311         * modules/unistr/u8-strcoll-tests: New file.
72312         * tests/unistr/test-u8-strcoll.c: New file.
72314         Tests for module 'unistr/u32-strcmp'.
72315         * modules/unistr/u32-strcmp-tests: New file.
72316         * tests/unistr/test-u32-strcmp.c: New file.
72317         * tests/unistr/test-u32-strcmp.h: New file.
72319         Tests for module 'unistr/u16-strcmp'.
72320         * modules/unistr/u16-strcmp-tests: New file.
72321         * tests/unistr/test-u16-strcmp.c: New file.
72322         * tests/unistr/test-u16-strcmp.h: New file.
72324         Tests for module 'unistr/u8-strcmp'.
72325         * modules/unistr/u8-strcmp-tests: New file.
72326         * tests/unistr/test-u8-strcmp.c: New file.
72327         * tests/unistr/test-u8-strcmp.h: New file.
72328         * tests/unistr/test-strcmp.h: New file.
72330         Tests for module 'unistr/u32-strncat'.
72331         * modules/unistr/u32-strncat-tests: New file.
72332         * tests/unistr/test-u32-strncat.c: New file.
72334         Tests for module 'unistr/u16-strncat'.
72335         * modules/unistr/u16-strncat-tests: New file.
72336         * tests/unistr/test-u16-strncat.c: New file.
72338         Tests for module 'unistr/u8-strncat'.
72339         * modules/unistr/u8-strncat-tests: New file.
72340         * tests/unistr/test-u8-strncat.c: New file.
72341         * tests/unistr/test-strncat.h: New file.
72343         Tests for module 'unistr/u32-strcat'.
72344         * modules/unistr/u32-strcat-tests: New file.
72345         * tests/unistr/test-u32-strcat.c: New file.
72347         Tests for module 'unistr/u16-strcat'.
72348         * modules/unistr/u16-strcat-tests: New file.
72349         * tests/unistr/test-u16-strcat.c: New file.
72351         Tests for module 'unistr/u8-strcat'.
72352         * modules/unistr/u8-strcat-tests: New file.
72353         * tests/unistr/test-u8-strcat.c: New file.
72354         * tests/unistr/test-strcat.h: New file.
72356         Tests for module 'unistr/u32-stpncpy'.
72357         * modules/unistr/u32-stpncpy-tests: New file.
72358         * tests/unistr/test-u32-stpncpy.c: New file.
72360         Tests for module 'unistr/u16-stpncpy'.
72361         * modules/unistr/u16-stpncpy-tests: New file.
72362         * tests/unistr/test-u16-stpncpy.c: New file.
72364         Tests for module 'unistr/u8-stpncpy'.
72365         * modules/unistr/u8-stpncpy-tests: New file.
72366         * tests/unistr/test-u8-stpncpy.c: New file.
72367         * tests/unistr/test-stpncpy.h: New file.
72369         Tests for module 'unistr/u32-strncpy'.
72370         * modules/unistr/u32-strncpy-tests: New file.
72371         * tests/unistr/test-u32-strncpy.c: New file.
72373         Tests for module 'unistr/u16-strncpy'.
72374         * modules/unistr/u16-strncpy-tests: New file.
72375         * tests/unistr/test-u16-strncpy.c: New file.
72377         Tests for module 'unistr/u8-strncpy'.
72378         * modules/unistr/u8-strncpy-tests: New file.
72379         * tests/unistr/test-u8-strncpy.c: New file.
72380         * tests/unistr/test-strncpy.h: New file.
72382         Tests for module 'unistr/u32-stpcpy'.
72383         * modules/unistr/u32-stpcpy-tests: New file.
72384         * tests/unistr/test-u32-stpcpy.c: New file.
72386         Tests for module 'unistr/u16-stpcpy'.
72387         * modules/unistr/u16-stpcpy-tests: New file.
72388         * tests/unistr/test-u16-stpcpy.c: New file.
72390         Tests for module 'unistr/u8-stpcpy'.
72391         * modules/unistr/u8-stpcpy-tests: New file.
72392         * tests/unistr/test-u8-stpcpy.c: New file.
72393         * tests/unistr/test-stpcpy.h: New file.
72395         Tests for module 'unistr/u32-strcpy'.
72396         * modules/unistr/u32-strcpy-tests: New file.
72397         * tests/unistr/test-u32-strcpy.c: New file.
72399         Tests for module 'unistr/u16-strcpy'.
72400         * modules/unistr/u16-strcpy-tests: New file.
72401         * tests/unistr/test-u16-strcpy.c: New file.
72403         Tests for module 'unistr/u8-strcpy'.
72404         * modules/unistr/u8-strcpy-tests: New file.
72405         * tests/unistr/test-u8-strcpy.c: New file.
72406         * tests/unistr/test-strcpy.h: New file.
72408         Tests for module 'unistr/u32-strnlen'.
72409         * modules/unistr/u32-strnlen-tests: New file.
72410         * tests/unistr/test-u32-strnlen.c: New file.
72412         Tests for module 'unistr/u16-strnlen'.
72413         * modules/unistr/u16-strnlen-tests: New file.
72414         * tests/unistr/test-u16-strnlen.c: New file.
72416         Tests for module 'unistr/u8-strnlen'.
72417         * modules/unistr/u8-strnlen-tests: New file.
72418         * tests/unistr/test-u8-strnlen.c: New file.
72419         * tests/unistr/test-strnlen.h: New file.
72421         Tests for module 'unistr/u32-strlen'.
72422         * modules/unistr/u32-strlen-tests: New file.
72423         * tests/unistr/test-u32-strlen.c: New file.
72425         Tests for module 'unistr/u16-strlen'.
72426         * modules/unistr/u16-strlen-tests: New file.
72427         * tests/unistr/test-u16-strlen.c: New file.
72429         Tests for module 'unistr/u8-strlen'.
72430         * modules/unistr/u8-strlen-tests: New file.
72431         * tests/unistr/test-u8-strlen.c: New file.
72433         Tests for module 'unistr/u32-prev'.
72434         * modules/unistr/u32-prev-tests: New file.
72435         * tests/unistr/test-u32-prev.c: New file.
72437         Tests for module 'unistr/u16-prev'.
72438         * modules/unistr/u16-prev-tests: New file.
72439         * tests/unistr/test-u16-prev.c: New file.
72441         Tests for module 'unistr/u8-prev'.
72442         * modules/unistr/u8-prev-tests: New file.
72443         * tests/unistr/test-u8-prev.c: New file.
72445         Tests for module 'unistr/u32-next'.
72446         * modules/unistr/u32-next-tests: New file.
72447         * tests/unistr/test-u32-next.c: New file.
72449         Tests for module 'unistr/u16-next'.
72450         * modules/unistr/u16-next-tests: New file.
72451         * tests/unistr/test-u16-next.c: New file.
72453         Tests for module 'unistr/u8-next'.
72454         * modules/unistr/u8-next-tests: New file.
72455         * tests/unistr/test-u8-next.c: New file.
72457         Tests for module 'unistr/u32-strmbtouc'.
72458         * modules/unistr/u32-strmbtouc-tests: New file.
72459         * tests/unistr/test-u32-strmbtouc.c: New file.
72461         Tests for module 'unistr/u16-strmbtouc'.
72462         * modules/unistr/u16-strmbtouc-tests: New file.
72463         * tests/unistr/test-u16-strmbtouc.c: New file.
72465         Tests for module 'unistr/u8-strmbtouc'.
72466         * modules/unistr/u8-strmbtouc-tests: New file.
72467         * tests/unistr/test-u8-strmbtouc.c: New file.
72469         Tests for module 'unistr/u32-strmblen'.
72470         * modules/unistr/u32-strmblen-tests: New file.
72471         * tests/unistr/test-u32-strmblen.c: New file.
72473         Tests for module 'unistr/u16-strmblen'.
72474         * modules/unistr/u16-strmblen-tests: New file.
72475         * tests/unistr/test-u16-strmblen.c: New file.
72477         Tests for module 'unistr/u8-strmblen'.
72478         * modules/unistr/u8-strmblen-tests: New file.
72479         * tests/unistr/test-u8-strmblen.c: New file.
72481         Tests for module 'unistr/u32-cpy-alloc'.
72482         * modules/unistr/u32-cpy-alloc-tests: New file.
72483         * tests/unistr/test-u32-cpy-alloc.c: New file.
72485         Tests for module 'unistr/u16-cpy-alloc'.
72486         * modules/unistr/u16-cpy-alloc-tests: New file.
72487         * tests/unistr/test-u16-cpy-alloc.c: New file.
72489         Tests for module 'unistr/u8-cpy-alloc'.
72490         * modules/unistr/u8-cpy-alloc-tests: New file.
72491         * tests/unistr/test-u8-cpy-alloc.c: New file.
72492         * tests/unistr/test-cpy-alloc.h: New file.
72494         Tests for module 'unistr/u32-mbsnlen'.
72495         * modules/unistr/u32-mbsnlen-tests: New file.
72496         * tests/unistr/test-u32-mbsnlen.c: New file.
72498         Tests for module 'unistr/u16-mbsnlen'.
72499         * modules/unistr/u16-mbsnlen-tests: New file.
72500         * tests/unistr/test-u16-mbsnlen.c: New file.
72502         Tests for module 'unistr/u8-mbsnlen'.
72503         * modules/unistr/u8-mbsnlen-tests: New file.
72504         * tests/unistr/test-u8-mbsnlen.c: New file.
72506         Tests for module 'unistr/u32-chr'.
72507         * modules/unistr/u32-chr-tests: New file.
72508         * tests/unistr/test-u32-chr.c: New file.
72510         Tests for module 'unistr/u16-chr'.
72511         * modules/unistr/u16-chr-tests: New file.
72512         * tests/unistr/test-u16-chr.c: New file.
72514         Tests for module 'unistr/u8-chr'.
72515         * modules/unistr/u8-chr-tests: New file.
72516         * tests/unistr/test-u8-chr.c: New file.
72517         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
72519         Tests for module 'unistr/u32-cmp2'.
72520         * modules/unistr/u32-cmp2-tests: New file.
72521         * tests/unistr/test-u32-cmp2.c: New file.
72523         Tests for module 'unistr/u16-cmp2'.
72524         * modules/unistr/u16-cmp2-tests: New file.
72525         * tests/unistr/test-u16-cmp2.c: New file.
72527         Tests for module 'unistr/u8-cmp2'.
72528         * modules/unistr/u8-cmp2-tests: New file.
72529         * tests/unistr/test-u8-cmp2.c: New file.
72530         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
72532         Tests for module 'unistr/u32-cmp'.
72533         * modules/unistr/u32-cmp-tests: New file.
72534         * tests/unistr/test-u32-cmp.c: New file.
72536         Tests for module 'unistr/u16-cmp'.
72537         * modules/unistr/u16-cmp-tests: New file.
72538         * tests/unistr/test-u16-cmp.c: New file.
72540         Tests for module 'unistr/u8-cmp'.
72541         * modules/unistr/u8-cmp-tests: New file.
72542         * tests/unistr/test-u8-cmp.c: New file.
72543         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
72545         Tests for module 'unistr/u32-set'.
72546         * modules/unistr/u32-set-tests: New file.
72547         * tests/unistr/test-u32-set.c: New file.
72549         Tests for module 'unistr/u16-set'.
72550         * modules/unistr/u16-set-tests: New file.
72551         * tests/unistr/test-u16-set.c: New file.
72553         Tests for module 'unistr/u8-set'.
72554         * modules/unistr/u8-set-tests: New file.
72555         * tests/unistr/test-u8-set.c: New file.
72556         * tests/unistr/test-set.h: New file.
72558         Tests for module 'unistr/u32-move'.
72559         * modules/unistr/u32-move-tests: New file.
72560         * tests/unistr/test-u32-move.c: New file.
72562         Tests for module 'unistr/u16-move'.
72563         * modules/unistr/u16-move-tests: New file.
72564         * tests/unistr/test-u16-move.c: New file.
72566         Tests for module 'unistr/u8-move'.
72567         * modules/unistr/u8-move-tests: New file.
72568         * tests/unistr/test-u8-move.c: New file.
72569         * tests/unistr/test-move.h: New file.
72571         Tests for module 'unistr/u32-cpy'.
72572         * modules/unistr/u32-cpy-tests: New file.
72573         * tests/unistr/test-u32-cpy.c: New file.
72575         Tests for module 'unistr/u16-cpy'.
72576         * modules/unistr/u16-cpy-tests: New file.
72577         * tests/unistr/test-u16-cpy.c: New file.
72579         Tests for module 'unistr/u8-cpy'.
72580         * modules/unistr/u8-cpy-tests: New file.
72581         * tests/unistr/test-u8-cpy.c: New file.
72582         * tests/unistr/test-cpy.h: New file.
72584 2010-01-09  Bruno Haible  <bruno@clisp.org>
72586         Tests for module 'unistr/u32-uctomb'.
72587         * modules/unistr/u32-uctomb-tests: New file.
72588         * tests/unistr/test-u32-uctomb.c: New file.
72590         Tests for module 'unistr/u16-uctomb'.
72591         * modules/unistr/u16-uctomb-tests: New file.
72592         * tests/unistr/test-u16-uctomb.c: New file.
72594         Tests for module 'unistr/u8-uctomb'.
72595         * modules/unistr/u8-uctomb-tests: New file.
72596         * tests/unistr/test-u8-uctomb.c: New file.
72598         Tests for module 'unistr/u32-mbtoucr'.
72599         * modules/unistr/u32-mbtoucr-tests: New file.
72600         * tests/unistr/test-u32-mbtoucr.c: New file.
72602         Tests for module 'unistr/u16-mbtoucr'.
72603         * modules/unistr/u16-mbtoucr-tests: New file.
72604         * tests/unistr/test-u16-mbtoucr.c: New file.
72606         Tests for module 'unistr/u8-mbtoucr'.
72607         * modules/unistr/u8-mbtoucr-tests: New file.
72608         * tests/unistr/test-u8-mbtoucr.c: New file.
72610         Tests for module 'unistr/u32-mbtouc'.
72611         * modules/unistr/u32-mbtouc-tests: New file.
72612         * tests/unistr/test-u32-mbtouc.c: New file.
72614         Tests for module 'unistr/u16-mbtouc'.
72615         * modules/unistr/u16-mbtouc-tests: New file.
72616         * tests/unistr/test-u16-mbtouc.c: New file.
72618         Tests for module 'unistr/u8-mbtouc'.
72619         * modules/unistr/u8-mbtouc-tests: New file.
72620         * tests/unistr/test-u8-mbtouc.c: New file.
72622         Tests for module 'unistr/u32-mbtouc-unsafe'.
72623         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
72624         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
72625         * tests/unistr/test-u32-mbtouc.h: New file.
72627         Tests for module 'unistr/u16-mbtouc-unsafe'.
72628         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
72629         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
72630         * tests/unistr/test-u16-mbtouc.h: New file.
72632         Tests for module 'unistr/u8-mbtouc-unsafe'.
72633         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
72634         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
72635         * tests/unistr/test-u8-mbtouc.h: New file.
72637         Tests for module 'unistr/u32-mblen'.
72638         * modules/unistr/u32-mblen-tests: New file.
72639         * tests/unistr/test-u32-mblen.c: New file.
72641         Tests for module 'unistr/u16-mblen'.
72642         * modules/unistr/u16-mblen-tests: New file.
72643         * tests/unistr/test-u16-mblen.c: New file.
72645         Tests for module 'unistr/u8-mblen'.
72646         * modules/unistr/u8-mblen-tests: New file.
72647         * tests/unistr/test-u8-mblen.c: New file.
72649         Tests for module 'unistr/u32-to-u16'.
72650         * modules/unistr/u32-to-u16-tests: New file.
72651         * tests/unistr/test-u32-to-u16.c: New file.
72653         Tests for module 'unistr/u32-to-u8'.
72654         * modules/unistr/u32-to-u8-tests: New file.
72655         * tests/unistr/test-u32-to-u8.c: New file.
72657         Tests for module 'unistr/u16-to-u32'.
72658         * modules/unistr/u16-to-u32-tests: New file.
72659         * tests/unistr/test-u16-to-u32.c: New file.
72661         Tests for module 'unistr/u16-to-u8'.
72662         * modules/unistr/u16-to-u8-tests: New file.
72663         * tests/unistr/test-u16-to-u8.c: New file.
72665         Tests for module 'unistr/u8-to-u32'.
72666         * modules/unistr/u8-to-u32-tests: New file.
72667         * tests/unistr/test-u8-to-u32.c: New file.
72669         Tests for module 'unistr/u8-to-u16'.
72670         * modules/unistr/u8-to-u16-tests: New file.
72671         * tests/unistr/test-u8-to-u16.c: New file.
72673         Tests for module 'unistr/u32-check'.
72674         * modules/unistr/u32-check-tests: New file.
72675         * tests/unistr/test-u32-check.c: New file.
72677         Tests for module 'unistr/u16-check'.
72678         * modules/unistr/u16-check-tests: New file.
72679         * tests/unistr/test-u16-check.c: New file.
72681         Tests for module 'unistr/u8-check'.
72682         * modules/unistr/u8-check-tests: New file.
72683         * tests/unistr/test-u8-check.c: New file.
72685         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
72686         (category_equals): New function.
72687         (main): Add more tests.
72688         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
72690         * tests/unictype/test-bidi_byname.c (main): Add more tests.
72692 2010-01-10  Bruno Haible  <bruno@clisp.org>
72694         unistr/u*-strcoll: Try harder to distinguish different strings.
72695         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
72696         compare s1 and s2 to see if they are different.
72698 2010-01-10  Bruno Haible  <bruno@clisp.org>
72700         unistr/u*-stpncpy: Fix the return value.
72701         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
72702         description of the return value consistent with stpncpy in glibc.
72703         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
72704         written non-NUL unit.
72706 2010-01-10  Bruno Haible  <bruno@clisp.org>
72708         unistr/u*-next: Add missing dependencies.
72709         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
72710         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
72711         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
72713 2010-01-10  Bruno Haible  <bruno@clisp.org>
72715         unistr/u8-mbsnlen: Fix return value for incomplete character.
72716         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
72717         u8_mblen.
72718         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
72719         Remove unistr/u8-mblen.
72720         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
72721         u16_mblen.
72722         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
72723         Remove unistr/u16-mblen.
72725 2010-01-10  Bruno Haible  <bruno@clisp.org>
72727         wchar: Fix compilation error when <wchar.h> is used from coreutils.
72728         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
72729         Reported by Brian Gough <bjg@gnu.org> and
72730         Chris Clayton <chris2553@googlemail.com> via
72731         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
72733 2010-01-09  Bruno Haible  <bruno@clisp.org>
72735         unistr/u16-to-u32: Reject invalid input.
72736         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
72737         u16_mbtouc.
72738         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
72739         Remove unistr/u16-mbtouc.
72741         unistr/u16-to-u8: Reject invalid input.
72742         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
72743         u16_mbtouc.
72744         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
72745         Remove unistr/u16-mbtouc.
72747         unistr/u8-to-u32: Reject invalid input.
72748         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
72749         u8_mbtouc.
72750         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
72751         Remove unistr/u8-mbtouc.
72753         unistr/u8-to-u16: Reject invalid input.
72754         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
72755         u8_mbtouc.
72756         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
72757         Remove unistr/u8-mbtouc.
72759 2010-01-09  Bruno Haible  <bruno@clisp.org>
72761         Tests for module 'getlogin'.
72762         * modules/getlogin-tests: New file.
72763         * tests/test-getlogin.c: New file.
72765         New module 'getlogin'.
72766         * lib/unistd.in.h (getlogin): New declaration.
72767         * lib/getlogin.c: New file.
72768         * m4/getlogin.m4: New file.
72769         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
72770         HAVE_GETLOGIN.
72771         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
72772         HAVE_GETLOGIN.
72773         * modules/getlogin: New file.
72774         * doc/posix-functions/getlogin.texi: Mention the new module.
72775         Reported by John W. Eaton <jwe@gnu.org>.
72777 2010-01-09  Bruno Haible  <bruno@clisp.org>
72779         getlogin_r: Support for native Windows.
72780         * lib/getlogin_r.c: Include <windows.h>
72781         (getlogin_r): Implement for native Windows.
72782         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
72783         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
72784         via John W. Eaton <jwe@gnu.org>.
72786 2010-01-09  Bruno Haible  <bruno@clisp.org>
72788         getlogin_r: Small fixes.
72789         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
72790         succeeds.
72791         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
72792         before testing whether getlogin_r is declared. No need to set
72793         HAVE_DECL_GETLOGIN_R to 1.
72794         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
72796 2010-01-09  Bruno Haible  <bruno@clisp.org>
72798         * lib/unistd.in.h (getlogin_r): Add comment.
72800 2010-01-09  Bruno Haible  <bruno@clisp.org>
72802         Tests for module 'getlogin_r'.
72803         * modules/getlogin_r-tests: New file.
72804         * tests/test-getlogin_r.c: New file.
72806 2010-01-09  Jim Meyering  <meyering@redhat.com>
72808         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
72809         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
72810         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
72812 2010-01-08  Simon Josefsson  <simon@josefsson.org>
72814         * lib/dup2.c (rpl_dup2): Improve comment.
72816 2010-01-08  Eric Blake  <ebb9@byu.net>
72818         maint.mk: allow packages to add makefile @@ exceptions
72819         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
72820         (sc_makefile_check): Rename...
72821         (sc_makefile_at_at_check): ...to this, and use hook.
72823         dup2: work around mingw bug
72824         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
72825         Reported by Simon Josefsson.
72827 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
72829         glob: Fix C++ compilation.
72830         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
72831         C++.
72833 2010-01-07  Bruno Haible  <bruno@clisp.org>
72835         Fix indentation of wctype.in.h, broken since 2007-01-06.
72836         * lib/wctype.in.h: Fix indentation of preprocessor directives.
72838 2010-01-07  Bruno Haible  <bruno@clisp.org>
72840         mbslen: Avoid collision with system function.
72841         * lib/string.in.h [MirBSD]: Include <wchar.h>.
72842         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
72843         * m4/mbslen.m4: New file.
72844         * modules/mbslen (Files): Add it.
72845         (configure.ac): Invoke gl_MBSLEN.
72846         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
72847         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
72848         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
72849         via Ian Beckwith <ianb@erislabs.net>.
72851 2010-01-07  Bruno Haible  <bruno@clisp.org>
72853         dirent: Document the last fix.
72854         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
72856 2010-01-07  Bruno Haible  <bruno@clisp.org>
72858         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
72859         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
72860         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
72861         va_list are defined.
72862         * doc/posix-headers/stdio.texi: Document the bug of missing types.
72863         Reported by Eric Blake.
72865 2010-01-07  Bruno Haible  <bruno@clisp.org>
72867         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
72868         * modules/xlist (Depends-on): Add 'list',
72869         * modules/xoset (Depends-on): Add 'oset'.
72870         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72872 2010-01-07  Bruno Haible  <bruno@clisp.org>
72874         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
72875         * doc/posix-functions/strncasecmp.texi: Likewise.
72877 2010-01-07  Bruno Haible  <bruno@clisp.org>
72879         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
72881 2010-01-07  John W. Eaton  <jwe@octave.org>
72883         wctype: allow C++ use
72884         * lib/wctype.in.h: Add extern "C" block for C++.
72886 2010-01-06  Eric Blake  <ebb9@byu.net>
72888         maint.mk: detect incorrect GFDL usage
72889         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
72891 2010-01-06  Jim Meyering  <meyering@redhat.com>
72892         and Eric Blake  <ebb9@byu.net>
72894         maint.mk: ignore multi-line copyright in NEWS
72895         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
72897 2010-01-06  Eric Blake  <ebb9@byu.net>
72899         select: add missing dependency
72900         * modules/select-tests (Depends-on): Move sockets dependency...
72901         * modules/select (Depends-on): ...here.
72902         Reported by Ian Beckwith.
72904         doc: regenerate INSTALL
72905         * doc/INSTALL: Reflect recent autoconf update.
72906         * doc/INSTALL.ISO: Likewise.
72907         * doc/INSTALL.UTF-8: Likewise.
72909         pread: fix compilation on glibc
72910         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
72911         Reported by Ralf Wildenhues.
72913         dirent: fix test failure
72914         * lib/dirent.in.h (includes): Guarantee ino_t.
72915         Reported by Ralf Wildenhues.
72917 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
72919         linkat, renameat: avoid bad free
72920         * lib/at-func2.c (at_func2): Fix typo.
72921         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
72923 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72925         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
72926         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
72927         to avoid failure of symlink test later.
72929 2010-01-06  Eric Blake  <ebb9@byu.net>
72931         stdio, unistd: guarantee ssize_t
72932         * lib/unistd.in.h (includes): Ensure that types required by POSIX
72933         2008 are exposed when needed.
72934         * lib/stdio.in.h (includes): Likewise.
72935         Reported by Ralf Wildenhues.
72937 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
72939         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
72940         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
72941         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
72943 2010-01-06  Jim Meyering  <meyering@redhat.com>
72945         readtokens: this module *does* require xalloc.h
72946         It uses only functions that were omitted by the old syntax-check rule.
72947         * lib/readtokens.c: Include "xalloc.h" once again.
72948         * modules/readtokens (Depends-on): Add xalloc.
72949         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
72951 2010-01-05  Eric Blake  <ebb9@byu.net>
72953         maint: support 'make announcement' from a VPATH build
72954         * top/maint.mk (announcement): Look for correct NEWS file.
72956 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
72958         utimens (fdutimens): ignore a negative FD, per contract
72959         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
72960         when we have a valid file descriptor.  Otherwise, using a brand
72961         new glibc (with just-patched futimens that now fails with EBADF)
72962         would cause this function to fail with ENOSYS.
72963         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
72964         See also http://bugzilla.redhat.com/552320.
72966 2010-01-05  Eric Blake  <ebb9@byu.net>
72968         strcase: document what it provides
72969         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
72970         gnulib module.
72971         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
72972         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
72974 2010-01-05  Jim Meyering  <meyering@redhat.com>
72976         maint: remove useless inclusions of "xalloc.h"
72977         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
72978         * lib/readtokens.c: Likewise.
72979         * lib/same.c: Likewise.
72980         * modules/getloadavg (Depends-on): Remove xalloc.
72981         * modules/readtokens: Likewise.
72982         * modules/same: Likewise.
72984         maint.mk: include 4 more function names in alloca.h-checking regexp
72985         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
72986         regexp.  Before, we would give a false-positive (saying alloca.h
72987         is included unnecessarily) when the only uses involved omitted symbols.
72989         xalloc.h: use consistent formatting
72990         * lib/xalloc.h: Move declarations to start in the first column.
72992 2010-01-05  Eric Blake  <ebb9@byu.net>
72994         mkdir: avoid xalloc
72995         * lib/mkdir.c (includes): Drop unused header.
72996         Reported by John W. Eaton.
72998 2010-01-04  Jim Meyering  <meyering@redhat.com>
73000         nl_langinfo: avoid configure-time syntax error
73001         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
73002         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
73003         the empty string.  Don't let that provoke a shell syntax error.
73005         regcomp, regexec, fnmatch: avoid array bounds read error
73006         * lib/regcomp.c (build_equiv_class): From glibc:
73007         Use only the low 24 bits of a findidx return value as an index
73008         into the weights array.  Patch by Ulrich Drepper:
73009         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
73010         * lib/regexec.c (check_node_accept_bytes): Likewise.
73011         * lib/fnmatch_loop.c (FCT): Likewise.
73013         regcomp: skip collseq lookup when there are no rules
73014         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
73015         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
73017         regcomp: recognize ill-formed { } expressions
73018         * lib/regcomp.c (parse_dup_op): From glibc:
73019         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
73021         regcomp: fix typo in comment
73022         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
73023         s/satisfy/satisfies/.
73025         regcomp: sync from glibc: remove dead store
73026         * lib/regcomp.c (duplicate_node_closure): Remove useless
73027         search_duplicated_node call and dead store.
73029         regcomp: sync from glibc; always use nl_langinfo
73030         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
73031         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
73032         * modules/regex (Depends-on): Add nl_langinfo.
73034 2010-01-04  Eric Blake  <ebb9@byu.net>
73036         fdopendir: fix configure test
73037         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
73039 2010-01-01  Bruno Haible  <bruno@clisp.org>
73041         wchar: Remove unused configure check.
73042         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
73044 2010-01-01  Eric Blake  <ebb9@byu.net>
73046         headers: make check of system header explicit
73047         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
73048         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
73049         ourselves.
73050         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
73051         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
73052         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
73053         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
73054         internals.
73055         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
73056         missing.
73057         Suggested by Bruno Haible.
73059 2010-01-01  Jim Meyering  <meyering@redhat.com>
73061         ChangeLog: tweak to eliminate unnecessary copyright line
73062         * ChangeLog: Remove a copyright line that was mistakenly updated
73063         by today's update-copyright run.  Reported by Eric Blake.
73065         test-update-copyright: don't let envvar setting cause test failure
73066         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
73068 2010-01-01  Bruno Haible  <bruno@clisp.org>
73070         localename: Avoid gcc warning.
73071         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
73072         function if it is not used.
73074 2010-01-01  Jim Meyering  <meyering@redhat.com>
73076         update nearly all FSF copyright year lists to include 2010
73077         Use the same procedure as for 2009, outlined in
73078         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
73080         version-etc: set COPYRIGHT_YEAR to 2010
73081         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
73083 2009-12-31  Eric Blake  <ebb9@byu.net>
73085         doc: correct availability of cygwin 1.5.x getopt
73086         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
73087         variables.
73088         * doc/posix-functions/opterr.texi (opterr): Likewise.
73089         * doc/posix-functions/optind.texi (optind): Likewise.
73090         * doc/posix-functions/optopt.texi (optopt): Likewise.
73091         * doc/posix-functions/tzname.texi (tzname): Likewise.
73093         openat: update maintainer
73094         * modules/openat (Maintainer): Add myself.
73096         utimens: avoid shadowing warning
73097         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
73098         buffers into one, to avoid shadowing, as well as avoiding a
73099         redundant stat.
73100         Reported by Jim Meyering.
73102         test-dup2: avoid compiler warning
73103         * tests/test-dup2.c (is_inheritable): Only define if used.
73105 2010-01-01  Bruno Haible  <bruno@clisp.org>
73107         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
73108         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
73109         defined, use wctomb instead of wcrtomb.
73111 2010-01-01  Bruno Haible  <bruno@clisp.org>
73113         iconv: Reject native Solaris iconv.
73114         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
73115         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
73117 2009-12-31  Bruno Haible  <bruno@clisp.org>
73119         * tests/test-signal.c (main): Remove test of 'SIG'.
73121 2009-12-31  Bruno Haible  <bruno@clisp.org>
73123         spawn: Fix incomplete fix.
73124         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
73125         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
73126         warnings for GNULIB_POSIXCHECK again.
73127         Reported by Eric Blake.
73129 2009-12-31  Bruno Haible  <bruno@clisp.org>
73131         Avoid namespace pollution on glibc systems.
73132         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
73133         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
73134         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
73135         glibc systems.
73137 2009-12-31  Bruno Haible  <bruno@clisp.org>
73139         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
73140         (gl_REPLACE_WCHAR_H): Turn into a no-op.
73141         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
73142         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
73143         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
73144         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
73145         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
73147 2009-12-31  Bruno Haible  <bruno@clisp.org>
73149         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
73150         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
73151         afterwards.
73153 2009-12-31  Bruno Haible  <bruno@clisp.org>
73155         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
73156         SYS_UTSNAME_H.
73158 2009-12-31  Bruno Haible  <bruno@clisp.org>
73160         spawn: Fix misapplied patch.
73161         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
73162         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
73163         warnings for GNULIB_POSIXCHECK.
73165 2009-12-31  Bruno Haible  <bruno@clisp.org>
73167         times: Update after sys_times changed.
73168         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
73169         * modules/times (Files): Add it.
73170         (configure.ac): Invoke gl_FUNC_TIMES.
73172 2009-12-31  Bruno Haible  <bruno@clisp.org>
73174         Use AC_C_INLINE where necessary.
73175         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
73176         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
73177         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
73178         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
73179         * m4/mbfile.m4 (gl_MBFILE): Likewise.
73180         * m4/mbiter.m4 (gl_MBITER): Likewise.
73181         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
73182         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
73183         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
73184         * modules/u64 (configure.ac): Likewise.
73186 2009-12-31  Bruno Haible  <bruno@clisp.org>
73188         Use AC_C_INLINE instead of module 'inline' where possible.
73189         * modules/inline (Description): Clarify purpose.
73190         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
73191         * modules/count-one-bits (Depends-on): Remove inline.
73192         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
73193         * modules/openat (Depends-on): Remove inline.
73194         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
73195         instead of depending on module 'inline'.
73196         * modules/filevercmp (Depends-on, configure.ac): Likewise.
73197         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
73198         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
73199         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
73200         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
73201         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
73202         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
73203         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
73204         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
73205         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
73206         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
73207         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
73208         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
73209         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
73210         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
73211         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
73212         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
73213         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
73214         Likewise.
73215         * modules/unictype/property-ascii-hex-digit (Depends-on,
73216         configure.ac): Likewise.
73217         * modules/unictype/property-bidi-arabic-digit (Depends-on,
73218         configure.ac): Likewise.
73219         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
73220         configure.ac): Likewise.
73221         * modules/unictype/property-bidi-block-separator (Depends-on,
73222         configure.ac): Likewise.
73223         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
73224         configure.ac): Likewise.
73225         * modules/unictype/property-bidi-common-separator (Depends-on,
73226         configure.ac): Likewise.
73227         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
73228         Likewise.
73229         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
73230         configure.ac): Likewise.
73231         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
73232         configure.ac): Likewise.
73233         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
73234         configure.ac): Likewise.
73235         * modules/unictype/property-bidi-european-digit (Depends-on,
73236         configure.ac): Likewise.
73237         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
73238         configure.ac): Likewise.
73239         * modules/unictype/property-bidi-left-to-right (Depends-on,
73240         configure.ac): Likewise.
73241         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
73242         configure.ac): Likewise.
73243         * modules/unictype/property-bidi-other-neutral (Depends-on,
73244         configure.ac): Likewise.
73245         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
73246         Likewise.
73247         * modules/unictype/property-bidi-segment-separator (Depends-on,
73248         configure.ac): Likewise.
73249         * modules/unictype/property-bidi-whitespace (Depends-on,
73250         configure.ac): Likewise.
73251         * modules/unictype/property-combining (Depends-on, configure.ac):
73252         Likewise.
73253         * modules/unictype/property-composite (Depends-on, configure.ac):
73254         Likewise.
73255         * modules/unictype/property-currency-symbol (Depends-on,
73256         configure.ac): Likewise.
73257         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
73258         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
73259         Likewise.
73260         * modules/unictype/property-default-ignorable-code-point (Depends-on,
73261         configure.ac): Likewise.
73262         * modules/unictype/property-deprecated (Depends-on, configure.ac):
73263         Likewise.
73264         * modules/unictype/property-diacritic (Depends-on, configure.ac):
73265         Likewise.
73266         * modules/unictype/property-extender (Depends-on, configure.ac):
73267         Likewise.
73268         * modules/unictype/property-format-control (Depends-on, configure.ac):
73269         Likewise.
73270         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
73271         Likewise.
73272         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
73273         Likewise.
73274         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
73275         Likewise.
73276         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
73277         Likewise.
73278         * modules/unictype/property-hyphen (Depends-on, configure.ac):
73279         Likewise.
73280         * modules/unictype/property-id-continue (Depends-on, configure.ac):
73281         Likewise.
73282         * modules/unictype/property-id-start (Depends-on, configure.ac):
73283         Likewise.
73284         * modules/unictype/property-ideographic (Depends-on, configure.ac):
73285         Likewise.
73286         * modules/unictype/property-ids-binary-operator (Depends-on,
73287         configure.ac): Likewise.
73288         * modules/unictype/property-ids-trinary-operator (Depends-on,
73289         configure.ac): Likewise.
73290         * modules/unictype/property-ignorable-control (Depends-on,
73291         configure.ac): Likewise.
73292         * modules/unictype/property-iso-control (Depends-on, configure.ac):
73293         Likewise.
73294         * modules/unictype/property-join-control (Depends-on, configure.ac):
73295         Likewise.
73296         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
73297         Likewise.
73298         * modules/unictype/property-line-separator (Depends-on, configure.ac):
73299         Likewise.
73300         * modules/unictype/property-logical-order-exception (Depends-on,
73301         configure.ac): Likewise.
73302         * modules/unictype/property-lowercase (Depends-on, configure.ac):
73303         Likewise.
73304         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
73305         * modules/unictype/property-non-break (Depends-on, configure.ac):
73306         Likewise.
73307         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
73308         Likewise.
73309         * modules/unictype/property-numeric (Depends-on, configure.ac):
73310         Likewise.
73311         * modules/unictype/property-other-alphabetic (Depends-on,
73312         configure.ac): Likewise.
73313         * modules/unictype/property-other-default-ignorable-code-point
73314         (Depends-on, configure.ac): Likewise.
73315         * modules/unictype/property-other-grapheme-extend (Depends-on,
73316         configure.ac): Likewise.
73317         * modules/unictype/property-other-id-continue (Depends-on,
73318         configure.ac): Likewise.
73319         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
73320         Likewise.
73321         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
73322         Likewise.
73323         * modules/unictype/property-other-math (Depends-on, configure.ac):
73324         Likewise.
73325         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
73326         Likewise.
73327         * modules/unictype/property-paired-punctuation (Depends-on,
73328         configure.ac): Likewise.
73329         * modules/unictype/property-paragraph-separator (Depends-on,
73330         configure.ac): Likewise.
73331         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
73332         Likewise.
73333         * modules/unictype/property-pattern-white-space (Depends-on,
73334         configure.ac): Likewise.
73335         * modules/unictype/property-private-use (Depends-on, configure.ac):
73336         Likewise.
73337         * modules/unictype/property-punctuation (Depends-on, configure.ac):
73338         Likewise.
73339         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
73340         Likewise.
73341         * modules/unictype/property-radical (Depends-on, configure.ac):
73342         Likewise.
73343         * modules/unictype/property-sentence-terminal (Depends-on,
73344         configure.ac): Likewise.
73345         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
73346         Likewise.
73347         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
73348         * modules/unictype/property-terminal-punctuation (Depends-on,
73349         configure.ac): Likewise.
73350         * modules/unictype/property-titlecase (Depends-on, configure.ac):
73351         Likewise.
73352         * modules/unictype/property-unassigned-code-value (Depends-on,
73353         configure.ac): Likewise.
73354         * modules/unictype/property-unified-ideograph (Depends-on,
73355         configure.ac): Likewise.
73356         * modules/unictype/property-uppercase (Depends-on, configure.ac):
73357         Likewise.
73358         * modules/unictype/property-variation-selector (Depends-on,
73359         configure.ac): Likewise.
73360         * modules/unictype/property-white-space (Depends-on, configure.ac):
73361         Likewise.
73362         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
73363         Likewise.
73364         * modules/unictype/property-xid-start (Depends-on, configure.ac):
73365         Likewise.
73366         * modules/unictype/property-zero-width (Depends-on, configure.ac):
73367         Likewise.
73368         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
73369         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
73370         Likewise.
73372 2009-12-31  Bruno Haible  <bruno@clisp.org>
73374         Remove unnecessary AC_C_INLINE invocation.
73375         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
73376         since 2009-08-21.
73378 2009-12-31  Jim Meyering  <meyering@redhat.com>
73380         maint.mk: don't require explicit gpg_key_ID in cfg.mk
73381         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
73382         With this change, we can all remove the gpg_key_ID = ... definition
73383         from our respective cfg.mk files.
73385         maint.mk: create announcement template in ~/, not in /tmp
73386         * top/maint.mk (emit_upload_commands): Adjust.
73387         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
73388         Remove temporary file, .ci-msg.
73390 2009-12-31  Eric Blake  <ebb9@byu.net>
73392         link-warning: always build headers with link warnings
73393         * modules/arpa_inet (Makefile.am): Always build replacement
73394         header.
73395         * modules/ctype (Makefile.am): Likewise.
73396         * modules/dirent (Makefile.am): Likewise.
73397         * modules/inttypes (Makefile.am): Likewise.
73398         * modules/langinfo (Makefile.am): Likewise.
73399         * modules/locale (Makefile.am): Likewise.
73400         * modules/spawn (Makefile.am): Likewise.
73401         * modules/sys_file (Makefile.am): Likewise.
73402         * modules/sys_ioctl (Makefile.am): Likewise.
73403         * modules/sys_select (Makefile.am): Likewise.
73404         * modules/sys_socket (Makefile.am): Likewise.
73405         * modules/sys_times (Makefile.am): Likewise.
73406         * modules/sys_utsname (Makefile.am): Likewise.
73407         * modules/sys_wait (Makefile.am): Likewise.
73408         * modules/wchar (Makefile.am): Likewise.
73409         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
73410         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
73411         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
73412         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
73413         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
73414         Likewise.
73415         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
73416         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
73417         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
73418         Likewise.
73419         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
73420         Likewise.
73421         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
73422         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
73423         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
73424         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
73425         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
73426         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
73427         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
73428         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
73429         (gl_WCHAR_H_DEFAULTS): Likewise.
73431 2009-12-31  Eric Blake  <ebb9@byu.net>
73433         signal, spawn: use link warnings
73434         * lib/signal.in.h (sigset_t): Make unconditional.
73435         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
73436         (sigpending, sigprocmask, sigaction): Add link warnings.
73437         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
73438         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
73439         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
73440         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
73441         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
73442         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
73443         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
73444         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
73445         (posix_spawn_file_actions_destroy)
73446         (posix_spawn_file_actions_addopen)
73447         (posix_spawn_file_actions_addclose)
73448         (posix_spawn_file_actions_adddup2): Likewise.
73449         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
73450         * tests/test-signal.c (main): Enhance test.
73452         spawn: improve wrapper support
73453         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
73454         (gl_SPAWN_H_DEFAULTS): New defaults.
73455         * modules/spawn (Makefile.am): Substitute them.
73456         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
73457         Only declare if missing or broken.
73459         sys_times, sys_utsname: use include_next
73460         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
73461         header.
73462         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
73463         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
73464         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
73465         * modules/sys_times (Depends-on): Add include_next.
73466         (Makefile.am): Substitute additional values.
73467         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
73468         * lib/sys_times.in.h (includes): Include native header, if
73469         available.
73470         * lib/sys_utsname.in.h (includes): Likewise.
73471         * tests/test-sys_times.c (main): Enhance test.
73473         fdutimensat: revert prior patch
73474         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
73475         utimens.h.
73476         Reported by Bruno Haible.
73478 2009-12-30  Eric Blake  <ebb9@byu.net>
73480         sys_wait: drop link-warning dependency
73481         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
73482         link-warning efforts.
73483         * lib/sys_wait.in.h: Likewise.
73485         fdutimensat: remove bogus dependency
73486         * modules/fdutimensat (Depends-on): Drop inline.
73488         unistd: fix typo
73489         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
73491 2009-12-30  Bruno Haible  <bruno@clisp.org>
73493         Fix compilation error with Solaris cc.
73494         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
73495         * lib/unicase/u16-is-invariant.c: Likewise.
73496         * lib/unicase/u32-is-invariant.c: Likewise.
73497         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
73499 2009-12-30  Bruno Haible  <bruno@clisp.org>
73501         Fix test crash.
73502         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
73503         locales.
73504         Reported by Simon Josefsson <simon@josefsson.org>.
73506 2009-12-30  Bruno Haible  <bruno@clisp.org>
73508         Fix compilation error on most platforms.
73509         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
73510         Reported by Simon Josefsson <simon@josefsson.org>
73511         and Nelson H. F. Beebe <beebe@math.utah.edu>.
73513 2009-12-30  Eric Blake  <ebb9@byu.net>
73515         futimens, utimensat: work around ntfs-3g bug
73516         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
73517         a ctime bug is present, and expand workaround to cover ntfs-3g.
73518         * lib/utimens.c (fdutimens, lutimens): Likewise.
73519         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
73520         (validate_timespec): Adjust return value.
73521         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
73522         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
73523         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
73525 2009-12-29  Eric Blake  <ebb9@byu.net>
73527         link-warning: make usage consistent
73528         * modules/ctype (Depends-on): Add link-warning.
73529         (Makefile.am): Update rules accordingly.
73530         * modules/langinfo (Depends-on, Makefile.am): Likewise.
73531         * modules/locale (Depends-on, Makefile.am): Likewise.
73532         * modules/sys_file (Makefile.am): Likewise.
73533         * modules/getopt-posix (Makefile.am): Delete unused link warning
73534         efforts.
73535         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
73536         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
73537         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
73538         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
73540         stdio: remove unused variables
73541         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
73542         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
73543         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
73545         tests: test more substitute headers
73546         * modules/ctype-tests: New file.
73547         * modules/dirent-tests: Likewise.
73548         * modules/spawn-tests: Likewise.
73549         * modules/sys_file-tests: Likewise.
73550         * modules/sys_ioctl-tests: Likewise.
73551         * modules/sys_wait-tests: Likewise.
73552         * tests/test-ctype.c: Likewise.
73553         * tests/test-dirent.c: Likewise.
73554         * tests/test-spawn.c: Likewise.
73555         * tests/test-sys_file.c: Likewise.
73556         * tests/test-sys_ioctl.c: Likewise.
73557         * tests/test-sys_wait.c: Likewise.
73558         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
73559         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
73560         whether or not flock is in use.
73562         tests: remove License section from module
73563         * modules/arpa_inet-tests: Remove unneeded section.
73564         * modules/byteswap-tests: Likewise.
73565         * modules/ceilf-tests: Likewise.
73566         * modules/ceill-tests: Likewise.
73567         * modules/crypto/des-tests: Likewise.
73568         * modules/crypto/gc-arcfour-tests: Likewise.
73569         * modules/crypto/gc-arctwo-tests: Likewise.
73570         * modules/crypto/gc-des-tests: Likewise.
73571         * modules/crypto/gc-hmac-md5-tests: Likewise.
73572         * modules/crypto/gc-hmac-sha1-tests: Likewise.
73573         * modules/crypto/gc-md2-tests: Likewise.
73574         * modules/crypto/gc-md4-tests: Likewise.
73575         * modules/crypto/gc-md5-tests: Likewise.
73576         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
73577         * modules/crypto/gc-rijndael-tests: Likewise.
73578         * modules/crypto/gc-sha1-tests: Likewise.
73579         * modules/crypto/gc-tests: Likewise.
73580         * modules/crypto/md2-tests: Likewise.
73581         * modules/crypto/md4-tests: Likewise.
73582         * modules/fcntl-h-tests: Likewise.
73583         * modules/floorf-tests: Likewise.
73584         * modules/floorl-tests: Likewise.
73585         * modules/frexp-nolibm-tests: Likewise.
73586         * modules/frexp-tests: Likewise.
73587         * modules/frexpl-nolibm-tests: Likewise.
73588         * modules/frexpl-tests: Likewise.
73589         * modules/getaddrinfo-tests: Likewise.
73590         * modules/inttypes-tests: Likewise.
73591         * modules/isfinite-tests: Likewise.
73592         * modules/isinf-tests: Likewise.
73593         * modules/ldexpl-tests: Likewise.
73594         * modules/locale-tests: Likewise.
73595         * modules/math-tests: Likewise.
73596         * modules/netdb-tests: Likewise.
73597         * modules/netinet_in-tests: Likewise.
73598         * modules/printf-frexp-tests: Likewise.
73599         * modules/printf-frexpl-tests: Likewise.
73600         * modules/priv-set-tests: Likewise.
73601         * modules/random_r-tests: Likewise.
73602         * modules/round-tests: Likewise.
73603         * modules/roundf-tests: Likewise.
73604         * modules/roundl-tests: Likewise.
73605         * modules/search-tests: Likewise.
73606         * modules/select-tests: Likewise.
73607         * modules/signal-tests: Likewise.
73608         * modules/stdbool-tests: Likewise.
73609         * modules/stddef-tests: Likewise.
73610         * modules/stdint-tests: Likewise.
73611         * modules/stdio-tests: Likewise.
73612         * modules/stdlib-tests: Likewise.
73613         * modules/string-tests: Likewise.
73614         * modules/strings-tests: Likewise.
73615         * modules/sys_select-tests: Likewise.
73616         * modules/sys_socket-tests: Likewise.
73617         * modules/sys_stat-tests: Likewise.
73618         * modules/sys_time-tests: Likewise.
73619         * modules/sys_utsname-tests: Likewise.
73620         * modules/sysexits-tests: Likewise.
73621         * modules/time-tests: Likewise.
73622         * modules/trunc-tests: Likewise.
73623         * modules/truncf-tests: Likewise.
73624         * modules/truncl-tests: Likewise.
73625         * modules/tsearch-tests: Likewise.
73626         * modules/unistd-tests: Likewise.
73627         * modules/wchar-tests: Likewise.
73628         * modules/wctype-tests: Likewise.
73630         tests: fix license on several tests
73631         * tests/test-des.c: Update to GPLv3+.
73632         * tests/test-flock.c: Likewise.
73633         * tests/test-fsync.c: Likewise.
73634         * tests/test-futimens.h: Likewise.
73635         * tests/test-gc-arcfour.c: Likewise.
73636         * tests/test-gc-arctwo.c: Likewise.
73637         * tests/test-gc-des.c: Likewise.
73638         * tests/test-gc-hmac-md5.c: Likewise.
73639         * tests/test-gc-hmac-sha1.c: Likewise.
73640         * tests/test-gc-md2.c: Likewise.
73641         * tests/test-gc-md4.c: Likewise.
73642         * tests/test-gc-md5.c: Likewise.
73643         * tests/test-gc-pbkdf2-sha1.c: Likewise.
73644         * tests/test-gc-rijndael.c: Likewise.
73645         * tests/test-gc-sha1.c: Likewise.
73646         * tests/test-gc.c: Likewise.
73647         * tests/test-getcwd.c: Likewise.
73648         * tests/test-link.c: Likewise.
73649         * tests/test-link.h: Likewise.
73650         * tests/test-lutimens.h: Likewise.
73651         * tests/test-md2.c: Likewise.
73652         * tests/test-md4.c: Likewise.
73653         * tests/test-mkdir.h: Likewise.
73654         * tests/test-rename.c: Likewise.
73655         * tests/test-rename.h: Likewise.
73656         * tests/test-safe-alloc.c: Likewise.
73657         * tests/test-utimens-common.h: Likewise.
73658         * tests/test-utimens.h: Likewise.
73660         maint: sync license texts
73661         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
73662         * doc/gpl-3.0.texi: Revert copyright year update.
73663         * doc/lgpl-3.0.texi: Likewise.
73665 2009-12-29  Jim Meyering  <meyering@redhat.com>
73667         update nearly all FSF copyright year lists to include 2009
73668         The files named by the following are exempted:
73669             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
73670               test -f "$dst" && { echo "$dst"; continue; }
73671               test -d "$dst" || continue
73672               echo "$dst"/$(basename "$src")
73673             done > exempt
73674             git ls-files tests/unictype >> exempt
73675         In the remaining files, convert to all-interval notation if
73676         - there is already at least one year interval like 2000-2003
73677         - the file is maintained by me
73678         - the file is in lib/uni*/, where that style already prevails
73679         Otherwise, use update-copyright's default.
73681 2009-12-29  Simon Josefsson  <simon@josefsson.org>
73682         and Eric Blake  <ebb9@byu.net>
73684         tests: don't require debug system() to pass
73685         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
73686         * tests/test-rmdir.h (test_rmdir_func): Likewise.
73687         * tests/test-unlink.h (test_unlink_func): Likewise.
73688         * tests/test-fstatat.c (main): ...into callers.
73689         * tests/test-lstat.c (main): Likewise.
73690         * tests/test-rmdir.c (main): Likewise.
73691         * tests/test-unlink.c (main): Likewise.
73692         * tests/test-unlinkat.c (main): Likewise.
73693         * tests/test-areadlink-with-size.c (main): Don't require a
73694         debug-only system call to pass, aiding cross-testing to mingw.
73695         * tests/test-areadlink.c (main): Likewise.
73696         * tests/test-areadlinkat-with-size.c (main): Likewise.
73697         * tests/test-areadlinkat.c (main): Likewise.
73698         * tests/test-canonicalize-lgpl.c (main): Likewise.
73699         * tests/test-canonicalize.c (main): Likewise.
73700         * tests/test-chown.c (main): Likewise.
73701         * tests/test-fchownat.c (main): Likewise.
73702         * tests/test-lchown.c (main): Likewise.
73703         * tests/test-fdutimensat.c (main): Likewise.
73704         * tests/test-futimens.c (main): Likewise.
73705         * tests/test-link.c (main): Likewise.
73706         * tests/test-linkat.c (main): Likewise.
73707         * tests/test-mkdir.c (main): Likewise.
73708         * tests/test-mkdirat.c (main): Likewise.
73709         * tests/test-mkfifo.c (main): Likewise.
73710         * tests/test-mkfifoat.c (main): Likewise.
73711         * tests/test-mknod.c (main): Likewise.
73712         * tests/test-readlink.c (main): Likewise.
73713         * tests/test-remove.c (main): Likewise.
73714         * tests/test-rename.c (main): Likewise.
73715         * tests/test-renameat.c (main): Likewise.
73716         * tests/test-symlink.c (main): Likewise.
73717         * tests/test-symlinkat.c (main): Likewise.
73718         * tests/test-utimens.c (main): Likewise.
73719         * tests/test-utimensat.c (main): Likewise.
73721 2009-12-29  Simon Josefsson  <simon@josefsson.org>
73723         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
73724         on $(UNUSED_PARAMETER_H) to avoid build failure.
73726 2009-12-28  Jim Meyering  <meyering@redhat.com>
73728         update-copyright: you may specify a max. line length other than 72
73729         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
73731         maint: use consistent FSF copyright line syntax
73732         * lib/posixtm.c: Add missing comma in FSF copyright line.
73733         * lib/posixtm.h: Likewise.
73734         * lib/getugroups.c: Add missing ", Inc.".
73736         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
73737         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
73738         FSF copyright line.  Remove trailing blanks.
73740 2009-12-28  Eric Blake  <ebb9@byu.net>
73742         test-dup2: reduce dependencies
73743         * modules/cloexec (Configure.ac): Set witness.
73744         * modules/dup2-tests (Depends-on): Drop cloexec.
73745         * tests/test-dup2.c (main): Skip portion of test if cloexec module
73746         not present.
73747         Suggested by Bruno Haible.
73749 2009-12-26  Bruno Haible  <bruno@clisp.org>
73751         Remove an unneeded dependency.
73752         * modules/fseterr (Depends-on): Remove dup2.
73754 2009-12-26  Eric Blake  <ebb9@byu.net>
73756         tests: use macros.h in more places
73757         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
73758         (ASSERT_STREAM): Provide default of stderr.
73759         * tests/test-dirent-safer.c: Include macros.h, using alternate
73760         stream for assertions.
73761         * tests/test-dup-safer.c: Likewise.
73762         * tests/test-freopen-safer.c: Likewise.
73763         * tests/test-getopt.c: Likewise.
73764         * tests/test-openat-safer.c: Likewise.
73765         * tests/test-pipe.c: Likewise.
73766         * tests/test-popen-safer.c: Likewise.
73767         * modules/dirent-safer-tests (Files): Include macros.h.
73768         * modules/unistd-safer-tests (Files): Likewise.
73769         * modules/freopen-safer-tests (Files): Likewise.
73770         * modules/getopt-posix-tests (Files): Likewise.
73771         * modules/openat-safer-tests (Files): Likewise.
73772         * modules/pipe-tests (Files): Likewise.
73774 2009-12-26  Bruno Haible  <bruno@clisp.org>
73776         javacomp-script: Portability fix.
73777         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
73778         that it also works on Solaris.
73780 2009-12-26  Bruno Haible  <bruno@clisp.org>
73782         localename: Fix storage allocation of gl_locale_name_thread's result.
73783         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
73784         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
73785         all platforms that have 'uselocale'.
73786         (gl_locale_name_thread_unsafe): New function, extracted from
73787         gl_locale_name_thread.
73788         (gl_locale_name_thread): Call struniq on all platforms that have
73789         'uselocale'.
73790         * tests/test-localename.c (test_locale_name_thread): Check that the
73791         resulting strings are permanently allocated.
73792         * modules/localename-tests (Depends-on): Add strdup.
73794 2009-12-26  Bruno Haible  <bruno@clisp.org>
73796         * tests/test-localename.c (categories): Fill in the strings.
73798 2009-12-26  Jim Meyering  <meyering@redhat.com>
73800         isdir: complete the removal of m4/isdir.m4
73801         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
73803         isdir: clean up, since at least grep still uses it
73804         * lib/isdir.c: Include "isdir.h".
73805         (S_ISDIR): Remove now-unneeded definition.
73806         * modules/isdir (Files): Add lib/isdir.h.
73807         * lib/isdir.h: New file, with declaration.
73808         * m4/isdir.m4: Remove file -- unneeded.
73810 2009-12-25  Bruno Haible  <bruno@clisp.org>
73812         selinux-h: Make generated .h files standalone.
73813         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
73814         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
73815         * lib/se-selinux.in.h: Likewise.
73816         * modules/selinux-h (Depends-on): Add unused-parameter.
73817         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
73818         selinux/selinux.h and selinux/context.h.
73819         Suggested by Eric Blake.
73821 2009-12-25  Bruno Haible  <bruno@clisp.org>
73823         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
73824         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
73825         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
73826         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
73827         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
73829 2009-12-24  Bruno Haible  <bruno@clisp.org>
73831         openat: Fix warning.
73832         * lib/openat-proc.c: Include <unistd.h>.
73834 2009-12-24  Bruno Haible  <bruno@clisp.org>
73836         New module 'unused-parameter'.
73837         * build-aux/unused-parameter.h: New file, extracted from earlier
73838         gnulib-common.m4.
73839         * modules/unused-parameter: New file.
73840         * lib/unistr.h: Include unused-parameter.h.
73841         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
73842         _GL_UNUSED.
73843         * modules/unistr/base (Depends-on): Add unused-parameter.
73845 2009-12-24  Bruno Haible  <bruno@clisp.org>
73847         Add missing dependencies to 'extensions' module.
73848         * m4/extensions.m4: Add comment.
73849         * modules/accept4 (Depends-on): Add extensions.
73850         * modules/dup3 (Depends-on): Likewise.
73851         * modules/fcntl (Depends-on): Likewise.
73852         * modules/futimens (Depends-on): Likewise.
73853         * modules/mknod (Depends-on): Likewise.
73854         * modules/pipe2 (Depends-on): Likewise.
73855         * modules/stat-time (Depends-on): Likewise.
73856         * modules/strcasestr-simple (Depends-on): Likewise.
73857         * modules/strsignal (Depends-on): Likewise.
73858         * modules/utimensat (Depends-on): Likewise.
73859         * modules/localcharset (Depends-on): Likewise. Needed because of
73860         gl_FCNTL_O_FLAGS.
73861         * modules/wcrtomb (Depends-on): Likewise. Needed because of
73862         AC_TYPE_MBSTATE_T.
73863         * modules/wcsnrtombs (Depends-on): Likewise.
73864         * modules/wcsrtombs (Depends-on): Likewise.
73866 2009-12-24  Bruno Haible  <bruno@clisp.org>
73868         binary-io: Avoid gcc warning due to SET_BINARY.
73869         * lib/binary-io.h (SET_BINARY): Cast the result to void.
73870         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
73872 2009-12-24  Bruno Haible  <bruno@clisp.org>
73874         Avoid future namespace pollution on glibc systems.
73875         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
73876         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
73877         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
73878         glibc systems.
73880 2009-12-24  Bruno Haible  <bruno@clisp.org>
73882         Refactor common macros used in tests.
73883         * tests/macros.h: New file.
73884         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
73885         and/or <stdlib.h>, if appropriate.
73886         (ASSERT, SIZEOF): Remove macros.
73887         * tests/test-areadlink-with-size.c: Likewise.
73888         * tests/test-areadlinkat.c: Likewise.
73889         * tests/test-areadlinkat-with-size.c: Likewise.
73890         * tests/test-argmatch.c: Likewise.
73891         * tests/test-argv-iter.c: Likewise.
73892         * tests/test-array-mergesort.c: Likewise.
73893         * tests/test-array_list.c: Likewise.
73894         * tests/test-array_oset.c: Likewise.
73895         * tests/test-avltree_list.c: Likewise.
73896         * tests/test-avltree_oset.c: Likewise.
73897         * tests/test-avltreehash_list.c: Likewise.
73898         * tests/test-base64.c: Likewise.
73899         * tests/test-binary-io.c: Likewise.
73900         * tests/test-bitrotate.c: Likewise.
73901         * tests/test-btowc.c: Likewise.
73902         * tests/test-byteswap.c: Likewise.
73903         * tests/test-c-ctype.c: Likewise.
73904         * tests/test-c-stack.c: Likewise.
73905         * tests/test-c-strcasecmp.c: Likewise.
73906         * tests/test-c-strcasestr.c: Likewise.
73907         * tests/test-c-strncasecmp.c: Likewise.
73908         * tests/test-c-strstr.c: Likewise.
73909         * tests/test-canonicalize-lgpl.c: Likewise.
73910         * tests/test-canonicalize.c: Likewise.
73911         * tests/test-carray_list.c: Likewise.
73912         * tests/test-ceilf1.c: Likewise.
73913         * tests/test-ceilf2.c: Likewise.
73914         * tests/test-ceill.c: Likewise.
73915         * tests/test-chown.c: Likewise.
73916         * tests/test-cloexec.c: Likewise.
73917         * tests/test-copy-acl.c: Likewise.
73918         * tests/test-copy-file.c: Likewise.
73919         * tests/test-count-one-bits.c: Likewise.
73920         * tests/test-dprintf-posix.c: Likewise.
73921         * tests/test-dup2.c: Likewise.
73922         * tests/test-dup3.c: Likewise.
73923         * tests/test-duplocale.c: Likewise.
73924         * tests/test-fbufmode.c: Likewise.
73925         * tests/test-fchdir.c: Likewise.
73926         * tests/test-fchownat.c: Likewise.
73927         * tests/test-fcntl-safer.c: Likewise.
73928         * tests/test-fcntl.c: Likewise.
73929         * tests/test-fdopendir.c: Likewise.
73930         * tests/test-fdutimensat.c: Likewise.
73931         * tests/test-fflush2.c: Likewise.
73932         * tests/test-file-has-acl.c: Likewise.
73933         * tests/test-filevercmp.c: Likewise.
73934         * tests/test-flock.c: Likewise.
73935         * tests/test-floorf1.c: Likewise.
73936         * tests/test-floorf2.c: Likewise.
73937         * tests/test-floorl.c: Likewise.
73938         * tests/test-fnmatch.c: Likewise.
73939         * tests/test-fopen.h: Likewise.
73940         * tests/test-fpending.c: Likewise.
73941         * tests/test-fprintf-posix.c: Likewise.
73942         * tests/test-fpurge.c: Likewise.
73943         * tests/test-freadable.c: Likewise.
73944         * tests/test-freadahead.c: Likewise.
73945         * tests/test-freading.c: Likewise.
73946         * tests/test-freadptr.c: Likewise.
73947         * tests/test-freadptr2.c: Likewise.
73948         * tests/test-freadseek.c: Likewise.
73949         * tests/test-freopen.c: Likewise.
73950         * tests/test-frexp.c: Likewise.
73951         * tests/test-frexpl.c: Likewise.
73952         * tests/test-fseek.c: Likewise.
73953         * tests/test-fseeko.c: Likewise.
73954         * tests/test-fstatat.c: Likewise.
73955         * tests/test-fstrcmp.c: Likewise.
73956         * tests/test-fsync.c: Likewise.
73957         * tests/test-ftell.c: Likewise.
73958         * tests/test-ftello.c: Likewise.
73959         * tests/test-func.c: Likewise.
73960         * tests/test-futimens.c: Likewise.
73961         * tests/test-fwritable.c: Likewise.
73962         * tests/test-fwriting.c: Likewise.
73963         * tests/test-getcwd.c: Likewise.
73964         * tests/test-getdate.c: Likewise.
73965         * tests/test-getdelim.c: Likewise.
73966         * tests/test-getdtablesize.c: Likewise.
73967         * tests/test-getgroups.c: Likewise.
73968         * tests/test-getline.c: Likewise.
73969         * tests/test-getndelim2.c: Likewise.
73970         * tests/test-glob.c: Likewise.
73971         * tests/test-hash.c: Likewise.
73972         * tests/test-i-ring.c: Likewise.
73973         * tests/test-iconv-utf.c: Likewise.
73974         * tests/test-iconv.c: Likewise.
73975         * tests/test-idpriv-drop.c: Likewise.
73976         * tests/test-idpriv-droptemp.c: Likewise.
73977         * tests/test-inet_ntop.c: Likewise.
73978         * tests/test-inet_pton.c: Likewise.
73979         * tests/test-isblank.c: Likewise.
73980         * tests/test-isfinite.c: Likewise.
73981         * tests/test-isinf.c: Likewise.
73982         * tests/test-isnan.c: Likewise.
73983         * tests/test-isnand.h: Likewise.
73984         * tests/test-isnanf.h: Likewise.
73985         * tests/test-isnanl.h: Likewise.
73986         * tests/test-lchown.c: Likewise.
73987         * tests/test-ldexpl.c: Likewise.
73988         * tests/test-link.c: Likewise.
73989         * tests/test-linkat.c: Likewise.
73990         * tests/test-linked_list.c: Likewise.
73991         * tests/test-linkedhash_list.c: Likewise.
73992         * tests/test-localename.c: Likewise.
73993         * tests/test-lseek.c: Likewise.
73994         * tests/test-lstat.c: Likewise.
73995         * tests/test-mbmemcasecmp.c: Likewise.
73996         * tests/test-mbmemcasecoll.c: Likewise.
73997         * tests/test-mbrtowc.c: Likewise.
73998         * tests/test-mbscasecmp.c: Likewise.
73999         * tests/test-mbscasestr1.c: Likewise.
74000         * tests/test-mbscasestr2.c: Likewise.
74001         * tests/test-mbscasestr3.c: Likewise.
74002         * tests/test-mbscasestr4.c: Likewise.
74003         * tests/test-mbschr.c: Likewise.
74004         * tests/test-mbscspn.c: Likewise.
74005         * tests/test-mbsinit.c: Likewise.
74006         * tests/test-mbsncasecmp.c: Likewise.
74007         * tests/test-mbsnrtowcs.c: Likewise.
74008         * tests/test-mbspbrk.c: Likewise.
74009         * tests/test-mbspcasecmp.c: Likewise.
74010         * tests/test-mbsrchr.c: Likewise.
74011         * tests/test-mbsrtowcs.c: Likewise.
74012         * tests/test-mbsspn.c: Likewise.
74013         * tests/test-mbsstr1.c: Likewise.
74014         * tests/test-mbsstr2.c: Likewise.
74015         * tests/test-mbsstr3.c: Likewise.
74016         * tests/test-memchr.c: Likewise.
74017         * tests/test-memchr2.c: Likewise.
74018         * tests/test-memcmp.c: Likewise.
74019         * tests/test-memmem.c: Likewise.
74020         * tests/test-memrchr.c: Likewise.
74021         * tests/test-mkdir.c: Likewise.
74022         * tests/test-mkdirat.c: Likewise.
74023         * tests/test-mkfifo.c: Likewise.
74024         * tests/test-mkfifoat.c: Likewise.
74025         * tests/test-mknod.c: Likewise.
74026         * tests/test-nanosleep.c: Likewise.
74027         * tests/test-nl_langinfo.c: Likewise.
74028         * tests/test-obstack-printf.c: Likewise.
74029         * tests/test-open.c: Likewise.
74030         * tests/test-openat.c: Likewise.
74031         * tests/test-pipe-filter-gi1.c: Likewise.
74032         * tests/test-pipe-filter-gi2-main.c: Likewise.
74033         * tests/test-pipe-filter-ii1.c: Likewise.
74034         * tests/test-pipe-filter-ii2-main.c: Likewise.
74035         * tests/test-pipe2.c: Likewise.
74036         * tests/test-popen.h: Likewise.
74037         * tests/test-posixtm.c: Likewise.
74038         * tests/test-pread.c: Likewise.
74039         * tests/test-printf-frexp.c: Likewise.
74040         * tests/test-printf-frexpl.c: Likewise.
74041         * tests/test-printf-posix.c: Likewise.
74042         * tests/test-priv-set.c: Likewise.
74043         * tests/test-quotearg.c: Likewise.
74044         * tests/test-random_r.c: Likewise.
74045         * tests/test-rawmemchr.c: Likewise.
74046         * tests/test-rbtree_list.c: Likewise.
74047         * tests/test-rbtree_oset.c: Likewise.
74048         * tests/test-rbtreehash_list.c: Likewise.
74049         * tests/test-readlink.c: Likewise.
74050         * tests/test-remove.c: Likewise.
74051         * tests/test-rename.c: Likewise.
74052         * tests/test-renameat.c: Likewise.
74053         * tests/test-rmdir.c: Likewise.
74054         * tests/test-round1.c: Likewise.
74055         * tests/test-roundf1.c: Likewise.
74056         * tests/test-roundl.c: Likewise.
74057         * tests/test-safe-alloc.c: Likewise.
74058         * tests/test-sameacls.c: Likewise.
74059         * tests/test-set-mode-acl.c: Likewise.
74060         * tests/test-setenv.c: Likewise.
74061         * tests/test-sigaction.c: Likewise.
74062         * tests/test-signbit.c: Likewise.
74063         * tests/test-sleep.c: Likewise.
74064         * tests/test-snprintf-posix.c: Likewise.
74065         * tests/test-snprintf.c: Likewise.
74066         * tests/test-sprintf-posix.c: Likewise.
74067         * tests/test-stat-time.c: Likewise.
74068         * tests/test-stat.c: Likewise.
74069         * tests/test-strcasestr.c: Likewise.
74070         * tests/test-strchrnul.c: Likewise.
74071         * tests/test-strerror.c: Likewise.
74072         * tests/test-striconv.c: Likewise.
74073         * tests/test-striconveh.c: Likewise.
74074         * tests/test-striconveha.c: Likewise.
74075         * tests/test-strsignal.c: Likewise.
74076         * tests/test-strstr.c: Likewise.
74077         * tests/test-strtod.c: Likewise.
74078         * tests/test-strverscmp.c: Likewise.
74079         * tests/test-symlink.c: Likewise.
74080         * tests/test-symlinkat.c: Likewise.
74081         * tests/test-trunc1.c: Likewise.
74082         * tests/test-trunc2.c: Likewise.
74083         * tests/test-truncf1.c: Likewise.
74084         * tests/test-truncf2.c: Likewise.
74085         * tests/test-truncl.c: Likewise.
74086         * tests/test-uname.c: Likewise.
74087         * tests/test-unlink.c: Likewise.
74088         * tests/test-unlinkat.c: Likewise.
74089         * tests/test-unsetenv.c: Likewise.
74090         * tests/test-usleep.c: Likewise.
74091         * tests/test-utimens.c: Likewise.
74092         * tests/test-utimensat.c: Likewise.
74093         * tests/test-vasnprintf-posix.c: Likewise.
74094         * tests/test-vasnprintf-posix2.c: Likewise.
74095         * tests/test-vasnprintf.c: Likewise.
74096         * tests/test-vasprintf-posix.c: Likewise.
74097         * tests/test-vasprintf.c: Likewise.
74098         * tests/test-vdprintf-posix.c: Likewise.
74099         * tests/test-vfprintf-posix.c: Likewise.
74100         * tests/test-vprintf-posix.c: Likewise.
74101         * tests/test-vsnprintf-posix.c: Likewise.
74102         * tests/test-vsnprintf.c: Likewise.
74103         * tests/test-vsprintf-posix.c: Likewise.
74104         * tests/test-wcrtomb.c: Likewise.
74105         * tests/test-wcsnrtombs.c: Likewise.
74106         * tests/test-wcsrtombs.c: Likewise.
74107         * tests/test-wctype.c: Likewise.
74108         * tests/test-wcwidth.c: Likewise.
74109         * tests/test-xfprintf-posix.c: Likewise.
74110         * tests/test-xmemdup0.c: Likewise.
74111         * tests/test-xprintf-posix.c: Likewise.
74112         * tests/test-xvasprintf.c: Likewise.
74113         * tests/unicase/test-locale-language.c: Likewise.
74114         * tests/unicase/test-mapping-part1.h: Likewise.
74115         * tests/unicase/test-predicate-part1.h: Likewise.
74116         * tests/unicase/test-u8-casecmp.c: Likewise.
74117         * tests/unicase/test-u8-casecoll.c: Likewise.
74118         * tests/unicase/test-u8-casefold.c: Likewise.
74119         * tests/unicase/test-u8-is-cased.c: Likewise.
74120         * tests/unicase/test-u8-is-casefolded.c: Likewise.
74121         * tests/unicase/test-u8-is-lowercase.c: Likewise.
74122         * tests/unicase/test-u8-is-titlecase.c: Likewise.
74123         * tests/unicase/test-u8-is-uppercase.c: Likewise.
74124         * tests/unicase/test-u8-tolower.c: Likewise.
74125         * tests/unicase/test-u8-totitle.c: Likewise.
74126         * tests/unicase/test-u8-toupper.c: Likewise.
74127         * tests/unicase/test-u16-casecmp.c: Likewise.
74128         * tests/unicase/test-u16-casecoll.c: Likewise.
74129         * tests/unicase/test-u16-casefold.c: Likewise.
74130         * tests/unicase/test-u16-is-cased.c: Likewise.
74131         * tests/unicase/test-u16-is-casefolded.c: Likewise.
74132         * tests/unicase/test-u16-is-lowercase.c: Likewise.
74133         * tests/unicase/test-u16-is-titlecase.c: Likewise.
74134         * tests/unicase/test-u16-is-uppercase.c: Likewise.
74135         * tests/unicase/test-u16-tolower.c: Likewise.
74136         * tests/unicase/test-u16-totitle.c: Likewise.
74137         * tests/unicase/test-u16-toupper.c: Likewise.
74138         * tests/unicase/test-u32-casecmp.c: Likewise.
74139         * tests/unicase/test-u32-casecoll.c: Likewise.
74140         * tests/unicase/test-u32-casefold.c: Likewise.
74141         * tests/unicase/test-u32-is-cased.c: Likewise.
74142         * tests/unicase/test-u32-is-casefolded.c: Likewise.
74143         * tests/unicase/test-u32-is-lowercase.c: Likewise.
74144         * tests/unicase/test-u32-is-titlecase.c: Likewise.
74145         * tests/unicase/test-u32-is-uppercase.c: Likewise.
74146         * tests/unicase/test-u32-tolower.c: Likewise.
74147         * tests/unicase/test-u32-totitle.c: Likewise.
74148         * tests/unicase/test-u32-toupper.c: Likewise.
74149         * tests/unicase/test-ulc-casecmp.c: Likewise.
74150         * tests/unicase/test-ulc-casecoll.c: Likewise.
74151         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
74152         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
74153         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
74154         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
74155         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
74156         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
74157         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
74158         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
74159         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
74160         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
74161         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
74162         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
74163         * tests/unictype/test-bidi_byname.c: Likewise.
74164         * tests/unictype/test-bidi_name.c: Likewise.
74165         * tests/unictype/test-bidi_of.c: Likewise.
74166         * tests/unictype/test-bidi_test.c: Likewise.
74167         * tests/unictype/test-block_list.c: Likewise.
74168         * tests/unictype/test-block_of.c: Likewise.
74169         * tests/unictype/test-block_test.c: Likewise.
74170         * tests/unictype/test-categ_and.c: Likewise.
74171         * tests/unictype/test-categ_and_not.c: Likewise.
74172         * tests/unictype/test-categ_byname.c: Likewise.
74173         * tests/unictype/test-categ_name.c: Likewise.
74174         * tests/unictype/test-categ_none.c: Likewise.
74175         * tests/unictype/test-categ_of.c: Likewise.
74176         * tests/unictype/test-categ_or.c: Likewise.
74177         * tests/unictype/test-categ_test_withtable.c: Likewise.
74178         * tests/unictype/test-combining.c: Likewise.
74179         * tests/unictype/test-decdigit.c: Likewise.
74180         * tests/unictype/test-digit.c: Likewise.
74181         * tests/unictype/test-mirror.c: Likewise.
74182         * tests/unictype/test-numeric.c: Likewise.
74183         * tests/unictype/test-pr_byname.c: Likewise.
74184         * tests/unictype/test-pr_test.c: Likewise.
74185         * tests/unictype/test-predicate-part1.h: Likewise.
74186         * tests/unictype/test-scripts.c: Likewise.
74187         * tests/unictype/test-sy_c_ident.c: Likewise.
74188         * tests/unictype/test-sy_java_ident.c: Likewise.
74189         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
74190         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
74191         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
74192         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
74193         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
74194         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
74195         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
74196         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
74197         * tests/uninorm/test-canonical-decomposition.c: Likewise.
74198         * tests/uninorm/test-compat-decomposition.c: Likewise.
74199         * tests/uninorm/test-composition.c: Likewise.
74200         * tests/uninorm/test-decomposing-form.c: Likewise.
74201         * tests/uninorm/test-decomposition.c: Likewise.
74202         * tests/uninorm/test-u8-nfc.c: Likewise.
74203         * tests/uninorm/test-u8-nfd.c: Likewise.
74204         * tests/uninorm/test-u8-nfkc.c: Likewise.
74205         * tests/uninorm/test-u8-nfkd.c: Likewise.
74206         * tests/uninorm/test-u8-normcmp.c: Likewise.
74207         * tests/uninorm/test-u8-normcoll.c: Likewise.
74208         * tests/uninorm/test-u16-nfc.c: Likewise.
74209         * tests/uninorm/test-u16-nfd.c: Likewise.
74210         * tests/uninorm/test-u16-nfkc.c: Likewise.
74211         * tests/uninorm/test-u16-nfkd.c: Likewise.
74212         * tests/uninorm/test-u16-normcmp.c: Likewise.
74213         * tests/uninorm/test-u16-normcoll.c: Likewise.
74214         * tests/uninorm/test-u32-nfc.c: Likewise.
74215         * tests/uninorm/test-u32-nfd.c: Likewise.
74216         * tests/uninorm/test-u32-nfkc.c: Likewise.
74217         * tests/uninorm/test-u32-nfkd.c: Likewise.
74218         * tests/uninorm/test-u32-normalize-big.c: Likewise.
74219         * tests/uninorm/test-u32-normcmp.c: Likewise.
74220         * tests/uninorm/test-u32-normcoll.c: Likewise.
74221         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
74222         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
74223         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
74224         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
74225         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
74226         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
74227         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
74228         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
74229         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
74230         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
74231         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
74232         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
74233         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
74234         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
74235         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
74236         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
74237         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
74238         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
74239         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
74240         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
74241         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
74242         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
74243         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
74244         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
74245         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
74246         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
74247         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
74248         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
74249         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
74250         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
74251         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
74252         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
74253         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
74254         * tests/uniwidth/test-u8-strwidth.c: Likewise.
74255         * tests/uniwidth/test-u8-width.c: Likewise.
74256         * tests/uniwidth/test-u16-strwidth.c: Likewise.
74257         * tests/uniwidth/test-u16-width.c: Likewise.
74258         * tests/uniwidth/test-u32-strwidth.c: Likewise.
74259         * tests/uniwidth/test-u32-width.c: Likewise.
74260         * tests/uniwidth/test-uc_width.c: Likewise.
74261         * tests/uniwidth/test-uc_width2.c: Likewise.
74262         * modules/acl-tests (Files): Add tests/macros.h.
74263         * modules/areadlink-tests (Files): Likewise.
74264         * modules/areadlink-with-size-tests (Files): Likewise.
74265         * modules/areadlinkat-tests (Files): Likewise.
74266         * modules/areadlinkat-with-size-tests (Files): Likewise.
74267         * modules/argmatch-tests (Files): Likewise.
74268         * modules/argv-iter-tests (Files): Likewise.
74269         * modules/array-list-tests (Files): Likewise.
74270         * modules/array-mergesort-tests (Files): Likewise.
74271         * modules/array-oset-tests (Files): Likewise.
74272         * modules/avltree-list-tests (Files): Likewise.
74273         * modules/avltree-oset-tests (Files): Likewise.
74274         * modules/avltreehash-list-tests (Files): Likewise.
74275         * modules/base64-tests (Files): Likewise.
74276         * modules/binary-io-tests (Files): Likewise.
74277         * modules/bitrotate-tests (Files): Likewise.
74278         * modules/btowc-tests (Files): Likewise.
74279         * modules/byteswap-tests (Files): Likewise.
74280         * modules/c-ctype-tests (Files): Likewise.
74281         * modules/c-stack-tests (Files): Likewise.
74282         * modules/c-strcase-tests (Files): Likewise.
74283         * modules/c-strcasestr-tests (Files): Likewise.
74284         * modules/c-strstr-tests (Files): Likewise.
74285         * modules/canonicalize-lgpl-tests (Files): Likewise.
74286         * modules/canonicalize-tests (Files): Likewise.
74287         * modules/carray-list-tests (Files): Likewise.
74288         * modules/ceilf-tests (Files): Likewise.
74289         * modules/ceill-tests (Files): Likewise.
74290         * modules/chown-tests (Files): Likewise.
74291         * modules/cloexec-tests (Files): Likewise.
74292         * modules/copy-file-tests (Files): Likewise.
74293         * modules/count-one-bits-tests (Files): Likewise.
74294         * modules/dprintf-posix-tests (Files): Likewise.
74295         * modules/dup2-tests (Files): Likewise.
74296         * modules/dup3-tests (Files): Likewise.
74297         * modules/duplocale-tests (Files): Likewise.
74298         * modules/fbufmode-tests (Files): Likewise.
74299         * modules/fchdir-tests (Files): Likewise.
74300         * modules/fcntl-safer-tests (Files): Likewise.
74301         * modules/fcntl-tests (Files): Likewise.
74302         * modules/fdopendir-tests (Files): Likewise.
74303         * modules/fdutimensat-tests (Files): Likewise.
74304         * modules/fflush-tests (Files): Likewise.
74305         * modules/filevercmp-tests (Files): Likewise.
74306         * modules/flock-tests (Files): Likewise.
74307         * modules/floorf-tests (Files): Likewise.
74308         * modules/floorl-tests (Files): Likewise.
74309         * modules/fnmatch-tests (Files): Likewise.
74310         * modules/fopen-safer-tests (Files): Likewise.
74311         * modules/fopen-tests (Files): Likewise.
74312         * modules/fpending-tests (Files): Likewise.
74313         * modules/fprintf-posix-tests (Files): Likewise.
74314         * modules/fpurge-tests (Files): Likewise.
74315         * modules/freadable-tests (Files): Likewise.
74316         * modules/freadahead-tests (Files): Likewise.
74317         * modules/freading-tests (Files): Likewise.
74318         * modules/freadptr-tests (Files): Likewise.
74319         * modules/freadseek-tests (Files): Likewise.
74320         * modules/freopen-tests (Files): Likewise.
74321         * modules/frexp-nolibm-tests (Files): Likewise.
74322         * modules/frexp-tests (Files): Likewise.
74323         * modules/frexpl-nolibm-tests (Files): Likewise.
74324         * modules/frexpl-tests (Files): Likewise.
74325         * modules/fseek-tests (Files): Likewise.
74326         * modules/fseeko-tests (Files): Likewise.
74327         * modules/fstrcmp-tests (Files): Likewise.
74328         * modules/fsync-tests (Files): Likewise.
74329         * modules/ftell-tests (Files): Likewise.
74330         * modules/ftello-tests (Files): Likewise.
74331         * modules/func-tests (Files): Likewise.
74332         * modules/futimens-tests (Files): Likewise.
74333         * modules/fwritable-tests (Files): Likewise.
74334         * modules/fwriting-tests (Files): Likewise.
74335         * modules/getcwd-tests (Files): Likewise.
74336         * modules/getdate-tests (Files): Likewise.
74337         * modules/getdelim-tests (Files): Likewise.
74338         * modules/getdtablesize-tests (Files): Likewise.
74339         * modules/getgroups-tests (Files): Likewise.
74340         * modules/getline-tests (Files): Likewise.
74341         * modules/getndelim2-tests (Files): Likewise.
74342         * modules/glob-tests (Files): Likewise.
74343         * modules/hash-tests (Files): Likewise.
74344         * modules/i-ring-tests (Files): Likewise.
74345         * modules/iconv-tests (Files): Likewise.
74346         * modules/iconv_open-utf-tests (Files): Likewise.
74347         * modules/idpriv-drop-tests (Files): Likewise.
74348         * modules/idpriv-droptemp-tests (Files): Likewise.
74349         * modules/inet_ntop-tests (Files): Likewise.
74350         * modules/inet_pton-tests (Files): Likewise.
74351         * modules/isblank-tests (Files): Likewise.
74352         * modules/isfinite-tests (Files): Likewise.
74353         * modules/isinf-tests (Files): Likewise.
74354         * modules/isnan-tests (Files): Likewise.
74355         * modules/isnand-nolibm-tests (Files): Likewise.
74356         * modules/isnand-tests (Files): Likewise.
74357         * modules/isnanf-nolibm-tests (Files): Likewise.
74358         * modules/isnanf-tests (Files): Likewise.
74359         * modules/isnanl-nolibm-tests (Files): Likewise.
74360         * modules/isnanl-tests (Files): Likewise.
74361         * modules/lchown-tests (Files): Likewise.
74362         * modules/ldexpl-tests (Files): Likewise.
74363         * modules/link-tests (Files): Likewise.
74364         * modules/linkat-tests (Files): Likewise.
74365         * modules/linked-list-tests (Files): Likewise.
74366         * modules/linkedhash-list-tests (Files): Likewise.
74367         * modules/localename-tests (Files): Likewise.
74368         * modules/lseek-tests (Files): Likewise.
74369         * modules/lstat-tests (Files): Likewise.
74370         * modules/mbmemcasecmp-tests (Files): Likewise.
74371         * modules/mbmemcasecoll-tests (Files): Likewise.
74372         * modules/mbrtowc-tests (Files): Likewise.
74373         * modules/mbscasecmp-tests (Files): Likewise.
74374         * modules/mbscasestr-tests (Files): Likewise.
74375         * modules/mbschr-tests (Files): Likewise.
74376         * modules/mbscspn-tests (Files): Likewise.
74377         * modules/mbsinit-tests (Files): Likewise.
74378         * modules/mbsncasecmp-tests (Files): Likewise.
74379         * modules/mbsnrtowcs-tests (Files): Likewise.
74380         * modules/mbspbrk-tests (Files): Likewise.
74381         * modules/mbspcasecmp-tests (Files): Likewise.
74382         * modules/mbsrchr-tests (Files): Likewise.
74383         * modules/mbsrtowcs-tests (Files): Likewise.
74384         * modules/mbsspn-tests (Files): Likewise.
74385         * modules/mbsstr-tests (Files): Likewise.
74386         * modules/memchr-tests (Files): Likewise.
74387         * modules/memchr2-tests (Files): Likewise.
74388         * modules/memcmp-tests (Files): Likewise.
74389         * modules/memmem-tests (Files): Likewise.
74390         * modules/memrchr-tests (Files): Likewise.
74391         * modules/mkdir-tests (Files): Likewise.
74392         * modules/mkfifo-tests (Files): Likewise.
74393         * modules/mkfifoat-tests (Files): Likewise.
74394         * modules/mknod-tests (Files): Likewise.
74395         * modules/nanosleep-tests (Files): Likewise.
74396         * modules/nl_langinfo-tests (Files): Likewise.
74397         * modules/obstack-printf-tests (Files): Likewise.
74398         * modules/open-tests (Files): Likewise.
74399         * modules/openat-tests (Files): Likewise.
74400         * modules/pipe-filter-gi-tests (Files): Likewise.
74401         * modules/pipe-filter-ii-tests (Files): Likewise.
74402         * modules/pipe2-tests (Files): Likewise.
74403         * modules/popen-safer-tests (Files): Likewise.
74404         * modules/popen-tests (Files): Likewise.
74405         * modules/posixtm-tests (Files): Likewise.
74406         * modules/pread-tests (Files): Likewise.
74407         * modules/printf-frexp-tests (Files): Likewise.
74408         * modules/printf-frexpl-tests (Files): Likewise.
74409         * modules/printf-posix-tests (Files): Likewise.
74410         * modules/priv-set-tests (Files): Likewise.
74411         * modules/quotearg-tests (Files): Likewise.
74412         * modules/random_r-tests (Files): Likewise.
74413         * modules/rawmemchr-tests (Files): Likewise.
74414         * modules/rbtree-list-tests (Files): Likewise.
74415         * modules/rbtree-oset-tests (Files): Likewise.
74416         * modules/rbtreehash-list-tests (Files): Likewise.
74417         * modules/readlink-tests (Files): Likewise.
74418         * modules/remove-tests (Files): Likewise.
74419         * modules/rename-tests (Files): Likewise.
74420         * modules/renameat-tests (Files): Likewise.
74421         * modules/rmdir-tests (Files): Likewise.
74422         * modules/round-tests (Files): Likewise.
74423         * modules/roundf-tests (Files): Likewise.
74424         * modules/roundl-tests (Files): Likewise.
74425         * modules/safe-alloc-tests (Files): Likewise.
74426         * modules/setenv-tests (Files): Likewise.
74427         * modules/sigaction-tests (Files): Likewise.
74428         * modules/signbit-tests (Files): Likewise.
74429         * modules/sleep-tests (Files): Likewise.
74430         * modules/snprintf-posix-tests (Files): Likewise.
74431         * modules/snprintf-tests (Files): Likewise.
74432         * modules/sprintf-posix-tests (Files): Likewise.
74433         * modules/stat-tests (Files): Likewise.
74434         * modules/stat-time-tests (Files): Likewise.
74435         * modules/strcasestr-tests (Files): Likewise.
74436         * modules/strchrnul-tests (Files): Likewise.
74437         * modules/strerror-tests (Files): Likewise.
74438         * modules/striconv-tests (Files): Likewise.
74439         * modules/striconveh-tests (Files): Likewise.
74440         * modules/striconveha-tests (Files): Likewise.
74441         * modules/strsignal-tests (Files): Likewise.
74442         * modules/strstr-tests (Files): Likewise.
74443         * modules/strtod-tests (Files): Likewise.
74444         * modules/strverscmp-tests (Files): Likewise.
74445         * modules/symlink-tests (Files): Likewise.
74446         * modules/symlinkat-tests (Files): Likewise.
74447         * modules/trunc-tests (Files): Likewise.
74448         * modules/truncf-tests (Files): Likewise.
74449         * modules/truncl-tests (Files): Likewise.
74450         * modules/uname-tests (Files): Likewise.
74451         * modules/unicase/cased-tests (Files): Likewise.
74452         * modules/unicase/ignorable-tests (Files): Likewise.
74453         * modules/unicase/locale-language-tests (Files): Likewise.
74454         * modules/unicase/tolower-tests (Files): Likewise.
74455         * modules/unicase/totitle-tests (Files): Likewise.
74456         * modules/unicase/toupper-tests (Files): Likewise.
74457         * modules/unicase/u8-casecmp-tests (Files): Likewise.
74458         * modules/unicase/u8-casecoll-tests (Files): Likewise.
74459         * modules/unicase/u8-casefold-tests (Files): Likewise.
74460         * modules/unicase/u8-is-cased-tests (Files): Likewise.
74461         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
74462         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
74463         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
74464         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
74465         * modules/unicase/u8-tolower-tests (Files): Likewise.
74466         * modules/unicase/u8-totitle-tests (Files): Likewise.
74467         * modules/unicase/u8-toupper-tests (Files): Likewise.
74468         * modules/unicase/u16-casecmp-tests (Files): Likewise.
74469         * modules/unicase/u16-casecoll-tests (Files): Likewise.
74470         * modules/unicase/u16-casefold-tests (Files): Likewise.
74471         * modules/unicase/u16-is-cased-tests (Files): Likewise.
74472         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
74473         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
74474         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
74475         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
74476         * modules/unicase/u16-tolower-tests (Files): Likewise.
74477         * modules/unicase/u16-totitle-tests (Files): Likewise.
74478         * modules/unicase/u16-toupper-tests (Files): Likewise.
74479         * modules/unicase/u32-casecmp-tests (Files): Likewise.
74480         * modules/unicase/u32-casecoll-tests (Files): Likewise.
74481         * modules/unicase/u32-casefold-tests (Files): Likewise.
74482         * modules/unicase/u32-is-cased-tests (Files): Likewise.
74483         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
74484         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
74485         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
74486         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
74487         * modules/unicase/u32-tolower-tests (Files): Likewise.
74488         * modules/unicase/u32-totitle-tests (Files): Likewise.
74489         * modules/unicase/u32-toupper-tests (Files): Likewise.
74490         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
74491         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
74492         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
74493         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
74494         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
74495         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
74496         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
74497         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
74498         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
74499         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
74500         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
74501         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
74502         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
74503         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
74504         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
74505         * modules/unictype/bidicategory-name-tests (Files): Likewise.
74506         * modules/unictype/bidicategory-of-tests (Files): Likewise.
74507         * modules/unictype/bidicategory-test-tests (Files): Likewise.
74508         * modules/unictype/block-list-tests (Files): Likewise.
74509         * modules/unictype/block-of-tests (Files): Likewise.
74510         * modules/unictype/block-test-tests (Files): Likewise.
74511         * modules/unictype/category-C-tests (Files): Likewise.
74512         * modules/unictype/category-Cc-tests (Files): Likewise.
74513         * modules/unictype/category-Cf-tests (Files): Likewise.
74514         * modules/unictype/category-Cn-tests (Files): Likewise.
74515         * modules/unictype/category-Co-tests (Files): Likewise.
74516         * modules/unictype/category-Cs-tests (Files): Likewise.
74517         * modules/unictype/category-L-tests (Files): Likewise.
74518         * modules/unictype/category-Ll-tests (Files): Likewise.
74519         * modules/unictype/category-Lm-tests (Files): Likewise.
74520         * modules/unictype/category-Lo-tests (Files): Likewise.
74521         * modules/unictype/category-Lt-tests (Files): Likewise.
74522         * modules/unictype/category-Lu-tests (Files): Likewise.
74523         * modules/unictype/category-M-tests (Files): Likewise.
74524         * modules/unictype/category-Mc-tests (Files): Likewise.
74525         * modules/unictype/category-Me-tests (Files): Likewise.
74526         * modules/unictype/category-Mn-tests (Files): Likewise.
74527         * modules/unictype/category-N-tests (Files): Likewise.
74528         * modules/unictype/category-Nd-tests (Files): Likewise.
74529         * modules/unictype/category-Nl-tests (Files): Likewise.
74530         * modules/unictype/category-No-tests (Files): Likewise.
74531         * modules/unictype/category-P-tests (Files): Likewise.
74532         * modules/unictype/category-Pc-tests (Files): Likewise.
74533         * modules/unictype/category-Pd-tests (Files): Likewise.
74534         * modules/unictype/category-Pe-tests (Files): Likewise.
74535         * modules/unictype/category-Pf-tests (Files): Likewise.
74536         * modules/unictype/category-Pi-tests (Files): Likewise.
74537         * modules/unictype/category-Po-tests (Files): Likewise.
74538         * modules/unictype/category-Ps-tests (Files): Likewise.
74539         * modules/unictype/category-S-tests (Files): Likewise.
74540         * modules/unictype/category-Sc-tests (Files): Likewise.
74541         * modules/unictype/category-Sk-tests (Files): Likewise.
74542         * modules/unictype/category-Sm-tests (Files): Likewise.
74543         * modules/unictype/category-So-tests (Files): Likewise.
74544         * modules/unictype/category-Z-tests (Files): Likewise.
74545         * modules/unictype/category-Zl-tests (Files): Likewise.
74546         * modules/unictype/category-Zp-tests (Files): Likewise.
74547         * modules/unictype/category-Zs-tests (Files): Likewise.
74548         * modules/unictype/category-and-not-tests (Files): Likewise.
74549         * modules/unictype/category-and-tests (Files): Likewise.
74550         * modules/unictype/category-byname-tests (Files): Likewise.
74551         * modules/unictype/category-name-tests (Files): Likewise.
74552         * modules/unictype/category-none-tests (Files): Likewise.
74553         * modules/unictype/category-of-tests (Files): Likewise.
74554         * modules/unictype/category-or-tests (Files): Likewise.
74555         * modules/unictype/category-test-withtable-tests (Files): Likewise.
74556         * modules/unictype/combining-class-tests (Files): Likewise.
74557         * modules/unictype/ctype-alnum-tests (Files): Likewise.
74558         * modules/unictype/ctype-alpha-tests (Files): Likewise.
74559         * modules/unictype/ctype-blank-tests (Files): Likewise.
74560         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
74561         * modules/unictype/ctype-digit-tests (Files): Likewise.
74562         * modules/unictype/ctype-graph-tests (Files): Likewise.
74563         * modules/unictype/ctype-lower-tests (Files): Likewise.
74564         * modules/unictype/ctype-print-tests (Files): Likewise.
74565         * modules/unictype/ctype-punct-tests (Files): Likewise.
74566         * modules/unictype/ctype-space-tests (Files): Likewise.
74567         * modules/unictype/ctype-upper-tests (Files): Likewise.
74568         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
74569         * modules/unictype/decimal-digit-tests (Files): Likewise.
74570         * modules/unictype/digit-tests (Files): Likewise.
74571         * modules/unictype/mirror-tests (Files): Likewise.
74572         * modules/unictype/numeric-tests (Files): Likewise.
74573         * modules/unictype/property-alphabetic-tests (Files): Likewise.
74574         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
74575         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
74576         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
74577         Likewise.
74578         * modules/unictype/property-bidi-block-separator-tests (Files):
74579         Likewise.
74580         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
74581         Likewise.
74582         * modules/unictype/property-bidi-common-separator-tests (Files):
74583         Likewise.
74584         * modules/unictype/property-bidi-control-tests (Files): Likewise.
74585         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
74586         Likewise.
74587         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
74588         Likewise.
74589         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
74590         Likewise.
74591         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
74592         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
74593         Likewise.
74594         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
74595         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
74596         Likewise.
74597         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
74598         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
74599         * modules/unictype/property-bidi-segment-separator-tests (Files):
74600         Likewise.
74601         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
74602         * modules/unictype/property-byname-tests (Files): Likewise.
74603         * modules/unictype/property-combining-tests (Files): Likewise.
74604         * modules/unictype/property-composite-tests (Files): Likewise.
74605         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
74606         * modules/unictype/property-dash-tests (Files): Likewise.
74607         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
74608         * modules/unictype/property-default-ignorable-code-point-tests (Files):
74609         Likewise.
74610         * modules/unictype/property-deprecated-tests (Files): Likewise.
74611         * modules/unictype/property-diacritic-tests (Files): Likewise.
74612         * modules/unictype/property-extender-tests (Files): Likewise.
74613         * modules/unictype/property-format-control-tests (Files): Likewise.
74614         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
74615         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
74616         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
74617         * modules/unictype/property-hex-digit-tests (Files): Likewise.
74618         * modules/unictype/property-hyphen-tests (Files): Likewise.
74619         * modules/unictype/property-id-continue-tests (Files): Likewise.
74620         * modules/unictype/property-id-start-tests (Files): Likewise.
74621         * modules/unictype/property-ideographic-tests (Files): Likewise.
74622         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
74623         * modules/unictype/property-ids-trinary-operator-tests (Files):
74624         Likewise.
74625         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
74626         * modules/unictype/property-iso-control-tests (Files): Likewise.
74627         * modules/unictype/property-join-control-tests (Files): Likewise.
74628         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
74629         * modules/unictype/property-line-separator-tests (Files): Likewise.
74630         * modules/unictype/property-logical-order-exception-tests (Files):
74631         Likewise.
74632         * modules/unictype/property-lowercase-tests (Files): Likewise.
74633         * modules/unictype/property-math-tests (Files): Likewise.
74634         * modules/unictype/property-non-break-tests (Files): Likewise.
74635         * modules/unictype/property-not-a-character-tests (Files): Likewise.
74636         * modules/unictype/property-numeric-tests (Files): Likewise.
74637         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
74638         * modules/unictype/property-other-default-ignorable-code-point-tests
74639         (Files): Likewise.
74640         * modules/unictype/property-other-grapheme-extend-tests (Files):
74641         Likewise.
74642         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
74643         * modules/unictype/property-other-id-start-tests (Files): Likewise.
74644         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
74645         * modules/unictype/property-other-math-tests (Files): Likewise.
74646         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
74647         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
74648         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
74649         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
74650         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
74651         * modules/unictype/property-private-use-tests (Files): Likewise.
74652         * modules/unictype/property-punctuation-tests (Files): Likewise.
74653         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
74654         * modules/unictype/property-radical-tests (Files): Likewise.
74655         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
74656         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
74657         * modules/unictype/property-space-tests (Files): Likewise.
74658         * modules/unictype/property-terminal-punctuation-tests (Files):
74659         Likewise.
74660         * modules/unictype/property-test-tests (Files): Likewise.
74661         * modules/unictype/property-titlecase-tests (Files): Likewise.
74662         * modules/unictype/property-unassigned-code-value-tests (Files):
74663         Likewise.
74664         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
74665         * modules/unictype/property-uppercase-tests (Files): Likewise.
74666         * modules/unictype/property-variation-selector-tests (Files): Likewise.
74667         * modules/unictype/property-white-space-tests (Files): Likewise.
74668         * modules/unictype/property-xid-continue-tests (Files): Likewise.
74669         * modules/unictype/property-xid-start-tests (Files): Likewise.
74670         * modules/unictype/property-zero-width-tests (Files): Likewise.
74671         * modules/unictype/scripts-tests (Files): Likewise.
74672         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
74673         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
74674         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
74675         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
74676         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
74677         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
74678         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
74679         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
74680         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
74681         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
74682         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
74683         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
74684         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
74685         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
74686         * modules/uninorm/composition-tests (Files): Likewise.
74687         * modules/uninorm/decomposing-form-tests (Files): Likewise.
74688         * modules/uninorm/decomposition-tests (Files): Likewise.
74689         * modules/uninorm/filter-tests (Files): Likewise.
74690         * modules/uninorm/nfc-tests (Files): Likewise.
74691         * modules/uninorm/nfd-tests (Files): Likewise.
74692         * modules/uninorm/nfkc-tests (Files): Likewise.
74693         * modules/uninorm/nfkd-tests (Files): Likewise.
74694         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
74695         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
74696         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
74697         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
74698         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
74699         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
74700         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
74701         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
74702         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
74703         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
74704         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
74705         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
74706         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
74707         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
74708         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
74709         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
74710         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
74711         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
74712         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
74713         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
74714         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
74715         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
74716         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
74717         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
74718         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
74719         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
74720         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
74721         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
74722         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
74723         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
74724         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
74725         * modules/uniwidth/u8-width-tests (Files): Likewise.
74726         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
74727         * modules/uniwidth/u16-width-tests (Files): Likewise.
74728         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
74729         * modules/uniwidth/u32-width-tests (Files): Likewise.
74730         * modules/uniwidth/width-tests (Files): Likewise.
74731         * modules/unlink-tests (Files): Likewise.
74732         * modules/unsetenv-tests (Files): Likewise.
74733         * modules/usleep-tests (Files): Likewise.
74734         * modules/utimens-tests (Files): Likewise.
74735         * modules/utimensat-tests (Files): Likewise.
74736         * modules/vasnprintf-posix-tests (Files): Likewise.
74737         * modules/vasnprintf-tests (Files): Likewise.
74738         * modules/vasprintf-posix-tests (Files): Likewise.
74739         * modules/vasprintf-tests (Files): Likewise.
74740         * modules/vdprintf-posix-tests (Files): Likewise.
74741         * modules/vfprintf-posix-tests (Files): Likewise.
74742         * modules/vprintf-posix-tests (Files): Likewise.
74743         * modules/vsnprintf-posix-tests (Files): Likewise.
74744         * modules/vsnprintf-tests (Files): Likewise.
74745         * modules/vsprintf-posix-tests (Files): Likewise.
74746         * modules/wcrtomb-tests (Files): Likewise.
74747         * modules/wcsnrtombs-tests (Files): Likewise.
74748         * modules/wcsrtombs-tests (Files): Likewise.
74749         * modules/wctype-tests (Files): Likewise.
74750         * modules/wcwidth-tests (Files): Likewise.
74751         * modules/xmemdup0-tests (Files): Likewise.
74752         * modules/xprintf-posix-tests (Files): Likewise.
74753         * modules/xvasprintf-tests (Files): Likewise.
74755 2009-12-24  Eric Blake  <ebb9@byu.net>
74757         test-nanosleep: fix typo
74758         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
74759         patch.
74760         Reported by Bruno Haible.
74762 2009-12-24  Bruno Haible  <bruno@clisp.org>
74764         Reduce namespace pollution on glibc systems.
74765         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
74766         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
74767         systems.
74768         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
74769         <getopt.h> on glibc systems.
74770         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
74771         systems.
74772         * lib/fcntl.c: Include <unistd.h> here instead.
74774 2009-12-24  Bruno Haible  <bruno@clisp.org>
74776         * lib/stdlib.in.h (includes): Fix typo in today's commit.
74778 2009-12-24  Eric Blake  <ebb9@byu.net>
74780         tests: add signature checks
74781         * tests/signature.h (SIGNATURE_CHECK): New file.
74782         * modules/atexit-tests (Files): Use it.
74783         * modules/btowc-tests (Files): Likewise.
74784         * modules/canonicalize-lgpl-tests (Files): Likewise.
74785         * modules/ceilf-tests (Files): Likewise.
74786         * modules/ceill-tests (Files): Likewise.
74787         * modules/chown-tests (Files): Likewise.
74788         * modules/dprintf-posix-tests (Files): Likewise.
74789         * modules/dup2-tests (Files): Likewise.
74790         * modules/dup3-tests (Files): Likewise.
74791         * modules/duplocale-tests (Files): Likewise.
74792         * modules/fchdir-tests (Files): Likewise.
74793         * modules/fcntl-tests (Files): Likewise.
74794         * modules/fdopendir-tests (Files): Likewise.
74795         * modules/fflush-tests (Files): Likewise.
74796         * modules/flock-tests (Files): Likewise.
74797         * modules/floorf-tests (Files): Likewise.
74798         * modules/floorl-tests (Files): Likewise.
74799         * modules/fnmatch-tests (Files): Likewise.
74800         * modules/fopen-tests (Files): Likewise.
74801         * modules/fprintf-posix-tests (Files): Likewise.
74802         * modules/freopen-tests (Files): Likewise.
74803         * modules/frexp-nolibm-tests (Files): Likewise.
74804         * modules/frexp-tests (Files): Likewise.
74805         * modules/frexpl-nolibm-tests (Files): Likewise.
74806         * modules/frexpl-tests (Files): Likewise.
74807         * modules/fseek-tests (Files): Likewise.
74808         * modules/fseeko-tests (Files): Likewise.
74809         * modules/fsync-tests (Files): Likewise.
74810         * modules/ftell-tests (Files): Likewise.
74811         * modules/ftello-tests (Files): Likewise.
74812         * modules/futimens-tests (Files): Likewise.
74813         * modules/getaddrinfo-tests (Files): Likewise.
74814         * modules/getcwd-tests (Files): Likewise.
74815         * modules/getdelim-tests (Files): Likewise.
74816         * modules/getdtablesize-tests (Files): Likewise.
74817         * modules/getgroups-tests (Files): Likewise.
74818         * modules/gethostname-tests (Files): Likewise.
74819         * modules/getline-tests (Files): Likewise.
74820         * modules/getopt-posix-tests (Files): Likewise.
74821         * modules/gettimeofday-tests (Files): Likewise.
74822         * modules/glob-tests (Files): Likewise.
74823         * modules/iconv-tests (Files): Likewise.
74824         * modules/inet_ntop-tests (Files): Likewise.
74825         * modules/inet_pton-tests (Files): Likewise.
74826         * modules/isblank-tests (Files): Likewise.
74827         * modules/lchown-tests (Files): Likewise.
74828         * modules/ldexpl-tests (Files): Likewise.
74829         * modules/link-tests (Files): Likewise.
74830         * modules/linkat-tests (Files): Likewise.
74831         * modules/lseek-tests (Files): Likewise.
74832         * modules/lstat-tests (Files): Likewise.
74833         * modules/mbrtowc-tests (Files): Likewise.
74834         * modules/mbsinit-tests (Files): Likewise.
74835         * modules/mbsnrtowcs-tests (Files): Likewise.
74836         * modules/mbsrtowcs-tests (Files): Likewise.
74837         * modules/memchr-tests (Files): Likewise.
74838         * modules/memcmp-tests (Files): Likewise.
74839         * modules/memmem-tests (Files): Likewise.
74840         * modules/memrchr-tests (Files): Likewise.
74841         * modules/mkdir-tests (Files): Likewise.
74842         * modules/mkfifo-tests (Files): Likewise.
74843         * modules/mkfifoat-tests (Files): Likewise.
74844         * modules/mknod-tests (Files): Likewise.
74845         * modules/nanosleep-tests (Files): Likewise.
74846         * modules/nl_langinfo-tests (Files): Likewise.
74847         * modules/obstack-printf-tests (Files): Likewise.
74848         * modules/open-tests (Files): Likewise.
74849         * modules/openat-tests (Files): Likewise.
74850         * modules/perror-tests (Files): Likewise.
74851         * modules/pipe2-tests (Files): Likewise.
74852         * modules/poll-tests (Files): Likewise.
74853         * modules/popen-tests (Files): Likewise.
74854         * modules/posix_spawn-tests (Files): Likewise.
74855         * modules/posix_spawnp-tests (Files): Likewise.
74856         * modules/pread-tests (Files): Likewise.
74857         * modules/printf-posix-tests (Files): Likewise.
74858         * modules/pty-tests (Files): Likewise.
74859         * modules/random_r-tests (Files): Likewise.
74860         * modules/rawmemchr-tests (Files): Likewise.
74861         * modules/readlink-tests (Files): Likewise.
74862         * modules/remove-tests (Files): Likewise.
74863         * modules/rename-tests (Files): Likewise.
74864         * modules/renameat-tests (Files): Likewise.
74865         * modules/rmdir-tests (Files): Likewise.
74866         * modules/round-tests (Files): Likewise.
74867         * modules/roundf-tests (Files): Likewise.
74868         * modules/roundl-tests (Files): Likewise.
74869         * modules/select-tests (Files): Likewise.
74870         * modules/setenv-tests (Files): Likewise.
74871         * modules/sigaction-tests (Files): Likewise.
74872         * modules/sleep-tests (Files): Likewise.
74873         * modules/snprintf-posix-tests (Files): Likewise.
74874         * modules/snprintf-tests (Files): Likewise.
74875         * modules/sprintf-posix-tests (Files): Likewise.
74876         * modules/stat-tests (Files): Likewise.
74877         * modules/strcasestr-tests (Files): Likewise.
74878         * modules/strchrnul-tests (Files): Likewise.
74879         * modules/strerror-tests (Files): Likewise.
74880         * modules/strsignal-tests (Files): Likewise.
74881         * modules/strstr-tests (Files): Likewise.
74882         * modules/strtod-tests (Files): Likewise.
74883         * modules/strverscmp-tests (Files): Likewise.
74884         * modules/symlink-tests (Files): Likewise.
74885         * modules/symlinkat-tests (Files): Likewise.
74886         * modules/times-tests (Files): Likewise.
74887         * modules/trunc-tests (Files): Likewise.
74888         * modules/truncf-tests (Files): Likewise.
74889         * modules/truncl-tests (Files): Likewise.
74890         * modules/tsearch-tests (Files): Likewise.
74891         * modules/uname-tests (Files): Likewise.
74892         * modules/unlink-tests (Files): Likewise.
74893         * modules/unsetenv-tests (Files): Likewise.
74894         * modules/usleep-tests (Files): Likewise.
74895         * modules/utimensat-tests (Files): Likewise.
74896         * modules/vasprintf-tests (Files): Likewise.
74897         * modules/vdprintf-posix-tests (Files): Likewise.
74898         * modules/vfprintf-posix-tests (Files): Likewise.
74899         * modules/vprintf-posix-tests (Files): Likewise.
74900         * modules/vsnprintf-posix-tests (Files): Likewise.
74901         * modules/vsnprintf-tests (Files): Likewise.
74902         * modules/vsprintf-posix-tests (Files): Likewise.
74903         * modules/wcrtomb-tests (Files): Likewise.
74904         * modules/wcsnrtombs-tests (Files): Likewise.
74905         * modules/wcsrtombs-tests (Files): Likewise.
74906         * modules/wcwidth-tests (Files): Likewise.
74907         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
74908         * tests/test-isinf.c (isinf): Likewise.
74909         * tests/test-isnan.c (isnan): Likewise.
74910         * tests/test-signbit.c (signbit): Likewise.
74911         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
74912         declaration, either as macro or with correct signature.
74913         (select): Ensure function under test is declared with correct
74914         signature in correct header.
74915         * tests/test-atexit.c (atexit): Likewise.
74916         * tests/test-btowc.c (btowc): Likewise.
74917         * tests/test-canonicalize-lgpl.c (realpath)
74918         (canonicalize_file_name): Likewise.
74919         * tests/test-ceilf1.c (ceilf): Likewise.
74920         * tests/test-ceill.c (ceill): Likewise.
74921         * tests/test-chown.c (chown): Likewise.
74922         * tests/test-dprintf-posix.c (dprintf): Likewise.
74923         * tests/test-dup2.c (dup2): Likewise.
74924         * tests/test-dup3.c (dup3): Likewise.
74925         * tests/test-duplocale.c (duplocale): Likewise.
74926         * tests/test-fchdir.c (fchdir): Likewise.
74927         * tests/test-fchownat.c (fchownat): Likewise.
74928         * tests/test-fcntl.c (fcntl): Likewise.
74929         * tests/test-fdopendir.c (fdopendir): Likewise.
74930         * tests/test-fflush.c (fflush): Likewise.
74931         * tests/test-flock.c (flock): Likewise.
74932         * tests/test-floorf1.c (floorf): Likewise.
74933         * tests/test-floorl.c (floorl): Likewise.
74934         * tests/test-fnmatch.c (fnmatch): Likewise.
74935         * tests/test-fopen.c (fopen): Likewise.
74936         * tests/test-fprintf-posix.c (fprintf): Likewise.
74937         * tests/test-freopen.c (freopen): Likewise.
74938         * tests/test-frexp.c (frexp): Likewise.
74939         * tests/test-frexpl.c (frexpl): Likewise.
74940         * tests/test-fseek.c (fseek): Likewise.
74941         * tests/test-fseeko.c (fseeko): Likewise.
74942         * tests/test-fstatat.c (fstatat): Likewise.
74943         * tests/test-fsync.c (fsync): Likewise.
74944         * tests/test-ftell.c (ftell): Likewise.
74945         * tests/test-ftello.c (ftello): Likewise.
74946         * tests/test-futimens.c (futimens): Likewise.
74947         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
74948         (gai_strerror): Likewise.
74949         * tests/test-getcwd.c (getcwd): Likewise.
74950         * tests/test-getdelim.c (getdelim): Likewise.
74951         * tests/test-getdtablesize.c (getdtablesize): Likewise.
74952         * tests/test-getgroups.c (getgroups): Likewise.
74953         * tests/test-gethostname.c (gethostname): Likewise.
74954         * tests/test-getline.c (getline): Likewise.
74955         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
74956         Likewise.
74957         * tests/test-gettimeofday.c (gettimeofday): Likewise.
74958         * tests/test-glob.c (glob, globfree): Likewise.
74959         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
74960         * tests/test-inet_ntop.c (inet_ntop): Likewise.
74961         * tests/test-inet_pton.c (inet_pton): Likewise.
74962         * tests/test-isblank.c (isblank): Likewise.
74963         * tests/test-lchown.c (lchown): Likewise.
74964         * tests/test-ldexpl.c (ldexpl): Likewise.
74965         * tests/test-link.c (link): Likewise.
74966         * tests/test-linkat.c (linkat): Likewise.
74967         * tests/test-lseek.c (lseek): Likewise.
74968         * tests/test-lstat.c (lstat): Likewise.
74969         * tests/test-mbrtowc.c (mbrtowc): Likewise.
74970         * tests/test-mbsinit.c (mbsinit): Likewise.
74971         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
74972         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
74973         * tests/test-memchr.c (memchr): Likewise.
74974         * tests/test-memcmp.c (memcmp): Likewise.
74975         * tests/test-memmem.c (memmem): Likewise.
74976         * tests/test-memrchr.c (memrchr): Likewise.
74977         * tests/test-mkdir.c (mkdir): Likewise.
74978         * tests/test-mkdirat.c (mkdirat): Likewise.
74979         * tests/test-mkfifo.c (mkfifo): Likewise.
74980         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
74981         * tests/test-mknod.c (mknod): Likewise.
74982         * tests/test-nanosleep.c (nanosleep): Likewise.
74983         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
74984         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
74985         Likewise.
74986         * tests/test-open.c (open): Likewise.
74987         * tests/test-openat.c (openat): Likewise.
74988         * tests/test-perror.c (perror): Likewise.
74989         * tests/test-pipe2.c (pipe2): Likewise.
74990         * tests/test-poll.c (poll): Likewise.
74991         * tests/test-popen.c (popen, pclose): Likewise.
74992         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
74993         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
74994         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
74995         (posix_spawn_file_actions_destroy)
74996         (posix_spawn_file_actions_addclose)
74997         (posix_spawn_file_actions_addopen)
74998         (posix_spawn_file_actions_adddup2): Likewise.
74999         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
75000         * tests/test-pread.c (pread): Likewise.
75001         * tests/test-printf-posix.c (printf): Likewise.
75002         * tests/test-pty.c (openpty, forkpty): Likewise.
75003         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
75004         (random_r): Likewise.
75005         * tests/test-rawmemchr.c (rawmemchr): Likewise.
75006         * tests/test-readlink.c (readlink): Likewise.
75007         * tests/test-remove.c (remove): Likewise.
75008         * tests/test-rename.c (rename): Likewise.
75009         * tests/test-renameat.c (renameat): Likewise.
75010         * tests/test-rmdir.c (rmdir): Likewise.
75011         * tests/test-round1.c (round): Likewise.
75012         * tests/test-roundf1.c (roundf): Likewise.
75013         * tests/test-roundl.c (roundl): Likewise.
75014         * tests/test-setenv.c (setenv): Likewise.
75015         * tests/test-sigaction.c (sigaction): Likewise.
75016         * tests/test-sleep.c (sleep): Likewise.
75017         * tests/test-snprintf.c (snprintf): Likewise.
75018         * tests/test-sprintf-posix.c (sprintf): Likewise.
75019         * tests/test-stat.c (stat): Likewise.
75020         * tests/test-stpncpy.c (stpncpy): Likewise.
75021         * tests/test-strcasestr.c (strcasestr): Likewise.
75022         * tests/test-strchrnul.c (strchrnul): Likewise.
75023         * tests/test-strerror.c (strerror): Likewise.
75024         * tests/test-strsignal.c (strsignal): Likewise.
75025         * tests/test-strstr.c (strstr): Likewise.
75026         * tests/test-strtod.c (strtod): Likewise.
75027         * tests/test-strverscmp.c (strverscmp): Likewise.
75028         * tests/test-symlink.c (symlink): Likewise.
75029         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
75030         * tests/test-times.c (times): Likewise.
75031         * tests/test-trunc1.c (trunc): Likewise.
75032         * tests/test-truncf1.c (truncf): Likewise.
75033         * tests/test-truncl.c (truncl): Likewise.
75034         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
75035         Likewise.
75036         * tests/test-uname.c (uname): Likewise.
75037         * tests/test-unlink.c (unlink): Likewise.
75038         * tests/test-unlinkat.c (unlinkat): Likewise.
75039         * tests/test-unsetenv.c (unsetenv): Likewise.
75040         * tests/test-usleep.c (usleep): Likewise.
75041         * tests/test-utimensat.c (utimensat): Likewise.
75042         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
75043         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
75044         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
75045         * tests/test-vprintf-posix.c (vprintf): Likewise.
75046         * tests/test-vsnprintf.c (vsnprintf): Likewise.
75047         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
75048         * tests/test-wcrtomb.c (wcrtomb): Likewise.
75049         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
75050         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
75051         * tests/test-wcwidth.c (wcwidth): Likewise.
75053         build: pull in conditional headers during GNULIB_POSIXCHECK
75054         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
75055         definitions from any conditionally-included headers.
75056         * lib/stdlib.in.h (includes): Likewise.
75057         * lib/unistd.in.h (includes): Likewise.
75059 2009-12-24  Bruno Haible  <bruno@clisp.org>
75061         * tests/test-argv-iter.c: Include header file being tested immediately
75062         after config.h.
75063         * tests/test-base64.c: Likewise.
75064         * tests/test-flock.c: Likewise.
75065         * tests/test-fsync.c: Likewise.
75066         * tests/test-getdate.c: Likewise.
75067         * tests/test-getndelim2.c: Likewise.
75068         * tests/test-isfinite.c: Likewise.
75069         * tests/test-isinf.c: Likewise.
75070         * tests/test-strerror.c: Likewise.
75071         * tests/test-strsignal.c: Likewise.
75073 2009-12-23  Eric Blake  <ebb9@byu.net>
75075         unistd: work around cygwin bug
75076         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
75077         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
75078         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
75080 2009-12-23  Bruno Haible  <bruno@clisp.org>
75082         localename: More tests.
75083         * tests/test-localename.c (SIZEOF): New macro.
75084         (categories): New variable.
75085         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
75086         test_locale_name_default): Add test w.r.t. thread locale.
75087         (test_locale_name_thread): New function.
75088         (main): Invoke it.
75090         localename: Make aware of thread locale.
75091         * lib/localename.h (gl_locale_name_thread): New declaration.
75092         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
75093         behaviour with respect to thread locale.
75094         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
75095         <langinfo.h>, glthread/lock.h.
75096         (SIZE_BITS): New macro.
75097         (string_hash): New function.
75098         (struct hash_node): New type.
75099         (HASH_TABLE_SIZE): New macro.
75100         (struniq_hash_table, struniq_lock): New variables.
75101         (struniq): New function.
75102         (gl_locale_name_thread): New function.
75103         (gl_locale_name): Invoke it.
75104         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
75105         * modules/localename (Depends-on): Add lock.
75106         Reported by Mike Gran <spk121@yahoo.com>.
75108 2009-12-23  Eric Blake  <ebb9@byu.net>
75110         va-args: new module
75111         * modules/va-args: New file.
75112         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
75113         * MODULES.html.sh (Core language properties): Mention it.
75115         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
75116         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
75117         named alias for __attribute__((__unused__)).
75118         * lib/chown.c: Update client.
75119         * lib/fchmodat.c: Likewise.
75120         * lib/fts.c: Likewise.
75121         * lib/getdate.y: Likewise.
75122         * lib/getgroups.c: Likewise.
75123         * lib/getopt.c: Likewise.
75124         * lib/getugroups.c: Likewise.
75125         * lib/mkdir.c: Likewise.
75126         * lib/mkfifo.c: Likewise.
75127         * lib/mkfifoat.c: Likewise.
75128         * lib/mknod.c: Likewise.
75129         * lib/mknodat.c: Likewise.
75130         * lib/readlink.c: Likewise.
75131         * lib/se-context.in.h: Likewise.
75132         * lib/se-selinux.in.h: Likewise.
75133         * lib/sockets.c: Likewise.
75134         * lib/symlink.c: Likewise.
75135         * lib/symlinkat.c: Likewise.
75136         * lib/unicodeio.c: Likewise.
75137         * lib/unistr.h: Likewise.
75138         * tests/test-areadlink.c: Likewise.
75139         * tests/test-areadlinkat.c: Likewise.
75140         * tests/test-filenamecat.c: Likewise.
75141         * tests/test-fseeko.c: Likewise.
75142         * tests/test-ftello.c: Likewise.
75143         * tests/test-getdate.c: Likewise.
75144         * tests/test-getgroups.c: Likewise.
75145         * tests/test-gethostname.c: Likewise.
75146         * tests/test-quotearg.c: Likewise.
75147         * tests/test-version-etc.c: Likewise.
75148         * tests/test-xalloc-die.c: Likewise.
75149         * tests/test-xfprintf-posix.c: Likewise.
75150         * tests/test-xprintf-posix.c: Likewise.
75151         * tests/test-xvasprintf.c: Likewise.
75153         tests: avoid compiler warnings
75154         * tests/test-fcntl.c (main): Delete unused parameters.
75155         * tests/test-freopen-safer.c (main): Likewise.
75156         * tests/test-xalloc-die.c (main): Mark unused parameters.
75157         * tests/test-fseeko.c (main): Likewise.
75158         * tests/test-ftello.c (main): Likewise.
75159         * tests/test-nanosleep.c (main): Avoid declaration warning.
75160         * tests/test-sleep.c (main): Likewise.
75161         * tests/test-unsetenv.c (main): Silence warning about string
75162         literal.
75163         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
75165 2009-12-23  Bruno Haible  <bruno@clisp.org>
75167         * tests/test-localename.c (test_locale_name): New function, extracted
75168         from main. Also test mixed situations.
75169         (test_locale_name_posix, test_locale_name_environ,
75170         test_locale_name_default): New functions.
75171         (main): Invoke them all.
75172         * modules/localename-tests (configure.ac): Test for newlocale.
75174 2009-12-23  Bruno Haible  <bruno@clisp.org>
75176         unistd: Ensure getcwd gets declared before being overridden.
75177         * lib/unistd.in.h: Conditionally include <io.h>.
75179 2009-12-22  Bruno Haible  <bruno@clisp.org>
75181         wchar: Diagnose broken combination of glibc and gcc versions and flags.
75182         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
75183         (gl_WCHAR_H): Invoke it.
75184         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
75185         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
75186         Reported by Karl Berry <karl@freefriends.org>.
75188 2009-12-22  Eric Blake  <ebb9@byu.net>
75190         math, unistd: avoid redundant includes
75191         * lib/math.in.h (isnan): No need to re-include <math.h>.
75192         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
75194         getsubopt: work around cygwin bug
75195         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
75196         avoid conflicting with system getsubopt.
75197         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
75198         bug.
75200         getopt: synchronize from glibc
75201         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
75202         parameter order.  Adjust all callers.
75203         (_getopt_internal_r, main): Adjust quoting in error messages.
75204         Drop considerations for outdated POSIX 1003.2 error message.
75205         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
75206         callers.
75207         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
75209         test-getopt: test stderr behavior
75210         * modules/getopt-posix-tests (Depends-on): Add dup2.
75211         * tests/test-getopt.c (ASSERT): Avoid stderr.
75212         (main): Move stderr to a temporary file.
75213         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
75214         Instead, add parameter to inform caller if output occurred.
75215         (test_getopt): Adjust all existing tests to expect silence, and
75216         add new tests of leading ":".
75217         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
75218         glibc shortcomings with leading "-:" or "+:" in optstring.
75219         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
75220         Likewise.
75221         * doc/posix-functions/getopt.texi (getopt): Likewise.
75223         test-getopt: enhance test
75224         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
75225         supports optind=0.
75226         * tests/test-getopt.c (OPTIND_MIN): Move...
75227         * tests/test-getopt.h (OPTIND_MIN): ...here.
75228         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
75229         Require that optind=0 works, since modern BSD supports it in
75230         addition to optreset, and since coreutils expects it.
75231         (test_getopt_long_only): New test.
75232         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
75233         glibc shortcomings with 'W;', and enforcement of optind=0.
75234         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
75235         Likewise.
75237 2009-12-21  Bruno Haible  <bruno@clisp.org>
75239         localename: Improvements for MacOS X and Cygwin.
75240         * lib/localename.h (gl_locale_name_environ): New declaration.
75241         * lib/localename.c (gl_locale_name_environ): New function, extracted from
75242         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
75243         (gl_locale_name_posix): Invoke it.
75244         (gl_locale_name_default): Add comments. Use Windows native API also on
75245         Cygwin.
75247 2009-12-21  Bruno Haible  <bruno@clisp.org>
75249         Update list of Win32 locale ids.
75250         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
75251         (LANG_SAMI): Renamed from LANG_SAAMI.
75252         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
75253         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
75254         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
75255         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
75256         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
75257         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
75258         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
75259         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
75260         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
75261         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
75262         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
75263         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
75264         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
75265         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
75266         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
75267         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
75268         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
75269         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
75270         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
75271         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
75272         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
75273         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
75274         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
75275         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
75276         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
75277         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
75278         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
75279         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
75280         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
75281         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
75282         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
75283         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
75284         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
75285         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
75286         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
75287         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
75288         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
75289         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
75290         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
75291         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
75292         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
75293         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
75294         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
75295         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
75296         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
75297         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
75298         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
75299         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
75300         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
75301         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
75302         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
75303         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
75304         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
75305         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
75306         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
75307         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
75308         Add more languages and countries for Sami, Sorbian. Add more countries
75309         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
75310         for Pashto. Change country for Syriac, Tswana.
75312 2009-12-21  Eric Blake  <ebb9@byu.net>
75314         test-utimens: avoid spurious failure
75315         * tests/test-chown.h (nap): Factor...
75316         * tests/nap.h: ...into new file.
75317         * tests/test-lchown.h (nap): Avoid duplication.
75318         * tests/test-utimens-common.h (nap): Use shared implementation,
75319         necessary on file systems with 1-second resolution.
75320         * modules/chown-tests (Files): Include new file.
75321         * modules/fdutimensat-tests (Files): Likewise.
75322         * modules/futimens-tests (Files): Likewise.
75323         * modules/lchown-tests (Files): Likewise.
75324         * modules/openat-tests (Files): Likewise.
75325         * modules/utimens-tests (Files): Likewise.
75326         * modules/utimensat-tests (Files): Likewise.
75328 2009-12-19  Eric Blake  <ebb9@byu.net>
75330         futimens, utimensat: work around Linux bug
75331         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
75332         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
75333         * lib/utimensat.c (rpl_utimensat): Work around it.
75334         * lib/futimens.c (rpl_futimens): Adjust comment.
75336         utimens: work around Linux ctime bug
75337         * lib/utimens.c (detect_ctime_bug): New helper function.
75338         (update_timespec): Differentiate between workaround needed for
75339         this bug vs. what is needed for systems that lack utimensat.
75340         (fdutimens, lutimens): Work around bug.
75342         utimens: check for ctime update
75343         * tests/test-utimens-common.h (check_ctime): Define.
75344         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
75345         * tests/test-futimens.h (test_futimens): Likewise.
75346         * tests/test-lutimens.h (test_lutimens): Likewise.
75347         * doc/posix-functions/futimens.texi (futimens): Document the bug.
75348         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
75350 2009-12-19  Bruno Haible  <bruno@clisp.org>
75352         dprintf-posix: Check against memory leak fixed on 2009-12-15.
75353         * tests/test-dprintf-posix2.sh: New file.
75354         * tests/test-dprintf-posix2.c: New file.
75355         * modules/dprintf-posix-tests (Files): Add them.
75356         (configure.ac): Check for getrlimit and setrlimit.
75357         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
75359 2009-12-19  Bruno Haible  <bruno@clisp.org>
75361         fprintf-posix: Check against memory leak fixed on 2009-12-15.
75362         * tests/test-fprintf-posix3.sh: New file.
75363         * tests/test-fprintf-posix3.c: New file.
75364         * modules/fprintf-posix-tests (Files): Add them.
75365         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
75367 2009-12-19  Eric Blake  <ebb9@byu.net>
75369         dirfd: fix prototype
75370         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
75371         * lib/dirfd.c (dirfd): Likewise.
75373         canonicalize: reduce memory usage
75374         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
75375         allocation to size.
75376         Reported by Solar Designer <solar@openwall.com>.
75378 2009-12-19  Bruno Haible  <bruno@clisp.org>
75380         New module attribute 'Applicability'.
75381         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
75382         * gnulib-tool: New option --extract-applicability.
75383         (func_usage): Document it.
75384         (sed_extract_prog): Recognize it.
75385         (func_get_applicability): New function.
75386         (func_import): Generalize handling of 'link-warning' module.
75387         * modules/link-warning (Applicability): New section.
75388         * modules/arg-nonnull (Applicability): New section.
75389         Repoted by Simon Josefsson <simon@josefsson.org>.
75391 2009-12-19  Bruno Haible  <bruno@clisp.org>
75393         fflush: tweak
75394         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
75395         * lib/fseeko.c (rpl_fseeko): Likewise.
75397 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
75399         * lib/gl_list.h: Fix typo in comment.
75401 2009-12-16  Eric Blake  <ebb9@byu.net>
75403         fcntl: use to simplify other modules
75404         * modules/cloexec (Depends-on): Add fcntl.
75405         * modules/fchdir (Depends-on): Likewise.
75406         * modules/fd-safer-flag (Depends-on): Likewise.
75407         * modules/unistd-safer (Depends-on): Likewise.
75408         * modules/dup3 (configure.ac): Set module indicator.
75409         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
75410         missing.
75411         * lib/fchdir.c (_gl_register_dup): Fix comment.
75412         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
75413         * lib/dup-safer.c (dup_safer): Likewise.
75414         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
75415         * lib/dup3.c (dup3): Likewise.
75416         * tests/test-fchdir.c (main): Enhance test.
75417         Fixes a dup_cloexec bug reported by Ondřej Vašík.
75419         fcntl: port portions of fcntl to mingw
75420         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
75421         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
75422         replacement for mingw.
75423         * modules/fcntl (Description): Update.
75424         (Depends-on): Add dup2.
75425         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
75426         * modules/fcntl-h (Makefile.am): Substitute it.
75427         * lib/fcntl.in.h (fcntl): Update declaration.
75428         (F_DUPFD, F_GETFD): New macros, when needed.
75429         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
75430         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
75431         * tests/test-fcntl.c (check_flags, main): Enhance test for items
75432         we now guarantee.
75434         fcntl: work around cygwin bug in F_DUPFD
75435         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
75436         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
75437         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
75438         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
75439         * doc/posix-functions/fcntl.texi (fcntl): Document it.
75441         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
75442         * modules/fcntl (Files): List new files.
75443         (configure.ac): Run a test.
75444         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
75445         * lib/fcntl.c (rpl_fcntl): Likewise.
75446         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
75447         (gl_FCNTL_H): Always replace fcntl.h.
75448         * modules/fcntl-h (Makefile.am): Substitute witnesses.
75449         * lib/fcntl.in.h (fcntl): Declare replacement.
75450         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
75451         needed, plus a witness.
75452         * doc/posix-functions/fcntl.texi (fcntl): Document this.
75453         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
75454         * tests/test-fcntl.c: New file.
75455         * modules/fcntl-tests: Likewise.
75457         binary-io: avoid potential compilation warning
75458         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
75459         directives.
75461         fflush: avoid compilation error on NetBSD
75462         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
75463         between off_t and fpos_t, since the latter is sometimes a struct.
75464         * lib/fseeko.c (rpl_fseeko): Likewise.
75465         Reported by Alexander Nasonov <alnsn@yandex.ru>.
75467 2009-12-15  Eric Blake  <ebb9@byu.net>
75469         fcntl-h, stdio, sys_ioctl: fix declarations
75470         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
75471         function must not take arguments.
75472         * lib/sys_ioctl.in.h (ioctl): Likewise.
75473         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
75474         (open): Add a link warning.
75476 2009-12-15  Jim Meyering  <meyering@redhat.com>
75478         areadlink, areadlink-with-size: relax license to LGPLv2+
75479         * modules/areadlink (License): Relax to LGPLv2+.
75480         * modules/areadlink-with-size (License): Likewise.
75482 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
75483             Bruno Haible  <bruno@clisp.org>
75485         *printf: Fix memory leak.
75486         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
75487         * lib/vfprintf.c (vfprintf): Likewise.
75488         * lib/dprintf.c (dprintf): Likewise.
75489         * lib/vdprintf.c (vdprintf): Likewise.
75491 2009-12-14  Eric Blake  <ebb9@byu.net>
75493         accept4: adjust module dependencies
75494         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
75496         utimens: one more try at avoiding compiler warning
75497         * lib/utimens.c (lutimens): Lower scope of result.
75499 2009-12-13  Bruno Haible  <bruno@clisp.org>
75501         Move the malloc checking from module 'list' to new module 'xlist'.
75502         * modules/xlist: New file.
75503         * lib/gl_xlist.h: New file.
75504         * lib/gl_xlist.c: New file.
75505         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
75506         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
75507         gl_list_add_last, gl_list_add_before, gl_list_add_after,
75508         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
75509         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
75510         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
75511         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
75512         gl_sortedlist_nx_add): New declarations.
75513         (struct gl_list_implementation): Rename and change methods accordingly.
75514         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
75515         (gl_list_nx_create): Renamed from gl_list_create.
75516         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
75517         (gl_list_nx_set_at): Renamed from gl_list_set_at.
75518         (gl_list_nx_add_first): Renamed from gl_list_add_first.
75519         (gl_list_nx_add_last): Renamed from gl_list_add_last.
75520         (gl_list_nx_add_before): Renamed from gl_list_add_before.
75521         (gl_list_nx_add_after): Renamed from gl_list_add_after.
75522         (gl_list_nx_add_at): Renamed from gl_list_add_at.
75523         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
75524         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
75525         gl_list_create_empty.
75526         (gl_list_nx_create): Renamed from gl_list_create.
75527         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
75528         (gl_list_nx_set_at): Renamed from gl_list_set_at.
75529         (gl_list_nx_add_first): Renamed from gl_list_add_first.
75530         (gl_list_nx_add_last): Renamed from gl_list_add_last.
75531         (gl_list_nx_add_before): Renamed from gl_list_add_before.
75532         (gl_list_nx_add_after): Renamed from gl_list_add_after.
75533         (gl_list_nx_add_at): Renamed from gl_list_add_at.
75534         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
75535         * lib/gl_array_list.c: Don't include xalloc.h.
75536         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
75537         NULL upon out-of-memory.
75538         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
75539         out-of-memory.
75540         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
75541         Change return type to 'int'.
75542         (gl_array_nx_set_at): Renamed from gl_array_set_at.
75543         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
75544         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
75545         upon out-of-memory.
75546         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
75547         upon out-of-memory.
75548         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
75549         upon out-of-memory.
75550         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
75551         upon out-of-memory.
75552         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
75553         out-of-memory.
75554         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
75555         Update.
75556         (gl_array_list_implementation): Update.
75557         * lib/gl_carray_list.c: Don't include xalloc.h.
75558         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
75559         Return NULL upon out-of-memory.
75560         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
75561         out-of-memory.
75562         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
75563         Change return type to 'int'.
75564         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
75565         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
75566         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
75567         upon out-of-memory.
75568         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
75569         upon out-of-memory.
75570         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
75571         out-of-memory.
75572         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
75573         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
75574         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
75575         Update.
75576         (gl_carray_list_implementation): Update.
75577         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
75578         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
75579         gl_linked_create_empty. Return NULL upon out-of-memory.
75580         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
75581         out-of-memory.
75582         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
75583         Change return type to 'int'. Return -1 upon out-of-memory.
75584         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
75585         out-of-memory.
75586         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
75587         upon out-of-memory.
75588         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
75589         upon out-of-memory.
75590         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
75591         NULL upon out-of-memory.
75592         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
75593         upon out-of-memory.
75594         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
75595         out-of-memory.
75596         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
75597         Update.
75598         * lib/gl_linked_list.c: Don't include xalloc.h.
75599         (gl_linked_list_implementation): Update.
75600         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
75601         (add_to_bucket): Change return type to 'int'.
75602         (gl_linkedhash_list_implementation): Update.
75603         * lib/gl_anytree_list1.h (free_subtree): New function.
75604         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
75605         gl_tree_create_empty. Return NULL upon out-of-memory.
75606         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
75607         Change return type to 'int'. Return -1 upon out-of-memory.
75608         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
75609         out-of-memory.
75610         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
75611         (gl_tree_remove_node): New function, moved here from
75612         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
75613         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
75614         Update.
75615         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
75616         malloc, not xmalloc. Return NULL upon out-of-memory.
75617         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
75618         out-of-memory.
75619         (gl_tree_remove_node_from_tree): New function, extracted from
75620         gl_tree_remove_node.
75621         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
75622         upon out-of-memory.
75623         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
75624         out-of-memory.
75625         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
75626         upon out-of-memory.
75627         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
75628         upon out-of-memory.
75629         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
75630         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
75631         not xmalloc. Return NULL upon out-of-memory.
75632         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
75633         out-of-memory.
75634         (gl_tree_remove_node_from_tree): New function, extracted from
75635         gl_tree_remove_node.
75636         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
75637         upon out-of-memory.
75638         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
75639         out-of-memory.
75640         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
75641         upon out-of-memory.
75642         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
75643         upon out-of-memory.
75644         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
75645         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
75646         gl_anytree_list1.h before gl_anyavltree_list2.h.
75647         (gl_avltree_list_implementation): Update.
75648         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
75649         gl_anytree_list1.h before gl_anyavltree_list2.h.
75650         (gl_rbtree_list_implementation): Update.
75651         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
75652         Change return type to 'int'. Return -1 upon out-of-memory. Use
75653         __builtin_expect.
75654         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
75655         (gl_avltreehash_list_implementation): Update.
75656         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
75657         (gl_rbtreehash_list_implementation): Update.
75658         * modules/array-list (Depends-on): Remove xalloc.
75659         * modules/carray-list (Depends-on): Likewise.
75660         * modules/linked-list (Depends-on): Likewise.
75661         * modules/linkedhash-list (Depends-on): Likewise.
75662         * modules/avltree-list (Depends-on): Likewise.
75663         * modules/rbtree-list (Depends-on): Likewise.
75664         * modules/avltreehash-list (Depends-on): Likewise.
75665         * modules/rbtreehash-list (Depends-on): Likewise.
75667         * modules/xsublist: New file.
75668         * lib/gl_xsublist.h: New file.
75669         * lib/gl_xsublist.c: New file.
75670         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
75671         (gl_sublist_nx_create): New declaration.
75672         * lib/gl_sublist.c: Don't include xalloc.h.
75673         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
75674         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
75675         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
75676         Change return type to 'int'. Return -1 upon out-of-memory.
75677         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
75678         upon out-of-memory.
75679         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
75680         NULL upon out-of-memory.
75681         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
75682         upon out-of-memory.
75683         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
75684         NULL upon out-of-memory.
75685         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
75686         NULL upon out-of-memory.
75687         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
75688         upon out-of-memory.
75689         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
75690         (gl_sublist_list_implementation): Update.
75691         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
75692         upon out-of-memory.
75693         * modules/sublist (Depends-on): Remove xalloc.
75695         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
75696         * tests/test-carray_list.c: Likewise.
75697         * tests/test-linked_list.c: Likewise.
75698         * tests/test-linkedhash_list.c: Likewise.
75699         * tests/test-avltree_list.c: Likewise.
75700         * tests/test-rbtree_list.c: Likewise.
75701         * tests/test-avltreehash_list.c: Likewise.
75702         * tests/test-rbtreehash_list.c: Likewise.
75703         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
75704         * modules/carray-list-tests (Makefile.am): Likewise.
75705         * modules/linked-list-tests (Makefile.am): Likewise.
75706         * modules/linkedhash-list-tests (Makefile.am): Likewise.
75707         * modules/avltree-list-tests (Makefile.am): Likewise.
75708         * modules/rbtree-list-tests (Makefile.am): Likewise.
75709         * modules/avltreehash-list-tests (Makefile.am): Likewise.
75710         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
75712         * NEWS: Mention the changes.
75714         * lib/clean-temp.c: Include gl_xlist.h.
75715         * modules/clean-temp (Depends-on): Add xlist.
75717         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
75718         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
75720         * tests/test-array_oset.c: Include gl_xlist.h.
75721         * modules/array-oset-tests (Depends-on): Add xlist.
75723         Reported by José E. Marchesi <jemarch@gnu.org>.
75725 2009-12-13  Bruno Haible  <bruno@clisp.org>
75727         Move the malloc checking from module 'oset' to new module 'xoset'.
75728         * modules/xoset: New file.
75729         * lib/gl_xoset.h: New file.
75730         * lib/gl_xoset.c: New file.
75731         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
75732         declarations.
75733         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
75734         (struct gl_oset_implementation): Rename and change methods accordingly.
75735         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
75736         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
75737         'int'. Mark as __warn_unused_result__.
75738         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
75739         gl_oset_create_empty.
75740         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
75741         'int'.
75742         * lib/gl_array_oset.c: Don't include xalloc.h.
75743         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
75744         malloc, not xmalloc.
75745         (grow): Change return type to 'int'. Don't call xalloc_die.
75746         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
75747         to 'int'.
75748         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
75749         'int'.
75750         (gl_array_oset_implementation): Update.
75751         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
75752         gl_tree_create_empty.
75753         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
75754         'int'.
75755         * lib/gl_avltree_oset.c: Don't include xalloc.h.
75756         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
75757         xmalloc.
75758         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
75759         not xmalloc.
75760         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
75761         xmalloc.
75762         (gl_avltree_oset_implementation): Update.
75763         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
75764         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
75765         xmalloc.
75766         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
75767         not xmalloc.
75768         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
75769         xmalloc.
75770         (gl_rbtree_oset_implementation): Update.
75771         * modules/array-oset (Depends-on): Remove xalloc.
75772         * modules/avltree-oset (Depends-on): Likewise.
75773         * modules/rbtree-oset (Depends-on): Likewise.
75774         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
75775         * tests/test-avltree_oset.c: Likewise.
75776         * tests/test-rbtree_oset.c: Likewise.
75777         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
75778         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
75779         * modules/rbtree-oset-tests (Makefile.am): Likewise.
75780         * NEWS: Mention the change.
75782 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
75784         maint.mk: allow a project to override release-prep commands
75785         * top/maint.mk (alpha, beta, stable): Move release-preparatory
75786         commands into a new rule.
75787         (release-prep): New rule.
75788         (release-prep-hook): New overridable variable.
75790 2009-12-13  Bruno Haible  <bruno@clisp.org>
75792         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
75794 2009-12-13  Jim Meyering  <meyering@redhat.com>
75796         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
75797         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
75799 2009-12-12  Bruno Haible  <bruno@clisp.org>
75801         duplocale: Tweak.
75802         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
75804 2009-12-12  Karl Berry  <karl@gnu.org>
75806         * config/srclist.txt (strtoll.c): tab changes, no more sync.
75808 2009-12-12  Bruno Haible  <bruno@clisp.org>
75810         * m4/po.m4: Undo incorrect untabification.
75812 2009-12-12  Bruno Haible  <bruno@clisp.org>
75814         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
75815         * modules/c-strtod (Depends-on): Add locale.
75816         * modules/c-strtold (Depends-on): Likewise.
75818 2009-12-12  Bruno Haible  <bruno@clisp.org>
75820         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
75822 2009-12-11  Eric Blake  <ebb9@byu.net>
75824         setenv: relax requirement in light of POSIX ruling
75825         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
75826         not NULL.
75827         * tests/test-setenv.c (main): Relax test.
75828         * tests/test-unsetenv.c (main): Likewise.
75829         * doc/posix-functions/setenv.texi (setenv): Document this.
75830         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
75832 2009-12-11  Bruno Haible  <bruno@clisp.org>
75834         New module 'fd-safer-flag'.
75835         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
75836         * lib/dup-safer.c (dup_safer_flag): Remove function.
75837         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
75838         * lib/fd-safer.c (fd_safer_flag): Remove function.
75839         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
75840         * modules/cloexec (configure.ac): Drop indicator macro.
75841         * modules/fd-safer-flag: New file.
75842         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
75843         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
75844         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
75846 2009-12-11  Bruno Haible  <bruno@clisp.org>
75848         Tests for module 'nl_langinfo'.
75849         * modules/nl_langinfo-tests: New file.
75850         * tests/test-nl_langinfo.sh: New file.
75851         * tests/test-nl_langinfo.c: New file.
75853         New module 'nl_langinfo'.
75854         * lib/nl_langinfo.c: New file.
75855         * m4/nl_langinfo.m4: New file.
75856         * modules/nl_langinfo: New file.
75857         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
75859 2009-12-11  Bruno Haible  <bruno@clisp.org>
75861         Tests for module 'langinfo'.
75862         * modules/langinfo-tests: New file.
75863         * tests/test-langinfo.c: New file.
75865         New module 'langinfo'.
75866         * lib/langinfo.in.h: New file.
75867         * m4/langinfo_h.m4: New file.
75868         * modules/langinfo: New file.
75869         * doc/posix-headers/langinfo.texi: Mention the new module.
75871 2009-12-11  Bruno Haible  <bruno@clisp.org>
75873         * lib/config.charset: Untabify.
75875 2009-12-11  Bruno Haible  <bruno@clisp.org>
75877         * modules/unistd-safer (configure.ac): Drop indicator macro.
75879 2009-12-11  Bruno Haible  <bruno@clisp.org>
75881         Move pipe2-safer code to its own file.
75882         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
75883         * lib/pipe-safer.c (pipe2_safer): Remove function.
75884         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
75885         (Makefile.am): Add it to lib_SOURCES.
75887 2009-12-10  Bruno Haible  <bruno@clisp.org>
75889         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
75891 2009-12-10  Bruno Haible  <bruno@clisp.org>
75893         Declare which arguments expect non-NULL values, for GCC and clang.
75894         * build-aux/arg-nonnull.h: New file.
75895         * modules/arg-nonnull: New file.
75896         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
75897         (inet_ntop, inet_pton): Use it.
75898         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
75899         (closedir, dirfd, opendir, scandir, alphasort): Use it.
75900         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
75901         (open, openat): Use it.
75902         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
75903         (fnmatch): Use it.
75904         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
75905         (getopt, getopt_long, getopt_long_only): Use it.
75906         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
75907         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
75908         Use it.
75909         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
75910         (iconv_open): Use it.
75911         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
75912         (strtoimax, strtoumax): Use it.
75913         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
75914         (duplocale): Use it.
75915         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
75916         (frexp, frexpl): Use it.
75917         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
75918         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
75919         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
75920         (tsearch, tfind, tdelete, twalk): Use it.
75921         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
75922         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
75923         sigpending): Use it.
75924         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
75925         (posix_spawn, posix_spawnp, posix_spawnattr_init,
75926         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
75927         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
75928         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
75929         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
75930         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
75931         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
75932         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
75933         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
75934         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
75935         Use it.
75936         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
75937         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
75938         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
75939         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
75940         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
75941         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
75942         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
75943         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
75944         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
75945         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
75946         strtoull, unsetenv): Use it.
75947         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
75948         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
75949         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
75950         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
75951         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
75952         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
75953         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
75954         (strcasecmp, strncasecmp): Use it.
75955         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
75956         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
75957         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
75958         rpl_setsockopt): Use it.
75959         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
75960         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
75961         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
75962         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
75963         (gettimeofday): Use it.
75964         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
75965         (times): Use it.
75966         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
75967         (uname): Use it.
75968         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
75969         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
75970         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
75971         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
75972         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
75973         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
75974         unlinkat, write): Use it.
75975         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
75976         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
75977         * lib/argv-iter.h: Include arg-nonnull.h.
75978         (_ATTRIBUTE_NONNULL_): Remove macro.
75979         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
75980         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
75981         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
75982         optimization.
75983         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
75984         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
75985         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
75986         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
75987         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
75988         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
75989         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
75990         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
75991         * modules/arpa_inet (Depends-on): Add arg-nonnull.
75992         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
75993         * modules/dirent (Depends-on): Add arg-nonnull.
75994         (Makefile.am): Insert arg-nonnull.h into dirent.h.
75995         * modules/fcntl-h (Depends-on): Add arg-nonnull.
75996         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
75997         * modules/fnmatch (Depends-on): Add arg-nonnull.
75998         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
75999         * modules/getopt-posix (Depends-on): Add arg-nonnull.
76000         (Makefile.am): Insert arg-nonnull.h into getopt.h.
76001         * modules/glob (Depends-on): Add arg-nonnull.
76002         (Makefile.am): Insert arg-nonnull.h into glob.h.
76003         * modules/iconv_open (Depends-on): Add arg-nonnull.
76004         (Makefile.am): Insert arg-nonnull.h into iconv.h.
76005         * modules/inttypes (Depends-on): Add arg-nonnull.
76006         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
76007         * modules/locale (Depends-on): Add arg-nonnull.
76008         (Makefile.am): Insert arg-nonnull.h into locale.h.
76009         * modules/math (Depends-on): Add arg-nonnull.
76010         (Makefile.am): Insert arg-nonnull.h into math.h.
76011         * modules/netdb (Depends-on): Add arg-nonnull.
76012         (Makefile.am): Insert arg-nonnull.h into netdb.h.
76013         * modules/search (Depends-on): Add arg-nonnull.
76014         (Makefile.am): Insert arg-nonnull.h into search.h.
76015         * modules/signal (Depends-on): Add arg-nonnull.
76016         (Makefile.am): Insert arg-nonnull.h into signal.h.
76017         * modules/spawn (Depends-on): Add arg-nonnull.
76018         (Makefile.am): Insert arg-nonnull.h into spawn.h.
76019         * modules/stdio (Depends-on): Add arg-nonnull.
76020         (Makefile.am): Insert arg-nonnull.h into stdio.h.
76021         * modules/stdlib (Depends-on): Add arg-nonnull.
76022         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
76023         * modules/string (Depends-on): Add arg-nonnull.
76024         (Makefile.am): Insert arg-nonnull.h into string.h.
76025         * modules/strings (Depends-on): Add arg-nonnull.
76026         (Makefile.am): Insert arg-nonnull.h into strings.h.
76027         * modules/sys_socket (Depends-on): Add arg-nonnull.
76028         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
76029         * modules/sys_stat (Depends-on): Add arg-nonnull.
76030         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
76031         * modules/sys_time (Depends-on): Add arg-nonnull.
76032         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
76033         * modules/sys_times (Depends-on): Add arg-nonnull.
76034         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
76035         * modules/sys_utsname (Depends-on): Add arg-nonnull.
76036         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
76037         * modules/time (Depends-on): Add arg-nonnull.
76038         (Makefile.am): Insert arg-nonnull.h into time.h.
76039         * modules/unistd (Depends-on): Add arg-nonnull.
76040         (Makefile.am): Insert arg-nonnull.h into unistd.h.
76041         * modules/wchar (Depends-on): Add arg-nonnull.
76042         (Makefile.am): Insert arg-nonnull.h into wchar.h.
76043         * modules/argv-iter (Depends-on): Add arg-nonnull.
76044         * tests/test-canonicalize.c (null_ptr): New function.
76045         (main): Use it.
76046         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
76047         (main): Use it.
76048         * tests/test-memmem.c (null_ptr): New function.
76049         (main): Use it.
76050         Reported by Jim Meyering.
76052 2009-12-10  Bruno Haible  <bruno@clisp.org>
76054         Use spaces for indentation, not tabs.
76055         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
76056         * m4/*.m4: Untabify.
76057         * build-aux/*.h: Untabify.
76058         * tests/**/*.[hc]: Untabify.
76059         * README: New section "Indent with spaces, not TABs", based on
76060         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
76061         * NEWS: Mention the change.
76063 2009-12-10  Bruno Haible  <bruno@clisp.org>
76065         pty test: Fix link error.
76066         * modules/pty-tests (Makefile.am): Add the default LDADD value to
76067         test_pty_LDADD.
76069 2009-12-07  Simon Josefsson  <simon@josefsson.org>
76071         * modules/pty: New file.
76072         * modules/pty-tests: New file.
76073         * m4/pty.m4: New file.
76074         * tests/test-pty.c: New file.
76075         * doc/glibc-headers/pty.texi: Modified.
76076         * doc/glibc-functions/forkpty.texi: Modified.
76077         * doc/glibc-functions/openpty.texi: Modified.
76079 2009-12-10  Bruno Haible  <bruno@clisp.org>
76081         Avoid syntax error in C++ mode.
76082         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
76084 2009-12-10  Bruno Haible  <bruno@clisp.org>
76086         Use sed with option -e.
76087         * gnulib-tool (func_version, func_emit_copyright_notice,
76088         func_emit_initmacro_end, func_import, func_create_testdir): Pass
76089         option -e to sed.
76090         * modules/link-warning (Makefile.am): Likewise.
76092 2009-12-10  Jim Meyering  <meyering@redhat.com>
76094         mgetgroups: do not write bytes beyond end of malloc'd buffer
76095         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
76096         username, we call getgroups with a one-element-shorter buffer,
76097         but still told it the length was original, max_n_groups.
76099 2009-12-09  Eric Blake  <ebb9@byu.net>
76101         cloexec: relax license
76102         * modules/cloexec (Maintainer): Add myself.
76103         (License): Use LGPL, not GPL.
76105         link-warning: optimize generation
76106         * modules/link-warning (Makefile.am): Reduce process usage.
76108 2009-12-09  Bruno Haible  <bruno@clisp.org>
76110         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
76111         workaround was added on 2009-11-17.
76113 2009-12-09  Jim Meyering  <meyering@redhat.com>
76114             Bruno Haible  <bruno@clisp.org>
76116         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
76117         * modules/link-warning (Makefile.am): Make the comment-removing sed
76118         command more robust in the face of bootstrap-prepended comment lines.
76120 2009-12-09  Bruno Haible  <bruno@clisp.org>
76122         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
76123         most one group.
76125 2009-12-09  Simon Josefsson  <simon@josefsson.org>
76126             Bruno Haible  <bruno@clisp.org>
76128         * build-aux/link-warning.h: Add copyright notice.
76129         * modules/link-warning (Makefile.am): Generate link-warning.h from
76130         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
76131         * NEWS: Mention change in link-warning module.
76132         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
76133         * modules/dirent (Makefile.am): Add dependency to dirent.h.
76134         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
76135         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
76136         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
76137         * modules/math (Makefile.am): Add dependency to math.h.
76138         * modules/search (Makefile.am): Add dependency to search.h.
76139         * modules/signal (Makefile.am): Add dependency to signal.h.
76140         * modules/spawn (Makefile.am): Add dependency to spawn.h.
76141         * modules/stdio (Makefile.am): Add dependency to stdio.h.
76142         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
76143         * modules/string (Makefile.am): Add dependency to string.h.
76144         * modules/strings (Makefile.am): Add dependency to strings.h.
76145         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
76146         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
76147         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
76148         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
76149         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
76150         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
76151         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
76152         * modules/unistd (Makefile.am): Add dependency to unistd.h.
76153         * modules/wchar (Makefile.am): Add dependency to wchar.h.
76155 2009-12-09  Bruno Haible  <bruno@clisp.org>
76157         fchdir: Optimize away rpl_fstat when possible.
76158         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
76159         REPLACE_OPEN_DIRECTORY.
76160         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
76162 2009-12-09  Bruno Haible  <bruno@clisp.org>
76164         * lib/fchdir.c: Update comment.
76166 2009-12-09  Bruno Haible  <bruno@clisp.org>
76168         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
76170 2009-12-08  Eric Blake  <ebb9@byu.net>
76172         fchdir: avoid memory leak on re-registration.
76173         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
76175 2009-12-08  Jim Meyering  <meyering@redhat.com>
76177         init.sh: avoid Solaris 10 /bin/sh portability problem
76178         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
76179         sourced script:
76180           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
76181           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
76182           bar
76183         tests/init.sh relied on that, accepting a --set-path=DIR argument,
76184         and two tests used that idiom.
76185         * tests/init.sh: Update suggested usage comments.
76186         (path_prepend_): New function, to be used in place
76187         of the --src-path=DIR option.
76188         (setup_): Move PATH-prepending code into path_prepend_.
76189         * tests/test-pread.sh: Adapt to new usage.
76190         * tests/test-xalloc-die.sh: Likewise.
76192 2009-12-08  Simon Josefsson  <simon@josefsson.org>
76194         * doc/gnulib.texi (Glibc pty.h): Add.
76195         * doc/glibc-functions/forkpty.texi: Add.
76196         * doc/glibc-functions/openpty.texi: Add.
76197         Suggested by Bruno Haible.
76199 2009-12-08  Eric Blake  <ebb9@byu.net>
76201         fchdir: fix logic bugs
76202         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
76203         * tests/test-fchdir.c (main): Enhance test.
76204         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
76205         is in use.
76207         dup2: fix logic bugs
76208         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
76209         REPLACE_DUP2 to decide when rpl_dup2 is needed.
76210         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
76211         exists.
76212         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
76214 2009-12-07  Eric Blake  <ebb9@byu.net>
76216         unlink: fix m4 detection
76217         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
76219         unistd-safer: add unit test
76220         * modules/unistd-safer-tests: New file.
76221         * tests/test-dup-safer.c: Likewise.
76222         * tests/test-cloexec.c (setmode): Avoid compiler warning.
76223         * tests/test-dup2.c (setmode): Likewise.
76224         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
76226         cloexec: preserve text vs. binary across dup_cloexec
76227         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
76228         mode.
76229         * modules/dup2-tests (Depends-on): Add binary-io.
76230         * modules/cloexec-tests (Depends-on): Likewise.
76231         * tests/test-dup2.c (setmode, is_mode): New helpers.
76232         (main): Add tests that translation mode is preserved.
76233         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
76234         Reported by Bruno Haible.
76236         mgetgroups: reduce duplicate listings
76237         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
76238         resulting array.
76239         * tests/test-chown.h (test_chown): Simplify client.
76240         * tests/test-lchown.h (test_lchown): Likewise.
76242 2009-12-06  Bruno Haible  <bruno@clisp.org>
76244         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
76245         value.
76247 2009-12-06  Bruno Haible  <bruno@clisp.org>
76249         * lib/progname.c: Include stdio.h, stdlib.h.
76250         (set_program_name): Reject a NULL argument.
76252 2009-12-05  Eric Blake  <ebb9@byu.net>
76254         pipe2-safer: new module
76255         * modules/pipe2-safer: New file.
76256         * lib/unistd-safer.h (pipe2_safer): New prototype.
76257         * lib/unistd--.h (pipe2): New wrapper.
76258         * lib/pipe-safer.c (pipe2_safer): New function.
76259         * modules/pipe (Depends-on): Add pipe2-safer.
76260         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
76262         stdlib-safer: preserve cloexec flag for mkostemp[s]
76263         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
76264         fd_safer_flag.
76266         unistd-safer: allow preservation of cloexec status via flag
76267         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
76268         prototypes.
76269         * lib/dup-safer.c (dup_safer_flag): New function.
76270         * lib/fd-safer.c (fd_safer_flag): Likewise.
76271         * modules/cloexec (configure.ac): Set witness.
76273         test-dup2: enhance test
76274         * modules/dup2-tests (Depends-on): Add cloexec.
76275         * tests/test-dup2.c (main): Enhance test.
76277         cloexec: add dup_cloexec
76278         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
76279         header and comments.
76280         * lib/cloexec.c (set_cloexec_flag): Add comments.
76281         (dup_cloexec): New function, with mingw implementation borrowed
76282         from...
76283         * lib/w32spawn.h (dup_noinherit): ...here.
76284         * modules/execute (Depends-on): Add cloexec.
76285         * modules/pipe (Depends-on): Likewise.
76286         * modules/cloexec (Depends-on): Add dup2.
76287         * modules/cloexec-tests (Files): New file.
76288         * tests/test-cloexec.c: Likewise.
76290         test-xalloc-die: fix test for mingw
76291         * modules/xalloc-die-tests (Files): Add tests/init.sh.
76292         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
76293         directory and .exe suffix off argv[0] output.
76295         test-fseeko: fix test for mingw
76296         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
76297         than undefining fseek, so test will pass on mingw.
76299 2009-12-05  Bruno Haible  <bruno@clisp.org>
76301         * lib/progname.h (set_program_name): Clarify specification.
76302         * lib/progname.c (set_program_name): Likewise.
76303         Reported by Jim Meyering.
76305 2009-12-05  Jim Meyering  <meyering@redhat.com>
76307         maint.mk: backslash-escape parens in default regexp
76308         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
76309         backslash-escape the literal parentheses.
76311         maint.mk: news-date-check: use grep -E
76312         * top/maint.mk (today): Define a Make variable, not a...
76313         (news-date-check): ...shell variable.
76314         (news-date-regexp): Use the Make variable.
76315         Use grep's -E option.  Change the failing diagnostic to mention
76316         the variable, $(news-date-regexp).
76318 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
76320         maintainer-makefile: allow customization of NEWS entry format
76321         * top/maint.mk (news-date-regexp): New overridable variable.
76322         (news-date-check): Use it.
76324 2009-12-04  Eric Blake  <ebb9@byu.net>
76326         mgetgroups: add xgetgroups, and avoid ENOSYS failures
76327         * lib/mgetgroups.h (xgetgroups): New prototype.
76328         * lib/mgetgroups.c (xgetgroups): New wrapper.
76329         (mgetgroups): Handle ENOSYS.
76330         * modules/mgetgroups (Depends-on): Add realloc.
76331         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
76333         mgetgroups: avoid argument promotion issues with -1
76334         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
76335         for invalid gid_t.
76336         * tests/test-chown.h (getegid, test_chown): Likewise.
76337         * tests/test-lchown.h (getegid, test_lchown): Likewise.
76339 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
76341         exclude: Fix header file problems.
76342         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
76344 2009-12-01  Jim Meyering  <meyering@redhat.com>
76346         fts: fts_open: do not let an empty string cause immediate failure
76347         This is required in support of GNU rm, for which the command
76348         "rm A '' B" must process and remove both A and B, in spite of
76349         the empty string argument.
76350         * lib/fts.c (fts_open): Do not let the presence of an empty string
76351         cause fts_open to fail immediately.  Most fts-using tools must be
76352         able to process all arguments, in order, and can be expected to
76353         diagnose such arguments themselves.
76355 2009-11-30  Eric Blake  <ebb9@byu.net>
76357         utimens: fix compilation error
76358         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
76359         Declare variable at right scope.
76361 2009-11-29  Jim Meyering  <meyering@redhat.com>
76363         bootstrap: handle perl-5.11's changed --version output
76364         * build-aux/bootstrap (get_version): Handle perl separately,
76365         since perl-5.11's --version output is different.
76367 2009-11-28  Jim Meyering  <meyering@redhat.com>
76369         userspec: depend on the inttostr module, too
76370         * modules/userspec (Depends-on): Add inttostr.
76372         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
76373         * lib/userspec.c (parse_with_separator): Do not accept a user ID
76374         number of MAXUID when it evaluates to (uid_t) -1.
76375         Likewise for group ID.  Reported by Matt McCutchen in
76376         <http://savannah.gnu.org/bugs/?28113>
76378         userspec: reformat to use spaces, not TABs
76379         * lib/userspec.c: Expand TABs to spaces.
76380         Add Emacs' "indent-tabs-mode: nil" hint.
76382 2009-11-27  Eric Blake  <ebb9@byu.net>
76384         getopt-gnu: flush out another BSD bug
76385         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
76386         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
76387         flush out BSD bug.
76388         * tests/test-getopt.h (test_getopt): End lists with NULL.
76389         * tests/test-getopt_long.h (test_getopt_long): Likewise.
76390         (test_getopt_long_posix): Enhance test.
76391         * modules/getopt-posix-tests (Depends-on): Add stdbool.
76392         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
76393         getopt-gnu.
76394         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
76395         Likewise.
76397 2009-11-27  Simon Josefsson  <simon@josefsson.org>
76399         * modules/idpriv-droptemp-tests (Notice): Fix text.
76401 2009-11-27  Jim Meyering  <meyering@redhat.com>
76403         test-xalloc-die: avoid spurious failure due to libtool argv difference
76404         In a libtool-enabled project, this test would fail due to a difference
76405         in the emitted program name, e.g.,
76406         -test-xalloc-die: memory exhausted
76407         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
76408         Use program to avoid that.
76409         * modules/xalloc-die-tests (Depends-on): Add progname.
76410         * tests/test-xalloc-die.c: Include progname.h".
76411         (program_name): Remove decl.
76412         (main): Call set_program_name.
76413         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
76415 2009-11-26  Richard Jones  <rjones@redhat.com>
76417         w32sock: leave win32 error in place.
76418         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
76420 2009-11-26  Eric Blake  <ebb9@byu.net>
76422         init.sh: suggest to use skip_ and fail_ functions in comments
76423         * tests/init.sh: Add a sentence.
76425 2009-11-25  Bruno Haible  <bruno@clisp.org>
76427         init.sh: add documentation in comments
76428         * tests/init.sh: Add some developer and user documentation.
76430 2009-11-26  Jim Meyering  <meyering@redhat.com>
76432         init.sh: accommodate even those who specify bogus srcdir manually
76433         * tests/init.sh: Normally, srcdir is guaranteed by automake and
76434         configure-time tests to be sanitized, so that there is no need to
76435         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
76436         (with no double quotes) suffices.  However, since tests may be
76437         invoked manually, and since you may explicitly set srcdir to the
76438         name of a directory containing spaces, do quote its uses here.
76439         * tests/test-pread.sh: Likewise.
76440         Suggested by Bruno Haible.
76442         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
76443         * tests/test-pread.sh: Write no data into the pipe, because
76444         test-pread actually reads none.  This avoids a diagnostic,
76445         "bash: echo: write error: Broken pipe", that arises in the unusual
76446         event something is ignoring SIGPIPE, and might be interpreted
76447         as some sort of failure.  Reported by Bruno Haible.
76449 2009-11-25  Jim Meyering  <meyering@redhat.com>
76451         test-pread: cover failure with ESPIPE and EINVAL
76452         * tests/test-pread.c (main): Test for failure, too.
76453         * tests/test-pread.sh: Invoke with stdin on a pipe.
76454         Suggested by Eric Blake.
76456         pread: improvement and fix
76457         * modules/pread (Depends-on): Depend on lseek, for portability to
76458         e.g., mingw.  Suggested by Eric Blake.
76459         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
76461         unistd.in.h: correct declaration of pread
76462         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
76463         Reported by Richard W.M. Jones.
76465         test-pread.sh: distribute the test script
76466         * modules/pread-tests (Files): Include test-pread.sh.
76468         test-pread.sh: clean up
76469         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
76470         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
76471         That is unnecessary, since it's always ".".
76472         Suggestion from Eric Blake.
76474         test-pread.sh: make executable
76475         * tests/test-pread.sh: Set executable bit.
76476         Reported by Eric Blake.
76478         correct typo in test-pread.sh
76479         * tests/test-pread.sh: Add #! line.
76481         test pread
76482         * tests/test-pread.c: New file.
76483         * tests/test-pread.sh: Likewise.
76484         * modules/pread-tests: Likewise.
76486         pread: new module
76487         * modules/pread: New file.
76488         * lib/unistd.in.h (pread): Define/declare.
76489         * lib/pread.c (pread): New file.
76490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
76491         * modules/unistd (Makefile.am): Substitute witnesses.
76492         * doc/posix-functions/pread.texi (pread): Update.
76493         * MODULES.html.sh: Add pread.
76495 2009-11-25  Jim Meyering  <meyering@redhat.com>
76497         tests/init.sh: new file to be used via most *.sh tests
76498         * tests/init.sh: New file.
76500 2009-11-25  Eric Blake  <ebb9@byu.net>
76502         utimens: work around older Linux failure with symlinks
76503         * lib/utimens.c (lutimensat_works_really): New variable.
76504         (fdutimens, lutimens): Use it to manage kernels that support
76505         nanosecond times on files, but not on symlinks.
76506         Reported by Ondřej Vašík.
76508         utimes: fix configure grammar
76509         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
76511 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
76513         regex: Fix fastmap for multibyte character ranges.
76514         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
76515         characters when a multibyte character range is included.
76517 2009-11-22  Andy Wingo  <wingo@pobox.com>
76519         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
76520         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
76522 2009-11-24  Bruno Haible  <bruno@clisp.org>
76524         doc: Most *_l functions exist in MacOS X 10.5.
76525         * doc/posix-functions/duplocale.texi: Update platforms list.
76526         * doc/posix-functions/freelocale.texi: Likewise.
76527         * doc/posix-functions/newlocale.texi: Likewise.
76528         * doc/posix-functions/uselocale.texi: Likewise.
76529         * doc/posix-functions/isalnum_l.texi: Likewise.
76530         * doc/posix-functions/isalpha_l.texi: Likewise.
76531         * doc/posix-functions/isblank_l.texi: Likewise.
76532         * doc/posix-functions/iscntrl_l.texi: Likewise.
76533         * doc/posix-functions/isdigit_l.texi: Likewise.
76534         * doc/posix-functions/isgraph_l.texi: Likewise.
76535         * doc/posix-functions/islower_l.texi: Likewise.
76536         * doc/posix-functions/isprint_l.texi: Likewise.
76537         * doc/posix-functions/ispunct_l.texi: Likewise.
76538         * doc/posix-functions/isspace_l.texi: Likewise.
76539         * doc/posix-functions/isupper_l.texi: Likewise.
76540         * doc/posix-functions/iswalnum_l.texi: Likewise.
76541         * doc/posix-functions/iswalpha_l.texi: Likewise.
76542         * doc/posix-functions/iswblank_l.texi: Likewise.
76543         * doc/posix-functions/iswcntrl_l.texi: Likewise.
76544         * doc/posix-functions/iswctype_l.texi: Likewise.
76545         * doc/posix-functions/iswdigit_l.texi: Likewise.
76546         * doc/posix-functions/iswgraph_l.texi: Likewise.
76547         * doc/posix-functions/iswlower_l.texi: Likewise.
76548         * doc/posix-functions/iswprint_l.texi: Likewise.
76549         * doc/posix-functions/iswpunct_l.texi: Likewise.
76550         * doc/posix-functions/iswspace_l.texi: Likewise.
76551         * doc/posix-functions/iswupper_l.texi: Likewise.
76552         * doc/posix-functions/iswxdigit_l.texi: Likewise.
76553         * doc/posix-functions/isxdigit_l.texi: Likewise.
76554         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
76555         * doc/posix-functions/strcasecmp_l.texi: Likewise.
76556         * doc/posix-functions/strcoll_l.texi: Likewise.
76557         * doc/posix-functions/strfmon_l.texi: Likewise.
76558         * doc/posix-functions/strftime_l.texi: Likewise.
76559         * doc/posix-functions/strncasecmp_l.texi: Likewise.
76560         * doc/posix-functions/strxfrm_l.texi: Likewise.
76561         * doc/posix-functions/tolower_l.texi: Likewise.
76562         * doc/posix-functions/toupper_l.texi: Likewise.
76563         * doc/posix-functions/towctrans_l.texi: Likewise.
76564         * doc/posix-functions/towlower_l.texi: Likewise.
76565         * doc/posix-functions/towupper_l.texi: Likewise.
76566         * doc/posix-functions/wcscoll_l.texi: Likewise.
76567         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
76568         * doc/posix-functions/wctrans_l.texi: Likewise.
76569         * doc/posix-functions/wctype_l.texi: Likewise.
76570         * doc/glibc-functions/strptime_l.texi: Likewise.
76571         * doc/glibc-functions/strtod_l.texi: Likewise.
76572         * doc/glibc-functions/strtof_l.texi: Likewise.
76573         * doc/glibc-functions/strtol_l.texi: Likewise.
76574         * doc/glibc-functions/strtold_l.texi: Likewise.
76575         * doc/glibc-functions/strtoll_l.texi: Likewise.
76576         * doc/glibc-functions/strtoul_l.texi: Likewise.
76577         * doc/glibc-functions/strtoull_l.texi: Likewise.
76578         * doc/glibc-functions/wcsftime_l.texi: Likewise.
76579         * doc/glibc-functions/wcstod_l.texi: Likewise.
76580         * doc/glibc-functions/wcstof_l.texi: Likewise.
76581         * doc/glibc-functions/wcstol_l.texi: Likewise.
76582         * doc/glibc-functions/wcstold_l.texi: Likewise.
76583         * doc/glibc-functions/wcstoll_l.texi: Likewise.
76584         * doc/glibc-functions/wcstoul_l.texi: Likewise.
76585         * doc/glibc-functions/wcstoull_l.texi: Likewise.
76587 2009-11-24  Bruno Haible  <bruno@clisp.org>
76589         duplocale: Fix logic bug.
76590         * lib/duplocale.c: Don't include <langinfo.h>.
76591         (_NL_LOCALE_NAME): Remove macro.
76592         (rpl_duplocale): Use setlocale instead of nl_langinfo.
76593         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
76595 2009-11-23  Jim Meyering  <meyering@redhat.com>
76597         test-update-copyright: don't hard-code /usr/bin/perl
76598         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
76599         perl to print the current year.  Gilles Espinasse reported that
76600         the replaced use of perl was hard-coded as /usr/bin/perl.
76602 2009-11-23  Bruno Haible  <bruno@clisp.org>
76604         duplocale: Add support for glibc 2.3.x.
76605         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
76607 2009-11-22  Bruno Haible  <bruno@clisp.org>
76609         vasnprintf: Tiny optimization.
76610         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
76611         MacOS X.
76613 2009-11-22  Bruno Haible  <bruno@clisp.org>
76615         Tests for module 'duplocale'.
76616         * modules/duplocale-tests: New file.
76617         * tests/test-duplocale.c: New file.
76619         New module 'duplocale'.
76620         * m4/duplocale.m4: New file.
76621         * lib/locale.in.h (duplocale): New declaration.
76622         * lib/duplocale.c: New file.
76623         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
76624         gl_LOCALE_H_DEFAULTS): New macros.
76625         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
76626         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
76627         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
76628         REPLACE_DUPLOCALE.
76629         * modules/duplocale: New file.
76630         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
76632 2009-11-22  Bruno Haible  <bruno@clisp.org>
76634         * modules/locale-tests (configure.ac): Test for newlocale function.
76635         * tests/test-locale.c: When the system has extended locale functions,
76636         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
76638         locale: Make locale_t available when possible.
76639         * lib/locale.in.h: Include <xlocale.h> when it exists.
76640         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
76641         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
76642         * modules/locale (Depends-on): Add extensions.
76643         (Makefile.am): Also substitute HAVE_XLOCALE_H.
76644         * doc/posix-headers/locale.texi: Document the problem with locale_t.
76646 2009-11-22  Bruno Haible  <bruno@clisp.org>
76648         Add comments.
76649         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
76650         invocation.
76651         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
76652         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
76653         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
76655 2009-11-22  Bruno Haible  <bruno@clisp.org>
76657         error: account for the possibility of freopen (stdout).
76658         * lib/error.c: Include <unistd.h>.
76659         (flush_stdout): New function, extracted from error and error_at_line.
76660         Determine stdout's fd dynamically.
76661         (error, error_at_line): Invoke flush_stdout.
76662         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
76663         * modules/error (Depends-on): Add unistd.
76665 2009-11-22  Bruno Haible  <bruno@clisp.org>
76667         diffseq: Add comment.
76668         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
76670 2009-11-22  Jim Meyering  <meyering@redhat.com>
76672         c-stack: avoid defining an unused static function
76673         * lib/c-stack.c (find_stack_direction): Do not define this function
76674         when it will not be used.
76676         diffseq: avoid spurious gcc warnings
76677         * lib/diffseq.h (IF_LINT2): Define.
76678         (compareseq): Use it to initialize two members of "part".
76679         This avoids two used-uninitialized warnings.
76681 2009-11-21  Jim Meyering  <meyering@redhat.com>
76683         c-stack: avoid "ignoring return value of `write'" warning
76684         * lib/c-stack.c: Include "ignore-value.h".
76685         (die): Explicitly ignore each write return value.
76686         * modules/c-stack (Depends-on): Add ignore-value.
76688 2009-11-21  Bruno Haible  <bruno@clisp.org>
76690         diffseq: reduce scope of variable 'best'.
76691         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
76692         variable, earlier used for two different purposes.
76694 2009-11-21  Jim Meyering  <meyering@redhat.com>
76696         diffseq: remove useless assignment to "best"
76697         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
76698         assignment.  At that point "best" is already guaranteed to be zero.
76700 2009-11-20  Eric Blake  <ebb9@byu.net>
76702         build: mention ftp redirector in release announcements
76703         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
76704         values that used to come from cfg.mk; mention FTP redirect URL.
76705         * build-aux/announce-gen: Mention the mirror list.
76706         Suggested by Karl Berry.
76708         nanosleep: improve port to mingw
76709         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
76710         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
76711         LIB_NANOSLEEP, but only when needed.
76712         * modules/select (Link): Document LIBSOCKET.
76713         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
76714         enough.
76716         nanosleep: work around cygwin bug
76717         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
76718         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
76719         bug.
76720         (getnow): Delete, not needed.
76721         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
76722         LIB_CLOCK_GETTIME.
76723         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
76724         clock-time, gettime.
76725         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
76726         bug.
76727         * modules/nanosleep-tests: New test.
76728         * tests/test-nanosleep.c: New file.
76730         sleep: work around cygwin bug
76731         * lib/sleep.c (rpl_sleep): Work around the bug.
76732         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
76733         (gl_PREREQ_SLEEP): Delete unused macro.
76734         * modules/sleep (Depends-on): Add verify.
76735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
76736         * modules/unistd (Makefile.am): Substitute witness.
76737         * lib/unistd.in.h (sleep): Update prototype.
76738         * doc/posix-functions/sleep.texi (sleep): Document the bug.
76739         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
76740         * modules/sleep-tests (Depends-on): Check for alarm.
76742 2009-11-20  Jim Meyering  <meyering@redhat.com>
76744         maint.mk: improve sc_prohibit_magic_number_exit
76745         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
76746         so it does not match uses like System.exit(1).
76747         Add comments showing how to correct all offenders.
76749 2009-11-19  Eric Blake  <ebb9@byu.net>
76751         xalloc-die-tests: add missing library
76752         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
76754         test-xvasprintf: silence compiler warnings
76755         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
76756         empty string from gcc.
76758 2009-11-19  Jim Meyering  <meyering@redhat.com>
76760         xfreopen: new module, from coreutils
76761         * modules/xfreopen: New module.
76762         * lib/xfreopen.c: New file.
76763         * lib/xfreopen.h: New file.
76764         * MODULES.html.sh (File stream based Input/Output"): Add it.
76766 2009-11-19  Eric Blake  <ebb9@byu.net>
76768         manywarnings: depend on warnings
76769         * modules/manywarnings (Depends-on): Add warnings.
76771         build: avoid compiler warnings
76772         * lib/select.c (rpl_select): Delete unused variable.
76773         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
76775 2009-11-18  Eric Blake  <ebb9@byu.net>
76777         tests: avoid false negative with --with-packager
76778         * tests/test-version-etc.sh: Discard packager information.
76779         * tests/test-argp-version-etc-1.sh: Likewise.
76780         Reported by Mike Frysinger.
76782         utimens: fix regression on Solaris
76783         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
76784         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
76785         can only change fd timestamps via futimesat.  Instead, use an
76786         additional witness macro to avoid BSD bug.
76787         Reported by Jim Meyering.
76789 2009-11-17  Eric Blake  <ebb9@byu.net>
76791         usleep: use it to simplify tests
76792         * modules/stat-time-tests (Depends-on): Add usleep.
76793         (configure.ac): Drop usleep check.
76794         * modules/chown-tests (Depends-on, configure.ac): Likewise.
76795         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
76796         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
76797         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
76798         * modules/openat-tests (Depends-on, configure.ac): Likewise.
76799         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
76800         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
76801         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
76802         Likewise.
76803         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
76804         * tests/test-lchown.h (nap): Likewise.
76805         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
76806         * tests/test-stat-time.c (nap): Likewise.
76807         * tests/test-utimens-common.h (nap): Update comments.
76809         usleep: new module
76810         * modules/usleep: New file.
76811         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
76812         * lib/usleep.c (usleep): Likewise.
76813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
76814         * modules/unistd (Makefile.am): Substitute witnesses.
76815         * lib/unistd.in.h (usleep): Add declaration.
76816         * doc/pastposix-functions/usleep.texi (usleep): Document this.
76817         * MODULES.html.sh (Date and time): Likewise.
76818         * modules/usleep-tests (Depends-on): New test.
76819         * tests/test-usleep.c: New file.
76821         chown: work around OpenBSD bug
76822         * lib/chown.c (rpl_chown): Work around the bug.
76823         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
76824         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
76825         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
76826         * modules/chown (Depends-on): Add stdbool.
76827         * modules/lchown (Depends-on): Likewise.
76828         * doc/posix-functions/chown.texi (chown): Document the bug.
76829         * doc/posix-functions/lchown.texi (lchown): Likewise.
76830         * tests/test-lchown.h (test_chown): Relax test.
76832         mkstemp: avoid conflict with C++ keyword template
76833         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
76834         * lib/mkostemp.c (mkostemp): Likewise.
76835         * lib/mkostemps.c (mkostemps): Likewise.
76836         * lib/mkstemp.c (mkstemp): Likewise.
76837         * lib/mkstemps.c (mkstemps): Likewise.
76839         xalloc-die-tests: optimize
76840         * tests/test-xalloc-die.sh: Reduce number of processes.
76842 2009-11-17  Simon Josefsson  <simon@josefsson.org>
76844         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
76845         patch from ludo@gnu.org (Ludovic Courtès).
76847 2009-11-17  Jim Meyering  <meyering@redhat.com>
76849         version-etc: use proper license string
76850         * modules/version-etc (License): Use LGPL, not LGPLv3+.
76851         * modules/version-etc-fsf: Likewise.
76853 2009-11-17  Simon Josefsson  <simon@josefsson.org>
76855         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
76856         printed to stdout.  Deal with EOL differences.
76858 2009-11-17  Eric Blake  <ebb9@byu.net>
76860         unsetenv: work around Solaris bug
76861         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
76862         * lib/unsetenv.c (rpl_unsetenv): Work around it.
76863         Reported by Jim Meyering.
76865         vasnprintf: avoid compiler warnings
76866         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
76867         variables.
76868         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
76870 2009-11-17  Simon Josefsson  <simon@josefsson.org>
76872         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
76873         settings since xalloc-die is no longer the self test,
76874         xalloc-die.sh is.
76876 2009-11-17  Jim Meyering  <meyering@redhat.com>
76878         test-xalloc-die.sh: make the code agree with the commit log
76879         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
76880         at the end, just in case you happen to have a test-xalloc-die
76881         program in some other PATH directory.
76883         test-xalloc-die.sh: fix a portability bug
76884         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
76885         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
76886         Otherwise, argv[0] (as often seen in diagnostics) would be too
76887         system-dependent, sometimes with, and sometimes without the leading "./".
76889         version-etc-fsf: relax license to LGPLv3+
76890         * modules/version-etc-fsf (License): Relax license.
76892 2009-11-16  Eric Blake  <ebb9@byu.net>
76894         xalloc-die-tests: avoid printing null pointer
76895         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
76896         shell script.
76897         * tests/test-xalloc-die.c (program_name): Declare.
76898         * tests/test-xalloc-die.sh (tmpfiles): New file.
76900         setenv, unsetenv: work around various bugs
76901         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
76902         (setenv) [HAVE_SETENV]: Work around bugs.
76903         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
76904         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
76905         for bugs.
76906         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
76907         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
76908         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
76909         * modules/stdlib (Makefile.am): Update substitutions.
76910         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
76911         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
76912         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
76913         * modules/setenv-tests: New test.
76914         * modules/unsetenv-tests: Likewise.
76915         * tests/test-setenv.c: New file.
76916         * tests/test-unsetenv.c: Likewise.
76918 2009-11-16  Jim Meyering  <meyering@redhat.com>
76920         version-etc: relax license to LGPLv3+
76921         * modules/version-etc (License): Relax license.
76923         better AC_REQUIRE expanded-before-required-warning avoidance
76924         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
76925         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
76926         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
76927         which is no longer needed.
76929 2009-11-16  Eric Blake  <ebb9@byu.net>
76931         test-freading: clean up temporary file
76932         * tests/test-freading.c (main): Remove file on success, and use
76933         ASSERT more liberally.
76934         Reported by Jim Meyering.
76936 2009-11-16  Jim Meyering  <meyering@redhat.com>
76938         avoid new AC_REQUIRE expanded-before-required warnings
76939         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
76940         merely using it.
76941         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
76942         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
76944 2009-11-15  Simon Josefsson  <simon@josefsson.org>
76946         * tests/test-xalloc-die.c: New file.
76947         * modules/xalloc-die-tests: New file.
76948         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
76949         XFAIL_TESTS so it can be appended by modules.
76951 2009-11-15  Simon Josefsson  <simon@josefsson.org>
76953         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
76954         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
76956 2009-11-14  Eric Blake  <ebb9@byu.net>
76958         fnmatch: avoid compiler warning
76959         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
76960         to silence compiler warning about mismatch signedness in ?:.
76961         Reported by Robert Millan.
76963         intprops: add double-inclusion guard
76964         * lib/intprops.h: Allow idempotent includes.
76965         Suggested by Bruce Korb.
76967         openat: detect Solaris fchownat bug
76968         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
76969         penalizing glibc chownat when only lchownat is broken.
76970         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
76971         trailing slash bugs.
76972         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
76973         * modules/openat-tests (Files): Include more files.
76974         (Depends-on): Add mgetgroups, sleep, stat-time.
76975         (configure.ac): Add additional checks.
76976         (Makefile.am): Build new test.
76977         * tests/test-fchownat.c: New file.
76979         lchown: detect Solaris and FreeBSD bug
76980         * lib/lchown.c (rpl_lchown): Work around bug.
76981         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
76982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
76983         * modules/unistd (Makefile.am): Populate it.
76984         * lib/unistd.in.h (lchown): Update declaration.
76985         * doc/posix-functions/lchown.texi (lchown): Document the bug.
76986         * modules/lchown-tests: New file.
76987         * tests/test-lchown.h (test_lchown): Likewise.
76988         * tests/test-lchown.c (main): Likewise.
76990         chown: detect Solaris and FreeBSD bug
76991         * lib/chown.c (rpl_chown): Work around bug.
76992         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
76993         (gl_PREREQ_CHOWN): Delete.
76994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
76995         * modules/unistd (Makefile.am): Populate it.
76996         * lib/unistd.in.h (chown): Update declaration.
76997         * lib/lchown.c (chown): Update client.
76998         * modules/lchown (Depends-on): Add lstat.
76999         * doc/posix-functions/chown.texi (chown): Document the bug.
77000         * doc/posix-functions/getgroups.texi (getgroups): Document
77001         getgroups pitfall.
77002         * modules/chown-tests: New file.
77003         * tests/test-chown.h (test_chown): Likewise.
77004         * tests/test-chown.c (main): Likewise.
77006 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
77008         gnulib-tool: correctly detect absence of m4 directories
77009         * gnulib-tool: Avoid extra newline on data passed to wc -l.
77011 2009-11-14  Jim Meyering  <meyering@redhat.com>
77013         maint.mk: Prohibit inclusion of "xalloc.h" without use.
77014         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
77016 2009-11-14  John W. Eaton  <jwe@gnu.org>
77018         strftime.h: wrap function declaration in extern "C" block
77019         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
77021 2009-11-13  Eric Blake  <ebb9@byu.net>
77023         getgroups: avoid compiler warning
77024         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
77026         getgroups: work around FreeBSD bug
77027         * lib/getgroups.c (rpl_getgroups): Work around the bug.
77028         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
77029         * doc/posix-functions/getgroups.texi (getgroups): Document it.
77030         * tests/test-getgroups.c (main): Fix buffer overrun.
77032         getgroups: avoid compilation failure
77033         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
77034         * modules/getgroups (Depends-on): Add stdint.
77036 2009-11-13  Jim Meyering  <meyering@redhat.com>
77038         test-getgroups: avoid compilation failure
77039         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
77041 2009-11-13  Eric Blake  <ebb9@byu.net>
77043         mgetgroups: new module, taken from coreutils
77044         * modules/mgetgroups: New file.
77045         * lib/mgetgroups.h: Likewise.
77046         * lib/mgetgroups.c (mgetgroups): Likewise.
77047         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
77048         * MODULES.html.sh (Users and groups): Mention it.
77050         getgroups: don't expose GETGROUPS_T to user
77051         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
77052         an element at a time if GETGROUPS_T is wrong size.
77053         * lib/getugroups.h (getugroups): Change signature.
77054         * lib/unistd.in.h (getgroups): Likewise.
77055         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
77056         signature needs fixing.
77057         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
77058         AC_TYPE_GETGROUPS.
77059         * modules/group-member (Depends-on): Add getgroups.
77060         * lib/group-member.c (group_info, get_group_info): Use gid_t.
77061         (group_member): Rely on getgroups replacement.
77062         * lib/getugroups.c (getugroups): Use gid_t.
77063         * tests/test-getgroups.c (main): Likewise.
77064         * NEWS: Mention the signature change.
77065         * doc/posix-functions/getgroups.texi (getgroups): Mention the
77066         problem with signature.
77067         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
77068         GETGROUPS_T is still useful for setgroups.
77070         getgroups, getugroups: provide stubs for mingw
77071         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
77072         * lib/getugroups.c (getugroups): Likewise.
77073         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
77074         function.  Modernize replacement scheme.
77075         (gl_PREREQ_GETGROUPS): Delete.
77076         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
77077         * modules/getgroups (configure.ac): Declare witness.
77078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
77079         * modules/unistd (Depends-on): Substitute witness.
77080         * lib/unistd.in.h (getgroups): Declare replacement.
77082         getgroups: avoid calling exit
77083         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
77084         drop xalloc.
77085         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
77086         dependencies.
77087         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
77088         exiting, in the rare case of malloc failure.
77090         getgroups: fix logic error
77091         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
77092         has more than 20 groups.
77093         * modules/getgroups-tests: New test.
77094         * tests/test-getgroups.c: New file.
77096 2009-11-13  Simon Josefsson  <simon@josefsson.org>
77098         * tests/test-base64.c: Improve.
77100 2009-11-13  Simon Josefsson  <simon@josefsson.org>
77102         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
77103         Blake <ebb9@byu.net>.
77105 2009-11-13  Simon Josefsson  <simon@josefsson.org>
77107         * tests/test-xvasprintf.c: Add %s%s related checks.
77109 2009-11-12  Eric Blake  <ebb9@byu.net>
77111         version-etc: match standards.texi style
77112         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
77113         and use <> only for URLs.
77115 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
77117         fts: do not fail on a submount during traversal
77118         * lib/fts.c (fts_build): Read the stat info again after opening
77119         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
77120         Original report at http://bugzilla.redhat.com/501848.
77122 2009-11-12  Jim Meyering  <meyering@redhat.com>
77124         bootstrap: sync from coreutils
77125         * build-aux/bootstrap (bootstrap_epilogue): New function.
77126         Use git_modules_config in one more place.  This make bootstrap's
77127         --gnulib-srcdir option more useful for testing.
77129         bootstrap: generalize autoheader check
77130         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
77131         AC_CONFIG_HEADERS.
77133 2009-11-11  Eric Blake  <ebb9@byu.net>
77135         mkfifoat: use new modules for Solaris and BSD bugs
77136         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
77137         * lib/mkfifoat.c (mknodat): Split...
77138         * lib/mknodat.c (mknodat): ...into new file.
77139         * modules/mkfifoat (Files): Ship new file.
77140         (Depends-on): Add mkfifo, mknod.
77141         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
77142         (Depends-on): Add symlink.
77143         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
77144         redundant with test_mkfifo.h.
77145         (do_mkfifoat, do_mknodat): New helpers.
77147         mknod: new module
77148         * modules/mknod: New file.
77149         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
77150         * lib/mknod.c (mknod): Likewise.
77151         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
77152         defaults.
77153         * modules/sys_stat (Makefile.am): Substitute them.
77154         * lib/sys_stat.in.h (mknod): Declare replacement.
77155         * MODULES.html.sh (Support for systems lacking POSIX:2008):
77156         Document it.
77157         * doc/posix-functions/mknod.texi (mknod): Likewise.
77158         * modules/mknod-tests: New test.
77159         * tests/test-mknod.c: Likewise.
77161         mkfifo: new module
77162         * modules/mkfifo: New file.
77163         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
77164         * lib/mkfifo.c (mkfifo): Likewise.
77165         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
77166         defaults.
77167         * modules/sys_stat (Makefile.am): Substitute them.
77168         * lib/sys_stat.in.h (mkfifo): Declare replacement.
77169         * MODULES.html.sh (Support for systems lacking POSIX:2008):
77170         Document it.
77171         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
77172         * modules/mkfifo-tests: New test.
77173         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
77174         from test-mkfifoat.c.
77175         * tests/test-mkfifo.c: New file.
77177         readlink: detect FreeBSD bug
77178         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
77179         slash on symlink.
77180         * doc/posix-functions/readlink.texi (readlink): Document the bug.
77181         * tests/test-readlink.h (test_readlink): Enhance test.
77183         symlink: detect FreeBSD bug
77184         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
77185         slash on symlink.
77186         * doc/posix-functions/symlink.texi (symlink): Document the bug.
77187         * tests/test-symlink.h (test_symlink): Enhance test.
77189 2009-11-10  Eric Blake  <ebb9@byu.net>
77191         link: detect FreeBSD bug
77192         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
77193         symlink.
77194         * doc/posix-functions/link.texi (link): Document the bug.
77195         * tests/test-link.h (test_link): Enhance test.
77196         * tests/test-linkat.c (main): Update caller.
77198         unlink, remove: detect FreeBSD bug
77199         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
77200         slash on symlink.
77201         * doc/posix-functions/unlink.texi (unlink): Document the bug.
77202         * doc/posix-functions/remove.texi (remove): Likewise.
77203         * tests/test-unlink.h (test_unlink): Enhance test.
77204         * tests/test-remove.c (main): Likewise.
77206 2009-11-09  Eric Blake  <ebb9@byu.net>
77208         rename: detect FreeBSD bug
77209         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
77210         slash on symlink.
77211         * modules/renameat-tests (Depends-on): Add filenamecat.
77212         * tests/test-rename.h (test_rename): Allow one more errno.
77213         * tests/test-renameat.c (main): Likewise.
77214         * doc/posix-functions/rename.texi (rename): Document the bug.
77216         open: detect FreeBSD bug
77217         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
77218         symlink.
77219         * doc/posix-functions/open.texi (open): Document the bug.
77220         * doc/posix-functions/utimes.texi (utimes): Likewise.
77221         * tests/test-open.h (test_open): Add parameters, and test symlink
77222         handling.
77223         * tests/test-open.c (main): Adjust caller.
77224         * tests/test-fcntl-safer.c (main): Likewise.
77225         * modules/open-tests (Depends-on): Add stdbool, symlink.
77226         * modules/fcntl-safer-tests (Depends-on): Likewise.
77227         * tests/test-openat.c (main): Add test-open tests.
77229         stat: detect FreeBSD bug
77230         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
77231         symlink.
77232         * doc/posix-functions/stat.texi (stat): Document the bug.
77233         * tests/test-stat.h (test_stat_func): Add argument.
77234         * tests/test-stat.c (main): Adjust caller.
77235         * tests/test-fstatat.c (main): Likewise.
77236         * modules/stat-tests (Depends-on): Add stdbool, symlink.
77237         Reported by Jim Meyering.
77239 2009-11-09  James Youngman  <jay@gnu.org>
77241         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
77242         * lib/strftime.c: Correct placement of #include "ignore-value.h".
77244 2009-11-08  Jim Meyering  <meyering@redhat.com>
77246         utimens: remove invalid futimesat call
77247         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
77248         It used the file descriptor of the target file as the DIR_FD
77249         parameter and NULL as the file name.  That caused failure with
77250         errno == EFAULT on FreeBSD-8.0-rc2
77252 2009-11-07  Eric Blake  <ebb9@byu.net>
77254         fflush, freadseek: use fseeko, not fseek
77255         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
77256         (clear_ungetc_buffer): Avoid potential problems on large files.
77257         * lib/freadseek.c (freadseek): Likewise.
77258         * modules/freadseek (Depends-on): Add fseeko.
77259         * modules/fseek (configure.ac): Set a witness.
77260         * tests/test-fflush.c (main): Use fseeko.
77261         * tests/test-fpurge.c (fseek): Disable link warning.
77262         * tests/test-freadable.c (fseek): Likewise.
77263         * tests/test-freading.c (fseek): Likewise.
77264         * tests/test-fseeko.c (fseek): Likewise.
77265         * tests/test-ftell.c (fseek): Likewise.
77266         * tests/test-ftello.c (fseek): Likewise.
77267         * tests/test-fwritable.c (fseek): Likewise.
77268         * tests/test-fwriting.c (fseek): Likewise.
77270 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77272         * modules/memchr (Depends-on): Drop getpagesize dependency.
77274 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77276         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
77277         Reported by Ludovic Courtès.
77278         * build-aux/pmccabe2html: Improve example usage.
77279         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
77281 2009-11-06  Jim Meyering  <meyering@redhat.com>
77283         do-release-commit-and-tag: New module.
77284         Automate the release-commit and tag process.
77285         * build-aux/do-release-commit-and-tag: New script, from coreutils.
77286         * modules/do-release-commit-and-tag: New file.
77287         * MODULES.html.sh (Support for maintaining and releasing): Add it.
77289 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77291         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
77292         because test-select.c uses inet_pton.
77294 2009-11-06  Simon Josefsson  <simon@josefsson.org>
77296         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
77297         GETADDRINFO_LIB.  Bump serial number.
77298         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
77299         Suggested by Eric Blake <ebb9@byu.net>.
77301 2009-11-05  Eric Blake  <ebb9@byu.net>
77303         strtod: detect darwin bug
77304         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
77305         Reported by Leo Davis.
77307         freopen-safer: new module
77308         * modules/freopen-safer: New module.
77309         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
77310         * lib/freopen-safer.c (freopen_safer): New file.
77311         * lib/stdio-safer.h (freopen_safer): New declaration.
77312         * lib/stdio--.h (freopen): New override.
77313         * MODULES.html.sh (File stream based Input/Output): Mention it.
77314         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
77315         freopen-safer module.
77316         * doc/posix-functions/stderr.texi (stderr): Likewise.
77317         * doc/posix-functions/stdin.texi (stdin): Likewise.
77318         * doc/posix-functions/stdout.texi (stdout): Likewise.
77319         * modules/freopen-safer-tests: New test.
77320         * tests/test-reopen-safer.c: New file.
77322 2009-11-05  Jim Meyering  <meyering@redhat.com>
77324         maint.mk: Prohibit inclusion of "close-stream.h" without use.
77325         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
77327 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77329         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
77331 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77333         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
77335 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77337         Fix link error.
77338         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
77339         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
77341 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77343         * tests/test-func.c: Also test value of __func__.
77345 2009-11-05  Simon Josefsson  <simon@josefsson.org>
77347         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
77348         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
77350 2009-11-05  Bruno Haible  <bruno@clisp.org>
77352         Fix link error.
77353         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
77354         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
77355         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
77357 2009-11-05  Bruno Haible  <bruno@clisp.org>
77359         Tests for module 'inet_pton'.
77360         * modules/inet_pton-tests: New file.
77361         * tests/test-inet_pton.c: New file.
77363 2009-11-05  Bruno Haible  <bruno@clisp.org>
77365         Tests for module 'inet_ntop'.
77366         * modules/inet_ntop-tests: New file.
77367         * tests/test-inet_ntop.c: New file.
77369 2009-11-04  Eric Blake  <ebb9@byu.net>
77371         stdlib-safer: wrap all mkstemp variants
77372         * modules/mkostemp (configure.ac): Set witness.
77373         * modules/mkostemps (configure.ac): Likewise.
77374         * modules/mkstemps (configure.ac): Likewise.
77375         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
77376         (mkstemps_safer): Wrap more functions.
77377         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
77378         wrapping.
77379         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
77380         (mkstemps_safer): Implement the wrappers.
77382         mkstemps, mkostemps: new modules
77383         * modules/mkostemps: New module.
77384         * modules/mkstemps: Likewise.
77385         * lib/mkostemps.c (mkostemps): New file.
77386         * lib/mkstemps.c (mkstemps): Likewise.
77387         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
77388         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
77389         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
77390         * modules/stdlib (Makefile.am): Substitute them.
77391         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
77392         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
77393         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
77394         * doc/gnulib.texi (Glibc stdlib.h): Include them.
77395         * MODULES.html.sh (File system functions): Mention them.
77397         tempname: resync from glibc
77398         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
77399         same values for __GT_FILE as glibc.  Abort even when assertions
77400         are disabled.
77401         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
77402         match its value otherwise.  Allow idempotent inclusion.
77403         * lib/mkdtemp.c (mkdtemp): Adjust caller.
77404         * lib/mkostemp.c (mkostemp): Likewise.
77405         * lib/mkstemp.c (mkstemp): Likewise.
77406         * lib/tmpfile.c (tmpfile): Likewise.
77407         * NEWS: Document this.
77409         utimens: fix use of futimens on older Linux
77410         * lib/utimens.c (fdutimens): Use updated, rather than original,
77411         timespec to avoid bug in older Linux kernel.
77412         Reported by Simon Josefsson.
77414 2009-11-04  Bruno Haible  <bruno@clisp.org>
77416         Make num_processors more flexible and consistent.
77417         * lib/nproc.h (enum nproc_query): New type.
77418         (num_processors): Add a 'query' argument.
77419         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
77420         (num_processors): Add a 'query' argument. Test the value of the
77421         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
77422         mingw, count the number of CPUs available for the current process.
77423         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
77424         Check for sched_getaffinity and sched_getaffinity_np.
77425         * modules/nproc (Depends-on): Add c-ctype, extensions.
77426         * NEWS: Mention the change.
77428 2009-11-03  Bruno Haible  <bruno@clisp.org>
77430         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
77432 2009-11-03  Jim Meyering  <meyering@redhat.com>
77434         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
77435         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
77436         if it is defined.
77438 2009-11-02  Eric Blake  <ebb9@byu.net>
77440         mktime, timegm: share common declaration
77441         * lib/mktime-internal.h: New file.
77442         * lib/mktime.c: Use it rather than open-coding a declaration.
77443         * lib/timegm.c: Likewise.
77444         * modules/mktime (Files): Ship it.
77445         * modules/timegm (Files): Likewise.
77446         Suggested by Bruno Haible.
77448         test-update-copyright: update test to match script changes
77449         * tests/test-update-copyright.sh: Avoid hard-coding perl
77450         location.  Don't update *.bak created by earlier runs.
77452 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
77453             Simon Josefsson  <simon@josefsson.org>
77454             Bruno Haible  <bruno@clisp.org>
77456         Fix link error on Solaris 8.
77457         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
77458         also in libnsl. Define also INET_PTON_LIB.
77459         * modules/inet_pton (Link): New section.
77461 2009-11-02  Simon Josefsson  <simon@josefsson.org>
77462             Bruno Haible  <bruno@clisp.org>
77464         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
77465         * modules/inet_ntop (Link): New section.
77466         Reported by Boyan Kasarov <bkasarov@gmail.com>.
77468 2009-11-02  Eric Blake  <ebb9@byu.net>
77470         maint: avoid compiler warnings in m4 macros
77471         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
77472         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
77474 2009-11-02  Simon Josefsson  <simon@josefsson.org>
77476         * m4/pmccabe2html.m4: Remove file.
77477         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
77478         function.  Change maintainer.
77479         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
77480         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
77481         Courtès).
77483 2009-10-31  Eric Blake  <ebb9@byu.net>
77485         fseeko: fix m4 regression
77486         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
77487         regression from 2009-10-27.
77488         Reported by Ralf Wildenhues.
77490 2009-10-31  Jim Meyering  <meyering@redhat.com>
77492         inttostr: aesthetics and improved (compile-time) safety
77493         Define inttype_is_signed rather than inttype_is_unsigned,
77494         since the sole use is via "#if inttype_is_signed".
77495         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
77496         inttype_is_unsigned.
77497         * lib/offtostr.c (inttype_is_signed): Likewise.
77498         * lib/uinttostr.c (inttype_is_signed): Likewise.
77499         * lib/umaxtostr.c (inttype_is_signed): Likewise.
77500         * lib/inttostr.c (inttostr): Use verify to cross-check the
77501         inttype_is_signed value and the signedness of the actual type.
77502         * modules/inttostr (Depends-on): Add verify.
77504 2009-10-30  Eric Blake  <ebb9@byu.net>
77506         build: avoid compiler warnings
77507         * lib/fchmodat.c (lchmod): Mark unused variables.
77508         * lib/getopt.c (_getopt_initialize): Likewise.
77509         * lib/mktime.c (__mktime_internal): Provide prototype.
77510         * lib/inttostr.c (inttostr): Avoid compiler warning even with
77511         older gcc that do not understand #pragma GCC diagnostic.
77512         * lib/uinttostr.c (inttype_is_unsigned): Define.
77513         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
77515 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
77517         stat: fix compilation on AIX
77518         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
77519         only see struct stat64.
77521 2009-10-30  Eric Blake  <ebb9@byu.net>
77523         exclude: make more robust
77524         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
77525         rather than masking a coding bug.
77526         Suggested by Bruno Haible.
77528 2009-10-30  Jim Meyering  <meyering@redhat.com>
77530         perl scripts: remove #!/usr/bin/perl in favor of more portable...
77531         Rather than putting #!/usr/bin/perl on the first line,
77532         start with a variant of what's recommended by "man perlrun" that
77533         invokes the first "perl" program from your shell's search path.
77534         * build-aux/gitlog-to-changelog: Replace #!... as above.
77535         Add a "Local Variables" perl mode setting.
77536         Prompted by a patch from Ludovic Courtès.
77537         Improved by Eric Blake.
77538         * build-aux/useless-if-before-free: Likewise.
77539         * build-aux/announce-gen: Likewise.
77540         * build-aux/update-copyright: Likewise.
77542 2009-10-29  Eric Blake  <ebb9@byu.net>
77544         filenamecat-lgpl: adjust clients
77545         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
77546         filenamecat.
77547         * modules/renameat (Depends-on): Likewise.
77549         filenamecat: split into filenamecat-lgpl
77550         * modules/filenamecat-lgpl: New module.
77551         * modules/filenamecat (Files): Move library-safe files into
77552         filenamecat-lgpl.
77553         (Depends-on): Add filenamecat-lgpl.
77554         (configure.ac): Declare witness.
77555         * lib/filenamecat.h (file_name_concat): Only declare when using
77556         GPL module.
77557         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
77558         Move...
77559         * lib/filenamecat-lgpl.c: ...into new file.
77560         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
77561         (gl_FILE_NAME_CONCAT): Use it.
77562         * MODULES.html.sh (File system functions): Mention new module.
77564         argp: avoid memory leak
77565         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
77566         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
77567         base_name, since the latter malloc()s and can call exit().
77568         Leak introduced 2006-07-03.
77570         dirname-lgpl: adjust clients that don't need full dirname
77571         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
77572         * modules/filenamecat (Depends-on): Likewise.
77573         * modules/linkat (Depends-on): Likewise.
77574         * modules/mkancesdirs (Depends-on): Likewise.
77575         * modules/mkdir (Depends-on): Likewise.
77576         * modules/openat (Depends-on): Likewise.
77577         * modules/savewd (Depends-on): Likewise.
77578         * modules/rename (Depends-on): Likewise.
77579         (License): Relax license.
77580         * modules/mkdir-tests (Depends-on): Drop progname.
77581         (Makefile.am): Delete unneeded LDADD.
77582         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
77584         dirname: split into dirname-lgpl
77585         * modules/dirname-lgpl: New module.
77586         * modules/dirname (Files): Move library-safe files into
77587         dirname-lgpl.
77588         (Depends-on): Add dirname-lgpl.
77589         (configure.ac): Declare witness.
77590         * modules/double-slash-root (License): Relax license.
77591         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
77592         module.
77593         * lib/dirname.c (dir_len, mdir_name): Move...
77594         * lib/dirname-lgpl.c: ...into new file.
77595         * lib/basename.c (last_component, base_len): Move...
77596         * lib/basename-lgpl.c: ...into new file.
77597         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
77598         (gl_DIRNAME): Use it.
77599         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
77600         Mention new module.
77601         * modules/dirname-tests (Depends-on): Add progname.
77602         * tests/test-dirname.c (program_name): Delete.
77604         mkdir: make safe for libraries
77605         * modules/mkdir (Depends-on): Drop xalloc.
77606         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
77607         exit.
77609         tests: avoid some compiler warnings
77610         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
77611         literals.
77612         * tests/test-memchr.c (main): Avoid type mismatch.
77613         * tests/test-arpa_inet.c (main): Avoid unused parameters.
77614         * tests/test-base64.c (main): Likewise.
77615         * tests/test-getdelim.c (main): Likewise.
77616         * tests/test-gethostname.c (main): Likewise.
77617         * tests/test-getline.c (main): Likewise.
77618         * tests/test-netinet_in.c (main): Likewise.
77619         * tests/test-select.c (open_server_socket, main): Likewise.
77620         * tests/test-select-stdin.c (main): Likewise.
77621         * tests/test-sockets.c (main): Likewise.
77622         * tests/test-strsignal.c (main): Likewise.
77623         * tests/test-sys_select.c (main): Likewise.
77624         * tests/test-sys_socket.c (main): Likewise.
77625         * tests/test-u64.c (main): Likewise.
77626         * tests/test-xfprintf-posix.c (main): Likewise.
77627         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
77629         sockets: avoid compiler warning
77630         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
77632         maint: detect usage(1) and other suspicious exits
77633         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
77635 2009-10-29  Jim Meyering  <meyering@redhat.com>
77637         timespec: long-to-int truncation could make timespec_cmp malfunction
77638         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
77639         a multiple of 2^32 nanoseconds as no difference.
77641 2009-10-28  Jim Meyering  <meyering@redhat.com>
77643         fprintftime: wrap macro code argument in "do {...} while(0)"
77644         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
77645         cpy macro must be a statement that can be followed by a semicolon.
77646         Now that the else clause contains a comment and is hence longer
77647         than one line, I require curly braces.  That in turn requires
77648         that we wrap this code block in the standard do...while(0).
77650         fprintftime: remove stray semicolon from previous change
77651         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
77653         fprintftime: avoid a warning about ignored fwrite return value
77654         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
77655         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
77656         that is unsafe.
77657         * modules/fprintftime (Depends-on): Add ignore-value.
77659         exclude: avoid an unwarranted warning
77660         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
77662 2009-10-27  Eric Blake  <ebb9@byu.net>
77664         fseek: avoid compilation failure when fflush is replaced
77665         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
77666         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
77667         module is in use.
77668         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
77669         module is not in use; since REPLACE_FSEEK worked otherwise.
77670         (GNULIB_FTELLO): Likewise for ftell.
77671         Reported by Ian Beckwith and others.
77673 2009-10-27  Bruno Haible  <bruno@clisp.org>
77675         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
77676         Reported by Jim Meyering.
77678 2009-10-27  Jim Meyering  <jim@meyering.net>
77679             Bruno Haible  <bruno@clisp.org>
77681         Avoid warning despite dropping the return value of fwrite.
77682         * lib/unicodeio.c: Include ignore-value.h.
77683         (fwrite_success_callback): Explicitly ignore fwrite's return value.
77684         * modules/unicodeio (Depends-on): Add ignore-value.
77686 2009-10-26  Eric Blake  <ebb9@byu.net>
77688         areadlinkat: fix fallback path
77689         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
77690         pointer and zero.
77692 2009-10-22  Pádraig Brady  <P@draigBrady.com>
77694         Use a better IO block size for modern systems
77695         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
77696         * lib/md2.c: Likewise.
77697         * lib/md4.c: Likewise.
77698         * lib/md5.c: Likewise.
77699         * lib/sha1.c: Likewise.
77700         * lib/sha256.c: Likewise.
77701         * lib/sha512.c: Likewise.
77703 2009-10-22  Eric Blake  <ebb9@byu.net>
77705         tests: avoid several compiler warnings
77706         * tests/test-getcwd.c (main): Avoid buffer underflow.
77707         * tests/test-getdate.c (main): String literals are not safe with
77708         putenv, so use setenv.  Declare unused argument.
77709         * modules/getdate-tests (Depends-on): Add setenv.
77710         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
77711         problems with string literals in char *.
77712         * tests/test-hash.c (main): Avoid shadowing declaration.
77713         (insert_new): Treat string literals as char const *.
77714         * tests/test-getopt.h (test_getopt): Likewise.
77715         (getopt_loop): Alter types to minimize casting elsewhere.
77716         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
77717         (test_getopt_long_posix): Likewise.
77718         (do_getopt_long): Add wrapper to minimize casting.
77719         * tests/test-atexit.c (clear_temp_file): Use void.
77720         * tests/test-areadlink-with-size.c (main): Declare unused
77721         arguments.
77722         * tests/test-areadlink.c (main): Likewise.
77723         * tests/test-areadlinkat-with-size.c (main): Likewise.
77724         * tests/test-areadlinkat.c (main): Likewise.
77725         * tests/test-canonicalize-lgpl.c (main): Likewise.
77726         * tests/test-canonicalize.c (main): Likewise.
77727         * tests/test-dirent-safer.c (main): Likewise.
77728         * tests/test-dirname.c (main): Likewise.
77729         * tests/test-dup2.c (main): Likewise.
77730         * tests/test-fchdir.c (main): Likewise.
77731         * tests/test-fcntl-h.c (main): Likewise.
77732         * tests/test-fcntl-safer.c (main): Likewise.
77733         * tests/test-fdopendir.c (main): Likewise.
77734         * tests/test-fdutimensat.c (main): Likewise.
77735         * tests/test-fflush.c (main): Likewise.
77736         * tests/test-filenamecat.c (main): Likewise.
77737         * tests/test-filevercmp.c (main): Likewise.
77738         * tests/test-fopen-safer.c (main): Likewise.
77739         * tests/test-fopen.c (main): Likewise.
77740         * tests/test-fpending.c (main): Likewise.
77741         * tests/test-fpurge.c (main): Likewise.
77742         * tests/test-freading.c (main): Likewise.
77743         * tests/test-fstatat.c (main): Likewise.
77744         * tests/test-fsync.c (main): Likewise.
77745         * tests/test-futimens.c (main): Likewise.
77746         * tests/test-getndelim2.c (main): Likewise.
77747         * tests/test-gettimeofday.c (main): Likewise.
77748         * tests/test-getopt.c (main): Likewise.
77749         * tests/test-i-ring.c (main): Likewise.
77750         * tests/test-inttypes.c (main): Likewise.
77751         * tests/test-link.c (main): Likewise.
77752         * tests/test-lstat.c (main): Likewise.
77753         * tests/test-math.c (main): Likewise.
77754         * tests/test-md5.c (main): Likewise.
77755         * tests/test-memchr2.c (main): Likewise.
77756         * tests/test-memrchr.c (main): Likewise.
77757         * tests/test-mkdir.c (main): Likewise.
77758         * tests/test-mkdirat.c (main): Likewise.
77759         * tests/test-mkfifoat.c (main): Likewise.
77760         * tests/test-open.c (main): Likewise.
77761         * tests/test-openat-safer.c (main): Likewise.
77762         * tests/test-openat.c (main): Likewise.
77763         * tests/test-quotearg.c (main): Likewise.
77764         * tests/test-rawmemchr.c (main): Likewise.
77765         * tests/test-readlink.c (main): Likewise.
77766         * tests/test-remove.c (main): Likewise.
77767         * tests/test-rename.c (main): Likewise.
77768         * tests/test-renameat.c (main): Likewise.
77769         * tests/test-rmdir.c (main): Likewise.
77770         * tests/test-sha1.c (main): Likewise.
77771         * tests/test-signal.c (main): Likewise.
77772         * tests/test-sigaction.c (main): Likewise.
77773         * tests/test-stat.c (main): Likewise.
77774         * tests/test-stat-time.c (main): Likewise.
77775         * tests/test-stddef.c (main): Likewise.
77776         * tests/test-stdint.c (main): Likewise.
77777         * tests/test-stdio.c (main): Likewise.
77778         * tests/test-stdlib.c (main): Likewise.
77779         * tests/test-strchrnul.c (main): Likewise.
77780         * tests/test-strerror.c (main): Likewise.
77781         * tests/test-string.c (main): Likewise.
77782         * tests/test-strtod.c (main): Likewise.
77783         * tests/test-strverscmp.c (main): Likewise.
77784         * tests/test-symlink.c (main): Likewise.
77785         * tests/test-symlinkat.c (main): Likewise.
77786         * tests/test-sys_stat.c (main): Likewise.
77787         * tests/test-sys_time.c (main): Likewise.
77788         * tests/test-time.c (main): Likewise.
77789         * tests/test-unistd.c (main): Likewise.
77790         * tests/test-unlink.c (main): Likewise.
77791         * tests/test-unlinkat.c (main): Likewise.
77792         * tests/test-utimens.c (main): Likewise.
77793         * tests/test-utimensat.c (main): Likewise.
77794         * tests/test-version-etc.c (main): Likewise.
77795         * tests/test-wchar.c (main): Likewise.
77796         * tests/test-wctype.c (main): Likewise.
77797         * tests/test-xprintf-posix.c (main): Likewise.
77798         * tests/test-posixtm.c (main): Likewise.
77799         (STREQ): Delete unused macro.
77800         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
77801         shadowed variables.
77802         * tests/test-memchr.c (main): Likewise.
77804 2009-10-21  Eric Blake  <ebb9@byu.net>
77806         areadlinkat: avoid failure on older glibc
77807         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
77808         rather than mis-comparing 0 against FUNC_RESULT of char*.
77810 2009-10-21  Bruno Haible  <bruno@clisp.org>
77812         * modules/stpncpy (License): Relicense under LGPLv2+.
77813         Reported by David Lutterkort <lutter@redhat.com>.
77815 2009-10-20  Eric Blake  <ebb9@byu.net>
77817         utimensat: work around Solaris 9 bug
77818         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
77819         has trailing slash bugs.
77820         * tests/test-lutimens.h (test_lutimens): Enhance test.
77821         * tests/test-utimens.h (test_utimens): Likewise.
77822         * doc/posix-functions/utime.texi (utime): Enhance documentation.
77823         * doc/posix-functions/utimes.texi (utimes): Likewise.
77824         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
77825         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
77826         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
77827         * doc/posix-functions/futimens.texi (futimens): Likewise.
77829         fdutimensat: new module
77830         * modules/fdutimensat: New file.
77831         * lib/fdutimensat.c (fdutimensat): Likewise.
77832         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
77833         * MODULES.html.sh (File system functions): Mention module.
77834         * modules/fdutimensat-tests: New test.
77835         * tests/test-fdutimensat.c: Likewise.
77837         doc: regenerate INSTALL
77838         * doc/INSTALL: Reflect recent autoconf update.
77839         * doc/INSTALL.ISO: Likewise.
77840         * doc/INSTALL.UTF-8: Likewise.
77842 2009-10-20  Pádraig Brady  <P@draigBrady.com>
77844         acl: warn if ACL support is not detected
77845         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
77847 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
77849         * lib/nproc.h: Add extern "C" block for C++.
77851 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
77852             Bruno Haible  <bruno@clisp.org>
77854         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
77855         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
77856         * doc/posix-functions/isalpha.texi: Likewise.
77857         * doc/posix-functions/isblank.texi: Likewise.
77858         * doc/posix-functions/iscntrl.texi: Likewise.
77859         * doc/posix-functions/isdigit.texi: Likewise.
77860         * doc/posix-functions/isgraph.texi: Likewise.
77861         * doc/posix-functions/islower.texi: Likewise.
77862         * doc/posix-functions/isprint.texi: Likewise.
77863         * doc/posix-functions/ispunct.texi: Likewise.
77864         * doc/posix-functions/isspace.texi: Likewise.
77865         * doc/posix-functions/isupper.texi: Likewise.
77866         * doc/posix-functions/isxdigit.texi: Likewise.
77868 2009-10-18  Bruno Haible  <bruno@clisp.org>
77870         Tests for module 'isblank'.
77871         * modules/isblank-tests: New file.
77872         * tests/test-isblank.c: New file.
77874         New module 'isblank'.
77875         * lib/isblank.c: New file.
77876         * m4/isblank.m4: New file.
77877         * modules/isblank: New file.
77878         * doc/posix-functions/isblank.texi: Mention the new module.
77880 2009-10-18  Bruno Haible  <bruno@clisp.org>
77882         New module 'ctype'.
77883         * lib/ctype.in.h: New file.
77884         * m4/ctype.m4: New file.
77885         * modules/ctype: New file.
77886         * doc/posix-headers/ctype.texi: Mention the new module.
77888 2009-10-18  Jim Meyering  <meyering@redhat.com>
77890         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
77891         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
77892         right after its initialization, rather than farther down.
77893         Keeping these in close proximity makes it easier to ensure
77894         that each such variable is initialized.  E.g.,
77896             LIB_CLOCK_GETTIME=
77897             AC_SUBST([LIB_CLOCK_GETTIME])
77899         This change also increments these serial numbers.
77900         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
77901         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
77902         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77904 2009-10-18  Bruno Haible  <bruno@clisp.org>
77906         Don't let environment variables perturb build.
77907         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
77908         (gl_PREREQ_GETHRXTIME): ... not here.
77910 2009-10-18  Bruno Haible  <bruno@clisp.org>
77912         Avoid symlink attack in localcharset module.
77913         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
77914         (O_NOFOLLOW): Define fallback.
77915         (get_charset_aliases): Don't open the file if it is a symbolic link.
77916         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
77917         gl_FCNTL_H.
77918         (gl_FCNTL_H): Require it.
77919         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
77920         * modules/localcharset (Files): Add m4/fcntl_h.m4.
77921         Reported by Fergal Glynn <fglynn@veracode.com>.
77923 2009-10-18  Bruno Haible  <bruno@clisp.org>
77925         Implement nproc for mingw.
77926         * lib/nproc.c: Include <windows.h>
77927         (num_processors): On native Windows platforms, try GetSystemInfo.
77929 2009-10-18  Bruno Haible  <bruno@clisp.org>
77931         Implement nproc for IRIX.
77932         * lib/nproc.c: Include <sys/sysmp.h>.
77933         (num_processors): On IRIX systems, try sysmp.
77934         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
77936 2009-10-18  Bruno Haible  <bruno@clisp.org>
77938         Implement nproc for HP-UX.
77939         * lib/nproc.c: Include <sys/pstat.h>
77940         (num_processors): On HP-UX systems, try pstat_getdynamic.
77941         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
77942         pstat_getdynamic.
77944 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
77945             Bruno Haible  <bruno@clisp.org>
77947         Implement nproc for NetBSD, OpenBSD.
77948         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
77949         (ARRAY_SIZE): New macro.
77950         (num_processors): On BSD systems, try sysctl of HW_NCPU.
77951         * m4/nproc.m4: New file.
77952         * modules/nproc (Files): Add m4/nproc.m4.
77953         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
77954         (Makefile.am): Instead, augment lib_SOURCES.
77956 2009-10-18  Bruno Haible  <bruno@clisp.org>
77958         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
77959         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
77960         sys/param.h.
77962 2009-10-16  Eric Blake  <ebb9@byu.net>
77964         utimensat: new module
77965         * modules/utimensat: New file.
77966         * lib/utimensat.c (utimensat): Likewise.
77967         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
77968         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
77969         so we can work around Linux bugs.
77970         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
77971         * modules/sys_stat (Makefile.am): Substitute them.
77972         * lib/sys_stat.in.h (utimensat): Declare it.
77973         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
77974         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
77975         * modules/utimensat-tests: New test.
77976         * tests/test-utimensat.c: Likewise.
77978         utimens: let lutimens work on non-symlinks
77979         * lib/utimens.c (lutimens): Fall back to utimens rather than
77980         failing with ENOSYS, when file is not a symlink.
77981         (utimens): Reduce redirection.
77982         * tests/test-lutimens.h (test_lutimens): Update test to cover
77983         non-symlinks.
77984         * tests/test-utimens.h (test_utimens): Update test to cover
77985         symlinks.
77986         * tests/test-utimens.c (main): Update caller.
77988         utimens: cache whether utimensat syscall works
77989         * lib/utimens.c (utimensat_works_really): New cache variable.
77990         (fdutimens, lutimens): Use it to avoid failing syscall.
77992         test-stat-time, test-utimens: improve portability
77993         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
77994         ext4 on alpha, and for cygwin.
77995         * tests/test-utimens-common.h: New file.
77996         (nap): Factor delays into single function.
77997         * tests/test-lutimens.h (test_lutimens): Use new header.
77998         * tests/test-futimens.h (test_futimens): Likewise.
77999         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
78000         timestamps to occur from same machine, as was done previously for
78001         test_utimens.
78002         * modules/utimens-tests (Files): Ship new file.
78003         * modules/futimens-tests (Files): Likewise.
78004         Reported in part by Jim Meyering.
78006         sys_stat: sort replacement declarations
78007         * lib/sys_stat.in.h: Sort declarations.
78008         * lib/futimens.c (futimens): Fix typo.
78010 2009-10-15  Jim Meyering  <meyering@redhat.com>
78012         don't let environment settings perturb build
78013         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
78014         could cause a configure-time and/or build-time malfunction.
78015         Typically, a configure-time function-in-library test is performed
78016         via code like this:
78018           LIB_VAR=
78019           AC_SUBST([LIB_VAR])
78020           prefix_saved_LIBS=$LIBS
78021             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
78022                        [test "$ac_cv_search_FUNC" = "none required" ||
78023                         LIB_VAR=$ac_cv_search_FUNC])
78024           LIBS=$prefix_saved_LIBS
78026         However, in each of the files affected by this change, the LIB_VAR=
78027         initialization was omitted.  Thus, when set in the environment, its
78028         value would propagate into generated Makefiles when FUNC is not found
78029         in LIB_NAME.
78030         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
78031         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
78032         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78034 2009-10-14  Eric Blake  <ebb9@byu.net>
78036         fchdir: avoid infinite recursion in mingw
78037         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
78038         recursing.
78040         test-stat-time: port to mingw
78041         * tests/test-stat-time.c (force_unlink): Return a value.
78042         (test_ctime) [W32]: Fix compilation error.
78043         (nap): Don't call usleep with too large an argument.  Use
78044         force_unlink.
78045         * doc/pastposix-functions/usleep.texi (usleep): Document the
78046         portability issue.
78048 2009-10-13  Jim Meyering  <meyering@redhat.com>
78050         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
78051         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
78052         * modules/pipe-filter-ii: Likewise.
78053         * modules/sys_socket-tests: Likewise.
78054         * modules/tsearch-tests: Likewise.
78055         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
78056         (check): Depend on it.
78058 2009-10-12  Eric Blake  <ebb9@byu.net>
78060         utimens-tests: port to NFS file systems
78061         * tests/test-utimens.h (test_utimens): Refactor utimecmp
78062         comparisons to avoid spurious failures from timestamp drift
78063         between NFS machines.
78065 2009-10-12  Eric Blake  <ebb9@byu.net>
78067         stat-time-tests: minor cleanups
78068         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
78069         * tests/test-stat-time.c (nap): Separate assignment from call.
78070         Suggested by Paolo Bonzini and Bruno Haible.
78072         sys_stat: guarantee struct timespec
78073         * lib/sys_stat.in.h (includes): Always include <time.h>
78074         * modules/sys_stat (Depends-on): Add time.
78075         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
78076         mode_t permission values.
78077         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
78078         get at subsecond timestamps.
78080 2009-10-10  Eric Blake  <ebb9@byu.net>
78082         futimens: new module
78083         * modules/futimens: New file.
78084         * lib/futimens.c (futimens): Likewise.
78085         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
78086         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
78087         we can work around Linux bugs.
78088         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
78089         * modules/sys_stat (Makefile.am): Substitute them.
78090         * lib/sys_stat.in.h (futimens): Declare it.
78091         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78092         * doc/posix-functions/futimens.texi (futimens): Likewise.
78093         * modules/futimens-tests: New test.
78094         * tests/test-futimens.c: Likewise.
78096         utimens: introduce fdutimens
78097         * lib/utimens.h (fdutimens): New prototype.
78098         * lib/utimens.c (gl_futimens): Move guts...
78099         (fdutimens): ...to new interface.
78100         * tests/test-utimens.c (do_fdutimens): Use it.
78102         utimens: add UTIME_NOW and UTIME_OMIT support
78103         * lib/utimens.c (validate_timespec, update_timespec): New helper
78104         functions.
78105         (gl_futimens, lutimens): Use them.
78106         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
78107         stdbool, sys_stat.
78108         (Link): Mention resulting library dependency.
78109         * modules/utimecmp (Link): Likewise.
78110         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
78111         (Makefile.am): Pick up library dependency.
78112         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
78113         definition.
78114         * tests/test-sys_stat.c: Test the definitions.
78115         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
78116         * NEWS: Document library dependency.
78118         utimecmp: support symlink timestamps
78119         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
78120         hashing when possible.  Use pathconf when available.
78121         (SYSCALL_RESOLUTION): Recognize tighter resolution.
78122         * modules/utimecmp (Depends-on): Add lstat.
78124         utimens: add lutimens interface
78125         * lib/utimens.c (lutimens): New function.
78126         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
78127         * lib/utimens.h (lutimens): Declare new interface.
78128         * tests/test-utimens.c (main): Enhance test.
78129         * tests/test-lutimens.h (test_lutimens): New file.
78130         * modules/utimens-tests (Files): Distribute it.
78131         (Depends-on): Add symlink.
78132         (configure.ac): Check for usleep.
78134         utimens: validate futimens usage
78135         * lib/utimens.c (gl_futimens): Require valid fd up front, using
78136         fewer syscalls on failure later on.  Avoid compiler warning on
78137         mingw.
78138         * modules/utimens (Depends-on): Add dup2.
78140         utimens: add test
78141         * modules/utimens-tests: New test.
78142         * tests/test-utimens.h: New file.
78143         * tests/test-futimens.h: Likewise.
78144         * tests/test-utimens.c: Likewise.
78146         doc: mention timestamp portability issues
78147         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
78148         instead.
78149         * doc/posix-functions/utime.texi (utime): Likewise.
78150         * doc/posix-functions/utimes.texi (utimes): Likewise.
78151         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
78152         instead.
78153         * doc/posix-functions/futimens.texi (futimens): Mention utimens
78154         module.
78155         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
78156         Mention weakness with symlink timestamps.
78157         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
78158         to utimensat/futimens instead.
78159         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
78161         test-dup2: enhance test
78162         * tests/test-dup2.c (main): Also check AT_FDCWD.
78164         test-stat-time: avoid more spurious failures
78165         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
78166         xfs; and avoid race if the two timestamps cross quantization edge.
78168         relocatable: prefer 'file system' over 'filesystem'
78169         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
78170         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
78171         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
78172         * doc/relocatable.texi (Enabling Relocatability): Likewise.
78173         * lib/relocatable.c (compute_curr_prefix): Likewise.
78175 2009-10-10  Jim Meyering  <meyering@redhat.com>
78177         stat-time-tests: check for the usleep function
78178         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
78180 2009-10-10  Bruno Haible  <bruno@clisp.org>
78182         * modules/xnanosleep: Put the Link section after the Include section.
78184 2009-10-09  Eric Blake  <ebb9@byu.net>
78186         dup2: work around FreeBSD 6.1 bug
78187         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
78188         * doc/posix-functions/dup2.texi (dup2): Document it.
78189         Reported by Nelson H. F. Beebe and Jim Meyering.
78191         test-stat-time: port to buggy NFS clients
78192         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
78193         (test_ctime): Also skip test if mtime and ctime are skewed.
78195         maint: prefer 'file system' over 'filesystem'
78196         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
78197         * doc/posix-functions/lstat.texi (lstat): Likewise.
78198         * lib/file-has-acl.c (file_has_acl): Likewise.
78199         * lib/fwriteerror.c [TEST]: Likewise.
78200         * tests/test-areadlink.h (test_areadlink): Likewise.
78201         * tests/test-areadlinkat-with-size.c (main): Likewise.
78202         * tests/test-areadlinkat.c (main): Likewise.
78203         * tests/test-canonicalize-lgpl.c (main): Likewise.
78204         * tests/test-canonicalize.c (main): Likewise.
78205         * tests/test-fstatat.c (main): Likewise.
78206         * tests/test-linkat.c (main): Likewise.
78207         * tests/test-lstat.h (test_lstat_func): Likewise.
78208         * tests/test-mkdir.h (test_mkdir): Likewise.
78209         * tests/test-readlink.h (test_readlink): Likewise.
78210         * tests/test-remove.c (main): Likewise.
78211         * tests/test-rename.h (test_rename): Likewise.
78212         * tests/test-renameat.c (main): Likewise.
78213         * tests/test-rmdir.h (test_rmdir_func): Likewise.
78214         * tests/test-symlink.h (test_symlink): Likewise.
78215         * tests/test-symlinkat.c (main): Likewise.
78216         * tests/test-unlink.h (test_unlink_func): Likewise.
78217         * tests/test-unlinkat.c (main): Likewise.
78219         maint: make realtime library usage explicit
78220         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
78221         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
78222         * modules/settime (Link): Likewise.
78223         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
78225         test-stat-time: speed up execution
78226         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
78227         warning on mingw.
78228         (nap): New helper function.
78229         (prepare_test): Use it to reduce sleep time.
78230         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
78231         execution.
78232         * modules/stat-time-tests (configure.ac): Check for usleep.
78234 2009-10-09  Jim Meyering  <meyering@redhat.com>
78236         selinux-h: always use getfilecon wrappers
78237         * lib/getfilecon.c: New file.
78238         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
78239         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
78240         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
78241         (fgetfilecon): Provide a stub.
78242         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
78243         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
78244         file unconditionally.
78245         When <selinux/selinux.h> is found, arrange to use wrappers.
78246         * modules/selinux-h (Files): Add getfilecon.c.
78247         (Makefile.am): Substitute include-next-related bits
78248         into the now-always-generated selinux/selinux.h file.
78249         * doc/glibc-functions/lgetfilecon.texi: New file.
78250         * doc/glibc-functions/fgetfilecon.texi: New file.
78251         * doc/glibc-functions/getfilecon.texi: New file.
78252         * doc/glibc-functions/getfilecon-desc.texi: New file.
78253         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
78254         which to pull in the new files.
78255         * MODULES.html.sh (Misc): Add selinux-h.
78257 2009-10-08  Jim Meyering  <meyering@redhat.com>
78259         unistd: fix comment typo
78260         * lib/unistd.in.h (euidaccess): Fix a comment typo.
78262 2009-10-08  Eric Blake  <ebb9@byu.net>
78264         areadlink: use SIZE_MAX consistently
78265         * modules/areadlink (Depends-on): Add stdint.
78266         * modules/areadlink-with-size (Depends-on): Likewise.
78267         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
78268         gives NULL; drop sys/types, since unistd gives size_t; and add
78269         stdint for SIZE_MAX.
78270         (SIZE_MAX): Rely on headers.
78271         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
78272         and add stdint.
78273         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
78274         (SIZE_MAX): Likewise.
78275         (INITIAL_BUF_SIZE): Turn into enum.
78276         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
78278 2009-10-08  Jim Meyering  <meyering@redhat.com>
78280         areadlinkat: avoid compilation failure
78281         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
78282         Fix typo in comment.
78284 2009-10-07  Eric Blake  <ebb9@byu.net>
78286         areadlinkat-with-size: new module
78287         * modules/areadlinkat-with-size: New module.
78288         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
78289         * lib/areadlink.h (areadlinkat): Declare it.
78290         * MODULES.html.sh (File system functions): Mention it.
78291         * modules/areadlinkat-with-size-tests: New test.
78292         * tests/test-areadlinkat-with-size.c: New file.
78294         xreadlinkat: new module
78295         * modules/xreadlinkat: New module.
78296         * lib/xreadlinkat.c (xreadlinkat): New file.
78297         * lib/xreadlink.h (xreadlinkat): Declare it.
78298         * MODULES.html.sh (File system functions): Mention it.
78300         areadlinkat: new module
78301         * lib/at-func.c (FUNC_FAIL): New define.
78302         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
78303         * modules/areadlinkat: New module.
78304         * lib/linkat.c (areadlinkat): Move...
78305         * lib/areadlinkat.c (areadlinkat): ...to new file.
78306         * lib/areadlink.h (areadlinkat): Declare it.
78307         * modules/linkat (Depends-on): Add areadlinkat.
78308         * MODULES.html.sh (File system functions): Mention it.
78309         * modules/areadlinkat-tests: New test.
78310         * tests/test-areadlinkat.c: New file.
78312         areadlink, areadlink-with-size: add tests
78313         * modules/areadlink-tests: New test.
78314         * modules/areadlink-with-size-tests: Likewise.
78315         * tests/test-areadlink.h: New file.
78316         * tests/test-areadlink.c: Likewise.
78317         * tests/test-areadlink-with-size.c: Likewise.
78319         maint: minor cleanups
78320         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
78321         _UNUSED_PARAMETER_ instead.
78322         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
78323         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
78324         * modules/linkat-tests (Files): Distribute test-link.h.
78326         openat, utimens: whitespace cleanup
78327         * lib/openat.c: Prefer space throughout, rather than mix of 8
78328         spaces vs. tabs.
78329         * lib/at-func.c: Likewise.
78330         * lib/utimens.c: Likewise.
78332         openat: avoid using wrong fd
78333         * lib/openat.c (openat_permissive): Reject user's fd if saving the
78334         working directory chooses same fd.
78335         * lib/at-func.c (AT_FUNC_NAME): Likewise.
78337         mkdir, mkdirat: fix cygwin 1.5.x bug
78338         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
78339         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
78340         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
78341         bug.
78342         (gl_PREREQ_MKDIR): Delete unused macro.
78343         * modules/mkdir (Files): Track file rename.
78344         (configure.ac): Update macro name.
78345         * modules/openat (Depends-on): Add mkdir.
78346         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
78348         mkdir, mkdirat: add tests
78349         * modules/mkdir-tests: New test.
78350         * tests/test-mkdir.h: New file.
78351         * tests/test-mkdir.c: Likewise.
78352         * tests/test-mkdirat.c: Likewise.
78353         * modules/openat-tests (Files): Add new files.
78354         (Makefile.am): Run new test.
78356 2009-10-06  Eric Blake  <ebb9@byu.net>
78358         doc: tweak *at function documentation
78359         * doc/posix-functions/faccessat.texi (faccessat): Mention
78360         known issue with replacement.
78361         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
78362         * doc/posix-functions/linkat.texi (linkat): Likewise.
78363         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
78364         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
78365         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
78366         * doc/posix-functions/renameat.texi (renameat): Likewise.
78367         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
78369         openat: fix GNU/Hurd bug in unlinkat
78370         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
78371         broken.
78372         * doc/posix-functions/unlink.texi (unlink): Document this.
78373         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
78375         fdopendir: fix GNU/Hurd bug
78376         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
78377         allowing non-directory fds.
78378         * lib/fdopendir.c (rpl_fdopendir): Work around it.
78379         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
78380         * modules/dirent (Makefile.am): Substitute it.
78381         * lib/dirent.in.h (fdopendir): Declare replacement.
78382         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
78383         * tests/test-fdopendir.c (main): Test something other than
78384         /dev/null, since on Hurd that behaves like a directory.
78386         test-symlink: port to GNU/Hurd
78387         * tests/test-symlink.h (test_symlink): Relax expected errno.
78389         doc: tweak more cygwin information
78390         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
78391         now compatible with glibc.
78392         * doc/posix-functions/getopt.texi (getopt): Likewise.
78394         getopt-gnu: add another test
78395         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
78396         guarantee behavior relied on by m4.
78397         * tests/test-getopt.c (main): Use it.
78398         * modules/getopt-posix-tests (Depends-on): Add setenv.
78399         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
78401         getopt: fix compilation on darwin
78402         * lib/getopt.in.h (includes): Leave breadcrumbs during system
78403         include.
78404         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
78405         Reported by Ludovic Courtès.
78407 2009-10-06  Bruno Haible  <bruno@clisp.org>
78409         * modules/size_max (Description): Discourage its use.
78410         Reported by Simon Josefsson.
78412 2009-10-06  Jim Meyering  <meyering@redhat.com>
78414         linkat: avoid compilation failure
78415         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
78417 2009-10-05  Eric Blake  <ebb9@byu.net>
78419         linkat: support Linux 2.6.17
78420         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
78421         linkat on Linux, but allow cache variable override.
78422         * lib/linkat.c (rpl_linkat): Define override.
78423         * modules/linkat (Depends-on): Add symlinkat.
78424         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
78425         * modules/unistd (Makefile.am): Substitute it.
78426         * lib/unistd.in.h (linkat): Declare replacement.
78427         Reported by Pádraig Brady.
78429         quotearg: port test to systems with C.UTF-8 locale
78430         * tests/test-quotearg.c (struct result_strings): Add another
78431         member, differentiating between C.ASCII and C.UTF-8 handling.
78432         (compare_strings): Add parameter.
78433         (main): Adjust all callers.
78435         getopt: avoid clash with FreeBSD _getopt_internal
78436         * lib/getopt.in.h (_getopt_internal): Override the name.
78437         * lib/getopt_int.h (includes): Pick up any overrides.
78438         Reported by Reuben Thomas.
78440         hash: allow C89 compilation
78441         * lib/hash.c (check_tuning): Move declaration before statement.
78442         Reported by Reuben Thomas.
78444 2009-10-05  Karl Berry  <karl@gnu.org>
78446         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
78448 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
78449             Bruno Haible  <bruno@clisp.org>
78451         * lib/uname.c (uname): Use a table-driven algorithm to compute
78452         Windows NT versions.
78454 2009-10-04  Bruno Haible  <bruno@clisp.org>
78456         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
78457         program_invocation_short_name.
78458         * modules/progname (configure.ac): Test for presence of
78459         program_invocation_short_name.
78460         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
78462 2009-10-04  Bruno Haible  <bruno@clisp.org>
78464         * lib/progname.c (set_program_name): Fix comment.
78465         Reported by Jim Meyering.
78467 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
78468             Bruno Haible  <bruno@clisp.org>
78470         * lib/uname.c: Include <string.h>.
78471         (uname): Do only one call to GetVersionEx in the common case.
78473 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
78474             Bruno Haible  <bruno@clisp.org>
78476         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
78477         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
78478         (uname): Add support for Windows CE and various non-x86 CPU types.
78480 2009-10-03  Bruno Haible  <bruno@clisp.org>
78482         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
78483         invocation to tests/configure.ac.
78484         Reported by Ian Beckwith <ianb@erislabs.net>.
78486 2009-10-02  Eric Blake  <ebb9@byu.net>
78488         fchdir: avoid compiler warning
78489         * lib/fchdir.c (canonicalize_file_name)
78490         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
78492         test-open: support mingw errno values
78493         * tests/test-open.h (test_open): Relax test.
78494         * tests/test-fopen.h (test_fopen): Likewise.
78495         * tests/test-openat-safer.c (main): Likewise.
78497         open: fix opening directory on mingw
78498         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
78500         test-open: on GNU/Hurd, /dev/null is a directory
78501         * tests/test-fopen.h (main): Rename...
78502         (test_fopen): ...to this.  Use a guaranteed non-directory when
78503         confirming open behavior on trailing slash.
78504         * tests/test-openat-safer.c (main): Likewise.
78505         * tests/test-open.h (main): Likewise....
78506         (test_open): ...to this.
78507         * tests/test-fopen.c (main): Adjust caller.
78508         * tests/test-fopen-safer.c (main): Likewise.
78509         * tests/test-open.c (main): Likewise.
78510         * tests/test-fcntl-safer.c (main): Likewise.
78511         Reported by Samuel Thibault.
78513         rename, fchdir: don't ignore chdir failure
78514         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
78515         * lib/rename.c (rpl_rename) [W32]: Likewise.
78516         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
78517         an empty destination directory if source cannot be renamed,
78518         although there is still possibility for failure.
78519         * doc/posix-functions/rename.texi (rename): Document the race.
78520         Reported by Jim Meyering.
78522         maint: cleanup whitespace in recent commits
78523         * lib/rename.c (rpl_rename): Remove tabs.
78524         * tests/test-link.h (test_link): Likewise.
78525         * lib/fchdir.c (get_name): Likewise.
78526         Reported by Jim Meyering.
78528 2009-10-02  Ben Pfaff  <blp@gnu.org>
78530         relocatable-prog-wrapper: Add missing dependency on
78531         double-slash-root.
78532         * modules/relocatable-prog-wrapper: Add dependency.
78533         Reported by Ian Beckwith <ianb@erislabs.net>.
78535 2009-10-02  Eric Blake  <ebb9@byu.net>
78537         renameat: fix Solaris bugs
78538         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
78539         needed fixing.
78540         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
78541         * modules/stdio (Makefile.am): Substitute it.
78542         * lib/stdio.in.h (renameat): Declare replacement.
78543         * lib/renameat.c (rpl_renameat): Implement fix.
78545         renameat: new module
78546         * modules/renameat: New file.
78547         * lib/renameat.c (renameat): Likewise.
78548         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
78549         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
78550         * modules/stdio (Makefile.am): Substitute them.
78551         * lib/stdio.in.h (renameat): Declare it.
78552         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78553         * doc/posix-functions/renameat.texi (renameat): Likewise.
78554         * modules/renameat-tests: New test.
78555         * tests/test-renameat.c: Likewise.
78557         rename: fix mingw bugs
78558         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
78559         directory overwrite bugs.
78561         rename: fix another cygwin 1.5 bug
78562         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
78563         checks.
78564         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
78565         unnecessary cygwin workarounds.  Also work around bug with moving
78566         full directory onto an empty one.
78567         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
78569         rename-dest-slash: merge into rename module
78570         * modules/rename-dest-slash (Status): Mark obsolete.
78571         (Depends-on): Add rename.
78572         (Files): Let rename do it all.
78573         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
78574         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
78575         * m4/rename-dest-slash.m4: ...so this file can be deleted.
78576         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
78577         * lib/rename.c (rpl_rename): Update comments.
78579         rename: fix cygwin 1.5.x bugs
78580         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
78581         * lib/rename.c (rpl_rename): Work around them.
78582         * modules/rename (Depends-on): Add same-inode.
78584         rename: fix Solaris 10 bug
78585         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
78586         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
78587         was the only bug.
78589         rename: fix Solaris 9 bug
78590         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
78591         on non-directory.  Avoid calling exit.
78592         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
78593         strdup.
78594         * modules/rename-tests (Depends-on): Drop lstat.
78595         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
78596         (gl_PREREQ_RENAME): Delete unused macro.
78598         rename-dest-slash: fix NetBSD bug
78599         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
78600         links.
78601         * modules/rename-dest-slash (Depends-on): Add same-inode.
78603         rename-tests: new test, exposes several platform bugs
78604         * modules/rename-tests: New file.
78605         * tests/test-rename.h: Likewise.
78606         * tests/test-rename.c: Likewise.
78607         * doc/posix-functions/rename.texi (rename): Improve documentation,
78608         including bugs that will eventually be fixed in gnulib.
78610 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
78612         * lib/uname.c: Include <stdlib.h>
78613         (uname): Assume version info is available.
78615 2009-10-02  Jim Meyering  <meyering@redhat.com>
78617         gnu-web-doc-update: correct --help output
78618         * build-aux/gnu-web-doc-update: Make --help output relevant.
78620         gnu-web-doc-update: add standard options
78621         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
78623         gnu-web-doc-update: New module.
78624         Use this script to automatically update the on-line web documentation
78625         for your GNU project at http://www.gnu.org/software/$pkg/manual/
78626         * modules/gnu-web-doc-update: New file, from coreutils.
78627         * build-aux/gnu-web-doc-update: New script.
78629 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
78631         link: LoadLibrary is not needed.
78632         * lib/link.c: Use GetModuleHandle.
78634 2009-10-01  Eric Blake  <ebb9@byu.net>
78636         getopt: bump serial number
78637         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
78638         change.
78640         tests: tighten link, rmdir, and remove tests
78641         * tests/test-link.h (includes): No need to use <config.h> here.
78642         Clean up if directory hard link was created, otherwise test for
78643         trailing '.'.
78644         * tests/test-linkat.c (main): Simplify.
78645         * tests/test-remove.c (main): Enhance test for trailing '.'.
78646         * tests/test-rmdir.h (test_rmdir_func): Likewise.
78648 2009-10-01  Jim Meyering  <meyering@redhat.com>
78650         maint.mk: requiring "make major" was annoying, for a "minor" release.
78651         What is intended is "stable", to contrast with alpha and beta,
78652         so require "make stable", not "make major".
78653         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
78654         (get_tool_versions): Likewise.
78655         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
78657 2009-09-30  Ben Pfaff  <blp@gnu.org>
78659         Fix broken build of replacement for Windows tmpfile().
78660         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
78661         flags argument added along with the 'mkostemp' module.
78663 2009-09-28  Bruno Haible  <bruno@clisp.org>
78665         Avoid identifier clash with POSIX function 'remove' defined as a macro.
78666         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
78667         to 'remove_elt'.
78668         (gl_list_remove): Update.
78669         * lib/gl_list.c (gl_list_remove): Update.
78670         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
78671         to 'remove_elt'.
78672         (gl_oset_remove): Update.
78673         * lib/gl_list.c (gl_oset_remove): Update.
78674         Reported by Eric Blake.
78676 2009-09-28  Eric Blake  <ebb9@byu.net>
78678         doc: mention yet more cygwin 1.7 status
78679         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
78680         cygwin.
78681         * doc/glibc-functions/execvpe.texi (execvpe): New file.
78682         * doc/gnulib.texi (Glibc unistd.h): Mention it.
78684         argp: fix test failure
78685         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
78686         that are not upper-case.  Pass correct range to tolower.
78688 2009-09-27  Jim Meyering  <meyering@redhat.com>
78690         test-yesno: work around sparc-dash here-document infelicity
78691         Without this change, the literal \177 byte in a here document
78692         would make dash 0.5.5.1-3 access uninitialized memory.
78693         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
78694         Instead, use a marker, "@", and filter through tr to create the desired
78695         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
78697 2009-09-27  Bruno Haible  <bruno@clisp.org>
78699         Disable untested support for new flavours of ACLs on AIX.
78700         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
78701         progress.
78702         * lib/set-mode-acl.c (qset_acl): Likewise.
78704 2008-12-07  Bruno Haible  <bruno@clisp.org>
78706         Add support for new flavours of ACLs on AIX. (Untested.)
78707         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
78708         (file_has_acl): Add support for newer AIX.
78709         * lib/set-mode-acl.c (qset_acl): Likewise.
78710         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
78711         Rainer Tammer <tammer@tammer.net>.
78713 2009-09-26  Eric Blake  <ebb9@byu.net>
78715         argp: fix compilation of getopt
78716         * lib/getopt.in.h (includes): Use different guard than glibc.
78717         Reported by Sergey Poznyakoff.
78719         doc: mention more cygwin 1.7 status
78720         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
78721         bug.
78722         * doc/posix-functions/execl.texi (execl): Likewise.
78723         * doc/posix-functions/execle.texi (execle): Likewise.
78724         * doc/posix-functions/execlp.texi (execlp): Likewise.
78725         * doc/posix-functions/execv.texi (execv): Likewise.
78726         * doc/posix-functions/execve.texi (execve): Likewise.
78727         * doc/posix-functions/execvp.texi (execvp): Likewise.
78728         * doc/glibc-functions/canonicalize_file_name.texi
78729         (canonicalize_file_name): Cygwin 1.7 now provides this.
78730         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
78731         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
78732         on AT_SYMLINK_NOFOLLOW.
78734 2009-09-24  Eric Blake  <ebb9@byu.net>
78736         test-linkat: make test more robust
78737         * tests/test-linkat.c (main): Avoid collision with EEXIST.
78739         getopt: fix inclusion guards for cygwin
78740         * modules/getopt-posix (Depends-on): Add include-next.
78741         (Makefile.am): Substitute more items in replacement header.
78742         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
78743         <getopt.h>.
78744         * lib/getopt.in.h (includes): Use split inclusion guard, and
78745         prefer <getopt.h> over include <unistd.h> when one is present.
78746         (option): Also override name of 'struct option'.
78748         same-inode: revert prior change; it is not yet ready
78749         * NEWS: Undo mention of this change.
78750         * lib/same-inode.h (same-inode.h): Undo tri-state change.
78751         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
78752         * lib/cycle-check.c (cycle_check): Likewise.
78753         * lib/same.c (same_name): Likewise.
78754         * lib/at-func2.c (at_func2): Likewise.
78756 2009-09-23  Eric Blake  <ebb9@byu.net>
78758         linkat: new module
78759         * modules/linkat: New file.
78760         * lib/at-func2.c (at_func2): Likewise.
78761         * lib/linkat.c (linkat): Likewise.
78762         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
78763         * lib/openat-priv.h (at_func2): Add declaration.
78764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
78765         * modules/unistd (Makefile.am): Substitute them.
78766         * lib/unistd.in.h (linkat): Declare it.
78767         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78768         * doc/posix-functions/linkat.texi (linkat): Likewise.
78769         * doc/posix-functions/link.texi (link): Tweak wording.
78770         * tests/test-link.c (main): Move guts...
78771         * tests/test-link.h (test_link): ...into new file.
78772         * modules/linkat-tests: New test.
78773         * tests/test-linkat.c: Likewise.
78774         * modules/link-tests (Files): Ship new file.
78775         (Depends-on): Add stdbool.
78777         dirname: add library-safe mdir_name
78778         * lib/dirname.h (mdir_name): New prototype.
78779         * lib/dirname.c (dir_name): Move guts...
78780         (mdir_name): ...to new function that avoids xalloc_die.
78782         fchdir: another mingw fix
78783         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
78784         * lib/fchdir.c (get_name): New helper method; skips canonicalize
78785         on mingw (where it has not yet been ported), and make it optional
78786         elsewhere.
78787         (_gl_register_fd): Use it.
78789         same-inode: make SAME_INODE tri-state, to port to mingw
78790         * NEWS: Mention this change.
78791         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
78792         st_ino always being 0.
78793         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
78794         * lib/cycle-check.c (cycle_check): Likewise.
78795         * lib/same.c (same_name): Likewise.
78797         lstat: avoid mingw compilation error
78798         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
78799         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
78800         lstat ourselves.
78801         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
78802         was adequate.
78803         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
78804         the checks for lstat.
78805         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
78807         link: fix test failure on Solaris 9
78808         * lib/link.c (rpl_link): Don't assume link will catch bogus
78809         trailing slash on source.
78811         test-symlinkat: enhance test
78812         * tests/test-readlink.c (main): Move guts...
78813         * tests/test-readlink.h (test_readlink): ...into new file.
78814         * tests/test-symlink.c (main): Move guts...
78815         * tests/test-symlink.h (test_symlink): ...into new file.
78816         * tests/test-symlinkat.c (main): Use new files for further
78817         coverage.
78818         (do_symlink, do_readlink): New helper functions.
78819         * modules/symlink-tests (Files): Ship new file.
78820         (Depends-on): Add stdbool.
78821         * modules/readlink-tests (Files): Ship new file.
78822         (Depends-on): Add stdbool.
78823         * modules/symlinkat-tests (Files): Use new files.
78825 2009-09-23  Eric Blake  <ebb9@byu.net>
78827         readlink: document portability issue with symlink length
78828         * doc/posix-functions/lstat.texi (lstat): Mention that some file
78829         systems have bogus st_size on symlinks, and mention the
78830         areadlink-with-size module.
78831         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
78832         * doc/posix-functions/readlink.texi (readlink): Mention the
78833         areadlink module, and ERANGE failure.
78834         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
78835         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
78837         readlink: fix Solaris 9 bug with trailing slash
78838         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
78839         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
78840         * doc/posix-functions/readlink.texi (readlink): Document this.
78841         * modules/readlink-tests: New test.
78842         * tests/test-readlink.c: Likewise.
78844         readlink: fix cygwin 1.5.x bug with return type
78845         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
78846         * lib/unistd.in.h (readlink): Use ssize_t.
78847         * lib/readlink.c (readlink): Likewise.
78848         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78849         * modules/unistd (Makefile.am): Substitute it.
78850         * lib/unistd.in.h (readlink): Declare replacement.
78851         * doc/posix-functions/readlink.texi (readlink): Document this.
78853         symlink: use throughout gnulib
78854         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
78855         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
78856         symlink is not used.
78857         * modules/symlinkat (Depends-on): Add symlink.
78858         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
78859         * modules/canonicalize-tests (Depends-on): Likewise.
78860         * modules/lstat-tests (Depends-on): Likewise.
78861         * modules/openat-tests (Depends-on): Likewise.
78862         * modules/remove-tests (Depends-on): Likewise.
78863         * modules/rmdir-tests (Depends-on): Likewise.
78864         * modules/unlink-tests (Depends-on): Likewise.
78865         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
78866         * tests/test-canonicalize.c (symlink): Likewise.
78867         * tests/test-fstatat.c (symlink): Likewise.
78868         * tests/test-lstat.c (symlink): Likewise.
78869         * tests/test-remove.c (symlink): Likewise.
78870         * tests/test-rmdir.c (symlink): Likewise.
78871         * tests/test-unlink.c (symlink): Likewise.
78872         * tests/test-unlinkat.c (symlink): Likewise.
78874         symlink: new module, for Solaris 9 bug
78875         * modules/symlink: New file.
78876         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
78877         * lib/symlink.c: Likewise.
78878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
78879         * modules/unistd (Makefile.am): Substitute them.
78880         * lib/unistd.in.h (symlink): Declare replacement.
78881         * MODULES.html.sh (File system functions): Mention it.
78882         * doc/posix-functions/symlink.texi (symlink): Likewise.
78883         * modules/symlink-tests: New test.
78884         * tests/test-symlink.c: Likewise.
78886 2009-09-23  Bruno Haible  <bruno@clisp.org>
78888         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
78889         when needed.
78890         Test case: gnulib-tool --import --with-tests atexit inttypes.
78891         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
78893 2009-09-23  Bruno Haible  <bruno@clisp.org>
78895         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
78896         subcommand, not in a subshell.
78898 2009-09-22  Eric Blake  <ebb9@byu.net>
78900         unistd: sort replacement declarations
78901         * lib/unistd.in.h: Sort declarations.
78903         open, openat: minor optimization
78904         * lib/open.c (open): If open succeeded, len is non-zero.
78905         * lib/openat.c (rpl_openat): Likewise.
78907         link-follow: ensure correct result
78908         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
78909         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
78910         distinguish between possible failures.
78912 2009-09-21  Eric Blake  <ebb9@byu.net>
78914         fts: avoid compiler warning
78915         * lib/fts.c (dirent_inode_sort_may_be_useful)
78916         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
78918 2009-09-19  Bruno Haible  <bruno@clisp.org>
78920         * lib/progreloc.c (canonicalize_file_name): New declaration.
78922 2009-09-19  Eric Blake  <ebb9@byu.net>
78924         link: fix quoting
78925         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
78927         openat: fix openat bugs on Solaris 9
78928         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
78929         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
78930         * modules/openat (Depends-on): Add open.
78931         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
78932         * modules/fcntl-h (Makefile.am): Substitute it.
78933         * lib/fcntl.in.h (openat): Declare replacement.
78934         * doc/posix-functions/openat.texi (openat): Document this.
78936         openat: move fstatat and unlinkat into correct files
78937         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
78938         compiled.
78939         * lib/openat.c (fstatat, unlinkat): Move...
78940         * lib/fstatat.c (fstatat): ...into correct files.
78941         * lib/unlinkat.c (unlinkat): Likewise.
78943         openat: fix unlinkat bugs on Solaris 9
78944         * lib/unlinkat.c (unlinkat): New file.
78945         * modules/openat (Depends-on): Add unlink.
78946         (Files): Distribute it.
78947         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
78948         trailing slash behavior is broken.
78949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78950         * modules/unistd (Makefile.am): Substitute it.
78951         * lib/unistd.in.h (unlinkat): Declare replacement.
78952         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
78954         openat: fix fstatat bugs on Solaris 9
78955         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
78956         stat.
78957         * doc/posix-functions/fstatat.texi (fstatat): Document this.
78959         test-unlinkat: enhance test, to expose Solaris 9 bug
78960         * tests/test-unlink.c (main): Factor guts...
78961         * tests/test-unlink.h (test_rmdir_func): ...into new file.
78962         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
78963         * tests/test-rmdir.c (main): Adjust caller.
78964         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
78965         (unlinker): New helper function.
78966         (rmdirat): Enhance check.
78967         * modules/rmdir-tests (Depends-on): Add stdbool.
78968         * modules/unlink-tests (Depends-on): Likewise.
78969         (Files): Add test-unlink.h.
78970         * modules/openat-tests (Files): Likewise.
78971         (Depends-on): Add unlinkdir.
78973         test-fstatat: new test, to expose Solaris 9 bugs
78974         * tests/test-stat.c (main): Factor guts...
78975         * tests/test-stat.h (test_stat_func): ...into new file.
78976         * tests/test-lstat.c (main): Factor guts...
78977         * tests/test-lstat.h (test_lstat_func): ...into new file.
78978         * tests/test-fstatat.c: New file.
78979         * modules/stat-tests (Files): Add test-stat.h.
78980         * modules/lstat-tests (Files): Add test-lstat.h.
78981         (Depends-on): Add stdbool.
78982         * modules/openat-tests (Depends-on): Add pathmax.
78983         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
78984         (Makefile.am): Run new test.
78986         remove: new module, for mingw and Solaris 9 bugs
78987         * modules/remove: New file.
78988         * lib/remove.c: Likewise.
78989         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
78990         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
78991         * modules/stdio (Makefile.am): Use them.
78992         * lib/stdio.in.h (remove): Declare replacement.
78993         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
78994         * doc/posix-functions/remove.texi (remove): Likewise.
78995         * modules/remove-tests: New test.
78996         * tests/test-remove.c: Likewise.
78998         unlink: new module, for Solaris 9 bug
78999         * modules/unlink: New file.
79000         * lib/unlink.c: Likewise.
79001         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
79002         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
79003         * modules/unistd (Makefile.am): Use them.
79004         * lib/unistd.in.h (stat): Declare replacement.
79005         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79006         * doc/posix-functions/unlink.texi (unlink): Likewise.
79007         * modules/unlink-tests: New test.
79008         * tests/test-unlink.c: Likewise.
79010         lstat: fix Solaris 9 bug
79011         * lib/lstat.c (lstat): Also check for trailing slash on
79012         non-symlink, non-directories.  Use stat module to simplify logic.
79013         * doc/posix-functions/lstat.texi (lstat): Document it.
79014         * modules/lstat-tests (Depends-on): Add errno, same-inode.
79015         (configure.ac): Check for symlink.
79016         * tests/test-lstat.c (main): Add more tests.
79018         stat: add as dependency to other modules
79019         * modules/chown (Depends-on): Add stat.
79020         * modules/euidaccess (Depends-on): Likewise.
79021         * modules/fchdir (Depends-on): Likewise.
79022         * modules/isdir (Depends-on): Likewise.
79023         * modules/link (Depends-on): Likewise.
79024         * modules/lstat (Depends-on): Likewise.
79025         * modules/mkdir-p (Depends-on): Likewise.
79026         * modules/modechange (Depends-on): Likewise.
79027         * modules/open (Depends-on): Likewise.
79028         * modules/readlink (Depends-on): Likewise.
79029         * modules/same (Depends-on): Likewise.
79031         stat: fix Solaris 9 bug
79032         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
79033         slash.
79034         * lib/stat.c (rpl_stat): Work around it.
79035         * doc/posix-functions/stat.texi (stat): Update documentation.
79037         stat: new module, for mingw bug
79038         * modules/stat: New file.
79039         * lib/stat.c: Likewise.
79040         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
79041         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
79042         * modules/sys_stat (Makefile.am): Use them.
79043         * lib/sys_stat.in.h (stat): Declare replacement.
79044         * lib/openat.c (fstatat): Deal with lstat and stat being function
79045         macros.
79046         * modules/openat (Depends-on): Add inline.
79047         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79048         * doc/posix-functions/stat.texi (stat): Likewise.
79049         * modules/stat-tests: New test.
79050         * tests/test-stat.c: Likewise.
79052 2009-09-19  Jim Meyering  <meyering@redhat.com>
79054         syntax-check: detect unnecessary inclusion of canonicalize.h
79055         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
79057 2009-09-19  Eric Blake  <ebb9@byu.net>
79059         canonicalize-lgpl: adjust clients to use correct header
79060         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
79061         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
79062         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
79063         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
79064         * lib/progreloc.c (includes): Likewise.
79066 2009-09-19  Jim Meyering  <meyering@redhat.com>
79068         test-posixtm.c: correct a comment
79069         * tests/test-posixtm.c: Correct first-line comment.
79070         Spotted by Eric Blake.
79072 2009-09-16  Jim Meyering  <meyering@redhat.com>
79074         posixtm-tests: make T const-correct; add a test case
79075         * tests/test-posixtm.c (T): Declare const.
79076         Add a test for -(2^31+1).
79077         Remove useless can-succeed-only-in-2002 test.
79079         posixtm-tests: adjust the sole failing test
79080         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
79081         expected output matches what mktime now produces.  Cross-checked via
79082         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
79084         posixtm: move #ifdef'd tests into a new module
79085         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
79086         * tests/test-posixtm.c: ... this new file.
79087         * modules/posixtm-tests: New module.
79089 2009-09-19  Eric Blake  <ebb9@byu.net>
79091         openat: simplify use of at-func.c
79092         * lib/at-func.c (includes): Include prerequisites here, to
79093         simplify requirements on client files.
79094         * lib/openat-priv.h: Add double-inclusion guard.
79095         * lib/faccessat.c (includes): Simplify.
79096         * lib/fchmodat.c (includes): Likewise.
79097         * lib/fchownat.c (includes): Likewise.
79098         * lib/mkdirat.c (includes): Likewise.
79099         * lib/mkfifoat.c (includes): Likewise.
79100         * lib/symlinkat.c (includes): Likewise.
79102         openat: allow return of fd 0
79103         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
79104         * modules/save-cwd (Depends-on): Replace fcntl-safer with
79105         unistd-safer.
79106         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
79107         <fcntl.h>; this module does not leak fds.
79108         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
79109         must be allowed to return 0, leaving openat_safer to add the
79110         safety.
79111         (openat_permissive): Avoid writing to just-opened fd 2 if
79112         restoring the current directory fails.
79113         * lib/openat-die.c (openat_restore_fail): Add comment.
79114         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
79115         (save_cwd): Guarantee safe fd, but without use of open_safer.
79116         * tests/test-openat.c: New test.
79117         * modules/openat-tests (Files, Makefile.am): Distribute and build
79118         new file.
79120         relocatable-prog-wrapper: fix build
79121         * modules/relocatable-prog-wrapper (Files): Update name of
79122         canonicalize m4 file, broken on 2009-09-17.
79123         Reported by emad hajjar <aleppos@hotmail.com>.
79125 2009-09-19  Bruno Haible  <bruno@clisp.org>
79127         * lib/safe-alloc.h: Use the standard header with GPL copyright.
79128         * lib/safe-alloc.c: Likewise.
79129         Reported by Ian Beckwith <ianb@erislabs.net>.
79131 2009-09-18  Bruno Haible  <bruno@clisp.org>
79133         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
79134         Reported by <erobles@sensacd.com.mx>.
79136 2009-09-17  Eric Blake  <ebb9@byu.net>
79138         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
79139         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
79140         slashes when checking if last component is missing.
79141         * tests/test-canonicalize.c (main): Test this.
79143         canonicalize, canonicalize-lgpl: honor // if distinct from /
79144         * modules/canonicalize (Files): Add double-slash-root.m4.
79145         * modules/canonicalize-lgpl (Files): Likewise.
79146         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
79147         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
79148         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
79149         fallback definition.
79150         (canonicalize_filename_mode): Use it to protect //.
79151         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
79152         (__realpath): Likewise.
79153         * tests/test-canonicalize.c (main): Test this.
79154         * tests/test-canonicalize-lgpl.c (main): Likewise.
79155         * modules/canonicalize-tests (Depends-on): Add same-inode.
79156         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
79158         canonicalize-lgpl: fix glibc bug with trailing slash
79159         * m4/canonicalize-lgpl.m4: Move contents...
79160         * m4/canonicalize.m4: ...here.
79161         (gl_CANONICALIZE_LGPL): Factor realpath check...
79162         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
79163         glibc 2.3.5 bug, fixed 2005-04-27.
79164         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
79165         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
79166         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
79167         * modules/canonicalize-lgpl (Files): Manage file rename.
79168         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
79169         * modules/stdlib (Makefile.am): Substitute witness.
79170         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
79171         is needed.
79172         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
79173         replacement is required.
79174         * lib/canonicalize.c (canonicalize_file_name): Likewise.
79175         * doc/glibc-functions/canonicalize_file_name.texi
79176         (canonicalize_file_name): Document this.
79177         * doc/posix-functions/realpath.texi (realpath): Likewise.
79179         canonicalize-lgpl: reject non-directory with trailing slash
79180         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
79181         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
79182         catches failures in glibc 2.3.5.
79183         * tests/test-canonicalize.c (main): Likewise.
79185         canonicalize-lgpl: use native realpath if it works
79186         * lib/canonicalize-lgpl.c (realpath): Guard with
79187         FUNC_REALPATH_WORKS.
79188         * lib/stdlib.in.h (realpath): Make declaration optional based on
79189         HAVE_REALPATH.
79190         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
79191         native realpath works.
79192         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
79193         * modules/stdlib (Makefile.am): Substitute witness.
79195         canonicalize, canonicalize-lgpl: use <stdlib.h>
79196         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
79197         (Include): Mention <stdlib.h>.
79198         (configure.ac): Mention functions we provide.
79199         * modules/canonicalize (configure.ac): Likewise.
79200         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
79201         realpath if canonicalize_file_name is missing.
79202         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
79203         * modules/stdlib (Makefile.am): Substitute witnesses.
79204         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
79205         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
79206         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
79207         * NEWS: Document this.
79208         * doc/glibc-functions/canonicalize_file_name.texi
79209         (canonicalize_file_name): Likewise.
79210         * doc/posix-functions/realpath.texi (realpath): Likewise.
79211         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
79213         test-canonicalize: consolidate into single C program
79214         * tests/test-canonicalize.sh: Delete; move setup into...
79215         * tests/test-canonicalize.c (main): ...the program, making it
79216         easier to run in debugger.  Add some tests.
79217         * modules/canonicalize-tests (Files): Remove unused file.
79218         (Depends-on): Add progname.
79219         (configure.ac, Makefile.am): Simplify.
79221         test-canonicalize-lgpl: consolidate into single C program
79222         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
79223         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
79224         easier to run in debugger.  Add some tests.
79225         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
79226         (configure.ac, Makefile.am): Simplify.
79228         canonicalize: avoid resolvepath
79229         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
79230         unnecessary checks.
79231         * lib/canonicalize.c (includes): Simplify.
79232         (canonicalize_file_name): Drop resolvepath implementation.
79233         * modules/canonicalize (Depends-on): Drop filenamecat.
79235         canonicalize: don't lose errno
79236         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
79237         over calls to free.
79239         canonicalize: simplify errno handling
79240         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
79241         assignment.
79243         canonicalize, canonicalize-lgpl: update module dependencies
79244         * modules/canonicalize (Depends-on): Add extensions, lstat,
79245         pathmax, stdlib.
79246         (Files): Drop pathmax.h.
79247         (configure.ac): Adjust macro name.
79248         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
79249         lstat, stdlib, sys_stat.
79250         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
79251         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
79252         extensions.
79253         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
79254         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
79255         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
79256         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
79257         declaration, if available.
79258         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
79259         we can rely on the readlink module.
79260         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
79261         (includes): Use <unistd.h> unconditionally.
79263 2009-09-17  Eric Blake  <ebb9@byu.net>
79265         maint: make Include sections of modules consistent
79266         * modules/alloca: Use only header name; no need to list #include.
79267         * modules/alloca-opt: Likewise.
79268         * modules/arpa_inet: Likewise.
79269         * modules/canon-host: Likewise.
79270         * modules/configmake: Likewise.
79271         * modules/dirent: Likewise.
79272         * modules/eealloc: Likewise.
79273         * modules/environ: Likewise.
79274         * modules/fchdir: Likewise.
79275         * modules/fcntl: Likewise.
79276         * modules/fcntl-h: Likewise.
79277         * modules/gethrxtime: Likewise.
79278         * modules/gettime: Likewise.
79279         * modules/ignore-value: Likewise.
79280         * modules/inet_ntop: Likewise.
79281         * modules/inet_pton: Likewise.
79282         * modules/inttypes: Likewise.
79283         * modules/isnand-nolibm: Likewise.
79284         * modules/isnanf-nolibm: Likewise.
79285         * modules/mbchar: Likewise.
79286         * modules/mbfile: Likewise.
79287         * modules/mbiter: Likewise.
79288         * modules/mbuiter: Likewise.
79289         * modules/netdb: Likewise.
79290         * modules/netinet_in: Likewise.
79291         * modules/nproc: Likewise.
79292         * modules/pagealign_alloc: Likewise.
79293         * modules/poll: Likewise.
79294         * modules/printf-frexp: Likewise.
79295         * modules/pthread: Likewise.
79296         * modules/putenv: Likewise.
79297         * modules/random_r: Likewise.
79298         * modules/relocatable-prog: Likewise.
79299         * modules/search: Likewise.
79300         * modules/select: Likewise.
79301         * modules/selinux-h: Likewise.
79302         * modules/settime: Likewise.
79303         * modules/signal: Likewise.
79304         * modules/size_max: Likewise.
79305         * modules/socklen: Likewise.
79306         * modules/ssize_t: Likewise.
79307         * modules/stdarg: Likewise.
79308         * modules/stdbool: Likewise.
79309         * modules/stddef: Likewise.
79310         * modules/stdint: Likewise.
79311         * modules/stdio: Likewise.
79312         * modules/stdlib: Likewise.
79313         * modules/string: Likewise.
79314         * modules/strings: Likewise.
79315         * modules/sys_file: Likewise.
79316         * modules/sys_ioctl: Likewise.
79317         * modules/sys_select: Likewise.
79318         * modules/sys_socket: Likewise.
79319         * modules/sys_stat: Likewise.
79320         * modules/sys_time: Likewise.
79321         * modules/sys_times: Likewise.
79322         * modules/sys_utsname: Likewise.
79323         * modules/sys_wait: Likewise.
79324         * modules/sysexits: Likewise.
79325         * modules/time: Likewise.
79326         * modules/times: Likewise.
79327         * modules/tmpfile: Likewise.
79328         * modules/trim: Likewise.
79329         * modules/unistd: Likewise.
79330         * modules/wchar: Likewise.
79331         * modules/wctype: Likewise.
79333 2009-09-17  Bruno Haible  <bruno@clisp.org>
79335         Make getdate.y compile on QNX and NetBSD 5 / i386.
79336         * m4/getdate.m4 (gl_GETDATE): Conditionally define
79337         TIME_T_FITS_IN_LONG_INT.
79338         * lib/getdate.y (long_time_t): New type.
79339         (relative_time): Change type of 'seconds' field to long_time_t.
79340         (get_date): Update types of local variables. Check against overflow
79341         during conversion from long_time_t to time_t.
79342         Reported by Matt Kraai <kraai@ftbfs.org>
79343         and Hasso Tepper <hasso@netbsd.org>.
79345 2009-09-17  Bruno Haible  <bruno@clisp.org>
79347         * modules/COPYING: Update copyright years.
79348         * modules/README: Likeiwse.
79349         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
79350         Reported by Ian Beckwith <ianb@erislabs.net>.
79352 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
79354         * users.txt: Update references for gnuit package.
79356 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
79358         * m4/getdelim.m4: Fix typo in copyright line.
79360 2009-09-17  Bruno Haible  <bruno@clisp.org>
79362         * lib/atoll.c: Use the standard header with GPL copyright.
79363         * lib/argz.in.h: Likewise.
79364         * lib/glob.c: Likewise.
79365         * lib/glob-libc.h: Likewise.
79366         * lib/random_r.c: Likewise.
79367         * lib/siglist.h: Likewise.
79368         * lib/strsignal.c: Likewise.
79369         Reported by Ian Beckwith <ianb@erislabs.net>.
79371 2009-09-17  Eric Blake  <ebb9@byu.net>
79373         rmdir: ensure correct dependency order
79374         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
79376 2009-09-17  Bruno Haible  <bruno@clisp.org>
79378         Disable assertion that fails on NetBSD 5 / i386.
79379         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
79380         Reported by Sam Steingold <sds@gnu.org>
79381         and Hasso Tepper <hasso@netbsd.org>.
79383 2009-09-16  Eric Blake  <ebb9@byu.net>
79385         unlinkdir: port to mingw
79386         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
79387         on which no one can unlink a directory.
79389         stdlib: sort witness names
79390         * modules/stdlib (Makefile.am): Sort replacements.
79391         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
79392         * lib/stdlib.in.h: Likewise.
79394         parse-duration-tests: avoid link failure
79395         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
79396         LIBINTL.
79397         Reported by Tom G. Christensen.
79399         openat-tests: ensure unlinkat behaves like rmdir
79400         * tests/test-rmdir.c (main): Factor guts...
79401         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
79402         * modules/rmdir-tests (Files): Ship new file.
79403         * modules/openat-tests: New test.
79404         * tests/test-unlinkat.c: Likewise.
79406         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
79407         * modules/rmdir-errno (Status, Notice): Now obsolete.
79409         rmdir: work around cygwin 1.5.x and mingw bugs
79410         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
79411         * lib/rmdir.c (rmdir): Work around it.
79412         * modules/rmdir (Status, Notice): No longer obsolete.
79413         (Files): Add dos.m4.
79414         (Depends-on): Add unistd.
79415         (configure.ac): Set witnesses.
79416         (License): Relax to LGPLv2+.
79417         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
79418         * modules/unistd (Makefile.am): Substitute witnesses.
79419         * lib/unistd.in.h (rmdir): Declare replacement.
79420         * doc/posix-functions/rmdir.texi (rmdir): Document this.
79421         * modules/rmdir-tests: New tests.
79422         * tests/test-rmdir.c: Likewise.
79424 2009-09-15  Eric Blake  <ebb9@byu.net>
79426         fchdir: improve use of replacement functions
79427         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
79428         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
79429         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
79430         REPLACE_CLOSEDIR.
79431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
79432         * modules/sys_stat (Makefile.am): Substitute correct witness.
79433         * modules/dirent (Makefile.am): Likewise.
79434         * modules/unistd (Makefile.am): Likewise.
79435         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
79436         * lib/unistd.in.h (dup): Likewise.
79437         * lib/sys_stat.in.h (fstat): Likewise.
79439         maint: ignore gnulib-tool temp files
79440         * .gitignore: Ignore files created during gnulib-tool --test.
79442 2009-09-13  Jim Meyering  <meyering@redhat.com>
79444         posixtm: don't reject a time that specify "60" as the number of seconds
79445         * lib/posixtm.c (posixtime): The code to reject invalid dates
79446         would also reject a time specified with the .60 suffix.
79447         But POSIX allows that, in order to accommodate leap seconds.
79448         So don't reject it.
79449         (main): Adjust tests accordingly.
79450         * modules/posixtm (Depends-on): Add stpcpy.
79452 2009-09-11  Jim Meyering  <meyering@redhat.com>
79454         announce-gen: include [$release_type] in emitted Subject:
79455         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
79456         e.g., [stable] in the emitted Subject: line.
79458 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79460         Remove obsolete macros from several modules.
79461         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
79462         obsolete Autoconf macros with their modern counterparts.
79463         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
79464         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
79465         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
79466         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
79467         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
79468         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
79469         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
79470         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
79471         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
79472         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
79473         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
79474         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
79475         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
79476         * m4/sockets.m4 (gl_SOCKETS): Likewise.
79477         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
79478         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
79479         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
79480         * m4/time_r.m4 (gl_TIME_R): Likewise.
79481         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
79482         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
79483         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
79485         Fix copyright header in build-aux scripts.
79486         * build-aux/git-version-gen: Fix copyright header to match GPLv3
79487         recommendation.
79488         * build-aux/ncftpput-ftp: Likewise.
79489         * build-aux/update-copyright: Likewise.
79491 2009-09-09  Eric Blake  <ebb9@byu.net>
79493         test-link: allow Linux choice of errno
79494         * tests/test-link.c (main): Relax test for alternate error.
79496         strndup: fix improper m4 caching
79497         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
79498         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
79499         (gl_PREREQ_STRNDUP): Delete.
79500         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
79501         * modules/string (Makefile.am): Substitute it.
79502         * lib/string.in.h (strndup): Modernize prototype.
79504         getcwd: port to mingw
79505         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
79506         different from the POSIX assumptions made throughout the getcwd
79507         module; fortunately, the mingw getcwd does not need replacement.
79508         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
79509         * modules/getcwd-tests: New test.
79510         * tests/test-getcwd.c: Likewise.
79512         link: fix platform bugs
79513         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
79514         * lib/link.c (link): Work around them.  Fix related mingw bug.
79515         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
79516         * modules/unistd (Makefile.am): Substitute it.
79517         * lib/unistd.in.h (link): Declare replacement.
79518         * doc/posix-functions/link.texi (link): Document this.
79519         * modules/link (Depends-on): Add strdup-posix, sys_stat.
79521         test-link: consolidate into single C program, test more cases
79522         * tests/test-link.sh: Delete.
79523         * tests/test-link.c: Test more error conditions.  Exposes bugs on
79524         at least Cygwin and Solaris.
79525         * modules/link-tests (Files): Remove unused file.
79526         (Depends-on): Add errno, sys_stat.
79527         (Makefile.am): Simplify.
79529 2009-09-08  Bruno Haible  <bruno@clisp.org>
79531         Work around towlower, towupper bug on mingw.
79532         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
79533         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
79534         * doc/posix-functions/towlower.texi: Mention the mingw bug.
79535         * doc/posix-functions/towupper.texi: Likewise.
79536         Reported by Eric Blake.
79538 2009-09-08  Jim Meyering  <meyering@redhat.com>
79540         build: don't try to run autoheader if we don't use it
79541         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
79542         is not used in configure.ac.
79544 2009-09-08  Eric Blake  <ebb9@byu.net>
79546         euidaccess: fix compilation error
79547         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
79549         rawmemchr: relax license
79550         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
79551         okay.
79552         Reported by Jim Meyering.
79554         mkfifoat: new module
79555         * modules/mkfifoat: New file.
79556         * lib/mkfifoat.c: Likewise.
79557         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
79558         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
79559         * modules/sys_stat (Makefile.am): Use them.
79560         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
79561         * MODULES.html.sh (File system functions): Mention module.
79562         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
79563         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
79564         * modules/mkfifoat-tests: New test.
79565         * tests/test-mkfifoat.c: Likewise.
79567         strchrnul: relax license
79568         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
79569         okay.
79570         Reported by Jim Meyering.
79572 2009-09-08  Eric Blake  <ebb9@byu.net>
79574         fstatat: fix compilation on Solaris
79575         * lib/fstatat.c (includes): Add fcntl.h.
79576         Reported by Pádraig Brady.
79578 2009-09-07  Eric Blake  <ebb9@byu.net>
79580         rename: modernize replacement
79581         * modules/rename (Depends-on): Add stdio.
79582         (configure.ac): Declare witness.
79583         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
79584         stdio take care of replacement.
79585         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
79586         * modules/stdio (Makefile.am): Substitute them.
79587         * lib/stdio.in.h (rename): Declare replacement.
79588         * lib/rename.c (includes): Allow cross-compilation to non-windows
79589         machines.
79590         * doc/posix-functions/rename.texi (rename): Improve
79591         documentation.
79593         stdio: sort witness names
79594         * modules/stdio (Makefile.am): Sort replacements.
79595         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
79596         * lib/stdio.in.h: Likewise.
79598         getcwd: minor cleanups
79599         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
79600         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
79602         openat: provide more convenience names
79603         * modules/faccessat (configure.ac): Add C witness.
79604         * lib/unistd.in.h (readlinkat): Fix typo.
79605         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
79606         convenience wrappers.
79607         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
79608         wrappers in syntax checks.
79610 2009-09-06  Eric Blake  <ebb9@byu.net>
79612         doc: fix comments in recent patches
79613         * lib/faccessat.c: Mention correct function.
79614         * lib/fchmodat.c: Likewise.
79615         * lib/fchownat.c: Likewise.
79616         * lib/symlinkat.c: Likewise.
79617         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
79618         constants.
79620         faccessat, symlinkat: continue cleanup of previous patch
79621         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
79622         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
79623         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
79624         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
79625         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
79626         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
79627         set.
79629 2009-09-06  Bruno Haible  <bruno@clisp.org>
79631         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
79632         (fstatat): Declare if GNULIB_FSTATAT is set.
79633         (mkdirat): Declare if GNULIB_MKDIRAT is set.
79634         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
79635         (unlinkat): Declare if GNULIB_UNLINKAT is set.
79636         * modules/fcntl-h (Files): Remove m4/openat.m4.
79637         * modules/sys_stat (Files): Remove m4/openat.m4.
79638         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
79639         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
79640         * modules/unistd (Files): Remove m4/openat.m4.
79641         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
79642         GNULIB_OPENAT.
79643         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
79644         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
79645         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
79646         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
79647         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
79648         gl_OPENAT_DEFAULTS.
79649         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
79650         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
79651         Don't require gl_OPENAT_DEFAULTS.
79652         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
79653         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
79654         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
79655         (gl_OPENAT_DEFAULTS): Remove macro.
79657 2009-09-06  Bruno Haible  <bruno@clisp.org>
79659         * modules/openat (configure.ac): Remove unneeded witness.
79661 2009-09-06  Bruno Haible  <bruno@clisp.org>
79663         Set errno to ENOSYS when a function is entirely unsupported.
79664         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
79665         EOPNOTSUPP.
79666         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
79667         * modules/chown (Depends-on): Remove errno.
79669 2009-09-06  Bruno Haible  <bruno@clisp.org>
79671         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
79673 2009-09-06  Bruno Haible  <bruno@clisp.org>
79675         * lib/sys_stat.in.h: Fix preprocessor command indentation.
79677 2009-09-06  Ben Pfaff  <blp@gnu.org>
79678             Bruno Haible  <bruno@clisp.org>
79680         Work around a glibc bug in strtok_r.
79681         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
79682         Undefine if UNDEFINE_STRTOK_R is set.
79683         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
79684         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
79685         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
79686         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
79687         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
79688         UNDEFINE_STRTOK_R.
79689         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
79691 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
79693         exclude: minor fix
79694         * lib/exclude.c: Include wctype.h
79696 2009-09-06  Akim Demaille  <demaille@gostai.com>
79698         bootstrap: improve error message
79699         * build-aux/bootstrap (find_tool): Upon failure, report the list
79700         of candidates.
79701         Honor the initial value of the envvar.
79703 2009-09-05  Eric Blake  <ebb9@byu.net>
79705         symlinkat: new module
79706         * modules/symlinkat: New file.
79707         * lib/symlinkat.c: Likewise.
79708         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
79709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
79710         * modules/unistd (Makefile.am): Use them.
79711         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
79712         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
79713         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
79714         * MODULES.html.sh (File system functions): Mention module.
79715         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
79716         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
79717         * modules/symlinkat-tests: New test.
79718         * tests/test-symlinkat.c: Likewise.
79720         test-openat-safer: add more checks
79721         * tests/test-openat-safer.c (main): Check more code paths.
79723 2009-09-05  Jim Meyering  <meyering@redhat.com>
79725         syntax-check: detect unnecessary inclusion of openat.h
79726         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
79728 2009-09-05  Bruno Haible  <bruno@clisp.org>
79730         Support towlower, towupper.
79731         * doc/posix-functions/towlower.texi: Mention module wctype.
79732         * doc/posix-functions/towupper.texi: Likewise.
79733         * lib/wctype.in.h (towlower, towupper): New functions.
79734         * tests/test-wctype.c: Include stdio.h, stdlib.h.
79735         (ASSERT): New macro.
79736         (e): New variable.
79737         (main): Test also towlower, towupper. Test WEOF argument.
79738         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
79740 2009-09-05  Bruno Haible  <bruno@clisp.org>
79742         Fix conversion behaviour when the input is invalid.
79743         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
79744         mark occurring in first pass of indirect conversion.
79745         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
79746         input.
79747         Found by clang's static analyzer.
79749 2009-09-05  Bruno Haible  <bruno@clisp.org>
79751         * tests/test-striconveh.c (main): Test indirect conversion on platforms
79752         where direct conversion is possible.
79754 2009-09-04  Eric Blake  <ebb9@byu.net>
79756         openat: fail with ENOENT on empty name
79757         * lib/openat-proc.c (openat_proc_name): Special-case the empty
79758         buffer.
79760         link-follow: fix logic bug in prior patch
79761         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
79762         reversed sense of yes and no in prior patch.  Avoid confusing
79763         compilation failure with desired semantics.
79765         link-follow: accommodate mingw and cross-compilation
79766         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
79767         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
79768         cross-compilation results to -1, to make linkat easier to
79769         implement when cross-compiling.  Trivially support mingw.
79770         * modules/link-follow (configure.ac): Call new name.
79771         * NEWS: Mention this.
79773 2009-09-03  Eric Blake  <ebb9@byu.net>
79775         faccessat: compile replacement
79776         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
79777         needed.
79779         fts: fix compilation error
79780         * lib/fts.c (includes): Re-add "openat.h", for
79781         openat_needs_fchdir.
79783         faccessat: new module
79784         * modules/faccessat: New file.
79785         * lib/faccessat.c: Likewise.
79786         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
79787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
79788         * modules/unistd (Makefile.am): Use it.
79789         * lib/unistd.in.h (faccessat): Declare it.
79790         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
79791         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
79792         * MODULES.html.sh (File system functions): Mention it.
79793         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
79794         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
79796         euidaccess: prefer POSIX over non-standard implementation
79797         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
79798         * lib/euidaccess.c (euidaccess): Use it if available.
79800         openat: make template easier to use
79801         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
79802         AT_FUNC_F2 to be undefined.
79803         (VALIDATE_FLAG): New macro; use it to reject bad flags.
79804         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
79805         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
79806         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
79807         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
79808         Likewise.
79809         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
79810         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
79811         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
79812         Likewise.
79814         openat: declare in POSIX headers
79815         * NEWS: Mention this.
79816         * modules/openat (configure.ac): Declare witnesses.
79817         (Depends-on): Add fcntl-h, sys_stat, unistd.
79818         (Include): Mention correct headers.
79819         * modules/fcntl-h (Depends-on): Add link-warning.
79820         (Files): Add openat.m4.
79821         (Makefile.am): Substitute witnesses.
79822         * modules/sys_stat (Files, Makefile.am): Likewise.
79823         * modules/unistd (Files, Makefile.am): Likewise.
79824         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
79825         (gl_OPENAT_DEFAULTS): New macro.
79826         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
79827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
79828         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
79829         (SYS_STAT_H): Remove unused variable.
79830         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
79831         * lib/fcntl--.h (includes): Remove unneeded header.
79832         * lib/openat-safer.c (includes): Likewise.
79833         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
79834         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
79835         appropriate headers.
79836         (__OPENAT_PREFIX): Delete.
79837         * lib/fcntl.in.h (openat): Provide declaration.
79838         (AT_FDCWD): Fix Solaris bug.
79839         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
79840         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
79841         * lib/fchmodat.c (includes):  Adjust to find declaration.
79842         * lib/fchownat.c (includes): Likewise.
79843         * lib/mkdirat.c (includes): Likewise.
79844         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
79845         still visible.
79847 2009-09-02  Eric Blake  <ebb9@byu.net>
79849         errno: use consistently
79850         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
79851         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
79852         * lib/canonicalize.c (ELOOP): Likewise.
79853         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
79854         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
79855         * lib/lchown.c (EOPNOTSUPP): Likewise.
79856         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
79857         * lib/savewd.c (ESTALE): Likewise.
79858         * lib/settime.c (ENOSYS): Likewise.
79859         * lib/utimens.c (ENOSYS): Likewise.
79860         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
79861         * lib/chdir-safer.c (ELOOP): Likewise.
79862         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
79863         * modules/c-stack (Depends-on): Add errno.
79864         * modules/canonicalize (Depends-on): Likewise.
79865         * modules/chdir-safer (Depends-on): Likewise.
79866         * modules/fdopendir (Depends-on): Likewise.
79867         * modules/inet_ntop (Depends-on): Likewise.
79868         * modules/inet_pton (Depends-on): Likewise.
79869         * modules/lchown (Depends-on): Likewise.
79870         * modules/openat (Depends-on): Likewise.
79871         * modules/savewd (Depends-on): Likewise.
79872         * modules/settime (Depends-on): Likewise.
79873         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
79875         fts: avoid leaking fds
79876         * modules/fts (Depends-on): Add cloexec.
79877         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
79878         flag.
79880         fts: make directory fds more robust
79881         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
79882         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
79884         backupfile, chdir-long, fts, savedir: make safer
79885         * lib/backupfile.c (includes): Use "dirent--.h", since
79886         numbered_backup can write to stderr during readdir.
79887         * lib/savedir.c (includes): Likewise.
79888         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
79889         emulation can write to stderr on failure.
79890         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
79891         * lib/getcwd.c: Document why opendir_safer is unused.
79892         * lib/glob.c: Likewise.
79893         * lib/scandir.c: Likewise.
79894         * lib/openat-proc.c: Likewise, for open_safer.
79895         * modules/backupfile (Depends-on): Add dirent-safer.
79896         * modules/savedir (Depends-on): Likewise.
79897         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
79898         * modules/chdir-long (Depends-on): Add openat-safer.
79900         openat-safer: new module
79901         * modules/openat-safer: New file.
79902         * lib/openat-safer.c: Likewise.
79903         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
79904         * lib/fcntl-safer.h (openat_safer): Declare.
79905         * lib/fcntl--.h (openat): Override.
79906         * MODULES.html.sh (File descriptor based I/O): Mention it.
79907         * lib/openat.h: Add double-inclusion guards.
79908         * lib/openat.c (includes): Only include "fcntl-safer.h", not
79909         "fcntl--.h", so we can implement openat.
79910         * modules/openat-safer-tests: New test.
79911         * tests/test-openat-safer.c: New file.
79913         dirent-safer: new module
79914         * modules/dirent-safer: New file.
79915         * lib/dirent--.h: Likewise.
79916         * lib/dirent-safer.h: Likewise.
79917         * lib/opendir-safer.c: Likewise.
79918         * m4/dirent-safer.m4: Likewise.
79919         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
79920         * modules/dirent-safer-tests: New test.
79921         * tests/test-dirent-safer.c: New file.
79922         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
79924         fdopendir: optimize on mingw
79925         * lib/unistd.in.h (_gl_directory_name): New prototype.
79926         * lib/fchdir.c (_gl_directory_name): Implement it.
79927         (fchdir): Use it to simplify implementation.
79928         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
79929         fchdir, when available, to avoid calling [f]chdir().
79931         fdopendir: split into its own module
79932         * lib/openat.c (fdopendir): Move...
79933         * lib/fdopendir.c: ...into new file.
79934         * modules/fdopendir: New module.
79935         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
79936         * modules/openat (Depends-on): Add fdopendir.
79937         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
79938         fdopendir here.
79939         * modules/savedir (Depends-on): Only need fdopendir, not full
79940         openat.
79941         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
79942         * lib/openat.h (fdopendir): Drop prototype.
79943         * lib/dirent.in.h (fdopendir): Provide prototype.
79944         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
79945         * modules/dirent (Makefile.am): Substitute them.
79946         * MODULES.html.sh (File system functions): Mention it.
79947         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
79948         * modules/fdopendir-tests: New file.
79949         * tests/test-fdopendir.c: Likewise.
79951         fchdir: use more consistent macro convention
79952         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
79953         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
79954         REPLACE_FCHDIR, rather than relying on config.h macros.
79955         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
79956         inside a single make-time REPLACE_FCHDIR block, rather than using
79957         the config.h FCHDIR_REPLACEMENT.
79958         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
79959         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
79960         Manage fstat replacement.
79961         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
79962         REPLACE_FCHDIR.
79963         * modules/sys_stat (Files): Add m4/unistd_h.m4.
79964         (Makefile.am): Substitute REPLACE_FCHDIR.
79965         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
79966         FCHDIR_REPLACEMENT.
79967         * lib/dup-safer.c (dup_safer): Likewise.
79968         * lib/dup2.c (rpl_dup2): Likewise.
79969         * lib/dup3.c (rpl_dup3): Likewise.
79970         * lib/open.c (rpl_open): Likewise.
79972         fchdir: simplify error handling, and support dup3
79973         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
79974         stdbool, malloc-posix, realloc-posix.
79975         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
79976         (ensure_dirs_slot): Return false on allocation failure.
79977         (rpl_dup2): Delete.
79978         (_gl_register_dup): New function.
79979         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
79980         (_gl_register_fd): Close fd on allocation failure.
79981         * lib/fcntl.in.h (_gl_register_fd): Update signature.
79982         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
79983         prototype.
79984         (rpl_dup2_fchdir): Delete prototype.
79985         * lib/open.c (open): Update caller.
79986         * lib/dup2.c (dup2): Track fchdir metadata.
79987         * lib/dup3.c (dup3): Likewise.
79988         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
79989         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
79991 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79993         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
79994         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
79995         don't pass arguments to AC_OUTPUT.
79997 2009-09-02  Bruno Haible  <bruno@clisp.org>
79999         * modules/mkdtemp (License): Relicense under LGPLv2+.
80000         Reported by Paolo Bonzini.
80002 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80004         Replace uses of obsolete autoconf macros in Jim's modules.
80005         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
80006         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
80007         can evoke a warning from autoconf when run with -Wobsolete
80008         enabled.  They were declared obsolete for good reasons (see
80009         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
80010         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
80011         should not continue using the deprecated macros.
80012         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
80013         obsolete Autoconf macros with modern counterparts.
80014         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
80015         * m4/dos.m4 (gl_AC_DOS): Likewise.
80016         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
80017         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
80018         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
80019         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
80020         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
80021         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
80022         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
80023         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
80024         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
80025         Likewise.
80026         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
80027         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
80028         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
80029         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
80030         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
80031         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
80033 2009-09-01  Eric Blake  <ebb9@byu.net>
80035         fchdir: fix off-by-one bug in previous patch
80036         * lib/fchdir.c (rpl_fstat): Use correct bounds.
80037         (_gl_unregister_fd): Delete useless if.
80039 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
80041         maint.mk: sort the list of syntax-check rules
80042         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
80043         easier to get a sense of progress when the rules are run sequentially
80044         and take a long time.
80046 2009-09-01  Simon Josefsson  <simon@josefsson.org>
80048         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
80049         * modules/netinet_in: Likewise.
80050         * modules/sys_file: Likewise.
80051         * modules/sys_ioctl: Likewise.
80052         * modules/sys_select: Likewise.
80053         * modules/sys_socket: Likewise.
80054         * modules/sys_stat: Likewise.
80055         * modules/sys_time: Likewise.
80056         * modules/sys_times: Likewise.
80057         * modules/sys_utsname: Likewise.
80058         * modules/sys_wait: Likewise.
80060 2009-09-01  Jim Meyering  <meyering@redhat.com>
80062         fts: help ensure that return values are not ignored
80063         * lib/fts_.h (__GNUC_PREREQ): Define.
80064         (__attribute_warn_unused_result__): Define.
80065         (fts_children, fts_close, fts_open, fts_read): Declare with
80066         __attribute_warn_unused_result__.
80068         fts: fts_close now fails also when closing a dir file descriptor fails
80069         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
80070         and propagate to caller, along with errno.
80072         announce-gen: correct formatting in --help output
80073         * build-aux/announce-gen (usage): Move the one-line description in
80074         --help output "up", to where it belongs, just after Usage:.
80076 2009-08-31  Eric Blake  <ebb9@byu.net>
80078         fchdir: port to mingw
80079         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
80080         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
80081         opened, then use a substitute.
80082         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
80083         replacement.
80084         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
80085         (_gl_register_fd): No need to check stat if open already filters
80086         all directories.
80087         (fchdir): Fix error condition to match POSIX.
80088         * modules/fchdir (Depends-on): Add sys_stat.
80089         * doc/posix-functions/open.texi (open): Document the limitation.
80090         * modules/fchdir-tests: New file.
80091         * tests/test-fchdir.c: Likewise.
80093         canonicalize: allow cross-testing from cygwin to mingw
80094         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
80095         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
80096         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
80097         Likewise.
80098         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
80099         target does not support symlinks.
80100         * tests/test-canonicalize-lgpl.sh: Likewise.
80102         chown: avoid compilation warning on mingw
80103         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
80104         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
80105         mingw.
80106         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
80107         * modules/chown (Depends-on): Add errno.
80109 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
80111         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
80112         command.
80114 2009-08-31  Jim Meyering  <meyering@redhat.com>
80116         canonicalize: remove useless initialization
80117         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
80118         initialization of local, "end".
80120 2009-08-30  Bruno Haible  <bruno@clisp.org>
80122         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
80123         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
80124         ENOSYS.
80126 2009-08-30  Bruno Haible  <bruno@clisp.org>
80128         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
80129         /usr/xpg4/bin/tr when it exists.
80130         * tests/test-pipe-filter-gi1.sh: Likewise.
80132 2009-08-30  Bruno Haible  <bruno@clisp.org>
80134         Work around deficient /usr/bin/id program on Solaris.
80135         * tests/test-file-has-acl.sh (ID): New variable.
80136         * tests/test-set-mode-acl.sh (ID): Likewise.
80137         * tests/test-copy-acl.sh (ID): Likewise.
80138         * tests/test-copy-file.sh (ID): Likewise.
80140 2009-08-30  Bruno Haible  <bruno@clisp.org>
80142         New module 'xstriconveh'.
80143         * lib/xstriconveh.h: New file.
80144         * lib/xstriconveh.c: New file.
80145         * modules/xstriconveh: New file.
80147 2009-08-30  Bruno Haible  <bruno@clisp.org>
80149         Make it easier to use mem_cd_iconveh.
80150         * lib/striconveh.h (iconveh_t): New type.
80151         (iconveh_open, iconveh_close): New declarations.
80152         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
80153         with a single 'const iconveh_t *' argument.
80154         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
80155         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
80156         with a single 'const iconveh_t *' argument.
80157         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
80158         * tests/test-striconveh.c (main): Update.
80159         * NEWS: Mention the change.
80161 2009-08-30  Bruno Haible  <bruno@clisp.org>
80163         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
80164         problem.
80166 2009-08-30  Bruno Haible  <bruno@clisp.org>
80168         Work around iconv_open problem on Solaris.
80169         * lib/iconv_open-solaris.gperf: New file.
80170         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
80171         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
80172         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
80173         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
80174         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
80175         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
80177 2009-08-29  Jim Meyering  <meyering@redhat.com>
80179         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
80180         * top/maint.mk (cvs-check): Remove target; it was just an alias
80181         to the better-named vc-diff-check.
80182         (maintainer-distcheck): Remove rule.  It was used only from
80183         the (alpha/beta/major) target, and all of its commands but one
80184         were coreutils-specific.
80185         (vc-dist): Remove rule.
80186         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
80187         Run vc-diff-check, not vc-dist.
80188         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
80190 2009-08-27  Bruno Haible  <bruno@clisp.org>
80192         * tests/test-bitrotate.c (main): Remove test that uses a shift count
80193         of 0.
80195 2009-08-27  Bruno Haible  <bruno@clisp.org>
80197         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
80198         compilers.
80199         * doc/func.texi: Document the SunPRO C bug.
80201 2009-08-27  Bruno Haible  <bruno@clisp.org>
80203         Fix link error on Solaris.
80204         * tests/test-parse-duration.c (xstrdup): Remove function.
80206 2009-08-26  Pádraig Brady  <P@draigbrady.com>
80208         ignore-value: handle pointer types, too
80209         * lib/ignore-value.h (__attribute__): Remove definition.
80210         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
80211         of a more concise and more-often effective "(void) i" statement.
80212         (ignore_ptr): New function to suppress warnings from functions that
80213         return pointers, and to make it explicit that one function doesn't
80214         handle all cases.
80216 2009-08-25  Bruno Haible  <bruno@clisp.org>
80218         dup2: work around a Linux bug.
80219         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
80220         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
80221         * doc/posix-functions/dup2.texi: Mention the Linux bug.
80222         Reported by Simon Josefsson.
80224 2009-08-25  Jim Meyering  <meyering@redhat.com>
80226         libguestfs uses gnulib
80227         * users.txt: Add libguestfs.
80229 2009-08-24  Eric Blake  <ebb9@byu.net>
80231         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
80232         * lib/pipe2.c (includes): Add binary-io.h.
80233         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
80235 2009-08-24  Bruno Haible  <bruno@clisp.org>
80237         Tolerate declared but missing accept4 syscall.
80238         * lib/accept4.c (accept4): Invoke original accept4 function first, if
80239         available.
80240         * lib/sys_socket.in.h (accept4): If the function is already present,
80241         override it.
80242         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
80243         * modules/accept4 (Makefile.am): Compile accept4.c always.
80244         Reported by Paolo Bonzini and Eric Blake.
80246 2009-08-23  Bruno Haible  <bruno@clisp.org>
80248         New module 'accept4'.
80249         * lib/sys_socket.in.h (accept4): New declaration.
80250         * lib/accept4.c: New file.
80251         * m4/accept4.m4: New file.
80252         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
80253         GNULIB_ACCEPT4, HAVE_ACCEPT4.
80254         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
80255         HAVE_ACCEPT4.
80256         * modules/accept4: New file.
80257         * doc/glibc-functions/accept4.texi: Mention the new module.
80259 2009-08-24  Jim Meyering  <meyering@redhat.com>
80261         progname: also set global program_invocation_name, when possible
80262         Before this change, a libtool-enabled program that calls glibc's
80263         error function would report the program name as
80264         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
80265         * modules/progname (configure.ac): Check for a declaration of
80266         program_invocation_name.
80267         * lib/progname.c:  Include <errno.h>.
80268         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
80269         Set program_invocation_name.
80271 2009-08-23  Bruno Haible  <bruno@clisp.org>
80273         * lib/dup3.c: Include <string.h>.
80275 2009-08-23  Bruno Haible  <bruno@clisp.org>
80277         * lib/dup3.c (dup3): Test only once whether the system actually exists.
80278         * lib/pipe2.c (pipe2): Likewise.
80279         Suggested by Eric Blake.
80281 2009-08-23  Bruno Haible  <bruno@clisp.org>
80283         Tolerate declared but missing dup3 syscall.
80284         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
80285         * lib/unistd.in.h (dup3): If the function is already present,
80286         override it.
80287         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
80288         * modules/dup3 (Makefile.am): Compile dup3.c always.
80289         Reported by Paolo Bonzini.
80291 2009-08-23  Bruno Haible  <bruno@clisp.org>
80293         Tolerate declared but missing pipe2 syscall.
80294         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
80295         available.
80296         * lib/unistd.in.h (pipe2): If the function is already present,
80297         override it.
80298         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
80299         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
80300         Reported by Paolo Bonzini.
80302 2009-08-23  Bruno Haible  <bruno@clisp.org>
80304         * lib/pipe2.c (pipe2): Move #ifs inside function.
80306 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
80308         quotearg: document limitations of quote_these_too
80309         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
80310         those limitations are created.
80311         * lib/quotearg.h (set_char_quoting): Document that digits and
80312         letters that are special after backslash are not permitted.
80313         (quotearg_char): Cross-reference set_char_quoting documentation.
80315 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
80317         quotearg: implement custom_quoting_style
80318         * lib/quotearg.c: (struct quoting_options): Add left_quote and
80319         right_quote fields.
80320         (set_custom_quoting): New public function.
80321         (quotearg_buffer_restyled): Add left_quote and right_quote
80322         arguments, handle them very much like locale quoting, and update
80323         all uses.
80324         (quotearg_n_custom): New public function.
80325         (quotearg_n_custom_mem): New public function.
80326         (quotearg_custom): New public function.
80327         (quotearg_custom_mem): New public function.
80328         * lib/quotearg.h: Prototype and document new public functions.
80329         (enum quoting_style): For escape_quoting_style and
80330         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
80331         ignored even though they're otherwise like c_quoting_style.
80332         Add custom_quoting_style member and document with comparison to
80333         clocale_quoting_style.
80334         * tests/test-quotearg.c (custom_quotes): New array.
80335         (custom_results): New array.
80336         (main): Extend to test custom quoting.
80338 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
80340         quotearg: fix right quote escaping when it's in quote_these_too
80341         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
80342         quote, be sure to prepend only one backslash.
80343         * tests/test-quotearg.c (use_quote_double_quotes): New function.
80344         (main): Test it.
80346 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
80348         quotearg-tests: test escaping of embedded locale quotes
80349         * tests/test-quotearg.c (struct result_strings): Add member for
80350         new input.
80351         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
80352         (inputs): Add new input.
80353         (results_g): Add expected results.
80354         (flag_results): Likewise.
80355         (locale_results): Likewise.
80356         (compare_strings): Check those.
80358 2009-08-23  Bruno Haible  <bruno@clisp.org>
80360         Tests for module 'dup3'.
80361         * modules/dup3-tests: New file.
80362         * tests/test-dup3.c: New file.
80364         New module 'dup3'.
80365         * lib/unistd.in.h (dup3): New declaration.
80366         * lib/dup3.c: New file.
80367         * m4/dup3.m4: New file.
80368         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
80369         HAVE_DUP3.
80370         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
80371         * modules/dup3: New file.
80372         * doc/glibc-functions/dup3.texi: Mention the new module.
80374 2009-08-23  Bruno Haible  <bruno@clisp.org>
80376         Tweak the dup2 test.
80377         * tests/test-dup2.c (main): Create the test file empty. Verify that an
80378         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
80379         the test file is still empty. Fix argument order of lseek.
80381 2009-08-23  Bruno Haible  <bruno@clisp.org>
80383         Avoid test link errors when the modules getopt-gnu, gettext are used.
80384         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
80385         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
80387 2009-08-23  Bruno Haible  <bruno@clisp.org>
80389         Fix getdtablesize() on mingw.
80390         * lib/getdtablesize.c (getdtablesize): Implement differently.
80391         * lib/unistd.in.h (getdtablesize): Improve comment.
80393 2009-08-23  Bruno Haible  <bruno@clisp.org>
80395         New module 'mkostemp'.
80396         Based on Ulrich Drepper's 2007-08-10 change in glibc.
80397         * lib/stdlib.in.h (mksotemp): New declaration.
80398         * lib/mkostemp.c: New file, from glibc with modifications.
80399         * lib/tempname.h (GT_FILE): Remove outdated comment.
80400         (gen_tempname): Add flags argument.
80401         * lib/tempname.c (__GT_BIGFILE): Remove macro.
80402         (__GT_FILE): Map to 1.
80403         (small_open, large_open): Remove macros.
80404         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
80405         * lib/mkstemp.c (mkstemp): Update.
80406         * lib/mkdtemp.c (mkdtemp): Likewise.
80407         * m4/mkostemp.m4: New file.
80408         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
80409         HAVE_MKOSTEMP.
80410         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
80411         HAVE_MKOSTEMP.
80412         * modules/mkostemp: New file, based on modules/mkstemp.
80413         * doc/glibc-functions/mkostemp.texi: Mention the new module.
80414         * NEWS: Mention the change.
80416 2009-08-23  Bruno Haible  <bruno@clisp.org>
80418         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
80419         Reported by Eric Blake.
80421 2009-08-23  Bruno Haible  <bruno@clisp.org>
80423         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
80424         Reported by Eric Blake.
80426 2009-08-23  Bruno Haible  <bruno@clisp.org>
80428         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
80429         * modules/pipe2 (Depends-on): Likewise.
80431 2009-08-23  Eric Blake  <ebb9@byu.net>
80433         fcntl-h: add O_TTY_INIT support
80434         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
80435         * tests/test-fcntl-h.c (o): Test it.
80436         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
80438         fcntl-h: rename from fcntl, in preparation for fcntl(2)
80439         * modules/fcntl: Move <fcntl.h> header replacement...
80440         * modules/fcntl-h: ...to new name, so as not to collide with
80441         like-named function.
80442         * tests/test-fcntl.c: Rename...
80443         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
80444         * modules/fcntl-tests: Rename...
80445         * modules/fcntl-h-tests: ...to this.  Update test file name.
80446         * modules/chdir-long (Depends-on): Update clients.
80447         * modules/chdir-safer (Depends-on): Likewise.
80448         * modules/fcntl-safer (Depends-on): Likewise.
80449         * modules/fts (Depends-on): Likewise.
80450         * modules/mkancesdirs (Depends-on): Likewise.
80451         * modules/mkdir-p (Depends-on): Likewise.
80452         * modules/open (Depends-on): Likewise.
80453         * modules/savewd (Depends-on): Likewise.
80454         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
80455         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
80457 2009-08-22  Bruno Haible  <bruno@clisp.org>
80459         * modules/binary-io (License): Relicense under LGPL.
80460         * modules/pipe2 (License): Likewise.
80462 2009-08-22  Bruno Haible  <bruno@clisp.org>
80464         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
80465         return value.
80466         * lib/pipe-filter-gi.c (filter_init): Likewise.
80467         Reported by Eric Blake.
80469 2009-08-22  Bruno Haible  <bruno@clisp.org>
80471         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
80472         * modules/pipe (Depends-on): Add pipe2.
80474 2009-08-22  Bruno Haible  <bruno@clisp.org>
80476         Tests for module 'pipe2'.
80477         * modules/pipe2-tests: New file.
80478         * tests/test-pipe2.c: New file.
80480         New module 'pipe2'.
80481         * lib/unistd.in.h (pipe2): New declaration.
80482         * lib/pipe2.c: New file.
80483         * m4/pipe2.m4: New file.
80484         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
80485         HAVE_PIPE2.
80486         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
80487         * modules/pipe2: New file.
80488         * doc/glibc-functions/pipe2.texi: Mention the new module.
80490 2009-08-22  Bruno Haible  <bruno@clisp.org>
80492         Reference some new glibc functions.
80493         * doc/glibc-functions/accept4.texi: New file.
80494         * doc/glibc-functions/dup3.texi: New file.
80495         * doc/glibc-functions/mkostemp.texi: New file.
80496         * doc/glibc-functions/pipe2.texi: New file.
80497         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
80498         (Glibc sys/socket.h): Refer to accept4.
80499         (Glibc unistd.h): Refer to dup3, pipe2.
80500         Reported by Eric Blake.
80502 2009-08-22  Jim Meyering  <meyering@redhat.com>
80503             Bruno Haible  <bruno@clisp.org>
80505         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
80506         This makes it so packages using automake-1.11's silent-rules option
80507         can print e.g., a single "GEN    configmake.h" line, rather than
80508         the 30+ statements that perform the job.  If you want to see the
80509         actual commands, you can still run "make V=1".
80510         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
80511         so that make output is abbreviated when those variables are defined
80512         appropriately.
80513         * modules/argz: Likewise.
80514         * modules/arpa_inet: Likewise.
80515         * modules/byteswap: Likewise.
80516         * modules/configmake: Likewise.
80517         * modules/dirent: Likewise.
80518         * modules/errno: Likewise.
80519         * modules/fcntl: Likewise.
80520         * modules/float: Likewise.
80521         * modules/fnmatch: Likewise.
80522         * modules/getopt-posix: Likewise.
80523         * modules/glob: Likewise.
80524         * modules/iconv_open: Likewise.
80525         * modules/inttypes: Likewise.
80526         * modules/localcharset: Likewise.
80527         * modules/locale: Likewise.
80528         * modules/math: Likewise.
80529         * modules/netdb: Likewise.
80530         * modules/netinet_in: Likewise.
80531         * modules/poll: Likewise.
80532         * modules/posix_spawnp-tests: Likewise.
80533         * modules/sched: Likewise.
80534         * modules/search: Likewise.
80535         * modules/selinux-h: Likewise.
80536         * modules/signal: Likewise.
80537         * modules/spawn: Likewise.
80538         * modules/stdarg: Likewise.
80539         * modules/stdbool: Likewise.
80540         * modules/stddef: Likewise.
80541         * modules/stdint: Likewise.
80542         * modules/stdio: Likewise.
80543         * modules/stdlib: Likewise.
80544         * modules/string: Likewise.
80545         * modules/strings: Likewise.
80546         * modules/sys_file: Likewise.
80547         * modules/sys_ioctl: Likewise.
80548         * modules/sys_select: Likewise.
80549         * modules/sys_socket: Likewise.
80550         * modules/sys_stat: Likewise.
80551         * modules/sys_time: Likewise.
80552         * modules/sys_times: Likewise.
80553         * modules/sys_utsname: Likewise.
80554         * modules/sys_wait: Likewise.
80555         * modules/sysexits: Likewise.
80556         * modules/time: Likewise.
80557         * modules/unistd: Likewise.
80558         * modules/wchar: Likewise.
80559         * modules/wctype: Likewise.
80561 2009-08-22  Jim Meyering  <meyering@redhat.com>
80563         announce-gen: detect write failure
80564         * build-aux/announce-gen: Add Coda at end.
80565         Remove equivalent-but-more-verbose block at top.
80567 2009-08-19  Akim Demaille  <demaille@gostai.com>
80569         bootstrap: --help to stdout.
80570         * bootstrap (usage): Don't send --help to stderr.
80571         Use a here doc instead of a long string.
80573 2009-08-21  Eric Blake  <ebb9@byu.net>
80575         test-popen-safer: split from test-popen
80576         * tests/test-popen.c (main): Move...
80577         * tests/test-popen.h: ...into new file.
80578         * tests/test-popen-safer2.c: New file.
80579         * modules/popen-tests (Files): Add test-popen.h.
80580         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
80581         Suggested by Bruno Haible.
80583         test-fcntl-safer: split from test-open
80584         * tests/test-open.c (main): Move...
80585         * tests/test-open.h: ...into new file.
80586         * tests/test-fcntl-safer.c: New file.
80587         * modules/open-tests (Files): Add test-open.h.
80588         * modules/fcntl-safer-tests: New file.
80589         Suggested by Bruno Haible.
80591         test-fopen-safer: split from test-fopen
80592         * tests/test-fopen.c (main): Move...
80593         * tests/test-fopen.h: ...into new file.
80594         * tests/test-fopen-safer.c: New file.
80595         * modules/fopen-tests (Files): Add test-fopen.h.
80596         * modules/fopen-safer-tests: New file.
80597         Suggested by Bruno Haible.
80599 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
80601         popen-safer: test O_CLOEXEC at run-time.
80602         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
80604 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
80606         fcntl: move more flags to the header
80607         * lib/cloexec.c: Do not define FD_CLOEXEC here.
80608         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
80609         * lib/fcntl.in.h: Do both things here.
80611 2009-08-21  Jim Meyering  <meyering@redhat.com>
80613         consistently remove $@-t before redirecting to it
80614         * modules/argz: Remove $@-t and $@ before redirecting to the former.
80615         * modules/alloca-opt: Likewise.
80616         * modules/byteswap: Likewise.
80617         * modules/fnmatch: Likewise.
80618         * modules/getopt-posix: Likewise.
80619         * modules/glob: Likewise.
80620         * modules/poll: Likewise.
80621         * modules/posix_spawnp-tests: Likewise.
80622         * modules/sys_socket: Likewise.
80623         * modules/sysexits: Likewise.
80625 2009-08-21  Eric Blake  <ebb9@byu.net>
80627         popen: simplify access to original popen
80628         * lib/popen.c (rpl_popen): No need to worry about popen being a
80629         macro.
80630         Reported by Bruno Haible.
80632 2009-08-20  Eric Blake  <ebb9@byu.net>
80634         build: avoid some compiler warnings
80635         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
80636         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
80637         type.
80638         (new_exclude_segment, excluded_file_pattern_p)
80639         (excluded_file_name_p): Reduce scope.
80640         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
80641         old-style declaration.
80643 2009-08-20  Simon Josefsson  <simon@josefsson.org>
80645         * tests/test-exclude1.sh: Handle Windows EOL.
80646         * tests/test-exclude2.sh: Likewise.
80647         * tests/test-exclude3.sh: Likewise.
80648         * tests/test-exclude4.sh: Likewise.
80649         * tests/test-exclude5.sh: Likewise.
80650         * tests/test-exclude6.sh: Likewise.
80651         * tests/test-exclude7.sh: Likewise.
80653 2009-08-19  Akim Demaille  <demaille@gostai.com>
80655         bootstrap: find sha1sum when named gsha1sum.
80656         * bootstrap (find_tool): New.
80657         ($SHA1SUM): New.
80658         Use it.
80660 2009-08-20  Jim Meyering  <meyering@redhat.com>
80662         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
80663         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
80664         expression that converts "." in a file name to "\." in the resulting
80665         regexp.  Start with a dummy statement, so that prior shell variable
80666         definitions are expanded portably.  Reported by Simon Josefsson.
80668 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
80670         Fix polling for writeability of a screen buffer.
80671         * lib/poll.c: Distinguish input and screen buffers for the
80672         Win32 implementation.
80673         * lib/select.c: Likewise.
80675 2009-08-19  Eric Blake  <ebb9@byu.net>
80677         popen-safer: prevent popen from clobbering std descriptors
80678         * modules/popen-safer: New file.
80679         * lib/popen-safer.c: Likewise.
80680         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
80681         * lib/stdio--.h (popen): Provide override.
80682         * lib/stdio-safer.h (popen_safer): Provide declaration.
80683         * tests/test-popen.c (includes): Partially test this.
80684         * modules/popen-safer-tests: New file, for more tests.
80685         * tests/test-popen-safer.c: Likewise.
80686         * MODULES.html.sh (file stream based Input/Output): Mention it.
80688         tests: test some of the *-safer modules
80689         * modules/fopen-safer (Depends-on): Add fopen.
80690         * modules/fcntl-safer (Depends-on): Add fcntl.
80691         * modules/stdlib-safer (Depends-on): Add stdlib.
80692         (configure.ac): Set indicator.
80693         * modules/unistd-safer (configure.ac): Likewise.
80694         * modules/tmpfile-safer (configure.ac): Likewise.
80695         (Depends-on): Add tmpfile.
80696         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
80697         active.
80698         * tests/test-fopen.c (includes): Test safer versions when they are
80699         in use.
80700         * tests/test-open.c (includes): Likewise.
80702         popen: fix cygwin 1.5 bug when stdin closed
80703         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
80704         * modules/popen: New file.
80705         * modules/popen-tests: Likewise.
80706         * tests/test-popen.c: Likewise.
80707         * m4/popen.m4: Likewise.
80708         * lib/popen.c: Likewise.
80709         * lib/stdio.in.h (popen): New declaration.
80710         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
80711         * modules/stdio (Makefile.am): Likewise.
80712         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
80714 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
80716         maint.mk: give full control over update-copyright exclusions
80717         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
80718         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
80719         (update-copyright): Don't force inclusion of top-level
80720         ChangeLog.  Don't force exclusion of all COPYING files, but make
80721         them the default exclusion instead.
80723 2009-08-16  Bruno Haible  <bruno@clisp.org>
80725         Fix test failures on Solaris 10.
80726         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
80727         tests when Solaris iconv() is used.
80728         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
80729         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
80730         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
80731         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
80732         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
80734 2009-08-16  Bruno Haible  <bruno@clisp.org>
80736         Fix test failures on Solaris 10.
80737         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
80738         'tr' program and pass it as first argument.
80739         * tests/test-pipe-filter-gi1.sh: Likewise.
80740         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
80741         program as first argument.
80742         * tests/test-pipe-filter-gi1.c (main): Likewise.
80744 2009-08-16  Eric Blake  <ebb9@byu.net>
80746         fpurge: fix previous commits
80747         * modules/fpurge (Makefile.am): Make replacement conditional,
80748         partially reverting 2007-04-29 change; missed in previous
80749         attempt.
80750         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
80751         is missing.
80753 2009-08-16  Bruno Haible  <bruno@clisp.org>
80755         Clarify fpurge's effect on the file position.
80756         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
80757         * tests/test-fpurge.c (main): Make a second pass for checking the file
80758         position.
80760 2009-08-16  Bruno Haible  <bruno@clisp.org>
80762         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
80763         declaration of fpurge is missing.
80764         * tests/test-fpurge.c (main): Check that the file has not more contents
80765         than expected. Close the file before removing it.
80767 2009-08-15  Eric Blake  <ebb9@byu.net>
80769         fpurge: don't wrap working cygwin implementation
80770         * lib/fpurge.c (fpurge): Fix comment typo.
80771         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
80772         1.7 to avoid replacement.
80773         * tests/test-fpurge.c (main): Enhance test.
80775 2009-08-15  Eric Blake  <ebb9@byu.net>
80776         and Jim Meyering  <meyering@redhat.com>
80778         test-update-copyright: skip if perl is insufficient
80779         * tests/test-update-copyright.sh: Failure to run maintainer tool
80780         should not cause testsuite failure on cygwin 1.5.
80782 2009-08-14  Eric Blake  <ebb9@byu.net>
80784         doc: mention more functions added in cygwin 1.7.0
80785         * doc/posix-headers/limits.texi (limits.h): Update for recent
80786         cygwin additions.
80787         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
80788         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
80789         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
80790         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
80791         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
80793 2009-08-14  Eric Blake  <ebb9@byu.net>
80795         maint.mk: simplify update-copyright rule
80796         * top/maint.mk (update-copyright-local): Delete, and document how
80797         to do it in cfg.mk instead.
80798         (update-copyright-exclude-regexp): Delete, and document how to do
80799         it in .x-update-copyright instead.
80800         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
80801         exclude ChangeLog.
80803 2009-08-14  Bruno Haible  <bruno@clisp.org>
80805         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
80807 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
80809         maint.mk: support update-copyright-env
80810         * top/maint.mk (update-copyright-env): Define place-holder.
80811         (update-copyright): Expand $(update-copyright-env) before
80812         invoking update-copyright.
80814 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
80816         update-copyright: implement forced reformatting
80817         * build-aux/update-copyright: Implement and document
80818         UPDATE_COPYRIGHT_FORCE.
80819         * tests/test-update-copyright.sh: Test it.
80821 2009-08-14  Eric Blake  <ebb9@byu.net>
80822         and Bruno Haible  <bruno@clisp.org>
80824         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
80825         * tests/test-locale.c: Revert previous patch related to NULL.
80826         * tests/test-stdio.c: Likewise.
80827         * tests/test-stdlib.c: Likewise.
80828         * tests/test-string.c: Likewise.
80829         * tests/test-unistd.c: Likewise.
80830         * modules/time-tests (Depends-on): Add verify.
80831         * modules/wchar-tests (Depends-on): Likewise.
80832         * tests/test-time.c: Test for NULL compliance.
80833         * tests/test-wchar.c: Likewise.
80834         * modules/locale (Depends-on): Add stddef.
80835         * modules/stdio (Depends-on): Likewise.
80836         * modules/stdlib (Depends-on): Likewise.
80837         * modules/string (Depends-on): Likewise.
80838         * modules/time (Depends-on): Likewise.
80839         * modules/unistd (Depends-on): Likewise.
80840         * modules/wchar (Depends-on): Likewise.
80841         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
80842         * lib/stdlib.in.h (includes): Likewise.
80843         * lib/string.in.h (includes): Likewise.
80844         * lib/time.in.h (includes): Likewise.
80845         * lib/unistd.in.h (includes): Likewise.
80846         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
80847         replaced.
80848         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
80849         * m4/stddef_h.m4: New file.
80850         * modules/stddef: Likewise.
80851         * lib/stddef.in.h: Likewise.
80852         * modules/stddef-tests: Likewise.
80853         * tests/test-stddef.c: Likewise.
80854         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
80855         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
80856         * doc/posix-headers/locale.texi (locale.h): Likewise.
80857         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
80858         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
80859         * doc/posix-headers/string.texi (string.h): Likewise.
80860         * doc/posix-headers/time.texi (time.h): Likewise.
80861         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
80862         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
80864 2009-08-14  Eric Blake  <ebb9@byu.net>
80866         doc: improve git diff of texinfo files
80867         * .gitattributes: Add rule for *.texi files, with hint on how to
80868         use it.
80869         Copied from m4, and based on a report by Bruno Haible.
80871 2009-08-14  Bruno Haible  <bruno@clisp.org>
80873         Disable multithread support by default on Cygwin 1.5.x for real.
80874         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
80876 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
80878         update-copyright: much ado about intervals
80879         * build-aux/update-copyright: Implement and document
80880         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
80881         of copyright year intervals.
80882         Also, document UPDATE_COPYRIGHT_YEAR.
80883         * tests/test-update-copyright.sh: Test it.
80885         update-copyright: convert 2-digit to 4-digit years
80886         * build-aux/update-copyright: Implement and document.
80887         * tests/test-update-copyright.sh: Update.
80889 2009-08-14  Jim Meyering  <meyering@redhat.com>
80891         test-exclude: avoid coreutils "make check" failure
80892         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
80893         just as in test-argmatch.c.
80895 2009-08-13  Eric Blake  <ebb9@byu.net>
80897         test-dup2: fix bad assumption
80898         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
80899         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
80901         test-version-etc: fix CRLF portability issue
80902         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
80903         recognize \r.
80904         * tests/test-argp-version-etc-1.sh: Likewise.
80906         getopt: update client modules
80907         * modules/argp (Depends-on): Use getopt-gnu.
80908         * modules/git-merge-changelog (Depends-on): Likewise.
80909         * modules/long-options (Depends-on): Likewise.
80910         * modules/xstrtol (Depends-on): Likewise.
80912 2009-08-13  Simon Josefsson  <simon@josefsson.org>
80914         * tests/test-version-etc.sh: Don't fail on different
80915         project/version.  Don't fail on CRLF differences.  Rewrite to use
80916         multiple -e instead of multiple sed forks, suggested by Eric Blake
80917         <ebb9@byu.net>.
80918         * tests/test-argp-version-etc-1.sh: Likewise.
80920 2009-08-13  Simon Josefsson  <simon@josefsson.org>
80922         * tests/test-version-etc.sh: Don't fail on different
80923         project/version.
80925 2009-08-12  Bruno Haible  <bruno@clisp.org>
80927         Tests for modules 'getopt-posix', 'getopt-gnu'.
80928         * modules/getopt-posix-tests: New file.
80929         * tests/test-getopt.c: New file.
80930         * tests/test-getopt.h: New file.
80931         * tests/test-getopt_long.h: New file.
80933         New modules 'getopt-posix', 'getopt-gnu'.
80934         * modules/getopt-gnu: New file, renamed from modules/getopt.
80935         * modules/getopt-posix: New file.
80936         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
80937         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
80938         (gl_GETOPT): Remove macro.
80939         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
80940         Disable the test against BSD systems that declare optreset. Test
80941         against mingw bug. Test against lack of support of optional arguments
80942         on many platforms.
80943         * doc/glibc-headers/getopt.texi: Update module name and list of
80944         relevant platforms.
80945         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
80946         'getopt-gnu' and more portability problems.
80947         * NEWS: Mention the changes.
80949 2009-08-12  Bruno Haible  <bruno@clisp.org>
80951         Ensure that optarg etc. get declared by <unistd.h>.
80952         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
80953         AC_USE_SYSTEM_EXTENSIONS.
80954         * modules/getopt (Depends-on): Add 'extensions'.
80956 2009-08-12  Bruno Haible  <bruno@clisp.org>
80958         Avoid test link errors.
80959         * modules/pipe-filter-ii-tests (Makefile.am): Define
80960         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
80961         * modules/pipe-filter-gi-tests (Makefile.am): Define
80962         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
80963         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
80965 2009-08-12  Bruno Haible  <bruno@clisp.org>
80967         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
80968         gl_GETOPT_SUBSTITUTE before.
80969         (gl_GETOPT): Use it.
80970         * m4/argp.m4 (gl_ARGP): Update.
80971         Reported by Sergey Poznyakoff.
80973         * m4/getopt.m4: Reorder macros.
80974         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
80975         (gl_GETOPT_SUBSTITUTE): Remove macro.
80977 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
80979         Minor improvement in gitlog-to-changelog
80981         * build-aux/gitlog-to-changelog: New option `--format' makes
80982         output format string configurable.
80984 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
80986         Optimize exclude: use hash tables for non-wildcard patterns.
80988         * lib/exclude.c: Include hash.h and mbuiter.h
80989         (struct exclude_pattern, exclude_segment): New data types.
80990         (struct exclude): Rewrite.
80991         (fnmatch_pattern_has_wildcards): New function.
80992         (new_exclude_segment, free_exclude_segment): New functions.
80993         (excluded_file_pattern_p, excluded_file_name_p): New functions.
80994         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
80995         * lib/exclude.h (is_fnmatch_pattern): New prototype.
80996         * modules/exclude: Depend on hash and mbuiter.
80998         * modules/exclude-tests: New file.
80999         * tests/test-exclude.c: New file.
81000         * tests/test-exclude1.sh: New file.
81001         * tests/test-exclude2.sh: New file.
81002         * tests/test-exclude3.sh: New file.
81003         * tests/test-exclude4.sh: New file.
81004         * tests/test-exclude5.sh: New file.
81005         * tests/test-exclude6.sh: New file.
81006         * tests/test-exclude7.sh: New file.
81008 2009-08-12  Bruno Haible  <bruno@clisp.org>
81010         Ensure that getopt() gets declared by <unistd.h>.
81011         * lib/unistd.in.h: Conditionally include getopt.h.
81012         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
81013         Set GNULIB_UNISTD_H_GETOPT.
81014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
81015         GNULIB_UNISTD_H_GETOPT.
81016         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
81018 2009-08-12  Bruno Haible  <bruno@clisp.org>
81020         Clarify logic.
81021         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
81022         gl_replace_getopt instead of GETOPT_H.
81024 2009-08-12  Bruno Haible  <bruno@clisp.org>
81026         * m4/getopt.m4: Add comments.
81028 2009-08-12  Bruno Haible  <bruno@clisp.org>
81030         Disable multithread support by default on Cygwin 1.5.x.
81031         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
81032         set gl_use_threads=no if not specified otherwise.
81034 2009-08-11  Bruno Haible  <bruno@clisp.org>
81036         Avoid compilation error on NetBSD 5.0.
81037         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
81038         * tests/test-stdio.c: Likewise.
81039         * tests/test-stdlib.c: Likewise.
81040         * tests/test-string.c: Likewise.
81041         * tests/test-unistd.c: Likewise.
81042         Reported by Greg Troxel <gdt@ir.bbn.com>
81043         at <https://savannah.gnu.org/support/?106973>.
81045 2009-08-11  Bruno Haible  <bruno@clisp.org>
81047         * modules/dup2-tests (Depends-on): Remove close.
81049         Undo 2009-07-19 commit.
81050         * modules/acl-tests (Depends-on): Remove close.
81051         * modules/binary-io-tests (Depends-on): Likewise.
81052         * modules/closein-tests (Depends-on): Likewise.
81053         * modules/flock-tests (Depends-on): Likewise.
81054         * modules/fsync-tests (Depends-on): Likewise.
81055         * modules/lseek-tests (Depends-on): Likewise.
81056         * modules/pipe-tests (Depends-on): Likewise.
81057         * modules/posix_spawn-tests (Depends-on): Likewise.
81058         * modules/posix_spawnp-tests (Depends-on): Likewise.
81059         * modules/stat-time-tests (Depends-on): Likewise.
81060         * modules/yesno-tests (Depends-on): Likewise.
81062 2009-08-10  Bruno Haible  <bruno@clisp.org>
81064         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
81066 2009-08-10  Bruno Haible  <bruno@clisp.org>
81068         Fix a gcc warning.
81069         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
81071 2009-08-10  Bruno Haible  <bruno@clisp.org>
81073         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
81074         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
81075         not only the first time.
81076         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
81077         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
81078         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
81079         is 1, not only the first time.
81081 2009-08-10  Bruno Haible  <bruno@clisp.org>
81083         Make it possible to use module 'gethostname' without module 'close'.
81084         * lib/unistd.in.h (close): Evoke a link error only if
81085         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
81086         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
81087         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81088         * modules/unistd (Makefile.am): Substitute
81089         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81090         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
81091         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
81092         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
81093         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81094         * modules/sys_ioctl (Makefile.am): Substitute
81095         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81096         * modules/socket (configure.ac): On native Windows, set
81097         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
81098         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
81099         Reported by Sam Steingold <sds@gnu.org>.
81101 2009-08-10  Bruno Haible  <bruno@clisp.org>
81103         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
81104         * modules/ioctl (configure.ac): Likewise.
81106 2009-08-10  Bruno Haible  <bruno@clisp.org>
81108         Avoid collision between gnulib wrapper and libintl wrapper.
81109         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
81110         already defined in intl/printf.c.
81111         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
81112         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
81114 2009-08-09  Bruno Haible  <bruno@clisp.org>
81116         Make <sys/select.h> really self-contained, also on Solaris 10.
81117         * lib/sys_select.in.h: Include <string.h>.
81118         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
81119         Solaris 10 problem.
81120         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
81121         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
81122         Reported by Jim Meyering.
81124 2009-08-09  Bruno Haible  <bruno@clisp.org>
81126         Avoid warnings from 'aclocal' that are due to a use of macro name
81127         AM_XGETTEXT_OPTION that is not defined in automake.
81128         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
81129         automake.
81130         * modules/error (configure.ac): Likewise.
81131         * modules/propername (configure.ac): Likewise.
81132         * modules/vasprintf (configure.ac): Likewise.
81133         * modules/verror (configure.ac): Likewise.
81134         * modules/xprintf (configure.ac): Likewise.
81135         * modules/xvasprintf (configure.ac): Likewise.
81137 2009-08-08  Bruno Haible  <bruno@clisp.org>
81139         Avoid compilation error in C++ mode.
81140         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
81141         Reported by Sam Steingold <sds@gnu.org>.
81143 2009-08-08  Bruno Haible  <bruno@clisp.org>
81145         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
81146         for the various Unix platforms.
81147         * doc/posix-headers/limits.texi: Update platforms list regarding
81148         HOST_NAME_MAX.
81149         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81151 2009-08-07  Jim Meyering  <meyering@redhat.com>
81153         selinux-at: fix typo in a comment
81154         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
81155         Spotted by Paolo Bonzini.
81157         selinux-at: remove redundant m4 code, add documentation
81158         * modules/selinux-at (configure.ac): Remove redundant code.
81159         LIB_SELINUX is already set via the dependent module, selinux-h.
81160         (Include): Add quotes around selinux-at.h.
81161         * lib/selinux-at.h: Add documentation.
81162         Reported by Bruno Haible in
81163         http://marc.info/?l=gnulib-bug&m=124958988300749
81165 2009-08-07  Bruno Haible  <bruno@clisp.org>
81167         Avoid link error on MacOS X 10.3 and 10.4.
81168         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
81169         on non-ELF systems.
81170         * lib/argp-pv.c (argp_program_version): Likewise.
81171         Reported by Simon Josefsson.
81173 2009-08-07  Simon Josefsson  <simon@josefsson.org>
81175         * tests/test-version-etc.sh: Use $EXEEXT.
81177 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
81179         update-copyright: update documentation to point to maint.mk
81180         * build-aux/update-copyright: Here.
81182 2009-08-06  Jim Meyering  <meyering@redhat.com>
81184         maint.mk: support update-copyright-local
81185         * top/maint.mk (update-copyright-local): Define place-holder.
81186         (update-copyright): Depend on $(update-copyright-local).
81188 2009-08-06  Jim Meyering  <meyering@redhat.com>
81190         selinux-at: new module
81191         Initially written for coreutils, this module will soon be
81192         used by findutils, too.
81193         * MODULES.html.sh [Misc]: Add selinux-at.
81194         * lib/selinux-at.h: New file, from coreutils.
81195         * lib/selinux-at.c: Likewise.
81196         * modules/selinux-at: Likewise.
81197         (License): Change from LGPL to GPL, since it depends
81198         on the GPL'd openat module.
81200         doc: update README
81201         * README: Remove references to cogito.
81202         Remove cvs-repo-updating instructions from 2007.
81203         Don't imply that CVS is better if you have limited disk space.
81205 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81207         update-copyright: support C-style comments
81208         * build-aux/update-copyright: Implement and document.
81209         * tests/test-update-copyright.sh: Test.
81211 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81213         update-copyright: support omitted "(C)"
81214         * build-aux/update-copyright: Implement and document.  Also,
81215         allow variable whitespace before "(C)".
81216         * tests/test-update-copyright.sh: Test.
81218 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81220         update-copyright: don't trip on non-FSF copyright statements
81221         * build-aux/update-copyright: Fix so that the first correctly
81222         formatted FSF copyright statement is recognized no matter what
81223         appears before it.  Update documentation.
81224         * tests/test-update-copyright.sh: Test that.
81226 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81228         update-copyright: clean up code a little
81229         * build-aux/update-copyright: Append "_re" to the name of any
81230         variable holding a regular expression.
81231         Replace "old" and "new" with "stmt" in variable names.
81232         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
81233         handled correctly.
81234         Format code more consistently.
81236 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
81238         update-copyright-tests: improve portability
81239         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
81240         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
81242 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
81244         update-copyright: support @copyright{} and &copy;
81245         * build-aux/update-copyright: Implement and document.
81246         * tests/test-update-copyright.sh: Test.
81248 2009-08-04  Jim Meyering  <meyering@redhat.com>
81250         update-copyright-tests: correctly test EOL=\r\n handling
81251         * tests/test-update-copyright.sh: Put \r at the end of some lines
81252         for the dos-eol tests.  Based on a patch by Joel E. Denny.
81254         maint.mk: make update-copyright exclusion list more configurable
81255         * top/maint.mk (update-copyright): Default to excluding COPYING,
81256         but allow an override, in case someone does want to update that file.
81258         maint.mk: don't update copyright date in COPYING
81259         * top/maint.mk (update-copyright): Exclude COPYING.
81261         maint.mk: add a copyright-updating rule
81262         * top/maint.mk (update-copyright): New rule.
81263         Derived from coreutils/Makefile.am.
81265         update-copyright: rename some variables
81266         * build-aux/update-copyright: Rename a few variables for clarity.
81267         Tweak syntax.  List Joel E. Denny as coauthor.
81269 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
81271         update-copyright: fix bug for 2-digit last year and add tests
81272         * build-aux/update-copyright: Fix bug.
81273         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
81274         specified.
81275         * modules/update-copyright-tests: New
81276         * tests/test-update-copyright.sh: New.
81278 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
81280         update-copyright: handle leading tabs in line prefix
81281         * build-aux/update-copyright: Count leading tabs as 8 spaces
81282         when computing margin.  This helps with the formatting of
81283         ChangeLogs, for example.
81284         Fix documentation a little.
81286 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
81288         update-copyright: support EOL=\r\n
81289         * build-aux/update-copyright: Implement that.
81291 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
81293         update-copyright: automatically format copyright statements
81294         * build-aux/update-copyright: Implement that.
81295         Also, be a little more predictable and safer by always failing
81296         when the full copyright format is not perfectly recognized as an
81297         unbroken whole.  Discussed at
81298         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
81299         Rewrite documentation.
81301 2009-08-03  Bruno Haible  <bruno@clisp.org>
81303         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
81305 2009-08-02  Bruno Haible  <bruno@clisp.org>
81307         Tests for module 'uname'.
81308         * modules/uname-tests: New file.
81309         * tests/test-uname.c: New file.
81311         New module 'uname'.
81312         * lib/uname.c: New file.
81313         * m4/uname.m4: New file.
81314         * modules/uname: New file.
81315         * doc/posix-functions/uname.texi: Mention the new module.
81317 2009-08-02  Bruno Haible  <bruno@clisp.org>
81319         Tests for module 'sys_utsname'.
81320         * modules/sys_utsname-tests: New file.
81321         * tests/test-sys_utsname.c: New file.
81323         New module 'sys_utsname'.
81324         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
81325         * m4/sys_utsname_h.m4: New file.
81326         * modules/sys_utsname: New file.
81327         * doc/posix-headers/sys_utsname.texi: Mention the new module.
81329 2009-08-02  Bruno Haible  <bruno@clisp.org>
81331         Implicitly initialize the sockets library.
81332         * lib/gethostname.c: Include sockets.h.
81333         (rpl_gethostname): Invoke gl_sockets_startup.
81334         * lib/socket.c: Include sockets.h.
81335         (rpl_socket): Invoke gl_sockets_startup.
81336         * modules/gethostname (Depends-on): Add sockets.
81337         * modules/socket (Depends-on): Likewise.
81338         * tests/test-poll.c: Don't include sockets.h.
81339         (main): Don't invoke gl_sockets_startup.
81340         * tests/test-select.c: Don't include sockets.h.
81341         (main): Don't invoke gl_sockets_startup.
81343 2009-08-02  Bruno Haible  <bruno@clisp.org>
81345         Allow multiple calls to gl_sockets_startup.
81346         * lib/sockets.c (initialized_sockets_version): New variable.
81347         (gl_sockets_startup): Do nothing if already called for this or a higher
81348         version.
81349         (gl_sockets_cleanup): Reset initialized_sockets_version.
81351 2009-08-03  Simon Josefsson  <simon@josefsson.org>
81353         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
81354         different project/version.
81356 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
81357             Bruno Haible  <bruno@clisp.org>
81359         Tests for module 'pipe-filter-gi'.
81360         * modules/pipe-filter-gi-tests: New file.
81361         * tests/test-pipe-filter-gi1.sh: New file.
81362         * tests/test-pipe-filter-gi1.c: New file.
81363         * tests/test-pipe-filter-gi2.sh: New file.
81364         * tests/test-pipe-filter-gi2-main.c: New file.
81365         * tests/test-pipe-filter-gi2-child.c: New file.
81367         New module 'pipe-filter-gi'.
81368         * lib/pipe-filter-gi.c: New file.
81369         * modules/pipe-filter-gi: New file.
81371 2009-08-02  Bruno Haible  <bruno@clisp.org>
81372             Paolo Bonzini  <bonzini@gnu.org>
81374         Tests for module 'pipe-filter-ii'.
81375         * modules/pipe-filter-ii-tests: New file.
81376         * tests/test-pipe-filter-ii1.sh: New file.
81377         * tests/test-pipe-filter-ii1.c: New file.
81378         * tests/test-pipe-filter-ii2.sh: New file.
81379         * tests/test-pipe-filter-ii2-main.c: New file.
81380         * tests/test-pipe-filter-ii2-child.c: New file.
81382         New module 'pipe-filter-ii'.
81383         * lib/pipe-filter.h: New file.
81384         * lib/pipe-filter-ii.c: New file.
81385         * lib/pipe-filter-aux.h: New file.
81386         * modules/pipe-filter-ii: New file.
81388 2009-08-02  Simon Josefsson  <simon@josefsson.org>
81390         * lib/gc-libgcrypt.c: Change copyright to FSF.
81391         * lib/gc-gnulib.c: Likewise.
81393 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
81395         * lib/gethostname.c: Include limits.h.
81397 2009-08-02  Simon Josefsson  <simon@josefsson.org>
81398             Bruno Haible  <bruno@clisp.org>
81400         Ensure HOST_NAME_MAX as part of the gethostname module.
81401         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
81402         define also HOST_NAME_MAX.
81403         * tests/test-gethostname.c: Include <limits.h>.
81404         (main): Check also HOST_NAME_MAX.
81405         * doc/posix-headers/limits.texi: Document the mingw problem.
81407 2009-08-02  Bruno Haible  <bruno@clisp.org>
81409         * lib/gethostname.c (gethostname): Fix handling of large len argument.
81410         Add comments.
81412 2009-03-31  Simon Josefsson  <simon@josefsson.org>
81414         * lib/gethostname.c: Add Windows wrapper.
81415         * m4/gethostname.m4: Look for gethostname in -lws2_32.
81416         * modules/gethostname: Depend on sys_socket & errno, for also
81417         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
81418         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
81420 2009-07-31  Jim Meyering  <meyering@redhat.com>
81422         getloadavg: fix symbol name in comment
81423         * lib/getloadavg.c: Correct a typo I introduced when adding
81424         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
81425         Matt Kraai spotted the problem.
81427 2009-07-29  Matt Kraai  <mkraai@beckman.com>
81429         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
81430         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
81431         code also if ! defined N_NAME_POINTER.
81432         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
81433         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
81434         but the n_name member is a 12-byte array.
81436 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
81438         update-copyright: generalize comment handling
81439         * build-aux/update-copyright: Handle copyright statements
81440         within more comment styles.
81441         Document usage.
81442         Report any file with an external copyright holder or parse failure.
81444 2009-07-29  Jim Meyering  <meyering@redhat.com>
81446         mktime: correct setting of REPLACE_MKTIME
81447         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
81449         update-copyright: new module
81450         * modules/update-copyright: New file.
81451         * build-aux/update-copyright: New file.
81452         * MODULES.html.sh (maint+release support): Add update-copyright.
81454 2009-07-27  Bruno Haible  <bruno@clisp.org>
81456         Fix compilation error when <ctime> is used and mktime is replaced.
81457         * lib/time.in.h (mktime): New declaration.
81458         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
81459         REPLACE_MKTIME instead of defining mktime in config.h.
81460         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
81461         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
81462         Reported by Ross McFarland <rwmcfa1@neces.com>.
81464 2009-07-27  Bruno Haible  <bruno@clisp.org>
81466         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
81467         Reported by Matt Kraai <mkraai@beckman.com>.
81469 2009-07-25  Jim Meyering  <meyering@redhat.com>
81471         maint.mk: avoid warnings about missing files
81472         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
81473         diagnostic when .prev-version does not exist.
81474         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
81475         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
81476         nonexistent cfg.mk.
81477         Suggestions from Simon Josefsson.
81479 2009-07-25  Bruno Haible  <bruno@clisp.org>
81481         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
81482         defined as macros. Needed on QNX 6.4.1.
81483         Reported by Matt Kraai <mkraai@beckman.com>.
81485 2009-07-23  Jim Meyering  <meyering@redhat.com>
81487         maint.mk: invoke "make dist" with a working value of XZ_OPT
81488         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
81490 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
81492         Make fseeko.c compile on QNX.
81493         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
81495 2009-07-22  Peter Simons  <simons@cryp.to>
81497         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
81498         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
81499         * lib/md4.h: Likewise.
81500         * lib/md5.h: Likewise.
81501         * lib/sha1.h: Likewise.
81502         * lib/sha256.h: Likewise.
81503         * lib/sha512.h: Likewise.
81505         tests-sha1: don't assign literal string to 'char *' variable
81506         * tests/test-sha1.c (main): Declare locals with "const" to match
81507         attributes of the right hand side.
81509 2009-07-21  Eric Blake  <ebb9@byu.net>
81511         dup2: fix more mingw problems
81512         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
81513         fd to itself.
81514         * doc/posix-functions/dup2.texi (dup2): Document the bug.
81515         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
81516         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
81517         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
81518         care of mingw bugs.
81520 2009-07-21  Jim Meyering  <meyering@redhat.com>
81522         vc-list-files: avoid failure when /bin/sh is dash
81523         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
81524         On some Debian based systems, /bin/sh is a symlink to dash, and running
81525         this command would omit the "/" following each 'tests' prefix:
81526           dash -x build-aux/vc-list-files -C . tests
81527         That is because bash and dash work differently:
81528           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
81529           bash ok
81530           dash odd
81532 2009-07-21  Eric Blake  <ebb9@byu.net>
81534         dup2-tests: test previous patch
81535         * modules/dup2-tests: New file.
81536         * tests/test-dup2.c: Likewise.
81537         * tests/test-open.c (main): Avoid unspecified behavior.
81538         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
81539         test.
81541         dup2: work around mingw and cygwin 1.5 bug
81542         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
81543         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
81544         * modules/unistd (Makefile.am): Substitute it.
81545         * lib/unistd.in.h (dup2): Declare the replacement.
81546         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
81547         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
81548         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
81549         * modules/execute (Depends-on): Add dup2.
81550         * modules/fseterr (Depends-on): Likewise.
81551         * modules/pipe (Depends-on): Likewise.
81552         * modules/posix_spawn-internal (Depends-on): Likewise.
81554 2009-07-21  Bruno Haible  <bruno@clisp.org>
81556         * modules/.gitattributes: New file.
81558 2009-07-20  Bruno Haible  <bruno@clisp.org>
81560         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
81561         (main): Use it.
81563 2009-07-20  Eric Blake  <ebb9@byu.net>
81565         test-pipe: make a bit more robust.
81566         * tests/test-pipe.c (myerr): Allow error messages regardless of
81567         what we do to stderr.
81568         (test_pipe): Rearrange to avoid deadlock.
81569         (child_main): Try a larger read, to ensure we avoided deadlock.
81570         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
81571         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
81572         if misused.
81574 2009-07-19  Jim Meyering  <meyering@redhat.com>
81576         fts: avoid false-positive cycle-detection
81577         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
81578         for each new command line argument.
81580 2009-07-19  Bruno Haible  <bruno@clisp.org>
81582         Fix build error on mingw with the modules sys_select and unistd.
81583         * modules/acl-tests (Depends-on): Add close.
81584         * modules/binary-io-tests (Depends-on): Likewise.
81585         * modules/closein-tests (Depends-on): Likewise.
81586         * modules/flock-tests (Depends-on): Likewise.
81587         * modules/fsync-tests (Depends-on): Likewise.
81588         * modules/lseek-tests (Depends-on): Likewise.
81589         * modules/pipe-tests (Depends-on): Likewise.
81590         * modules/posix_spawn-tests (Depends-on): Likewise.
81591         * modules/posix_spawnp-tests (Depends-on): Likewise.
81592         * modules/stat-time-tests (Depends-on): Likewise.
81593         * modules/yesno-tests (Depends-on): Likewise.
81595 2009-07-19  Bruno Haible  <bruno@clisp.org>
81597         Unify conditionals.
81598         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
81599         macros, not at the compiler macros.
81600         * lib/pipe.c: Likewise.
81601         * lib/execute.c: Likewise.
81602         * lib/spawni.c: Likewise.
81604 2009-07-19  Bruno Haible  <bruno@clisp.org>
81606         Fix handling of closed stdin/stdout/stderr on mingw.
81607         * lib/w32spawn.h: Include unistd.h.
81608         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
81609         file descriptor with O_NOINHERIT flag.
81610         (fd_safer_noinherit): New function, based on fd-safer.c.
81611         (dup_safer_noinherit): New function, based on dup-safer.c.
81612         (undup_safer_noinherit): New function.
81613         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
81614         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
81615         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
81616         instead of fd_safer.
81617         * tests/test-pipe.c: Include <windows.h>.
81618         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
81619         result.
81621         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
81622         from main.
81623         (test_pipe): Pass an extra argument for disambiguation.
81624         (main): Invoke parent_main or child_main.
81626         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
81627         consistently.
81629 2009-07-18  Eric Blake  <ebb9@byu.net>
81631         test-pipe: fix mingw build
81632         * tests/test-pipe.c (main): Avoid fcntl on mingw.
81634 2009-07-18  Bruno Haible  <bruno@clisp.org>
81636         * modules/pipe-tests (Makefile.am): Fix typo.
81638 2009-07-18  Eric Blake  <ebb9@byu.net>
81640         error: fix mingw build
81641         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
81642         Reported by Bruno Haible.
81644         error: avoid undefined use of stdout
81645         * lib/error.c (error, error_at_line): Check that fd 1 is open
81646         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
81647         is handling faults and the close_stdout module wants to report the
81648         detection of closed stdout as an error.
81650 2009-07-17  Eric Blake  <ebb9@byu.net>
81652         pipe: be robust in face of closed fds
81653         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
81654         should cause child to misbehave.
81655         * modules/pipe-tests: New module.
81656         * tests/test-pipe.c: New file.
81657         * tests/test-pipe.sh: New file.
81658         Reported by Akim Demaille.
81660 2009-07-14  Bruno Haible  <bruno@clisp.org>
81662         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
81663         Reported by anonymous kc.
81665 2009-07-07  Jim Meyering  <meyering@redhat.com>
81667         maint.mk: don't look for translatable strings in *.m4 or *.mk
81668         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
81669         when searching for translatable strings.
81671 2009-07-05  Jim Meyering  <meyering@redhat.com>
81673         remove superfluous parentheses in STREQ definition
81674         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
81675         * lib/getugroups.c (STREQ): Likewise.
81676         * lib/fnmatch.c (STREQ): Likewise.
81677         Spotted by Bruno Haible.
81679 2009-07-04  Jim Meyering  <meyering@redhat.com>
81681         argv-iter: new module
81682         * MODULES.html.sh: Add argv-iter.
81683         * lib/argv-iter.c, lib/argv-iter.h: New files.
81684         * modules/argv-iter: New file.
81685         * modules/argv-iter-tests: New file.
81686         * tests/test-argv-iter.c: Test it.
81688 2009-07-04  Bruno Haible  <bruno@clisp.org>
81690         Fix assertion.
81691         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
81692         contains more exact copies of a given entry than file2, leave the extra
81693         copies unpaired rather than aborting.
81694         Reported by Eric Blake.
81696 2009-07-02  Bruno Haible  <bruno@clisp.org>
81698         Speedup git-merge-changelog for git cherry-pick.
81699         * lib/git-merge-changelog.c (struct entries_mapping): New type.
81700         (entries_mapping_get): New function, extracted from compute_mapping.
81701         (entries_mapping_reverse_get): New function.
81702         (compute_mapping): Add a 'full' argument. Return the result in a
81703         'struct entries_mapping'.
81704         (main): Update. Access the mappings through entries_mapping_get.
81705         Reported by Eric Blake.
81707 2009-07-02  Bruno Haible  <bruno@clisp.org>
81709         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
81710         best_i.
81712 2009-07-02  Bruno Haible  <bruno@clisp.org>
81714         Speed up approximate search for matching ChangeLog entries.
81715         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
81716         argument. Call fstrcmp_bounded instead of fstrcmp.
81717         (compute_mapping, try_split_merged_entry, main): Update callers.
81719 2009-07-02  Bruno Haible  <bruno@clisp.org>
81721         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
81723 2009-06-30  Bruno Haible  <bruno@clisp.org>
81725         Reduce the number of uc_is_cased calls.
81726         * lib/unicase.h (casing_suffix_context_t): Add
81727         'first_char_except_ignorable' field.
81728         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
81729         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
81730         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
81731         Update initializer.
81732         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
81733         case-ignorable characters.
81734         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
81735         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
81736         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
81737         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
81738         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
81740 2009-06-30  Bruno Haible  <bruno@clisp.org>
81742         Tests for module 'unicase/ignorable'.
81743         * modules/unicase/ignorable-tests: New file.
81744         * tests/unicase/test-ignorable.c: New file, generated by
81745         gen-uni-tables.
81747         Tests for module 'unicase/cased'.
81748         * modules/unicase/cased-tests: New file.
81749         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
81750         * tests/unicase/test-predicate-part1.h: New file, derived from
81751         tests/unictype/test-predicate-part1.h.
81752         * tests/unicase/test-predicate-part2.h: New file, same as
81753         tests/unictype/test-predicate-part2.h.
81755         Fix evaluation of "Before C" condition of FINAL_SIGMA.
81756         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
81757         (output_casing_properties): New function.
81758         (main): Call it.
81759         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
81760         * lib/unicase/cased.c: Include unictype/bitmap.h.
81761         (uc_is_cased): Define through a bitmap lookup.
81762         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
81763         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
81764         (uc_is_case_ignorable): Define through a bitmap lookup.
81765         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
81766         lib/unictype/bitmap.h.
81767         (Depends-on): Add inline. Clean up.
81768         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
81769         lib/unictype/bitmap.h.
81770         (Depends-on): Add inline. Clean up.
81771         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
81772         recognition.
81773         * tests/unicase/test-u16-tolower.c (main): Likewise.
81774         * tests/unicase/test-u32-tolower.c (main): Likewise.
81776 2009-06-30  Bruno Haible  <bruno@clisp.org>
81778         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
81779         * lib/unicase/u16-casemap.c: Likewise.
81780         * lib/unicase/u32-casemap.c: Likewise.
81782 2009-06-29  Bruno Haible  <bruno@clisp.org>
81784         Define u32_casefold as a wrapper around u32_ct_casefold.
81785         * lib/unicase/u32-casefold.c: Update.
81786         * modules/unicase/u32-casefold (Depends-on): Add
81787         unicase/u32-ct-casefold, unicase/empty-prefix-context,
81788         unicase/empty-suffix-context. Clean up.
81790         Define u16_casefold as a wrapper around u16_ct_casefold.
81791         * lib/unicase/u16-casefold.c: Update.
81792         * modules/unicase/u16-casefold (Depends-on): Add
81793         unicase/u16-ct-casefold, unicase/empty-prefix-context,
81794         unicase/empty-suffix-context. Clean up.
81796         Define u8_casefold as a wrapper around u8_ct_casefold.
81797         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
81798         * lib/unicase/u8-casefold.c: Update.
81799         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
81800         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
81802         Define u32_totitle as a wrapper around u32_ct_totitle.
81803         * lib/unicase/u32-totitle.c: Update.
81804         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
81805         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
81807         Define u16_totitle as a wrapper around u16_ct_totitle.
81808         * lib/unicase/u16-totitle.c: Update.
81809         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
81810         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
81812         Define u8_totitle as a wrapper around u8_ct_totitle.
81813         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
81814         functions.
81815         (FUNC): Delegate to U_CT_TOTITLE.
81816         * lib/unicase/u8-totitle.c: Update.
81817         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
81818         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
81820         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
81821         invocation.
81822         * modules/unicase/u32-tolower (Depends-on): Add
81823         unicase/empty-prefix-context, unicase/empty-suffix-context.
81825         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
81826         invocation.
81827         * modules/unicase/u16-tolower (Depends-on): Add
81828         unicase/empty-prefix-context, unicase/empty-suffix-context.
81830         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
81831         * modules/unicase/u8-tolower (Depends-on): Add
81832         unicase/empty-prefix-context, unicase/empty-suffix-context.
81834         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
81835         invocation.
81836         * modules/unicase/u32-toupper (Depends-on): Add
81837         unicase/empty-prefix-context, unicase/empty-suffix-context.
81839         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
81840         invocation.
81841         * modules/unicase/u16-toupper (Depends-on): Add
81842         unicase/empty-prefix-context, unicase/empty-suffix-context.
81844         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
81845         * modules/unicase/u8-toupper (Depends-on): Add
81846         unicase/empty-prefix-context, unicase/empty-suffix-context.
81848         New module 'unicase/u32-ct-casefold'.
81849         * lib/unicase/u32-ct-casefold.c: New file.
81850         * modules/unicase/u32-ct-casefold: New file.
81852         New module 'unicase/u16-ct-casefold'.
81853         * lib/unicase/u16-ct-casefold.c: New file.
81854         * modules/unicase/u16-ct-casefold: New file.
81856         New module 'unicase/u8-ct-casefold'.
81857         * lib/unicase/u8-ct-casefold.c: New file.
81858         * lib/unicase/u-ct-casefold.h: New file, derived from
81859         lib/unicase/u-casefold.h.
81860         * modules/unicase/u8-ct-casefold: New file.
81862         New module 'unicase/u32-ct-totitle'.
81863         * lib/unicase/u32-ct-totitle.c: New file.
81864         * modules/unicase/u32-ct-totitle: New file.
81866         New module 'unicase/u16-ct-totitle'.
81867         * lib/unicase/u16-ct-totitle.c: New file.
81868         * modules/unicase/u16-ct-totitle: New file.
81870         New module 'unicase/u8-ct-totitle'.
81871         * lib/unicase/u8-ct-totitle.c: New file.
81872         * lib/unicase/u-ct-totitle.h: New file, derived from
81873         lib/unicase/u-totitle.h.
81874         * modules/unicase/u8-ct-totitle: New file.
81876         New module 'unicase/u32-ct-tolower'.
81877         * lib/unicase/u32-ct-tolower.c: New file.
81878         * modules/unicase/u32-ct-tolower: New file.
81880         New module 'unicase/u16-ct-tolower'.
81881         * lib/unicase/u16-ct-tolower.c: New file.
81882         * modules/unicase/u16-ct-tolower: New file.
81884         New module 'unicase/u8-ct-tolower'.
81885         * lib/unicase/u8-ct-tolower.c: New file.
81886         * modules/unicase/u8-ct-tolower: New file.
81888         New module 'unicase/u32-ct-toupper'.
81889         * lib/unicase/u32-ct-toupper.c: New file.
81890         * modules/unicase/u32-ct-toupper: New file.
81892         New module 'unicase/u16-ct-toupper'.
81893         * lib/unicase/u16-ct-toupper.c: New file.
81894         * modules/unicase/u16-ct-toupper: New file.
81896         New module 'unicase/u8-ct-toupper'.
81897         * lib/unicase/u8-ct-toupper.c: New file.
81898         * modules/unicase/u8-ct-toupper: New file.
81900         Add context arguments to u*_casemap functions.
81901         * lib/unicase/unicasemap.h: Include unicase.h.
81902         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
81903         suffix_context arguments.
81904         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
81905         functions.
81906         (FUNC): Add prefix_context and suffix_context arguments. Use
81907         uc_is_cased and uc_is_case_ignorable.
81908         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
81909         * lib/unicase/u16-casemap.c: Likewise.
81910         * lib/unicase/u32-casemap.c: Likewise.
81911         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
81912         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
81913         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
81914         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
81915         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
81916         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
81918         New module 'unicase/u32-suffix-context'.
81919         * lib/unicase/u32-suffix-context.c: New file.
81920         * modules/unicase/u32-suffix-context: New file.
81922         New module 'unicase/u16-suffix-context'.
81923         * lib/unicase/u16-suffix-context.c: New file.
81924         * modules/unicase/u16-suffix-context: New file.
81926         New module 'unicase/u8-suffix-context'.
81927         * lib/unicase/u8-suffix-context.c: New file.
81928         * lib/unicase/u-suffix-context.h: New file.
81929         * modules/unicase/u8-suffix-context: New file.
81931         New module 'unicase/empty-suffix-context'.
81932         * lib/unicase/empty-suffix-context.c: New file.
81933         * modules/unicase/empty-suffix-context: New file.
81935         New module 'unicase/u32-prefix-context'.
81936         * lib/unicase/u32-prefix-context.c: New file.
81937         * modules/unicase/u32-prefix-context: New file.
81939         New module 'unicase/u16-prefix-context'.
81940         * lib/unicase/u16-prefix-context.c: New file.
81941         * modules/unicase/u16-prefix-context: New file.
81943         New module 'unicase/u8-prefix-context'.
81944         * lib/unicase/u8-prefix-context.c: New file.
81945         * lib/unicase/u-prefix-context.h: New file.
81946         * lib/unicase/context.h: New file.
81947         * modules/unicase/u8-prefix-context: New file.
81949         New module 'unicase/empty-prefix-context'.
81950         * lib/unicase/empty-prefix-context.c: New file.
81951         * modules/unicase/empty-prefix-context: New file.
81953         New module 'unicase/ignorable'.
81954         * lib/unicase/ignorable.c: New file.
81955         * modules/unicase/ignorable: New file.
81957         New module 'unicase/cased'.
81958         * lib/unicase/caseprop.h: New file.
81959         * lib/unicase/cased.c: New file.
81960         * modules/unicase/cased: New file.
81962         New functions for case mapping of substrings.
81963         * lib/unicase.h (casing_prefix_context_t): New type.
81964         (unicase_empty_prefix_context): New variable.
81965         (u8_casing_prefix_context, u16_casing_prefix_context,
81966         u32_casing_prefix_context, u8_casing_prefixes_context,
81967         u16_casing_prefixes_context, u32_casing_prefixes_context): New
81968         declarations.
81969         (casing_suffix_context_t): New type.
81970         (unicase_empty_suffix_context): New variable.
81971         (u8_casing_suffix_context, u16_casing_suffix_context,
81972         u32_casing_suffix_context, u8_casing_suffixes_context,
81973         u16_casing_suffixes_context, u32_casing_suffixes_context,
81974         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
81975         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
81976         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
81977         declarations.
81979 2009-06-28  Jim Meyering  <meyering@redhat.com>
81981         boostrap: indent only with spaces
81982         * build-aux/bootstrap: Indent only with spaces, never TABs.
81984         bootstrap: split long lines
81985         * build-aux/bootstrap: Keep line length < 80.
81987         bootstrap: sync from coreutils
81988         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
81989         just as autoreconf does.  Verify a list of prerequisite
81990         package-name,version-number pairs if defined in bootstrap.conf.
81991         Refer to README-prereq, if prerequisites are not satisfied.
81993 2009-06-27  Eric Blake  <ebb9@byu.net>
81995         tests: add test for bogus NULL definition
81996         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
81997         * tests/test-stdlib.c: Likewise.
81998         * tests/test-string.c: Likewise.
81999         * tests/test-locale.c: Likewise.
82000         * tests/test-unistd.c: Likewise.
82001         * modules/stdio-tests (Depends-on): Add verify.
82002         * modules/stdlib-tests (Depends-on): Likewise.
82003         * modules/string-tests (Depends-on): Likewise.
82004         * modules/locale-tests (Depends-on): Likewise.
82005         * modules/unistd-tests (Depends-on): Likewise.
82007 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
82009         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
82010         self-explaining comment.
82011         * m4/selinux-selinux-h: Update serial.
82012         (gl_LIBSELINUX): New macro, adding a warning for missing development
82013         packages to code extracted from...
82014         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
82015         Add warning for missing development packages here, too.
82017 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
82019         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
82021 2009-06-25  Eric Blake  <ebb9@byu.net>
82023         version-etc: fix regression
82024         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
82025         gcc.
82026         (version_etc): Use it, to catch bugs with trailing NULL.
82027         * lib/version-etc.c (version_etc_arn): Delete unused argument.
82028         (version_etc_va): Fix logic bug.
82029         * modules/version-etc-tests: Add test.
82030         * tests/test-version-etc.c: New file.
82031         * tests/test-version-etc.sh: Likewise.
82033 2009-06-25  Sam Steingold  <sds@gnu.org>
82035         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
82036         mbtowc declaration.
82038 2009-06-25  Eric Blake  <ebb9@byu.net>
82040         fpurge: migrate into <stdio.h>
82041         * lib/fpurge.h: Delete...
82042         * lib/stdio.in.h (fpurge): ...and declare here, instead.
82043         * lib/fpurge.c (fpurge): Change declaring header.
82044         * modules/fpurge (Files): Drop deleted file.
82045         (Depends-on): Add stdio.
82046         (configure.ac): Set witness.
82047         * modules/stdio (Makefile.am): Support fpurge macros.
82048         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
82049         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
82050         * lib/fflush.c: Update client.
82051         * tests/test-fpurge.c: Likewise.
82052         * NEWS: Mention the change.
82054 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82056         * lib/argp-version-etc.c (program_authors): Add const
82057         qualifier.
82058         * lib/version-etc.c: Fix typos in the comments.
82059         * modules/argp-version-etc: Depends on version-etc.
82061 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82063         argp-version-etc: new module.
82065         * lib/argp-version-etc.c: New file.
82066         * lib/argp-version-etc.h: New file.
82067         * modules/argp-version-etc: New file.
82068         * modules/argp-version-etc-tests: New file.
82069         * tests/test-argp-version-etc.c: New test.
82070         * tests/test-argp-version-etc-1.sh: New test.
82072 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82074         Provide additional interfaces and documentation for version-etc
82075         module.
82077         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
82078         interfaces.
82079         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
82080         prototypes.
82082 2009-06-24  Bruno Haible  <bruno@clisp.org>
82084         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
82085         HAVE_LIB${NAME} macro.
82086         Reported by Sam Steingold <sds@gnu.org>.
82088 2009-06-23  Simon Josefsson  <simon@josefsson.org>
82090         * modules/hash-tests (test_hash_LDADD): Link to libintl when
82091         needed.
82093 2009-06-21  Bruno Haible  <bruno@clisp.org>
82095         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
82096         work.
82097         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
82098         together with LIB${NAME}, LTLIB${NAME}.
82099         Reported by Sam Steingold <sds@gnu.org>.
82101 2009-06-20  Jim Meyering  <meyering@redhat.com>
82103         tests: make sc_require_test_exit_idiom more generic
82104         * top/maint.mk (Exit_witness_file): New overridable variable.
82105         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
82106         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
82108 2009-06-19  Jim Meyering  <meyering@redhat.com>
82110         hash: reverse order of src/dst parameters in an internal interface
82111         * lib/hash.c (transfer_entries): Reverse order of parameters to
82112         put DST before SRC.  Adjust callers.
82114         tests: test-hash: avoid wholesale duplication
82115         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
82116         Instead, use a loop and add a single conditional.
82118         tests: test-hash: allow seed selection via a command line argument
82119         * tests/test-hash.c (get_seed): New function.
82120         (main): Use it.
82122 2009-06-19  Eric Blake  <ebb9@byu.net>
82124         hash: avoid memory leak on allocation failure
82125         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
82126         failure.  Factor repeated algorithm...
82127         (transfer_entries): ...into new helper routine.
82128         (hash_delete): React to hash_rehash return value.
82130         hash: reduce memory pressure in hash_rehash no-op case
82131         * lib/hash.c (next_prime): Avoid overflow.
82132         (hash_initialize): Factor bucket size computation...
82133         (compute_bucket_size): ...into new helper function.
82134         (hash_rehash): Use new function and open coding to reduce memory
82135         pressure, and avoid a memory leak in USE_OBSTACK code.
82136         Reported by Jim Meyering.
82138 2009-06-18  Eric Blake  <ebb9@byu.net>
82140         hash: make rotation more obvious
82141         * modules/hash (Depends-on): Add bitrotate and stdint.
82142         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
82143         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
82144         (SIZE_MAX): Rely on headers for definition.
82145         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
82146         (raw_hasher): Use rotr_sz.
82147         Suggested by Jim Meyering.
82149         hash: fix memory leak in last patch
82150         * lib/hash.c (hash_rehash): Avoid memory leak.
82152         hash: avoid no-op rehashing
82153         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
82155         hash: provide default callback functions
82156         * lib/hash.c (raw_hasher, raw_comparator): New functions.
82157         (hash_initialize): Use them as defaults.
82158         * tests/test-hash.c (main): Test this.
82160         hash: minor optimization
82161         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
82162         when possible.
82163         (hash_initialize): Document this promise.
82164         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
82165         * tests/test-hash.c (hash_compare_strings): Test this.
82167 2009-06-18  Bruno Haible  <bruno@clisp.org>
82169         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
82170         going to be replaced anyway.
82172 2009-06-18  Bruno Haible  <bruno@clisp.org>
82174         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
82175         in one place.
82176         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
82177         be replaced anyway.
82179 2009-06-18  Eric Blake  <ebb9@byu.net>
82181         hash: check for resize before insertion
82182         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
82183         threshold before insertion, so that a pathological hash_rehash
82184         that fills every bucket can still trigger another rehash.
82186 2009-06-18  Jim Meyering  <meyering@redhat.com>
82188         hash-tests: add a loop around the small tests
82189         * tests/test-hash.c (main): Repeat small tests with selected
82190         small initial table sizes.
82192 2009-06-17  Eric Blake  <ebb9@byu.net>
82194         hash: minor cleanups
82195         * lib/hash.h (hash_entry): Make opaque, by moving...
82196         * lib/hash.c (hash_entry): ...here.
82197         (hash_insert): Clarify restrictions on what can be inserted.
82198         (hash_get_next): Clarify when it is safe to remove an element
82199         during traversal.
82200         (check_tuning): Skip verification when tuning is known safe.
82201         (hash_initialize): Clarify restrictions on tuning.
82203 2009-06-17  Jim Meyering  <jim@meyering.net>
82204         and Eric Blake  <ebb9@byu.net>
82206         hash-tests: new module
82207         * modules/hash-tests: New file.
82208         * tests/test-hash.c: New file.
82210 2009-06-17  Eric Blake  <ebb9@byu.net>
82212         strstr-simple: document new module
82213         * MODULES.html.sh: Document new module.
82215         strstr, strcasestr: replace on platforms with broken memchr
82216         * modules/strstr: Split into...
82217         * modules/strstr-simple: ...new module that does not care about
82218         performance, but does care about glibc bug.
82219         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
82220         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
82221         if platform memchr is broken, per Debian bug 521737.
82222         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
82223         memchr.
82224         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
82225         * doc/posix-functions/strstr.texi (strstr): Document the fix.
82226         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
82227         * modules/mountlist (Depends-on): Add strstr-simple.
82228         * modules/gen-uni-tables (Depends-on): Likewise.
82229         * modules/argz (Depends-on): Add strstr.
82231 2009-06-17  Bruno Haible  <bruno@clisp.org>
82233         * modules/posix_spawn-internal (Depends-on): Add errno.
82235 2009-06-17  Bruno Haible  <bruno@clisp.org>
82237         Define missing ESTALE on Interix 3.5.
82238         * lib/errno.in.h (ESTALE): Assign a value if missing.
82239         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
82240         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
82241         missing.
82242         * doc/posix-headers/errno.texi: Mention the Interix bug.
82243         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
82245 2009-06-15  Eric Blake  <ebb9@byu.net>
82247         memchr, memchr2: add valgrind exception
82248         * lib/memchr.valgrind: New file.
82249         * lib/memchr2.valgrind: New file.
82250         * modules/memchr (Files): Distribute valgrind file.
82251         * modules/memchr2 (Files): Likewise.
82253         docs: memchr is no longer obsolete
82254         * MODULES.html.sh: Move memchr from obsolete to string.h section.
82255         * lib/string.in.h (memchr): Simplify logic.
82257 2009-06-14  Jim Meyering  <meyering@redhat.com>
82259         link-follow: fix the "checking..." message to not mention trailing slash
82260         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
82261         never considered trailing slashes.
82263 2009-06-14  Bruno Haible  <bruno@clisp.org>
82265         * m4/memchr.m4: Mention also the bug on IA-64.
82266         * doc/posix-functions/memchr.texi: Likewise.
82268 2009-06-12  Eric Blake  <ebb9@byu.net>
82270         memchr: detect broken x86_64 and alpha implementations
82271         * modules/memchr-tests (Depends-on): Move mmap detection...
82272         * modules/memchr (Depends-on): ...here.
82273         (configure.ac): Set indicator.
82274         * lib/string.in.h (memchr): Declare replacement.
82275         * modules/string (Makefile.am): Trigger replacement.
82276         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
82277         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
82278         bugs.
82279         * doc/posix-functions/memchr.texi (memchr): Document the bug.
82280         * modules/getpagesize (License): Relax license.
82282 2009-06-11  Bruno Haible  <bruno@clisp.org>
82284         * lib/idpriv.h: Add more references.
82286 2009-06-08  Bruno Haible  <bruno@clisp.org>
82288         Tests for module 'idpriv-droptemp'.
82289         * modules/idpriv-droptemp-tests: New file.
82290         * tests/test-idpriv-droptemp.sh: New file.
82291         * tests/test-idpriv-droptemp.su.sh: New file.
82292         * tests/test-idpriv-droptemp.c: New file.
82294         New module 'idpriv-droptemp'.
82295         * lib/idpriv-droptemp.c: New file.
82296         * modules/idpriv-droptemp: New file.
82298 2009-06-08  Bruno Haible  <bruno@clisp.org>
82300         Tests for module 'idpriv-drop'.
82301         * modules/idpriv-drop-tests: New file.
82302         * tests/test-idpriv-drop.sh: New file.
82303         * tests/test-idpriv-drop.su.sh: New file.
82304         * tests/test-idpriv-drop.c: New file.
82306         New module 'idpriv-drop'.
82307         * lib/idpriv.h: New file.
82308         * lib-idpriv-drop.c: New file.
82309         * m4/idpriv.m4: New file.
82310         * modules/idpriv-drop: New file.
82312 2009-06-08  Bruno Haible  <bruno@clisp.org>
82314         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
82315         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
82316         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
82317         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
82318         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
82319         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
82320         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
82322 2009-06-08  Eric Blake  <ebb9@byu.net>
82324         test-strstr: use memory fence, when possible
82325         * tests/test-strstr.c (main): Use memory fence, in order to be
82326         more likely to trigger Debian bug 521737.
82327         * modules/strstr-tests (Files): Pull in additional files.
82329         memchr: no longer obsolete, for wider field testing
82330         * modules/memchr (Status, Notice): Delete, this module is no
82331         longer obsolete.
82332         * modules/vasnprintf (Depends-on): Add memchr.
82334 2009-06-07  Jim Meyering  <meyering@redhat.com>
82336         hash: declare some functions with the warn_unused_result attribute
82337         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
82339 2009-06-07  Bruno Haible  <bruno@clisp.org>
82341         * tests/test-alignof.c: Don't test int64_t if it does not exist.
82342         Reported by Eric Blake.
82344 2009-06-06  Eric Blake  <ebb9@byu.net>
82346         test-alignof: fix typo with long double
82347         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
82348         compiler error.
82350 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
82352         Escape non-texinfo { and }s.
82353         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
82354         markup error.
82356 2009-06-04  Jim Meyering  <meyering@redhat.com>
82358         gitlog-to-changelog: don't infloop on an empty commit log
82359         * build-aux/gitlog-to-changelog: Warn about an empty log message.
82360         Reported by Boris Petersen <transacid@centerim.org>.
82362 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
82364         version-etc: extend for packagers
82365         Add three new configure options, intended for packagers:
82366           --with-packager="packager name"
82367           --with-packager-version="packager-specific version"
82368           --with-packager-bug-reports="packager bug reporting"
82369         An example with coreutils:
82370           $ ./configure \
82371             --with-packager=Gentoo \
82372             --with-packager-bug-report=http://bugs.gentoo.org/ \
82373             --with-packager-version="patchset 1.6"
82374           $ ./src/ls --version | head -n2
82375           ls (GNU coreutils) 7.1-dirty
82376           Packaged by Gentoo (patchset 1.6)
82377         Note that the bug reporting info via --help doesn't show up because
82378         coreutils uses its own custom emit_bug_reporting_address() implementation
82379         in src/system.h.  If it didn't, it'd look like:
82380           $ ./src/ls --help | tail -n4
82381           Report bugs to <bug-coreutils@gnu.org>.
82382           Report Gentoo bugs to <http://bugs.gentoo.org/>.
82383           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
82384           General help using GNU software: <http://www.gnu.org/gethelp/>.
82385         * lib/version-etc.c: Print new information, if provided.
82386         * m4/version-etc.m4: New file.
82387         * modules/version-etc (Files): Add m4/version-etc.m4.
82388         (configure.ac): Add gl_VERSION_ETC.
82390 2009-05-31  Bruno Haible  <bruno@clisp.org>
82392         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
82393         and 'int64_t'.
82394         * modules/alignof-tests (Dependencies): Add stdint.
82395         Reported by Eric Blake.
82397 2009-05-31  Bruno Haible  <bruno@clisp.org>
82399         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
82400         restriction due to compiler bugs.
82401         Reported by Eric Blake.
82403 2009-05-31  Simon Josefsson  <simon@josefsson.org>
82404             Bruno Haible  <bruno@clisp.org>
82406         Fix test-alignof failure.
82407         * lib/alignof.h (alignof_slot): New macro.
82408         (alignof_type): New macro, with the same semantics as the previous
82409         'alignof'.
82410         (alignof): Alias to alignof_slot.
82411         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
82412         check that the results are usable as constant expressions.
82414 2009-05-31  Bruno Haible  <bruno@clisp.org>
82416         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
82417         * tests/test-memchr.c (main): Check that memchr does not read past the
82418         first occurrence of the byte.
82419         * tests/test-strstr.c (main): Update comment.
82420         Suggested by Eric Blake.
82422 2009-05-30  Bruno Haible  <bruno@clisp.org>
82424         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
82425         detail how to use dumpbin.
82426         Reported by David Byron <dbyron@dbyron.com>.
82428 2009-06-02  Simon Josefsson  <simon@josefsson.org>
82430         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
82432 2009-06-02  Simon Josefsson  <simon@josefsson.org>
82434         * m4/manywarnings.m4: Add GCC 4.4 warnings.
82436 2009-05-28  Bruno Haible  <bruno@clisp.org>
82438         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
82439         build-aux/ files.
82441 2009-05-28  Simon Josefsson  <simon@josefsson.org>
82443         * gnulib-tool (func_import): Transform license on build-aux/ files too.
82445 2009-05-27  Simon Josefsson  <simon@josefsson.org>
82447         * gnulib-tool (sed_transform_main_lib_file)
82448         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
82449         regexps.
82451 2009-05-26  Simon Josefsson  <simon@josefsson.org>
82453         * tests/test-strstr.c: Add another self-test.
82454         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
82455         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
82457 2009-05-23  Bruno Haible  <bruno@clisp.org>
82459         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
82460         change.
82462 2009-05-21  Bruno Haible  <bruno@clisp.org>
82464         Simplify use of mode_t varargs.
82465         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
82466         uses 'mode_t' or 'int'.
82467         * lib/openat.c (openat): Likewise.
82468         * lib/open-safer.c (open_safer): Likewise.
82469         * m4/mode_t.m4: New file.
82470         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
82471         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
82472         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
82473         * modules/open (Files): Add m4/mode_t.m4.
82474         * modules/openat (Files): Likewise.
82475         * modules/fcntl-safer (Files): Likewise.
82476         Suggested by Eric Blake.
82478 2009-05-21  Pádraig Brady  <P@draigbrady.com>
82480         * doc/glibc-functions/fallocate.texi: New file.
82481         * doc/gnulib.texi: Include it.
82483 2009-05-21  Eric Blake  <ebb9@byu.net>
82484             Bruno Haible  <bruno@clisp.org>
82486         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
82487         invocations.
82488         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
82490 2009-05-21  Eric Blake  <ebb9@byu.net>
82491             Bruno Haible  <bruno@clisp.org>
82493         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
82494         include_next. Fix of 2008-11-20 commit.
82495         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
82496         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
82497         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
82498         NEXT_MATH_H.
82499         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
82500         instead of NEXT_MATH_H.
82502 2009-05-21  Bruno Haible  <bruno@clisp.org>
82504         Avoid redefinition warnings for SIZE_MAX.
82505         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
82506         Reported by Simon Josefsson.
82508 2009-05-21  Bruno Haible  <bruno@clisp.org>
82510         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
82511         AC_CACHE_VAL.
82513 2009-05-20  Bruno Haible  <bruno@clisp.org>
82515         Make zeroptr.h work on mingw.
82516         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
82517         mprotect.
82518         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
82519         * modules/memchr2-tests (configure.ac): Likewise.
82520         * modules/memcmp-tests (configure.ac): Likewise.
82521         * modules/memmem-tests (configure.ac): Likewise.
82522         * modules/memrchr-tests (configure.ac): Likewise.
82523         Reported by Simon Josefsson.
82525 2009-05-20  Simon Josefsson  <simon@josefsson.org>
82527         * tests/test-glob.c: Include string.h for strcmp prototype.
82529 2009-05-20  Simon Josefsson  <simon@josefsson.org>
82531         * modules/getdelim (Depends-on): Add explicit stdint, although it
82532         was implicitly already pulled in via realloc-posix.
82533         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
82535 2009-05-20  Simon Josefsson  <simon@josefsson.org>
82537         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
82538         G. Christensen" <tgc@jupiterrise.com>.
82539         * m4/sys_socket_h.m4: Check for sa_family_t.
82540         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
82541         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
82542         * tests/test-sys_socket.c: Check that sa_family_t works.
82544 2009-05-18  Eric Blake  <ebb9@byu.net>
82546         maint.mk: allow gnulib_dir in VPATH build
82547         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
82549 2009-05-15  Jim Meyering  <meyering@redhat.com>
82551         maint.mk: Give gnulib_dir a default definition.
82552         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
82553         Thus, most packages no longer need to specify this variable in cfg.mk
82555 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
82557         rename.m4: fix typos that would make non-mingw cross-configure fail
82558         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
82560 2009-05-13  Eric Blake  <ebb9@byu.net>
82562         mmap-anon: avoid out-of-order autoconf expansion
82563         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
82564         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
82565         * modules/memchr-tests (Depends-on): Add extensions.
82566         * modules/memchr2-tests (Depends-on): Add extensions.
82567         * modules/memcmp-tests (Depends-on): Add extensions.
82568         * modules/memmem-tests (Depends-on): Add extensions.
82569         * modules/memrchr-tests (Depends-on): Add extensions.
82571 2009-05-13  Bruno Haible  <bruno@clisp.org>
82573         Make some tests ISO C 99 compliant.
82574         * tests/zerosize-ptr.h: New file.
82575         * tests/test-memchr.c: Include zerosize-ptr.h.
82576         (main): Use a zero-size object pointer instead of NULL.
82577         * tests/test-memchr2.c: Include zerosize-ptr.h.
82578         (main): Use a zero-size object pointer instead of NULL.
82579         * tests/test-memcmp.c: Include zerosize-ptr.h.
82580         (main): Use a zero-size object pointer instead of NULL.
82581         * tests/test-memmem.c: Include zerosize-ptr.h.
82582         (main): Use a zero-size object pointer instead of NULL.
82583         * tests/test-memrchr.c: Include zerosize-ptr.h.
82584         (main): Use a zero-size object pointer instead of NULL.
82585         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
82586         m4/mmap-anon.m4.
82587         (Depends-on): Add getpagesize.
82588         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82589         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
82590         m4/mmap-anon.m4.
82591         (Depends-on): Add getpagesize.
82592         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82593         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
82594         m4/mmap-anon.m4.
82595         (Depends-on): Add getpagesize.
82596         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82597         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
82598         m4/mmap-anon.m4.
82599         (Depends-on): Add getpagesize.
82600         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82601         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
82602         m4/mmap-anon.m4.
82603         (Depends-on): Add getpagesize.
82604         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
82606 2009-05-12  Bruno Haible  <bruno@clisp.org>
82608         Tests for module 'alignof'.
82609         * modules/alignof-tests: New file.
82610         * tests/test-alignof.c: New file.
82612 2009-05-12  Bruno Haible  <bruno@clisp.org>
82614         Fix alignof macro.
82615         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
82616         vendor compilers that are always correct.
82618 2009-05-12  Bruno Haible  <bruno@clisp.org>
82620         Make the MAP_ANONYMOUS detection work on HP-UX 11.
82621         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
82622         not whether its fully works.
82624 2009-05-12  Bruno Haible  <bruno@clisp.org>
82626         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
82628 2009-05-12  Jim Meyering  <meyering@redhat.com>
82630         * top/maint.mk: Adjust backslash alignment.
82632 2009-05-11  Simon Josefsson  <simon@josefsson.org>
82634         * top/maint.mk: Make $(srcdir)/build-aux configurable.
82636 2009-05-11  Eric Blake  <ebb9@byu.net>
82638         argp: avoid undefined behavior
82639         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
82640         macros.
82642 2009-05-08  Simon Josefsson  <simon@josefsson.org>
82644         * tests/test-vc-list-files-git.sh: Do git config of user.email and
82645         user.name to prevent git commit from complaining.
82647 2009-05-10  Bruno Haible  <bruno@clisp.org>
82649         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
82650         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
82651         it rewrites every file name only once.
82652         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
82654 2009-05-08  Bruno Haible  <bruno@clisp.org>
82656         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
82657         instead of 'max'.
82659 2009-05-08  Simon Josefsson  <simon@josefsson.org>
82661         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
82662         sockaddr_storage test.
82664 2009-05-07  Simon Josefsson  <simon@josefsson.org>
82666         * modules/sys_socket (Makefile.am): Substitute
82667         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
82668         * m4/sys_socket_h.m4: Check for sockaddr_storage.
82669         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
82670         * tests/test-sys_socket.c: Check sockaddr_storage.
82672 2009-05-08  Bruno Haible  <bruno@clisp.org>
82674         New module 'alignof'.
82675         * lib/alignof.h: New file.
82676         * modules/alignof: New file.
82678 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
82679             Bruno Haible  <bruno@clisp.org>
82681         Fix test-file-has-acl on FreeBSD.
82682         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
82683         mask is implicitly added.
82684         * tests/test-file-has-acl.c: Include <signal.h>.
82685         (main): Terminate the test after 5 seconds.
82686         * modules/acl-tests (configure.ac): Check for alarm function.
82688 2009-05-04  Bruno Haible  <bruno@clisp.org>
82690         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
82691         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
82692         * modules/errno (configure.ac): Drop AC_REQUIRE.
82693         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
82694         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
82696 2009-05-04  Simon Josefsson  <simon@josefsson.org>
82698         * modules/glob-tests: New module.
82699         * tests/test-glob.c: Add.
82701 2009-05-04  Simon Josefsson  <simon@josefsson.org>
82703         * modules/fnmatch-tests: New module.
82704         * tests/test-fnmatch.c: Add.
82706 2009-05-04  Eric Blake  <ebb9@byu.net>
82708         maint: make the new no-submodule-changes rule VPATH-safe
82709         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
82711 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
82712             Bruno Haible  <bruno@clisp.org>
82714         acl: Fix infinite loop on FreeBSD.
82715         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
82716         of return value from acl_get_entry.
82717         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
82718         Likewise.
82720 2009-05-03  Bruno Haible  <bruno@clisp.org>
82722         * lib/acl-internal.h (acl_entries): Clarify return value.
82723         * lib/acl_entries.c (acl_entries): Likewise.
82725 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
82727         Bug fix in acl module.
82728         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
82730 2009-05-03  Bruno Haible  <bruno@clisp.org>
82732         Create gperf-generated file in the source dir, not in the build dir.
82733         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
82734         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
82735         * modules/unicase/locale-language (unicase/locale-languages.h):
82736         Likewise.
82737         * modules/unicase/special-casing (unicase/special-casing-table.h):
82738         Likewise.
82739         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
82740         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
82741         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
82742         Reported by Ralf Wildenhues.
82744 2009-05-03  Bruno Haible  <bruno@clisp.org>
82746         * modules/fnmatch (Description, configure.ac): Taken from
82747         fnmatch-posix.
82748         * modules/fnmatch-posix: Turn into a symbolic reference to the
82749         'fnmatch' module, and deprecate.
82750         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
82752 2009-05-03  Bruno Haible  <bruno@clisp.org>
82754         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
82755         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
82756         Reported by Ralf Wildenhues.
82758 2009-05-04  Simon Josefsson  <simon@josefsson.org>
82760         * m4/fnmatch.m4: Fix fnmatch re-define.
82762 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
82764         priv-set: new module and tests; adapt write-any-file
82765         * lib/priv-set.c: New file.
82766         * lib/priv-set.h: New file.
82767         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
82768         * lib/write-any-file.c: Simplify by using priv-set module.
82769         * m4/priv-set.m4: New file.
82770         * modules/priv-set: New file.
82771         * modules/unlinkdir: Add dependency on priv-set module.
82772         * modules/write-any-file: Likewise.
82774         Tests for module 'priv-set'.
82775         * modules/priv-set-tests: New file.
82776         * tests/test-priv-set.c: New file.
82778 2009-05-03  Jim Meyering  <meyering@redhat.com>
82779             Bruno Haible  <bruno@clisp.org>
82781         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
82782         use the converted UTF-8 variant of the name instead.
82784 2009-05-03  Jim Meyering  <meyering@redhat.com>
82786         tests: tighten some getdate tests
82787         * tests/test-getdate.c (main): Tighten tests: require equality,
82788         not just greater than.  Set TZ envvar to UTC0.
82790 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
82792         getdate: correctly interpret "next monday" when run on a Monday
82793         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
82794         that e.g., "next tues" (when run on a tuesday) results in a date
82795         that is one week in the future, and not today's date.
82796         I.e., add a week when the wday is the same as the current one.
82797         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
82798         and earlier by Martin Bernreuther and Jan Minář.
82799         * tests/test-getdate.c (main): Check that "next DAY" is always in
82800         the future and that "last DAY" is always in the past.
82802 2009-05-02  Jim Meyering  <meyering@redhat.com>
82804         build: ensure that a release build fails when a submodule is unclean
82805         * top/maint.mk (no-submodule-changes): New rule.
82806         (alpha beta major): Depend on it.
82808 2009-05-02  Bruno Haible  <bruno@clisp.org>
82810         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
82811         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
82812         shell variable gl_fnmatch_required to detect which variant is
82813         requested.
82814         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
82815         gl_FUNC_FNMATCH_POSIX.
82816         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
82817         exclude fnmatch-posix.
82819 2009-05-02  Bruno Haible  <bruno@clisp.org>
82821         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
82822         * modules/mbsrtowcs (License): Change to LGPLv2+.
82823         * modules/strnlen1 (License): Likewise.
82824         Reported by Simon Josefsson.
82826 2009-05-02  Bruno Haible  <bruno@clisp.org>
82828         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
82829         "cross".
82830         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
82831         gnulib-tool was called with option --source-base=lib.
82833 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82835         Use automake *-local hooks without commands, for extensibility.
82836         * modules/localcharset (Makefile.am): Rename install-exec-local
82837         rule to install-exec-localcharset, and make it a prerequisite of
82838         install-exec-local.  Likewise, rename the uninstall-local rule to
82839         uninstall-localcharset, and make it a prerequisite of the former.
82841 2009-05-01  Bruno Haible  <bruno@clisp.org>
82843         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
82844         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
82845         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
82846         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
82847         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
82848         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
82849         m4/locale-zh.m4, m4/codeset.m4.
82851         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
82852         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
82853         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
82854         m4/locale-zh.m4.
82856         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
82857         REPLACE_WCRTOMB if mbstate_t must be replaced.
82858         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
82859         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
82861 2009-05-01  Bruno Haible  <bruno@clisp.org>
82863         Avoid compiler warnings when redefining macros defined by <libintl.h>.
82864         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
82865         dngettext, dcngettext, textdomain, bindtextdomain,
82866         bind_textdomain_codeset): Undefine before redefining.
82868 2009-04-30  Bruno Haible  <bruno@clisp.org>
82870         Fix bug introduced on 2009-04-25.
82871         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
82872         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
82873         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
82874         is defined.
82875         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
82876         is defined.
82877         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
82878         is defined.
82879         Reported by Elbert_Pol <elbert.pol@gmail.com>.
82881 2009-04-28  Bruno Haible  <bruno@clisp.org>
82883         Comment tweaks.
82884         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
82885         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
82886         * lib/unicase.h (u*_casexfrm): Likewise.
82887         Reported by Paolo Bonzini.
82889 2009-04-28  Bruno Haible  <bruno@clisp.org>
82891         Fix a compilation error.
82892         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
82893         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
82894         Reported by Jim Meyering.
82896 2009-04-27  Bruno Haible  <bruno@clisp.org>
82898         New module 'libunistring'.
82899         * modules/libunistring: New file.
82900         * m4/libunistring.m4: New file.
82901         * MODULES.html.sh (Unicode string functions): Add it.
82903 2009-04-27  Eric Blake  <ebb9@byu.net>
82905         maint.mk: allow package-specific header to provide <config.h>
82906         * top/maint.mk (sc_require_config_h): New variable.
82907         (sc_require_config_h, sc_require_config_h_first): Use it.
82909 2009-04-27  Simon Josefsson  <simon@josefsson.org>
82911         * top/maint.mk (sc_avoid_if_before_free): Except
82912         useless-if-before-free script.
82914 2009-04-27  Eric Blake  <ebb9@byu.net>
82916         maintainer-makefile: depend on all required helper scripts
82917         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
82918         useless-if-before-free.
82919         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
82920         version, rather than assuming gnulib checkout is available.
82921         Reported by Simen Josefsson.
82923 2009-04-26  Bruno Haible  <bruno@clisp.org>
82925         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
82926         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
82927         "../" or "..".
82929 2009-04-26  Bruno Haible  <bruno@clisp.org>
82931         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
82932         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
82933         AC_LIB_HAVE_LINKFLAGS.
82935 2009-04-26  Bruno Haible  <bruno@clisp.org>
82937         Simplify calling convention of u*_conv_from_encoding.
82938         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
82939         u32_conv_from_encoding): Expect a resultbuf argument and return the
82940         result directly as a pointer.
82941         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
82942         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
82943         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
82944         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
82945         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
82946         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
82947         Update.
82948         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
82949         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
82950         * lib/vasnprintf.c (VASNPRINTF): Update.
82951         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
82952         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
82953         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
82954         * NEWS: Mention the change.
82956 2009-04-26  Bruno Haible  <bruno@clisp.org>
82958         Simplify calling convention of u*_conv_to_encoding.
82959         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
82960         u32_conv_to_encoding): Expect a resultbuf argument and return the
82961         result directly as a pointer.
82962         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
82963         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
82964         freeing scaled_offsets if mem_iconveha failed.
82965         * lib/unicase/u-casexfrm.h (FUNC): Update.
82966         * lib/uninorm/u-normxfrm.h (FUNC): Update.
82967         * lib/vasnprintf.c (VASNPRINTF): Update.
82968         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
82969         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
82970         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
82971         * NEWS: Mention the change.
82973 2009-04-26  Bruno Haible  <bruno@clisp.org>
82975         Avoid test failures on AIX and OSF/1.
82976         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
82977         malloc(0).
82978         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
82979         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
82980         Likewise.
82981         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
82982         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
82983         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
82984         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
82985         * doc/posix-functions/malloc.texi: Document the portability problem
82986         related to malloc(0).
82988 2009-04-26  Bruno Haible  <bruno@clisp.org>
82990         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
82991         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
82992         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
82994 2009-04-25  Bruno Haible  <bruno@clisp.org>
82996         Avoid link error when creating a namespace clean library.
82997         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
82998         as macro with arguments if already defined as an alias.
82999         * lib/signbitf.c (gl_signbitf): Don't undefine.
83000         * lib/signbitd.c (gl_signbitd): Don't undefine.
83001         * lib/signbitl.c (gl_signbitl): Don't undefine.
83003 2009-04-25  Jim Meyering  <meyering@redhat.com>
83005         vc-list-files: fix another quoting bug
83006         * build-aux/vc-list-files: Avoid sed backslash expansion
83007         of pathological directory names.
83009 2009-04-25  Eric Blake  <ebb9@byu.net>
83011         vc-list-files: fix shell quoting error
83012         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
83013         timestamp.
83015 2009-04-25  Jim Meyering  <meyering@redhat.com>
83017         vc-list-files: restore lost functionality with subdir argument
83018         * build-aux/vc-list-files: When given a non-"." sub-directory
83019         argument, substitute the $dir/ prefix back onto each resulting name.
83020         Otherwise, coreutils' root_tests check would fail.
83022 2009-04-24  Eric Blake  <ebb9@byu.net>
83024         vc-list-files: ignore git symlinks
83025         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
83026         than ls-files, to ignore git symlinks.
83028         maint.mk: import improvements from m4
83029         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
83030         (move_if_change): Delete unused macro.
83031         (news-date-check, vc-diff-check): Support VPATH builds.
83032         (announcement): Likewise.  Split --bootstrap-tools list...
83033         (boostrap-tools): ...into separate list, which can be overridden
83034         in cfg.mk.
83035         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
83036         requiring dependency on useless-if-before-free module.
83037         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
83038         Support VPATH builds.
83040 2009-04-24  Jim Meyering  <meyering@redhat.com>
83042         maint.mk: remove coreutils-specific rules and variables
83043         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
83044         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
83045         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
83047         maint.mk: remove obsolete rule
83048         * top/maint.mk (rel-check): Remove rule.
83049         (WGET, WGETFLAGS): Remove now-unused variables.
83051 2009-04-24  Simon Josefsson  <simon@josefsson.org>
83053         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
83054         consistency.
83056         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
83057         '$(PATH_SEPARATOR)' instead of ':'.
83059 2009-04-24  Simon Josefsson  <simon@josefsson.org>
83061         * lib/getopt1.c (main): Use 'const' for static array.
83063 2009-04-24  Simon Josefsson  <simon@josefsson.org>
83065         * top/maint.mk: Sync with coreutils.
83066         * NEWS: Explain incompatibilities.
83068 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83069             Bruno Haible  <bruno@clisp.org>
83071         Fix cross-compilation results.
83072         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
83073         statement, as third argument of AC_TRY_RUN.
83074         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
83075         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
83076         Likewise.
83077         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
83078         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
83079         Likewise.
83080         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
83081         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
83082         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
83084 2009-04-20  Bruno Haible  <bruno@clisp.org>
83086         Avoid test failure on mingw.
83087         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
83089 2009-04-20  Bruno Haible  <bruno@clisp.org>
83091         Avoid compilation error on mingw.
83092         * modules/localename-tests (Depends-on): Add locale.
83094 2009-04-19  Bruno Haible  <bruno@clisp.org>
83096         Support for building a shared library on Windows platforms.
83097         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
83098         (main): Test the presence of UNINORM_NFC here.
83099         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
83100         (main): Test the presence of UNINORM_NFD here.
83101         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
83102         (main): Test the presence of UNINORM_NFKC here.
83103         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
83104         (main): Test the presence of UNINORM_NFKD here.
83106 2009-04-19  Bruno Haible  <bruno@clisp.org>
83108         Avoid a compiler warning.
83109         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
83110         Change type of variable 'sequence'.
83112 2009-04-19  Bruno Haible  <bruno@clisp.org>
83114         * modules/configmake (Makefile.am): When the contents of configmake.h
83115         does not change, arrange to preserve its modification time.
83117 2009-04-17  Simon Josefsson  <simon@josefsson.org>
83119         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
83120         gettext domain.
83122 2009-04-16  Jim Meyering  <meyering@redhat.com>
83124         useless-if-before-free: improve conversion code
83125         * build-aux/useless-if-before-free: Adjust code-in-comment to match
83126         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
83128 2009-04-14  Bruno Haible  <bruno@clisp.org>
83130         * modules/fcntl (Depends-on): Add extensions.
83131         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
83133 2009-04-12  Ben Pfaff  <blp@gnu.org>
83135         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
83136         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
83138 2009-03-20  Ben Pfaff  <blp@gnu.org>
83140         Make rename replace existing destinations on Windows.
83141         * m4/rename.m4: Add test for Mingw.
83142         * lib/rename.c: Add rename replacement that uses MoveFileEx with
83143         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
83144         * doc/posix-functions/rename.texi: Document.
83146 2009-04-10  Bruno Haible  <bruno@clisp.org>
83148         New include file "iconveh.h".
83149         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
83150         * lib/striconveh.h: Include it.
83151         (enum iconv_ilseq_handler): Remove definition.
83152         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
83153         striconveh.h.
83154         * lib/striconveha.c: Include striconveh.h.
83155         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
83156         * modules/striconveh (Files): Add lib/iconveh.h.
83157         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
83158         lib/striconveh.h.
83160 2009-04-10  Bruno Haible  <bruno@clisp.org>
83162         * lib/uniconv.h: Update comment.
83164 2009-04-10  Bruno Haible  <bruno@clisp.org>
83166         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
83167         always.
83168         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
83169         * lib/unistr/u16-mbtouc-aux.c: Likewise.
83170         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
83171         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
83172         "unistring-notinline.h", so that the function gets defined always.
83173         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
83174         * lib/unistr/u8-uctomb.c: Likewise.
83175         * lib/unistr/u16-mbtouc.c: Likewise.
83176         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
83177         * lib/unistr/u16-uctomb.c: Likewise.
83178         * lib/unistr/u32-mbtouc.c: Likewise.
83179         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
83180         * lib/unistr/u32-uctomb.c: Likewise.
83182 2009-04-10  Bruno Haible  <bruno@clisp.org>
83184         Mark 'utime' obsolete.
83185         * modules/utime (Status, Notice): New sections.
83186         Suggested by Jim Meyering.
83188         Fix cross-compile guess for utime test.
83189         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
83190         autoconf.
83191         * doc/posix-functions/utime.texi: Give more precisions.
83192         Reported by Jan <ipif@ymail.com>.
83194 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
83196         filevercmp: correct today's change
83197         * lib/filevercmp.c: Also handle coreutils' test inputs.
83198         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
83200         Fix regression in 'filevercmp' module. Thanks Sven Joachim
83201         for reporting it.
83202         * lib/filevercmp.c: Special handle for "", "." and "..".
83203         * tests/test-filevercmp.c: Enlarge the set suite.
83205 2009-04-07  Jim Meyering  <meyering@redhat.com>
83207         useless-if-before-free: show how to remove braced useless free, too
83208         * build-aux/useless-if-before-free: still only in a comment, though.
83210 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
83212         maint.mk: import changes to syntax-check macros from coreutils
83213         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
83214         Use them in the relevant macros.
83216 2009-04-06  Bruno Haible  <bruno@clisp.org>
83218         Fix unportable use of bit-fields.
83219         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
83220         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
83221         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
83223 2009-04-06  Bruno Haible  <bruno@clisp.org>
83225         Avoid test failures on AIX and OSF/1.
83226         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
83227         that malloc(0) = NULL.
83228         * tests/unicase/test-u8-tolower.c (check): Likewise.
83229         * tests/unicase/test-u8-totitle.c (check): Likewise.
83230         * tests/unicase/test-u8-toupper.c (check): Likewise.
83231         * tests/unicase/test-u16-casefold.c (check): Likewise.
83232         * tests/unicase/test-u16-tolower.c (check): Likewise.
83233         * tests/unicase/test-u16-totitle.c (check): Likewise.
83234         * tests/unicase/test-u16-toupper.c (check): Likewise.
83235         * tests/unicase/test-u32-casefold.c (check): Likewise.
83236         * tests/unicase/test-u32-tolower.c (check): Likewise.
83237         * tests/unicase/test-u32-totitle.c (check): Likewise.
83238         * tests/unicase/test-u32-toupper.c (check): Likewise.
83239         * tests/uninorm/test-u8-nfc.c (check): Likewise.
83240         * tests/uninorm/test-u8-nfd.c (check): Likewise.
83241         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
83242         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
83243         * tests/uninorm/test-u16-nfc.c (check): Likewise.
83244         * tests/uninorm/test-u16-nfd.c (check): Likewise.
83245         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
83246         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
83247         * tests/uninorm/test-u32-nfc.c (check): Likewise.
83248         * tests/uninorm/test-u32-nfd.c (check): Likewise.
83249         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
83250         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
83252 2009-04-05  Bruno Haible  <bruno@clisp.org>
83254         Work around an autoconf limitation.
83255         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
83256         comment line if it would be longer than 3 KB.
83258 2009-04-05  Bruno Haible  <bruno@clisp.org>
83260         Avoid test failure with libiconv-1.13.
83261         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
83262         of the expected test results.
83264 2009-04-05  Bruno Haible  <bruno@clisp.org>
83266         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
83267         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
83268         that it should be installed.
83270 2009-04-05  Bruno Haible  <bruno@clisp.org>
83272         * gnulib-tool: New option --copy-file.
83273         (func_usage): Document it.
83274         (func_dest_tmpfilename): Moved out of func_import.
83275         (func_add_file, func_update_file): New functions, extracted from
83276         func_import.
83277         (func_import): Update.
83279 2009-04-05  Karl Berry  <karl@gnu.org>
83281         * README: prominently mention gnulib-tool.
83282         Rearrange sections so getting the code is near the top.
83284 2009-04-05  Bruno Haible  <bruno@clisp.org>
83286         * lib/unicase.h: Mention u*_cmp2.
83287         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
83288         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
83289         * lib/unicase/ulc-casecmp.c: Likewise.
83290         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
83291         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
83292         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
83293         unistr/u8-cmp.
83294         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
83295         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
83296         unistr/u16-cmp.
83297         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
83298         unistr/u32-cmp.
83300         * lib/uninorm.h: Mention u*_cmp2.
83301         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
83302         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
83303         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
83304         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
83305         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
83306         unistr/u8-cmp.
83307         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
83308         unistr/u16-cmp.
83309         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
83310         unistr/u32-cmp.
83312         New module 'unistr/u32-cmp2'.
83313         * lib/unistr/u32-cmp2.c: New file.
83314         * modules/unistr/u32-cmp2: New file.
83316         New module 'unistr/u16-cmp2'.
83317         * lib/unistr/u16-cmp2.c: New file.
83318         * modules/unistr/u16-cmp2: New file.
83320         New module 'unistr/u8-cmp2'.
83321         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
83322         * lib/unistr/u8-cmp2.c: New file.
83323         * lib/unistr/u-cmp2.h: New file.
83324         * modules/unistr/u8-cmp2: New file.
83326 2009-04-05  Bruno Haible  <bruno@clisp.org>
83328         * lib/unictype.h (uc_property_is_valid): New macro.
83329         * tests/unictype/test-pr_byname.c (main): Use it.
83331         * lib/unistr.h: Doc fixes.
83332         * lib/uniconv.h: Doc fixes.
83333         * lib/unictype.h: Doc fixes.
83335 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
83337         Port coreutils 7.2 to Solaris 8.
83339         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
83340         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
83341         for Solaris 8.  This is a bit of a hack, as it means it's the
83342         caller's responsibility to add -lnsl if needed, but most likely it
83343         won't be needed since only getaddrinfo uses this and getaddrinfo
83344         isn't needed on Solaris 8.
83346         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
83347         problem to Solaris 8 encountered with coreutils 7.2, which
83348         resulted in a message "fnmatch.c:292: warning: passing argument 4
83349         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
83350         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
83352 2009-04-03  Simon Josefsson  <simon@josefsson.org>
83354         * m4/ld-version-script.m4: Add FIXME comment.
83356 2009-04-02  Simon Josefsson  <simon@josefsson.org>
83358         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
83359         SOVERSION variable.
83361 2009-04-02  Bruno Haible  <bruno@clisp.org>
83363         * Makefile (info, html, dvi, pdf): Combine the rules.
83364         Suggested by Jim Meyering.
83366 2009-04-01  Bruno Haible  <bruno@clisp.org>
83368         * Makefile (info, html, dvi, pdf): New targets.
83369         Reported by Reuben Thomas <rrt@sc3d.org>.
83371 2009-04-01  Bruno Haible  <bruno@clisp.org>
83373         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
83374         can be put into PATH.
83375         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
83377 2009-04-01  Bruno Haible  <bruno@clisp.org>
83379         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
83381 2009-04-01  Bruno Haible  <bruno@clisp.org>
83383         Rename module 'visibility'.
83384         * modules/lib-symbol-visibility: Renamed from modules/visibility.
83385         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
83386         * doc/gnulib.texi: Update.
83387         * MODULES.html.sh (Misc): Update.
83388         * NEWS: Mention the change.
83390 2009-04-01  Simon Josefsson  <simon@josefsson.org>
83392         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
83393         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
83394         Eric Blake <ebb9@byu.net> for review.
83395         * MODULES.html.sh: Add lib-msvc-compat.
83396         * doc/gnulib.texi: Link to new section.
83397         * m4/ld-output-def.m4: New file.
83398         * doc/ld-output-def.texi: New file.
83400 2009-04-01  Simon Josefsson  <simon@josefsson.org>
83402         Rename ld-version-script to lib-symbol-versions.  Suggested by
83403         Bruno Haible <bruno@clisp.org>.
83404         * modules/ld-version-script: Renamed to lib-symbol-versions.
83405         * doc/ld-version-script.texi: Fix module name.
83406         * MODULES.html.sh: Add lib-symbol-versions.
83408 2009-03-31  Simon Josefsson  <simon@josefsson.org>
83410         * modules/u64-tests: New file.
83411         * tests/test-u64.c: New file.
83413 2009-03-04  Simon Josefsson  <simon@josefsson.org>
83415         * MODULES.html.sh: Mention u64.
83416         * modules/u64: New module.
83417         * modules/crypto/sha512: Depend on u64 module instead of providing
83418         u64.h.
83420 2009-03-27  Eric Blake  <ebb9@byu.net>
83422         test-strerror: make debugging EAI_SYSTEM easier
83423         * modules/getaddrinfo-tests (Depends-on): Add strerror.
83424         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
83425         failure was EAI_SYSTEM.
83427 2009-03-25  Bruno Haible  <bruno@clisp.org>
83429         Fix a problem with --enable-relocatable on Solaris 7.
83430         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
83431         since 2008-02-24.
83433 2009-03-25  Eric Blake  <ebb9@byu.net>
83435         test-sockets: avoid gcc warning
83436         * tests/test-sockets.c (main): Silence compiler warning.
83438 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
83440         New modules nproc, pthread, contributed by Glen Lenker.
83442         * MODULES.html.sh: Add pthread, nproc.
83443         * lib/nproc.c: New file.
83444         * lib/nproc.h: New file.
83445         * lib/pthread.in.h: New file.
83446         * m4/pthread.m4: New file.
83447         * modules/nproc: New file.
83448         * modules/pthread: New file.
83450 2009-03-24  Simon Josefsson  <simon@josefsson.org>
83452         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
83453         New variable.
83455 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
83457         filevercmp: handle simple~ and numbered.~3~ backup suffixes
83458         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
83459         * tests/test-filevercmp.c: Add tests for backup suffixes.
83461 2009-03-24  Simon Josefsson  <simon@josefsson.org>
83463         * modules/stdlib (Depends-on): Add stdint, needed when defining
83464         struct random_data on, for example, HP-UX 10.20.  Reported by
83465         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
83467 2009-03-24  Simon Josefsson  <simon@josefsson.org>
83469         * lib/readline.c (readline): Call fflush on stdout after printing
83470         prompt.
83472 2009-03-20  Bruno Haible  <bruno@clisp.org>
83474         Remove dependency from 'close' module to -lws2_32 on native Windows.
83475         * lib/close-hook.h: New file.
83476         * lib/close-hook.c: New file.
83477         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
83478         w32sock.h.
83479         (_gl_close_fd_maybe_socket): Remove function.
83480         (rpl_close): Invoke execute_all_close_hooks instead of
83481         _gl_close_fd_maybe_socket.
83482         * lib/sockets.c: Include close-hook.h, w32sock.h.
83483         (close_fd_maybe_socket): New function, essentially from lib/close.c.
83484         (close_sockets_hook): New variable.
83485         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
83486         (gl_sockets_cleanup): Unregister it.
83487         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
83488         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
83489         * modules/close-hook: New file.
83490         * modules/close (Files): Remove lib/w32sock.h.
83491         (Depends-on): Add close-hook.
83492         (Link): Remove section.
83493         * modules/sockets (Files): Add lib/w32sock.h.
83494         (Depends-on): Add close-hook.
83495         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
83496         invocation.
83497         * NEWS: Mention that LIB_CLOSE is gone.
83499 2009-03-23  Eric Blake  <ebb9@byu.net>
83501         signal-tests: test previous patch
83502         * tests/test-signal.c: New file.
83503         * modules/signal-tests: Likewise.
83505         signal.h: always support 'volatile sig_atomic_t'
83506         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
83507         (gl_SIGNAL_H_DEFAULTS): Add a default.
83508         * modules/signal (Makefile.am): Substitute if needed.
83509         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
83510         users can blindly add volatile.
83511         * doc/posix-headers/signal.texi (signal.h): Document it.
83512         Reported by Matthew Woehlke.
83514 2009-03-23  Jim Meyering  <meyering@redhat.com>
83516         pathmax: PATH_MAX: use pathconf only when available
83517         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
83518         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
83519         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
83520         This avoids a link failure in a PSP cross-compilation environment
83521         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
83523         * lib/vasnprintf.c (divide): Fix typo in comment.
83525 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83527         * gnulib-tool (func_filter_filelist): Fix comment.
83529 2009-03-20  Bruno Haible  <bruno@clisp.org>
83531         Make sockets.h self-contained.
83532         * lib/sockets.c: Include sockets.h first.
83533         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
83535 2009-03-19  Eric Blake  <ebb9@byu.net>
83537         doc: mention more functions added in cygwin 1.7.0
83538         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
83539         addition.
83540         * doc/posix-functions/log2f.texi: Likewise.
83542 2009-03-19  Jim Meyering  <meyering@redhat.com>
83544         fsusage: avoid syntax error due to statement-before-declaration
83545         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
83546         after all declarations.  Reported by Matthew Woehlke in
83547         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
83549 2009-03-18  Eric Blake  <ebb9@byu.net>
83551         build-aux/compile: sync from automake
83552         * build-aux/compile: New file, from automake.
83553         * config/srclist.txt: Mention build-aux/compile.
83555 2009-03-17  Bruno Haible  <bruno@clisp.org>
83557         * lib/git-merge-changelog.c: Fix typo in comment.
83558         Reported by Reuben Thomas <rrt@sc3d.org>.
83560 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
83562         * m4/regex.m4: update and improve help for
83563         --without-included-regex.
83565 2009-03-17  Simon Josefsson  <simon@josefsson.org>
83567         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
83568         failure on missing include files.
83570 2009-03-17  Eric Blake  <ebb9@byu.net>
83572         doc: mention more functions added in cygwin 1.7.0
83573         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
83574         addition.
83575         * doc/posix-functions/fwscanf.texi: Likewise.
83576         * doc/posix-functions/swprintf.texi: Likewise.
83577         * doc/posix-functions/swscanf.texi: Likewise.
83578         * doc/posix-functions/vfwprintf.texi: Likewise.
83579         * doc/posix-functions/vfwscanf.texi: Likewise.
83580         * doc/posix-functions/vswprintf.texi: Likewise.
83581         * doc/posix-functions/vswscanf.texi: Likewise.
83582         * doc/posix-functions/vwprintf.texi: Likewise.
83583         * doc/posix-functions/vwscanf.texi: Likewise.
83584         * doc/posix-functions/wcscasecmp.texi: Likewise.
83585         * doc/posix-functions/wcsdup.texi: Likewise.
83586         * doc/posix-functions/wcsftime.texi: Likewise.
83587         * doc/posix-functions/wcsncasecmp.texi: Likewise.
83588         * doc/posix-functions/wprintf.texi: Likewise.
83589         * doc/posix-functions/wscanf.texi: Likewise.
83590         * doc/glibc-functions/gethostbyname2.texi: Likewise.
83592 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83594         maint.mk: really add $(AM_MAKEFLAGS)
83595         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
83596         was inadvertently omitted in the last commit.
83597         Spotted by Bruno Haible.
83599         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
83600         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
83601         $(AM_MAKEFLAGS)' rather than plain `make'.
83603         gnulib-tool: execute $MAKE not make
83604         * gnulib-tool: Default $MAKE to 'make'.
83605         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
83606         than make.  Initialize $MAKE in the do-autobuild script.
83608         gnulib-tool: use $MAKE not make in generated files
83609         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
83610         make, in generated files.  Initialize $MAKE in the do-autobuild
83611         script.
83613         * top/GNUmakefile (_have-git-version-gen): Fix typo.
83615         GNUmakefile: disable parallelism only for multiple, recursive targets
83616         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
83617         additions in the Makefile.
83618         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
83619         by Automake.
83620         (.NOTPARALLEL): Only disable parallel builds if multiple targets
83621         are listed on the command line and at least one of them is
83622         listed in $(ALL_RECURSIVE_TARGETS).
83624 2009-03-14  Bruno Haible  <bruno@clisp.org>
83626         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
83627         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
83628         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
83629         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
83630         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
83631         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
83632         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
83633         unistr/u8-uctomb.
83634         * modules/unistr/u8-strchr (Depends-on): Likewise.
83635         * modules/unistr/u8-strrchr (Depends-on): Likewise.
83636         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
83637         unistr/u16-uctomb.
83638         * modules/unistr/u16-strchr (Depends-on): Likewise.
83639         * modules/unistr/u16-strrchr (Depends-on): Likewise.
83641 2009-03-12  Bruno Haible  <bruno@clisp.org>
83643         Work around select() bug on Interix 3.5.
83644         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
83645         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
83646         * m4/select.m4: New file.
83647         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
83648         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
83649         * modules/select (Files): Add m4/select.m4.
83650         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
83651         * modules/nanosleep (Depends-on): Add select.
83652         * modules/poll (Depends-on): Likewise.
83653         * doc/posix-functions/select.texi: Mention the Interix bug.
83654         Reported by Markus Duft <mduft@gentoo.org>.
83656         * lib/select.c: Renamed from lib/winsock-select.c.
83657         * modules/select (Files): Add lib/select.c, remove
83658         lib/winsock-select.c.
83659         (configure.ac): Update.
83661 2009-03-12  Jim Meyering  <meyering@redhat.com>
83663         avoid gcc warnings about unused macro definitions
83664         * lib/readtokens.c (STREQ): Remove unused definition.
83665         * lib/xmalloc.c (SIZE_MAX): Likewise.
83666         * lib/openat-die.c (N_): Likewise.
83667         * lib/mountlist.c (SIZE_MAX): Remove definition.
83668         Instead, include <stdint.h>.
83669         * lib/readutmp.c: Likewise.
83670         * modules/readutmp (Depends-on): Add stdint.
83671         * modules/mountlist (Depends-on): Add stdint.
83672         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
83674 2009-03-10  Bruno Haible  <bruno@clisp.org>
83676         Tests for module 'mbmemcasecoll'.
83677         * modules/mbmemcasecoll-tests: New file.
83678         * tests/test-mbmemcasecoll1.sh: New file.
83679         * tests/test-mbmemcasecoll2.sh: New file.
83680         * tests/test-mbmemcasecoll3.sh: New file.
83681         * tests/test-mbmemcasecoll.c: New file.
83683         New module 'mbmemcasecoll'.
83684         * lib/mbmemcasecoll.h: New file.
83685         * lib/mbmemcasecoll.c: New file.
83686         * modules/mbmemcasecoll: New file.
83688         * tests/test-mbmemcasecmp.h: New file, extracted from
83689         tests/test-mbmemcasecmp.c.
83690         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
83691         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
83692         (main): Update.
83693         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
83695 2009-03-09  Bruno Haible  <bruno@clisp.org>
83697         Tests for module 'mbmemcasecmp'.
83698         * modules/mbmemcasecmp-tests: New file.
83699         * tests/test-mbmemcasecmp1.sh: New file.
83700         * tests/test-mbmemcasecmp2.sh: New file.
83701         * tests/test-mbmemcasecmp3.sh: New file.
83702         * tests/test-mbmemcasecmp.c: New file.
83704         New module 'mbmemcasecmp'.
83705         * lib/mbmemcasecmp.h: New file.
83706         * lib/mbmemcasecmp.c: New file.
83707         * modules/mbmemcasecmp: New file.
83709 2009-03-09  Bruno Haible  <bruno@clisp.org>
83711         Tests for module 'unicase/ulc-casecoll'.
83712         * modules/unicase/ulc-casecoll-tests: New file.
83713         * tests/unicase/test-ulc-casecoll1.sh: New file.
83714         * tests/unicase/test-ulc-casecoll2.sh: New file.
83715         * tests/unicase/test-ulc-casecoll.c: New file.
83717         New module 'unicase/ulc-casecoll'.
83718         * lib/unicase.h (ulc_casecoll): New declaration.
83719         * lib/unicase/ulc-casecoll.c: New file.
83720         * modules/unicase/ulc-casecoll: New file.
83722         New module 'unicase/ulc-casexfrm'.
83723         * lib/unicase.h (ulc_casexfrm): New declaration.
83724         * lib/unicase/ulc-casexfrm.c: New file.
83725         * modules/unicase/ulc-casexfrm: New file.
83727 2009-03-09  Bruno Haible  <bruno@clisp.org>
83729         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
83730         invocations.
83732         * m4/mbscasecmp.m4: Remove file.
83733         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
83734         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
83736         * m4/mbscasestr.m4: Remove file.
83737         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
83738         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
83740         * m4/mbschr.m4: Remove file.
83741         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
83742         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
83744         * m4/mbscspn.m4: Remove file.
83745         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
83746         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
83748         * m4/mbslen.m4: Remove file.
83749         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
83750         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
83752         * m4/mbsncasecmp.m4: Remove file.
83753         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
83754         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
83756         * m4/mbsnlen.m4: Remove file.
83757         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
83758         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
83760         * m4/mbspbrk.m4: Remove file.
83761         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
83762         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
83764         * m4/mbspcasecmp.m4: Remove file.
83765         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
83766         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
83768         * m4/mbsrchr.m4: Remove file.
83769         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
83770         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
83772         * m4/mbssep.m4: Remove file.
83773         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
83774         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
83776         * m4/mbsspn.m4: Remove file.
83777         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
83778         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
83780         * m4/mbsstr.m4: Remove file.
83781         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
83782         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
83784         * m4/mbstok_r.m4: Remove file.
83785         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
83786         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
83788         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
83790         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
83791         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
83793         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
83795 2009-03-08  Bruno Haible  <bruno@clisp.org>
83797         Tests for module 'unicase/ulc-casecmp'.
83798         * modules/unicase/ulc-casecmp-tests: New file.
83799         * tests/unicase/test-ulc-casecmp1.sh: New file.
83800         * tests/unicase/test-ulc-casecmp2.sh: New file.
83801         * tests/unicase/test-ulc-casecmp.c: New file.
83803         New module 'unicase/ulc-casecmp'.
83804         * lib/unicase.h (ulc_casecmp): New declaration.
83805         * lib/unicase/ulc-casecmp.c: New file.
83806         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
83807         'const SRC_UNIT *'.
83808         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
83809         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
83810         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
83811         * modules/unicase/ulc-casecmp: New file.
83813         Tests for module 'unicase/u32-is-cased'.
83814         * modules/unicase/u32-is-cased-tests: New file.
83815         * tests/unicase/test-u32-is-cased.c: New file.
83817         Tests for module 'unicase/u16-is-cased'.
83818         * modules/unicase/u16-is-cased-tests: New file.
83819         * tests/unicase/test-u16-is-cased.c: New file.
83821         Tests for module 'unicase/u8-is-cased'.
83822         * modules/unicase/u8-is-cased-tests: New file.
83823         * tests/unicase/test-u8-is-cased.c: New file.
83824         * tests/unicase/test-is-cased.h: New file.
83826         New module 'unicase/u32-is-cased'.
83827         * lib/unicase/u32-is-cased.c: New file.
83828         * modules/unicase/u32-is-cased: New file.
83830         New module 'unicase/u16-is-cased'.
83831         * lib/unicase/u16-is-cased.c: New file.
83832         * modules/unicase/u16-is-cased: New file.
83834         New module 'unicase/u8-is-cased'.
83835         * lib/unicase/u8-is-cased.c: New file.
83836         * lib/unicase/u-is-cased.h: New file.
83837         * modules/unicase/u8-is-cased: New file.
83839         Tests for module 'unicase/u32-is-casefolded'.
83840         * modules/unicase/u32-is-casefolded-tests: New file.
83841         * tests/unicase/test-u32-is-casefolded.c: New file.
83843         Tests for module 'unicase/u16-is-casefolded'.
83844         * modules/unicase/u16-is-casefolded-tests: New file.
83845         * tests/unicase/test-u16-is-casefolded.c: New file.
83847         Tests for module 'unicase/u8-is-casefolded'.
83848         * modules/unicase/u8-is-casefolded-tests: New file.
83849         * tests/unicase/test-u8-is-casefolded.c: New file.
83850         * tests/unicase/test-is-casefolded.h: New file.
83852         New module 'unicase/u32-is-casefolded'.
83853         * lib/unicase/u32-is-casefolded.c: New file.
83854         * modules/unicase/u32-is-casefolded: New file.
83856         New module 'unicase/u16-is-casefolded'.
83857         * lib/unicase/u16-is-casefolded.c: New file.
83858         * modules/unicase/u16-is-casefolded: New file.
83860         New module 'unicase/u8-is-casefolded'.
83861         * lib/unicase/u8-is-casefolded.c: New file.
83862         * modules/unicase/u8-is-casefolded: New file.
83864         Tests for module 'unicase/u32-is-titlecase'.
83865         * modules/unicase/u32-is-titlecase-tests: New file.
83866         * tests/unicase/test-u32-is-titlecase.c: New file.
83868         Tests for module 'unicase/u16-is-titlecase'.
83869         * modules/unicase/u16-is-titlecase-tests: New file.
83870         * tests/unicase/test-u16-is-titlecase.c: New file.
83872         Tests for module 'unicase/u8-is-titlecase'.
83873         * modules/unicase/u8-is-titlecase-tests: New file.
83874         * tests/unicase/test-u8-is-titlecase.c: New file.
83875         * tests/unicase/test-is-titlecase.h: New file.
83877         New module 'unicase/u32-is-titlecase'.
83878         * lib/unicase/u32-is-titlecase.c: New file.
83879         * modules/unicase/u32-is-titlecase: New file.
83881         New module 'unicase/u16-is-titlecase'.
83882         * lib/unicase/u16-is-titlecase.c: New file.
83883         * modules/unicase/u16-is-titlecase: New file.
83885         New module 'unicase/u8-is-titlecase'.
83886         * lib/unicase/u8-is-titlecase.c: New file.
83887         * modules/unicase/u8-is-titlecase: New file.
83889         Tests for module 'unicase/u32-is-lowercase'.
83890         * modules/unicase/u32-is-lowercase-tests: New file.
83891         * tests/unicase/test-u32-is-lowercase.c: New file.
83893         Tests for module 'unicase/u16-is-lowercase'.
83894         * modules/unicase/u16-is-lowercase-tests: New file.
83895         * tests/unicase/test-u16-is-lowercase.c: New file.
83897         Tests for module 'unicase/u8-is-lowercase'.
83898         * modules/unicase/u8-is-lowercase-tests: New file.
83899         * tests/unicase/test-u8-is-lowercase.c: New file.
83900         * tests/unicase/test-is-lowercase.h: New file.
83902         New module 'unicase/u32-is-lowercase'.
83903         * lib/unicase/u32-is-lowercase.c: New file.
83904         * modules/unicase/u32-is-lowercase: New file.
83906         New module 'unicase/u16-is-lowercase'.
83907         * lib/unicase/u16-is-lowercase.c: New file.
83908         * modules/unicase/u16-is-lowercase: New file.
83910         New module 'unicase/u8-is-lowercase'.
83911         * lib/unicase/u8-is-lowercase.c: New file.
83912         * modules/unicase/u8-is-lowercase: New file.
83914         Tests for module 'unicase/u32-is-uppercase'.
83915         * modules/unicase/u32-is-uppercase-tests: New file.
83916         * tests/unicase/test-u32-is-uppercase.c: New file.
83918         Tests for module 'unicase/u16-is-uppercase'.
83919         * modules/unicase/u16-is-uppercase-tests: New file.
83920         * tests/unicase/test-u16-is-uppercase.c: New file.
83922         Tests for module 'unicase/u8-is-uppercase'.
83923         * modules/unicase/u8-is-uppercase-tests: New file.
83924         * tests/unicase/test-u8-is-uppercase.c: New file.
83925         * tests/unicase/test-is-uppercase.h: New file.
83927         New module 'unicase/u32-is-uppercase'.
83928         * lib/unicase/u32-is-uppercase.c: New file.
83929         * modules/unicase/u32-is-uppercase: New file.
83931         New module 'unicase/u16-is-uppercase'.
83932         * lib/unicase/u16-is-uppercase.c: New file.
83933         * modules/unicase/u16-is-uppercase: New file.
83935         New module 'unicase/u8-is-uppercase'.
83936         * lib/unicase/u8-is-uppercase.c: New file.
83937         * modules/unicase/u8-is-uppercase: New file.
83939         New module 'unicase/u32-is-invariant'.
83940         * lib/unicase/u32-is-invariant.c: New file.
83941         * modules/unicase/u32-is-invariant: New file.
83943         New module 'unicase/u16-is-invariant'.
83944         * lib/unicase/u16-is-invariant.c: New file.
83945         * modules/unicase/u16-is-invariant: New file.
83947         New module 'unicase/u8-is-invariant'.
83948         * lib/unicase/u8-is-invariant.c: New file.
83949         * lib/unicase/invariant.h: New file.
83950         * lib/unicase/u-is-invariant.h: New file.
83951         * modules/unicase/u8-is-invariant: New file.
83953         Tests for module 'unicase/u32-casecoll'.
83954         * modules/unicase/u32-casecoll-tests: New file.
83955         * tests/unicase/test-u32-casecoll.c: New file.
83957         Tests for module 'unicase/u16-casecoll'.
83958         * modules/unicase/u16-casecoll-tests: New file.
83959         * tests/unicase/test-u16-casecoll.c: New file.
83961         Tests for module 'unicase/u8-casecoll'.
83962         * modules/unicase/u8-casecoll-tests: New file.
83963         * tests/unicase/test-u8-casecoll.c: New file.
83965         New module 'unicase/u32-casecoll'.
83966         * lib/unicase/u32-casecoll.c: New file.
83967         * modules/unicase/u32-casecoll: New file.
83969         New module 'unicase/u16-casecoll'.
83970         * lib/unicase/u16-casecoll.c: New file.
83971         * modules/unicase/u16-casecoll: New file.
83973         New module 'unicase/u8-casecoll'.
83974         * lib/unicase/u8-casecoll.c: New file.
83975         * lib/unicase/u-casecoll.h: New file.
83976         * modules/unicase/u8-casecoll: New file.
83978         New module 'unicase/u32-casexfrm'.
83979         * lib/unicase/u32-casexfrm.c: New file.
83980         * modules/unicase/u32-casexfrm: New file.
83982         New module 'unicase/u16-casexfrm'.
83983         * lib/unicase/u16-casexfrm.c: New file.
83984         * modules/unicase/u16-casexfrm: New file.
83986         New module 'unicase/u8-casexfrm'.
83987         * lib/unicase/u8-casexfrm.c: New file.
83988         * lib/unicase/u-casexfrm.h: New file.
83989         * modules/unicase/u8-casexfrm: New file.
83991         Tests for module 'unicase/u32-casecmp'.
83992         * modules/unicase/u32-casecmp-tests: New file.
83993         * tests/unicase/test-u32-casecmp.c: New file.
83995         Tests for module 'unicase/u16-casecmp'.
83996         * modules/unicase/u16-casecmp-tests: New file.
83997         * tests/unicase/test-u16-casecmp.c: New file.
83999         Tests for module 'unicase/u8-casecmp'.
84000         * modules/unicase/u8-casecmp-tests: New file.
84001         * tests/unicase/test-u8-casecmp.c: New file.
84002         * tests/unicase/test-casecmp.h: New file.
84004         New module 'unicase/u32-casecmp'.
84005         * lib/unicase/u32-casecmp.c: New file.
84006         * modules/unicase/u32-casecmp: New file.
84008         New module 'unicase/u16-casecmp'.
84009         * lib/unicase/u16-casecmp.c: New file.
84010         * modules/unicase/u16-casecmp: New file.
84012         New module 'unicase/u8-casecmp'.
84013         * lib/unicase/u8-casecmp.c: New file.
84014         * lib/unicase/u-casecmp.h: New file.
84015         * modules/unicase/u8-casecmp: New file.
84017         Tests for module 'unicase/u32-casefold'.
84018         * modules/unicase/u32-casefold-tests: New file.
84019         * tests/unicase/test-u32-casefold.c: New file.
84021         Tests for module 'unicase/u16-casefold'.
84022         * modules/unicase/u16-casefold-tests: New file.
84023         * tests/unicase/test-u16-casefold.c: New file.
84025         Tests for module 'unicase/u8-casefold'.
84026         * modules/unicase/u8-casefold-tests: New file.
84027         * tests/unicase/test-u8-casefold.c: New file.
84029         New module 'unicase/u32-casefold'.
84030         * lib/unicase/u32-casefold.c: New file.
84031         * modules/unicase/u32-casefold: New file.
84033         New module 'unicase/u16-casefold'.
84034         * lib/unicase/u16-casefold.c: New file.
84035         * modules/unicase/u16-casefold: New file.
84037         New module 'unicase/u8-casefold'.
84038         * lib/unicase/u8-casefold.c: New file.
84039         * lib/unicase/u-casefold.h: New file.
84040         * modules/unicase/u8-casefold: New file.
84042         New module 'unicase/tocasefold'.
84043         * lib/unicase/casefold.h: New file.
84044         * lib/unicase/tocasefold.c: New file.
84045         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
84046         * modules/unicase/tocasefold: New file.
84048         Tests for module 'unicase/u32-totitle'.
84049         * modules/unicase/u32-totitle-tests: New file.
84050         * tests/unicase/test-u32-totitle.c: New file.
84052         Tests for module 'unicase/u16-totitle'.
84053         * modules/unicase/u16-totitle-tests: New file.
84054         * tests/unicase/test-u16-totitle.c: New file.
84056         Tests for module 'unicase/u8-totitle'.
84057         * modules/unicase/u8-totitle-tests: New file.
84058         * tests/unicase/test-u8-totitle.c: New file.
84060         New module 'unicase/u32-totitle'.
84061         * lib/unicase/u32-totitle.c: New file.
84062         * modules/unicase/u32-totitle: New file.
84064         New module 'unicase/u16-totitle'.
84065         * lib/unicase/u16-totitle.c: New file.
84066         * modules/unicase/u16-totitle: New file.
84068         New module 'unicase/u8-totitle'.
84069         * lib/unicase/u8-totitle.c: New file.
84070         * lib/unicase/u-totitle.h: New file.
84071         * modules/unicase/u8-totitle: New file.
84073         Tests for module 'unicase/u32-tolower'.
84074         * modules/unicase/u32-tolower-tests: New file.
84075         * tests/unicase/test-u32-tolower.c: New file.
84077         Tests for module 'unicase/u16-tolower'.
84078         * modules/unicase/u16-tolower-tests: New file.
84079         * tests/unicase/test-u16-tolower.c: New file.
84081         Tests for module 'unicase/u8-tolower'.
84082         * modules/unicase/u8-tolower-tests: New file.
84083         * tests/unicase/test-u8-tolower.c: New file.
84085         New module 'unicase/u32-tolower'.
84086         * lib/unicase/u32-tolower.c: New file.
84087         * modules/unicase/u32-tolower: New file.
84089         New module 'unicase/u16-tolower'.
84090         * lib/unicase/u16-tolower.c: New file.
84091         * modules/unicase/u16-tolower: New file.
84093         New module 'unicase/u8-tolower'.
84094         * lib/unicase/u8-tolower.c: New file.
84095         * modules/unicase/u8-tolower: New file.
84097         Tests for module 'unicase/u32-toupper'.
84098         * modules/unicase/u32-toupper-tests: New file.
84099         * tests/unicase/test-u32-toupper.c: New file.
84101         Tests for module 'unicase/u16-toupper'.
84102         * modules/unicase/u16-toupper-tests: New file.
84103         * tests/unicase/test-u16-toupper.c: New file.
84105         Tests for module 'unicase/u8-toupper'.
84106         * modules/unicase/u8-toupper-tests: New file.
84107         * tests/unicase/test-u8-toupper.c: New file.
84109         New module 'unicase/u32-toupper'.
84110         * lib/unicase/u32-toupper.c: New file.
84111         * modules/unicase/u32-toupper: New file.
84113         New module 'unicase/u16-toupper'.
84114         * lib/unicase/u16-toupper.c: New file.
84115         * modules/unicase/u16-toupper: New file.
84117         New module 'unicase/u8-toupper'.
84118         * lib/unicase/u8-toupper.c: New file.
84119         * modules/unicase/u8-toupper: New file.
84121         New module 'unicase/u32-casemap'.
84122         * lib/unicase/u32-casemap.c: New file.
84123         * modules/unicase/u32-casemap: New file.
84125         New module 'unicase/u16-casemap'.
84126         * lib/unicase/u16-casemap.c: New file.
84127         * modules/unicase/u16-casemap: New file.
84129         New module 'unicase/u8-casemap'.
84130         * lib/unicase/unicasemap.h: New file.
84131         * lib/unicase/u8-casemap.c: New file.
84132         * lib/unicase/u-casemap.h: New file.
84133         * modules/unicase/u8-casemap: New file.
84135         New module 'unicase/special-casing'.
84136         * lib/unicase/special-casing.h: New file.
84137         * lib/unicase/special-casing.c: New file.
84138         * lib/unicase/special-casing-table.gperf: New file, generated by
84139         gen-uni-tables.c.
84140         * modules/unicase/special-casing: New file.
84142         Tests for module 'unicase/locale-language'.
84143         * modules/unicase/locale-language-tests: New file.
84144         * tests/unicase/test-locale-language.sh: New file.
84145         * tests/unicase/test-locale-language.c: New file.
84147         New module 'unicase/locale-language'.
84148         * lib/unicase/locale-language.c: New file.
84149         * lib/unicase/locale-languages.gperf: New file.
84150         * modules/unicase/locale-language: New file.
84152         Generate more tables for case conversion and case folding.
84153         * lib/gen-uni-tables.c (SCC_*): New enum items.
84154         (struct special_casing_rule): New type.
84155         (casing_rules, num_casing_rules, allocated_casing_rules): New
84156         variables.
84157         (add_casing_rule, fill_casing_rules): New functions.
84158         (struct casefold_rule): New type.
84159         (casefolding_rules, num_casefolding_rules,
84160         allocated_casefolding_rules): New variables.
84161         (fill_casefolding_rules): New function.
84162         (unicode_casefold): New variable.
84163         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
84164         sort_casing_rules, output_casing_rules): New functions.
84165         (main): Accept to more arguments: SpecialCasing.txt and
84166         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
84167         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
84168         Output mapping for casefolding.
84170         * lib/unicase.h: Include stdbool.h, uninorm.h.
84171         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
84172         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
84173         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
84174         arguments.
84175         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
84176         resultp arguments.
84177         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
84178         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
84179         resultp arguments.
84180         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
84181         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
84182         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
84183         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
84184         declarations.
84185         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
84187 2009-03-08  Bruno Haible  <bruno@clisp.org>
84189         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
84190         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
84191         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
84192         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
84194 2009-03-07  Bruno Haible  <bruno@clisp.org>
84196         Adjust u*_normcmp, u*_normcoll API.
84197         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
84198         u16_normcoll, u32_normcoll): Change failure conventions.
84199         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
84200         errno and return -1.
84201         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
84203 2009-03-07  Bruno Haible  <bruno@clisp.org>
84205         Tests for module 'uninorm/u32-normcoll'.
84206         * modules/uninorm/u32-normcoll-tests: New file.
84207         * tests/uninorm/test-u32-normcoll.c: New file.
84209         Tests for module 'uninorm/u16-normcoll'.
84210         * modules/uninorm/u16-normcoll-tests: New file.
84211         * tests/uninorm/test-u16-normcoll.c: New file.
84213         Tests for module 'uninorm/u8-normcoll'.
84214         * modules/uninorm/u8-normcoll-tests: New file.
84215         * tests/uninorm/test-u8-normcoll.c: New file.
84217 2009-03-07  Bruno Haible  <bruno@clisp.org>
84219         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
84220         tests/uninorm/test-u32-normcmp.c.
84221         * tests/uninorm/test-u32-normcmp.c: Include it.
84222         (test_nonascii): New function, extracted from main. Add some more
84223         tests.
84224         (main): Invoke test_ascii and test_nonascii.
84225         * modules/uninorm/u32-normcmp-tests (Files): Add
84226         tests/uninorm/test-u32-normcmp.h.
84227         (Depends-on): Remove uninorm/u32-normcmp.
84229         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
84230         tests/uninorm/test-u16-normcmp.c.
84231         * tests/uninorm/test-u16-normcmp.c: Include it.
84232         (test_nonascii): New function, extracted from main. Add some more
84233         tests.
84234         (main): Invoke test_ascii and test_nonascii.
84235         * modules/uninorm/u16-normcmp-tests (Files): Add
84236         tests/uninorm/test-u16-normcmp.h.
84237         (Depends-on): Remove uninorm/u16-normcmp.
84239         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
84240         tests/uninorm/test-u8-normcmp.c.
84241         * tests/uninorm/test-u8-normcmp.c: Include it.
84242         (test_nonascii): New function, extracted from main. Add some more
84243         tests.
84244         (main): Invoke test_ascii and test_nonascii.
84245         * modules/uninorm/u8-normcmp-tests (Files): Add
84246         tests/uninorm/test-u8-normcmp.h.
84247         (Depends-on): Remove uninorm/u8-normcmp.
84249 2009-03-07  Bruno Haible  <bruno@clisp.org>
84251         New module 'uninorm/u32-normcoll'.
84252         * lib/uninorm/u32-normcoll.c: New file.
84253         * modules/uninorm/u32-normcoll: New file.
84255         New module 'uninorm/u16-normcoll'.
84256         * lib/uninorm/u16-normcoll.c: New file.
84257         * modules/uninorm/u16-normcoll: New file.
84259         New module 'uninorm/u8-normcoll'.
84260         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
84261         declarations.
84262         * lib/uninorm/u8-normcoll.c: New file.
84263         * lib/uninorm/u-normcoll.h: New file.
84264         * modules/uninorm/u8-normcoll: New file.
84266         New module 'uninorm/u32-normxfrm'.
84267         * lib/uninorm/u32-normxfrm.c: New file.
84268         * modules/uninorm/u32-normxfrm: New file.
84270         New module 'uninorm/u16-normxfrm'.
84271         * lib/uninorm/u16-normxfrm.c: New file.
84272         * modules/uninorm/u16-normxfrm: New file.
84274         New module 'uninorm/u8-normxfrm'.
84275         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
84276         declarations.
84277         * lib/uninorm/u8-normxfrm.c: New file.
84278         * lib/uninorm/u-normxfrm.h: New file.
84279         * modules/uninorm/u8-normxfrm: New file.
84281 2009-03-07  Bruno Haible  <bruno@clisp.org>
84283         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
84284         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
84285         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
84287 2009-03-07  Bruno Haible  <bruno@clisp.org>
84289         New module 'memxfrm'.
84290         * lib/memxfrm.h: New file.
84291         * lib/memxfrm.c: New file.
84292         * modules/memxfrm: New file.
84294 2009-03-07  Bruno Haible  <bruno@clisp.org>
84296         New module 'memcmp2'.
84297         * lib/memcmp2.h: New file.
84298         * lib/memcmp2.c: New file.
84299         * modules/memcmp2: New file.
84301 2009-03-07  Bruno Haible  <bruno@clisp.org>
84303         Tests for module 'uninorm/decomposing-form'.
84304         * modules/uninorm/decomposing-form-tests: New file.
84305         * tests/uninorm/test-decomposing-form.c: New file.
84307         New module 'uninorm/decomposing-form'.
84308         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
84309         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
84310         Add 'decomposing_variant' field.
84311         * lib/uninorm/decomposing-form.c: New file.
84312         * lib/uninorm/nfc.c (uninorm_nfc): Update.
84313         * lib/uninorm/nfd.c (uninorm_nfd): Update.
84314         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
84315         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
84316         * modules/uninorm/decomposing-form: New file.
84317         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
84318         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
84320 2009-03-07  Bruno Haible  <bruno@clisp.org>
84322         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
84323         strings.
84325 2009-03-06  Bruno Haible  <bruno@clisp.org>
84327         Tests for module 'uninorm/u32-normcmp'.
84328         * tests/uninorm/test-u32-normcmp.c: New file.
84329         * modules/uninorm/u32-normcmp-tests: New file.
84331         Tests for module 'uninorm/u16-normcmp'.
84332         * tests/uninorm/test-u16-normcmp.c: New file.
84333         * modules/uninorm/u16-normcmp-tests: New file.
84335         Tests for module 'uninorm/u8-normcmp'.
84336         * tests/uninorm/test-u8-normcmp.c: New file.
84337         * modules/uninorm/u8-normcmp-tests: New file.
84339         New module 'uninorm/u32-normcmp'.
84340         * lib/uninorm/u32-normcmp.c: New file.
84341         * modules/uninorm/u32-normcmp: New file.
84343         New module 'uninorm/u16-normcmp'.
84344         * lib/uninorm/u16-normcmp.c: New file.
84345         * modules/uninorm/u16-normcmp: New file.
84347         New module 'uninorm/u8-normcmp'.
84348         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
84349         declarations.
84350         * lib/uninorm/u8-normcmp.c: New file.
84351         * lib/uninorm/u-normcmp.h: New file.
84352         * modules/uninorm/u8-normcmp: New file.
84354 2009-03-06  Bruno Haible  <bruno@clisp.org>
84356         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
84357         Reported by Eric Blake.
84359 2009-03-06  Eric Blake  <ebb9@byu.net>
84360             Bruno Haible  <bruno@clisp.org>
84362         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
84363         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
84364         condition.
84365         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
84366         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
84367         condition.
84368         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
84370 2009-03-06  Eric Blake  <ebb9@byu.net>
84372         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
84373         to avoid compiler warnings.
84374         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
84376 2009-03-05  Bruno Haible  <bruno@clisp.org>
84378         * tests/test-ftell.c (main): Disable test beyond end of file on
84379         FreeMiNT.
84380         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
84382 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
84384         * lib/filevercmp.c: Move hidden files up in ordering.
84385         * tests/test-filevercmp.c: Add tests for hidden files.
84387 2009-03-04  Bruno Haible  <bruno@clisp.org>
84389         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
84390         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
84391         AM_CFLAGS.
84392         Reported by Simon Josefsson.
84394 2009-03-03  Bruno Haible  <bruno@clisp.org>
84396         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
84397         Reported by Simon Josefsson.
84399         * doc/ld-version-script.texi: Update node reference.
84401 2009-03-03  Bruno Haible  <bruno@clisp.org>
84403         * modules/visibility (License): Change to 'unlimited'.
84404         Suggested by Simon Josefsson.
84406 2009-03-03  Jim Meyering  <meyering@redhat.com>
84408         unlinkdir: cannot_unlink_dir may modify process state
84409         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
84410         it's neither thread-safe nor appropriate for use in a library.
84412 2009-03-03  Eric Blake  <ebb9@byu.net>
84414         test-closein: silence test under Darwin
84415         * tests/test-closein.sh: Ignore stderr from cat, since we don't
84416         care if it dies from EPIPE or EBADF.
84418 2009-03-03  Bruno Haible  <bruno@clisp.org>
84420         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
84421         earlier.
84422         * doc/visibility.texi: Fix @node and @section.
84424 2009-03-03  Simon Josefsson  <simon@josefsson.org>
84426         * doc/gnulib.texi: Link to sections for ld version script and
84427         visibility.
84428         * doc/visibility.texi: Add @node and @section.
84429         * modules/ld-version-script: New module.
84430         * m4/ld-version-script.m4: New file.
84431         * doc/ld-version-script.texi: New file.
84433 2009-03-02  David Lutterkort  <lutter@redhat.com>
84435         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
84436         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
84438 2009-03-02  Bruno Haible  <bruno@clisp.org>
84440         * doc/visibility.texi: Mention libtool's -export-symbols option.
84442 2009-03-02  Jim Meyering  <meyering@redhat.com>
84444         announce-gen: new option: --no-print-checksums
84445         * build-aux/announce-gen (usage): Describe it.
84446         (print_checksums): Print a newline here, not in the [*] footnote.
84447         (main): Honor it.
84449 2009-03-01  Bruno Haible  <bruno@clisp.org>
84451         Use socklen_t in the native Windows replacements prototypes.
84452         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
84453         instead of 'int'.
84454         * lib/getsockopt.c (rpl_getsockopt): Likewise.
84455         * lib/setsockopt.c (rpl_setsockopt): Likewise.
84456         * modules/getsockopt (Depends-on): Add socklen.
84457         * modules/setsockopt (Depends-on): Add socklen.
84459 2009-03-01  Bruno Haible  <bruno@clisp.org>
84461         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
84462         least 4.2.
84464 2009-03-01  Eric Blake  <ebb9@byu.net>
84465             Bruno Haible  <bruno@clisp.org>
84467         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
84468         error messages.
84469         * lib/wait-process.c (wait_subprocess): Omit error message about
84470         deadly signal sent to the child of termsigp != NULL.
84472 2009-03-01  Eric Blake  <ebb9@byu.net>
84474         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
84476 2009-03-01  Bruno Haible  <bruno@clisp.org>
84478         Avoid a gcc warning.
84479         * tests/test-sched.c (b): Make global.
84480         Reported by Eric Blake.
84482 2009-01-19  Martin Lambers  <marlam@marlam.de>
84484         Provide POSIX semantics for socket timeout options on W32.
84485         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
84486         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
84487         * modules/setsockopt: Depend on sys_time module for struct timeval.
84488         * modules/getsockopt: Depend on sys_time module for struct timeval.
84490 2009-03-01  Simon Josefsson  <simon@josefsson.org>
84492         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
84493         __USE_GNU, for consistency with netdb.in.h.
84494         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
84496 2009-03-01  Bruno Haible  <bruno@clisp.org>
84498         More support for FreeMiNT.
84499         * lib/fseeko.c (rpl_fseeko): Complete last commit.
84500         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
84502 2009-03-01  Bruno Haible  <bruno@clisp.org>
84504         More support for FreeMiNT.
84505         * lib/fpurge.c (fpurge): Correct last commit.
84506         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
84508 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84510         Fix unportable awk script in vc-list-files.
84511         * build-aux/vc-list-files: In the replacement awk script, use
84512         substr with a second argument of 1, not zero.
84513         Report by Simon Josefsson.
84515 2009-02-28  Bruno Haible  <bruno@clisp.org>
84517         More support for FreeMiNT.
84518         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
84519         to FreeMiNT today.
84520         * lib/fwriting.c (fwriting): Likewise.
84521         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
84523 2009-02-28  Bruno Haible  <bruno@clisp.org>
84525         * tests/test-freadseek.c (main): Disable test beyond end of file on
84526         FreeMiNT.
84527         * tests/test-ftello.c (main): Likewise.
84528         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
84530 2009-02-28  Bruno Haible  <bruno@clisp.org>
84532         Add tentative support for FreeMiNT.
84533         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
84534         * lib/fpurge.c (fpurge): Likewise.
84535         * lib/freadable.c (freadable): Likewise.
84536         * lib/freading.c (freading): Likewise.
84537         * lib/freadptr.c (freadptr): Likewise.
84538         * lib/freadseek.c (freadptrinc): Likewise.
84539         * lib/fseeko.c (rpl_fseeko): Likewise.
84540         * lib/fseterr.c (fseterr): Likewise.
84541         * lib/fwritable.c (fwritable): Likewise.
84542         * lib/fwriting.c (fwriting): Likewise.
84543         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
84544         Hourihane.
84545         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
84547 2009-02-28  Bruno Haible  <bruno@clisp.org>
84549         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
84550         SIGCHLD.
84551         Reported by Jim Meyering.
84553 2009-02-28  Bruno Haible  <bruno@clisp.org>
84555         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
84556         Mention the results of these tests on various platforms.
84557         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
84558         order.
84559         * doc/posix-functions/printf.texi: Likewise.
84560         * doc/posix-functions/snprintf.texi: Likewise.
84561         * doc/posix-functions/sprintf.texi: Likewise.
84562         * doc/posix-functions/vfprintf.texi: Likewise.
84563         * doc/posix-functions/vprintf.texi: Likewise.
84564         * doc/posix-functions/vsnprintf.texi: Likewise.
84565         * doc/posix-functions/vsprintf.texi: Likewise.
84566         * doc/glibc-functions/obstack_printf.texi: Likewise.
84567         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
84569 2009-02-28  Bruno Haible  <bruno@clisp.org>
84571         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
84572         Reported by Loïc Minier <lool@dooz.org>.
84574 2009-02-27  Bruno Haible  <bruno@clisp.org>
84576         * gnulib-tool (func_import): Make the sed expression used to create the
84577         sed script for updating the .gitignore file POSIX compliant.
84578         Reported by Eric Blake.
84580 2009-02-27  Bruno Haible  <bruno@clisp.org>
84582         * gnulib-tool (sed): Don't alias as "sed --posix".
84583         Reported by Eric Blake.
84585 2009-02-27  Bruno Haible  <bruno@clisp.org>
84587         Avoid test link errors.
84588         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
84589         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
84590         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
84591         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
84592         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
84594 2009-02-27  Bruno Haible  <bruno@clisp.org>
84596         Avoid spurious "(cached)" in configure output.
84597         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
84598         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
84599         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
84600         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
84601         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
84602         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
84603         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
84604         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
84605         Reported by Eric Blake.
84607 2009-02-27  Eric Blake  <ebb9@byu.net>
84609         printf: fix regression in previous patch
84610         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
84612 2009-02-27  Bruno Haible  <bruno@clisp.org>
84614         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
84615         value.
84616         * lib/stdint.in.h: Likewise.
84617         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
84619 2009-02-27  Eric Blake  <ebb9@byu.net>
84621         doc: mention more functions added in cygwin 1.7.0
84622         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
84623         addition.
84624         * doc/posix-functions/open_wmemstream.texi: Likewise.
84625         * doc/posix-functions/wcsnlen.texi: Likewise.
84626         * doc/posix-functions/wcsnrtombs.texi: Likewise.
84627         * doc/posix-functions/wcstod.texi: Likewise.
84628         * doc/posix-functions/wcstof.texi: Likewise.
84629         * doc/posix-functions/wcstoimax.texi: Likewise.
84630         * doc/posix-functions/wcstok.texi: Likewise.
84631         * doc/posix-functions/wcstoumax.texi: Likewise.
84633         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
84634         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
84635         * doc/posix-functions/fprintf.texi: Update.
84636         * doc/posix-functions/printf.texi: Update.
84637         * doc/posix-functions/snprintf.texi: Update.
84638         * doc/posix-functions/sprintf.texi: Update.
84639         * doc/posix-functions/vfprintf.texi: Update.
84640         * doc/posix-functions/vprintf.texi: Update.
84641         * doc/posix-functions/vsnprintf.texi: Update.
84642         * doc/posix-functions/vsprintf.texi: Update.
84643         * doc/glibc-functions/obstack_printf.texi: Update.
84644         * doc/glibc-functions/obstack_vprintf.texi: Update.
84646 2009-02-26  Eric Blake  <ebb9@byu.net>
84648         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
84649         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
84650         compilation bug by using runtime conversion.
84651         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
84652         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
84653         * modules/ceill-tests (Files): Use nan.h.
84654         * modules/floorl-tests (Files): Likewise.
84655         * modules/frexpl-tests (Files): Likewise.
84656         * modules/isnanl-tests (Files): Likewise.
84657         * modules/ldexpl-tests (Files): Likewise.
84658         * modules/roundl-tests (Files): Likewise.
84659         * modules/truncl-tests (Files): Likewise.
84660         * tests/test-ceill.c (main): Use a working NaN.
84661         * tests/test-floorl.c (main): Likewise.
84662         * tests/test-frexpl.c (main): Likewise.
84663         * tests/test-isnan.c (test_long_double): Likewise.
84664         * tests/test-isnanl.h (main): Likewise.
84665         * tests/test-ldexpl.h (main): Likewise.
84666         * tests/test-roundl.h (main): Likewise.
84667         * tests/test-truncl.h (main): Likewise.
84668         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
84670 2009-02-26  Eric Blake  <ebb9@byu.net>
84671             Bruno Haible  <bruno@clisp.org>
84673         Work around a *printf bug with %ls on Solaris.
84674         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
84675         precision is specified, sprintf stops converting the wide string
84676         argument when the number of bytes that have been produced by this
84677         conversion equals or exceeds the precision.
84678         * doc/posix-functions/fprintf.texi: Update.
84679         * doc/posix-functions/printf.texi: Update.
84680         * doc/posix-functions/snprintf.texi: Update.
84681         * doc/posix-functions/sprintf.texi: Update.
84682         * doc/posix-functions/vfprintf.texi: Update.
84683         * doc/posix-functions/vprintf.texi: Update.
84684         * doc/posix-functions/vsnprintf.texi: Update.
84685         * doc/posix-functions/vsprintf.texi: Update.
84686         * doc/glibc-functions/obstack_printf.texi: Update.
84687         * doc/glibc-functions/obstack_vprintf.texi: Update.
84689 2009-02-26  Eric Blake  <ebb9@byu.net>
84691         stdlib: favor compiler check of random.h
84692         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
84693         to avoid an ObjC random.h installed by Swarm.
84695 2009-02-26  Bruno Haible  <bruno@clisp.org>
84697         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
84698         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
84699         Reported by Gary V. Vaughan <gary@gnu.org>.
84701 2009-02-26  Bruno Haible  <bruno@clisp.org>
84703         Fix *printf behaviour regarding the %ls directive.
84704         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
84705         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
84706         NEED_PRINTF_DIRECTIVE_LS.
84707         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
84708         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
84709         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
84710         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
84711         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
84712         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
84713         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
84714         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
84715         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
84716         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
84717         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
84718         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
84719         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
84720         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
84721         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
84722         * doc/posix-functions/fprintf.texi: Update.
84723         * doc/posix-functions/printf.texi: Update.
84724         * doc/posix-functions/snprintf.texi: Update.
84725         * doc/posix-functions/sprintf.texi: Update.
84726         * doc/posix-functions/vfprintf.texi: Update.
84727         * doc/posix-functions/vprintf.texi: Update.
84728         * doc/posix-functions/vsnprintf.texi: Update.
84729         * doc/posix-functions/vsprintf.texi: Update.
84730         * doc/glibc-functions/obstack_printf.texi: Update.
84731         * doc/glibc-functions/obstack_vprintf.texi: Update.
84732         Reported by Eric Blake.
84734 2009-02-25  Bruno Haible  <bruno@clisp.org>
84736         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
84737         with known value.
84738         Reported by Gary V. Vaughan <gary@gnu.org>.
84740 2009-02-25  Bruno Haible  <bruno@clisp.org>
84742         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
84743         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
84744         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
84745         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
84746         Reported by Gary V. Vaughan <gary@gnu.org>.
84748 2009-02-25  Bruno Haible  <bruno@clisp.org>
84750         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
84751         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
84752         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
84753         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
84754         Reported by Gary V. Vaughan <gary@gnu.org>.
84756 2009-02-25  Eric Blake  <ebb9@byu.net>
84758         tests: skip fseek/ftell tests if ungetc is broken
84759         * m4/ungetc.m4: New file.
84760         * modules/fseek-tests: Split test, so ungetc dependency is
84761         separate from rest of test.
84762         * modules/fseeko-tests: Likewise.
84763         * modules/ftell-tests: Likewise.
84764         * modules/ftello-tests: Likewise.
84765         * tests/test-fseek.c (main): Isolate ungetc dependency.
84766         * tests/test-fseeko.c (main): Likewise.
84767         * tests/test-ftell.c (main): Likewise.
84768         * tests/test-ftello.c (main): Likewise.
84769         * tests/test-fseek2.sh: New file.
84770         * tests/test-fseeko2.sh: Likewise.
84771         * tests/test-ftell2.sh: Likewise.
84772         * tests/test-ftello2.sh: Likewise.
84774 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
84776         test-getaddrinfo: fix usage of skip return code 77
84777         * tests/test-gettaddrinfo.c: Return skip code 77 only
84778         for first occurrence of skip (4x77 is not 77)
84780 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
84782         strtod: avoid C99 decl-after-statement
84783         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
84785 2009-02-24  Eric Blake  <ebb9@byu.net>
84787         strtod: detect HP-UX 11.31 bug
84788         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
84789         Reported by Gary V. Vaughan.
84791 2009-02-23  Bruno Haible  <bruno@clisp.org>
84793         Fix invalid read past end of memory block.
84794         * lib/vasnprintf.c (DCHAR_SET): Define.
84795         (local_wcslen): Define only when needed.
84796         (local_strnlen, local_wcsnlen): New functions.
84797         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
84798         directives that involve a conversion ourselves.
84799         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
84800         wcsnlen, mbrtowc, wcrtomb.
84801         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
84802         * tests/test-vasprintf-posix.c (test_function): Likewise.
84803         * tests/test-snprintf-posix.h (test_function): Likewise.
84804         * tests/test-sprintf-posix.h (test_function): Likewise.
84805         Reported by Ben Pfaff <blp@cs.stanford.edu>.
84807 2009-02-22  Bruno Haible  <bruno@clisp.org>
84809         Implement new clarified decomposition of Hangul syllables.
84810         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
84811         of type LTV, return only a pairwise decomposition.
84812         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
84813         Likewise.
84814         * tests/uninorm/test-decomposition.c (main): Updated expected result.
84815         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
84816         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
84818 2009-02-22  Bruno Haible  <bruno@clisp.org>
84820         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
84821         zero-length results and shrink excess allocated memory.
84822         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
84823         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
84824         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
84825         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
84826         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
84827         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
84828         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
84829         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
84830         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
84831         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
84832         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
84833         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
84835 2009-02-21  Bruno Haible  <bruno@clisp.org>
84837         * doc/gnulib.texi: Include safe-alloc.texi earlier.
84838         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
84839         spaces after a period. Put a space between a macro name and its
84840         argument list. Trivial rewordings.
84841         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
84842         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
84843         (main): Return 0 explicitly.
84845 2009-02-21  Bruno Haible  <bruno@clisp.org>
84847         Tests for module 'uninorm/filter'.
84848         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
84849         * modules/uninorm/filter-tests: New file.
84851         New module 'uninorm/filter'.
84852         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
84853         uninorm_filter_flush, uninorm_filter_free): New declarations.
84854         * lib/uninorm/uninorm-filter.c: New file.
84855         * modules/uninorm/filter: New file.
84857 2009-02-21  Bruno Haible  <bruno@clisp.org>
84859         Tests for module 'uninorm/nfkc'.
84860         * tests/uninorm/test-nfkc.c: New file.
84861         * tests/uninorm/test-u8-nfkc.c: New file.
84862         * tests/uninorm/test-u16-nfkc.c: New file.
84863         * tests/uninorm/test-u32-nfkc.c: New file.
84864         * tests/uninorm/test-u32-nfkc-big.sh: New file.
84865         * tests/uninorm/test-u32-nfkc-big.c: New file.
84866         * modules/uninorm/nfkc-tests: New file.
84868         New module 'uninorm/nfkc'.
84869         * lib/uninorm/nfkc.c: New file.
84870         * modules/uninorm/nfkc: New file.
84872         Tests for module 'uninorm/nfkd'.
84873         * tests/uninorm/test-nfkd.c: New file.
84874         * tests/uninorm/test-u8-nfkd.c: New file.
84875         * tests/uninorm/test-u16-nfkd.c: New file.
84876         * tests/uninorm/test-u32-nfkd.c: New file.
84877         * tests/uninorm/test-u32-nfkd-big.sh: New file.
84878         * tests/uninorm/test-u32-nfkd-big.c: New file.
84879         * modules/uninorm/nfkd-tests: New file.
84881         New module 'uninorm/nfkd'.
84882         * lib/uninorm/nfkd.c: New file.
84883         * modules/uninorm/nfkd: New file.
84885         Tests for module 'uninorm/nfc'.
84886         * tests/uninorm/test-nfc.c: New file.
84887         * tests/uninorm/test-u8-nfc.c: New file.
84888         * tests/uninorm/test-u16-nfc.c: New file.
84889         * tests/uninorm/test-u32-nfc.c: New file.
84890         * tests/uninorm/test-u32-nfc-big.sh: New file.
84891         * tests/uninorm/test-u32-nfc-big.c: New file.
84892         * modules/uninorm/nfc-tests: New file.
84894         New module 'uninorm/nfc'.
84895         * lib/uninorm/nfc.c: New file.
84896         * modules/uninorm/nfc: New file.
84898         Tests for module 'uninorm/nfd'.
84899         * tests/uninorm/test-nfd.c: New file.
84900         * tests/uninorm/test-u8-nfd.c: New file.
84901         * tests/uninorm/test-u16-nfd.c: New file.
84902         * tests/uninorm/test-u32-nfd.c: New file.
84903         * tests/uninorm/test-u32-nfd-big.sh: New file.
84904         * tests/uninorm/test-u32-nfd-big.c: New file.
84905         * tests/uninorm/test-u32-normalize-big.h: New file.
84906         * tests/uninorm/test-u32-normalize-big.c: New file.
84907         * tests/uninorm/NormalizationTest.txt: New file, created from
84908         Unicode 5.1.0 NormalizationTest.txt.
84909         * modules/uninorm/nfd-tests: New file.
84911         New module 'uninorm/nfd'.
84912         * lib/uninorm/nfd.c: New file.
84913         * modules/uninorm/nfd: New file.
84915         New module 'uninorm/u32-normalize'.
84916         * lib/uninorm/u32-normalize.c: New file.
84917         * modules/uninorm/u32-normalize: New file.
84919         New module 'uninorm/u16-normalize'.
84920         * lib/uninorm/u16-normalize.c: New file.
84921         * modules/uninorm/u16-normalize: New file.
84923         New module 'uninorm/u8-normalize'.
84924         * lib/uninorm/u8-normalize.c: New file.
84925         * lib/uninorm/normalize-internal.h: New file.
84926         * lib/uninorm/u-normalize-internal.h: New file.
84927         * modules/uninorm/u8-normalize: New file.
84929         New module 'uninorm/decompose-internal'.
84930         * lib/uninorm/decompose-internal.c: New file.
84931         * modules/uninorm/decompose-internal: New file.
84933         Tests for module 'uninorm/composition'.
84934         * tests/uninorm/test-composition.c: New file.
84935         * modules/uninorm/composition-tests: New file.
84937         New module 'uninorm/composition'.
84938         * lib/uninorm/composition.c: New file.
84939         * lib/uninorm/composition-table.gperf: New file, generated by
84940         gen-uni-tables.
84941         * modules/uninorm/composition: New file.
84943         Tests for module 'uninorm/compat-decomposition'.
84944         * tests/uninorm/test-compat-decomposition.c: New file.
84945         * modules/uninorm/compat-decomposition-tests: New file.
84947         New module 'uninorm/compat-decomposition'.
84948         * lib/uninorm/decompose-internal.h: New file.
84949         * lib/uninorm/compat-decomposition.c: New file.
84950         * modules/uninorm/compat-decomposition: New file.
84952         Tests for module 'uninorm/canonical-decomposition'.
84953         * tests/uninorm/test-canonical-decomposition.c: New file.
84954         * modules/uninorm/canonical-decomposition-tests: New file.
84956         New module 'uninorm/canonical-decomposition'.
84957         * lib/uninorm/canonical-decomposition.c: New file.
84958         * modules/uninorm/canonical-decomposition: New file.
84960         Tests for module 'uninorm/decomposition'.
84961         * tests/uninorm/test-decomposition.c: New file.
84962         * modules/uninorm/decomposition-tests: New file.
84964         New module 'uninorm/decomposition'.
84965         * lib/uninorm/decomposition.c: New file.
84966         * modules/uninorm/decomposition: New file.
84968         New module 'uninorm/decomposition-table'.
84969         * lib/uninorm/decomposition-table.h: New file.
84970         * lib/uninorm/decomposition-table.c: New file.
84971         * lib/uninorm/decomposition-table1.h: New file, generated by
84972         gen-uni-tables.
84973         * lib/uninorm/decomposition-table2.h: New file, generated by
84974         gen-uni-tables.
84975         * modules/uninorm/decomposition-table: New file.
84977         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
84978         (UC_DECOMP_*): New enumeration items.
84979         (get_decomposition): New function.
84980         (struct decomp_table): New type.
84981         (output_decomposition, output_decomposition_tables): New functions.
84982         (unicode_composition_exclusions): New variable.
84983         (fill_composition_exclusions, debug_output_composition_tables): New
84984         functions.
84985         (main): Accept one more argument. Invoke fill_composition_exclusions.
84986         Output decomposition and composition tables.
84988         New module 'uninorm/base'.
84989         * lib/uninorm.h: New file.
84990         * lib/unictype.h: Update comment.
84991         * modules/uninorm/base: New file.
84993 2009-02-21  David Lutterkort  <lutter@redhat.com>
84995         Tests for module 'safe-alloc'.
84996         * tests/test-safe-alloc.c: New file.
84997         * modules/safe-alloc-tests: New file.
84999         New module 'safe-alloc'.
85000         * lib/safe-alloc.h: New file.
85001         * lib/safe-alloc.c: New file.
85002         * m4/safe-alloc.m4: New file.
85003         * modules/safe-alloc: New file.
85004         * doc/safe-alloc.texi: New file.
85005         * doc/gnulib.texi: Include it.
85006         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
85007         safe-alloc.
85009 2009-02-18  Bruno Haible  <bruno@clisp.org>
85011         Fix link error on non-glibc systems.
85012         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
85013         variable.
85014         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
85016 2009-02-18  Jim Meyering  <meyering@redhat.com>
85018         fts: avoid used-uninitialized error due to recent change
85019         * lib/fts.c (fts_read): Guard uses of the new member,
85020         parent->fts_n_dirs_remaining, since it's not relevant for
85021         the parent of a directory specified on the command-line.
85023 2009-02-17  James Youngman  <jay@gnu.org>
85024             Bruno Haible  <bruno@clisp.org>
85026         * m4/include_next.m4: Reformulate comment.
85028 2009-02-16  Jim Meyering  <meyering@redhat.com>
85030         fts: add #if guards so that the fts_lgpl module still builds
85031         * lib/fts.c: Guard just-added hash-table-using parts with
85032         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
85033         Reported by Simon Josefsson.
85035 2009-02-15  Bruno Haible  <bruno@clisp.org>
85037         * modules/array-mergesort-tests: New file.
85038         * tests/test-array-mergesort.c: New file.
85040         New module 'array-mergesort'.
85041         * modules/array-mergesort: New file.
85042         * lib/array-mergesort.h: New file.
85044 2009-02-15  Bruno Haible  <bruno@clisp.org>
85046         Fix 2009-02-07 commit.
85047         * lib/gen-uni-tables.c (output_predicate, output_category,
85048         output_combclass, output_bidi_category, output_decimal_digit,
85049         output_digit, output_numeric, output_mirror, output_scripts,
85050         output_ident_category, output_simple_mapping): Fix format directives.
85051         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
85053 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
85055         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
85056         fixes are available from IBM.
85058 2009-02-13  Jim Meyering  <meyering@redhat.com>
85060         fts: arrange not to stat non-directories in more cases
85061         This makes GNU find (when it doesn't need to stat each file)
85062         *much* more efficient at traversing reiserfs file systems.
85063         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
85064         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
85065         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
85066         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
85067         (leaf_optimization_applies): New function.
85068         (LCO_hash, LCO_compare): New helper functions.
85069         (link_count_optimize_ok): New function.
85070         (fts_stat): Initialize new member (if dir).
85071         (fts_read): Decrement parent's fts_n_dirs_remaining count if
85072         we've just stat'ed a directory.  Skip the stat call when possible.
85073         ---
85074         Note this AFS-related exchange:
85075         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
85076         and note find's pioctl call in find/fstype.c.
85077         But that is necessary only if you want to enable the
85078         optimization for AFS, and for now, I don't.
85080         fts: move a function definition "up" (no semantic change)
85081         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
85082         "up" to precede upcoming use of a related function.
85084 2009-02-11  Jim Meyering  <meyering@redhat.com>
85086         fts: correct internal computation of nlinks (optimization-related)
85087         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
85088         whether the current entry is a directory, so don't test it.
85090 2009-02-10  Bruno Haible  <bruno@clisp.org>
85092         Tests for module 'uniwbrk/ulc-wordbreaks'.
85093         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
85094         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
85095         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
85097         Tests for module 'uniwbrk/u32-wordbreaks'.
85098         * modules/uniwbrk/u32-wordbreaks-tests: New file.
85099         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
85101         Tests for module 'uniwbrk/u16-wordbreaks'.
85102         * modules/uniwbrk/u16-wordbreaks-tests: New file.
85103         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
85105         Tests for module 'uniwbrk/u8-wordbreaks'.
85106         * modules/uniwbrk/u8-wordbreaks-tests: New file.
85107         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
85109 2009-02-10  Bruno Haible  <bruno@clisp.org>
85111         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
85112         property.
85113         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
85114         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
85115         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
85117 2009-02-10  Simon Josefsson  <simon@josefsson.org>
85119         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
85120         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
85122 2009-02-10  Bruno Haible  <bruno@clisp.org>
85124         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
85125         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
85126         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
85127         * lib/unilbrk/u8-possible-linebreaks.c: Update.
85128         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
85129         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
85131 2009-02-09  Simon Josefsson  <simon@josefsson.org>
85133         * lib/sockets.h (gl_fd_to_handle): New function.
85135         * tests/test-sockets.c: Call gl_fd_to_handle.
85137 2009-02-09  Bruno Haible  <bruno@clisp.org>
85139         * doc/havelib.texi: Document the conventions on bi-arch systems.
85141 2009-02-08  Bruno Haible  <bruno@clisp.org>
85143         Document the AC_LIB_LINKFLAGS macro.
85144         * doc/havelib.texi: New file, mostly written on 2005-05-24.
85145         * doc/gnulib.texi: Include it.
85147 2009-02-08  Bruno Haible  <bruno@clisp.org>
85149         Fix wrong order of sections, compared to TOC.
85150         * doc/gnulib.texi: Include relocatable-maint.texi after the
85151         "Regular expressions" node, not before.
85153 2009-02-08  Bruno Haible  <bruno@clisp.org>
85155         Tests for module 'unicase/totitle'.
85156         * modules/unicase/totitle-tests: New file.
85158         Tests for module 'unicase/tolower'.
85159         * modules/unicase/tolower-tests: New file.
85161         Tests for module 'unicase/toupper'.
85162         * modules/unicase/toupper-tests: New file.
85163         * tests/unicase/test-mapping-part1.h: New file.
85164         * tests/unicase/test-mapping-part2.h: New file.
85166         New module 'unicase/totitle'.
85167         * modules/unicase/totitle: New file.
85168         * lib/unicase/totitle.c: New file.
85170         New module 'unicase/tolower'.
85171         * modules/unicase/tolower: New file.
85172         * lib/unicase/tolower.c: New file.
85174         New module 'unicase/toupper'.
85175         * modules/unicase/toupper: New file.
85176         * lib/unicase/toupper.c: New file.
85177         * lib/unicase/simple-mapping.h: New file.
85179         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
85180         (mapping_table): New structure.
85181         (output_simple_mapping): New function.
85182         (main): Invoke output_simple_mapping_test and output_simple_mapping.
85183         * modules/gen-uni-tables (Description): Update.
85184         * lib/unicase/toupper.h: New file, automatically generated by
85185         gen-uni-tables.
85186         * lib/unicase/tolower.h: New file, automatically generated by
85187         gen-uni-tables.
85188         * lib/unicase/totitle.h: New file, automatically generated by
85189         gen-uni-tables.
85190         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
85191         gen-uni-tables.
85192         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
85193         gen-uni-tables.
85194         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
85195         gen-uni-tables.
85197         New module 'unicase/base'.
85198         * modules/unicase/base: New file.
85199         * lib/unicase.h: New file.
85201 2009-02-08  Bruno Haible  <bruno@clisp.org>
85203         New module 'uniwbrk/ulc-wordbreaks'.
85204         * modules/uniwbrk/ulc-wordbreaks: New file.
85205         * lib/uniwbrk/ulc-wordbreaks.c: New file.
85207         New module 'uniwbrk/u32-wordbreaks'.
85208         * modules/uniwbrk/u32-wordbreaks: New file.
85209         * lib/uniwbrk/u32-wordbreaks.c: New file.
85211         New module 'uniwbrk/u16-wordbreaks'.
85212         * modules/uniwbrk/u16-wordbreaks: New file.
85213         * lib/uniwbrk/u16-wordbreaks.c: New file.
85215         New module 'uniwbrk/u8-wordbreaks'.
85216         * modules/uniwbrk/u8-wordbreaks: New file.
85217         * lib/uniwbrk/u8-wordbreaks.c: New file.
85218         * lib/uniwbrk/u-wordbreaks.h: New file.
85220         New module 'uniwbrk/table'.
85221         * modules/uniwbrk/table: New file.
85222         * lib/uniwbrk/wbrktable.h: New file.
85223         * lib/uniwbrk/wbrktable.c: New file.
85225         New module 'uniwbrk/wordbreak-property'.
85226         * modules/uniwbrk/wordbreak-property: New file.
85227         * lib/uniwbrk/wordbreak-property.c: New file.
85229         * lib/gen-uni-tables.c (WBP_*): New enum items.
85230         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
85231         (unicode_org_wbp): New variable.
85232         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
85233         New functions.
85234         (wbp_table): New structure.
85235         (output_wbp, output_wbrk_tables): New functions.
85236         (main): Accept additional argument. Invoke fill_org_wbp,
85237         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
85238         output_wbrk_tables.
85239         * modules/gen-uni-tables (Description): Update.
85240         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
85241         gen-uni-tables.
85243         New module 'uniwbrk/base'.
85244         * modules/uniwbrk/base: New file.
85245         * lib/uniwbrk.h: New file.
85247 2009-02-08  Bruno Haible  <bruno@clisp.org>
85249         Update to Unicode 5.1.0.
85250         * lib/gen-uni-tables.c (is_property_alphabetic): Include
85251         U+2185..U+2188.
85252         (is_property_default_ignorable_code_point): Don't include characters
85253         of category Cc or Cs and not-a-characters.
85254         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
85255         U+0D79, U+109E, U+109F, U+A60C.
85256         * lib/unictype/bidi_of.h: Regenerated.
85257         * lib/unictype/blocks.h: Regenerated.
85258         * lib/unictype/categ_C.h: Regenerated.
85259         * lib/unictype/categ_Cf.h: Regenerated.
85260         * lib/unictype/categ_Cn.h: Regenerated.
85261         * lib/unictype/categ_L.h: Regenerated.
85262         * lib/unictype/categ_Ll.h: Regenerated.
85263         * lib/unictype/categ_Lm.h: Regenerated.
85264         * lib/unictype/categ_Lo.h: Regenerated.
85265         * lib/unictype/categ_Lu.h: Regenerated.
85266         * lib/unictype/categ_M.h: Regenerated.
85267         * lib/unictype/categ_Mc.h: Regenerated.
85268         * lib/unictype/categ_Me.h: Regenerated.
85269         * lib/unictype/categ_Mn.h: Regenerated.
85270         * lib/unictype/categ_N.h: Regenerated.
85271         * lib/unictype/categ_Nd.h: Regenerated.
85272         * lib/unictype/categ_Nl.h: Regenerated.
85273         * lib/unictype/categ_No.h: Regenerated.
85274         * lib/unictype/categ_P.h: Regenerated.
85275         * lib/unictype/categ_Pd.h: Regenerated.
85276         * lib/unictype/categ_Pe.h: Regenerated.
85277         * lib/unictype/categ_Pf.h: Regenerated.
85278         * lib/unictype/categ_Pi.h: Regenerated.
85279         * lib/unictype/categ_Po.h: Regenerated.
85280         * lib/unictype/categ_Ps.h: Regenerated.
85281         * lib/unictype/categ_S.h: Regenerated.
85282         * lib/unictype/categ_Sk.h: Regenerated.
85283         * lib/unictype/categ_Sm.h: Regenerated.
85284         * lib/unictype/categ_So.h: Regenerated.
85285         * lib/unictype/categ_of.h: Regenerated.
85286         * lib/unictype/combining.h: Regenerated.
85287         * lib/unictype/ctype_alnum.h: Regenerated.
85288         * lib/unictype/ctype_alpha.h: Regenerated.
85289         * lib/unictype/ctype_graph.h: Regenerated.
85290         * lib/unictype/ctype_lower.h: Regenerated.
85291         * lib/unictype/ctype_print.h: Regenerated.
85292         * lib/unictype/ctype_punct.h: Regenerated.
85293         * lib/unictype/ctype_upper.h: Regenerated.
85294         * lib/unictype/decdigit.h: Regenerated.
85295         * lib/unictype/digit.h: Regenerated.
85296         * lib/unictype/mirror.h: Regenerated.
85297         * lib/unictype/numeric.h: Regenerated.
85298         * lib/unictype/pr_alphabetic.h: Regenerated.
85299         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
85300         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
85301         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
85302         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
85303         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
85304         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
85305         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
85306         * lib/unictype/pr_combining.h: Regenerated.
85307         * lib/unictype/pr_dash.h: Regenerated.
85308         * lib/unictype/pr_decimal_digit.h: Regenerated.
85309         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
85310         * lib/unictype/pr_deprecated.h: Regenerated.
85311         * lib/unictype/pr_diacritic.h: Regenerated.
85312         * lib/unictype/pr_extender.h: Regenerated.
85313         * lib/unictype/pr_format_control.h: Regenerated.
85314         * lib/unictype/pr_grapheme_base.h: Regenerated.
85315         * lib/unictype/pr_grapheme_extend.h: Regenerated.
85316         * lib/unictype/pr_grapheme_link.h: Regenerated.
85317         * lib/unictype/pr_id_continue.h: Regenerated.
85318         * lib/unictype/pr_id_start.h: Regenerated.
85319         * lib/unictype/pr_ideographic.h: Regenerated.
85320         * lib/unictype/pr_ignorable_control.h: Regenerated.
85321         * lib/unictype/pr_lowercase.h: Regenerated.
85322         * lib/unictype/pr_math.h: Regenerated.
85323         * lib/unictype/pr_numeric.h: Regenerated.
85324         * lib/unictype/pr_other_alphabetic.h: Regenerated.
85325         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
85326         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
85327         * lib/unictype/pr_other_id_continue.h: Regenerated.
85328         * lib/unictype/pr_other_lowercase.h: Regenerated.
85329         * lib/unictype/pr_other_math.h: Regenerated.
85330         * lib/unictype/pr_punctuation.h: Regenerated.
85331         * lib/unictype/pr_sentence_terminal.h: Regenerated.
85332         * lib/unictype/pr_soft_dotted.h: Regenerated.
85333         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
85334         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
85335         * lib/unictype/pr_unified_ideograph.h: Regenerated.
85336         * lib/unictype/pr_uppercase.h: Regenerated.
85337         * lib/unictype/pr_xid_continue.h: Regenerated.
85338         * lib/unictype/pr_xid_start.h: Regenerated.
85339         * lib/unictype/pr_zero_width.h: Regenerated.
85340         * lib/unictype/scripts.h: Regenerated.
85341         * lib/unictype/scripts_byname.gperf: Regenerated.
85342         * lib/unictype/sy_java_ident.h: Regenerated.
85343         * lib/unilbrk/lbrkprop1.h: Regenerated.
85344         * lib/unilbrk/lbrkprop2.h: Regenerated.
85345         * tests/unictype/test-categ_C.c: Regenerated.
85346         * tests/unictype/test-categ_Cf.c: Regenerated.
85347         * tests/unictype/test-categ_Cn.c: Regenerated.
85348         * tests/unictype/test-categ_L.c: Regenerated.
85349         * tests/unictype/test-categ_Ll.c: Regenerated.
85350         * tests/unictype/test-categ_Lm.c: Regenerated.
85351         * tests/unictype/test-categ_Lo.c: Regenerated.
85352         * tests/unictype/test-categ_Lu.c: Regenerated.
85353         * tests/unictype/test-categ_M.c: Regenerated.
85354         * tests/unictype/test-categ_Mc.c: Regenerated.
85355         * tests/unictype/test-categ_Me.c: Regenerated.
85356         * tests/unictype/test-categ_Mn.c: Regenerated.
85357         * tests/unictype/test-categ_N.c: Regenerated.
85358         * tests/unictype/test-categ_Nd.c: Regenerated.
85359         * tests/unictype/test-categ_Nl.c: Regenerated.
85360         * tests/unictype/test-categ_No.c: Regenerated.
85361         * tests/unictype/test-categ_P.c: Regenerated.
85362         * tests/unictype/test-categ_Pd.c: Regenerated.
85363         * tests/unictype/test-categ_Pe.c: Regenerated.
85364         * tests/unictype/test-categ_Pf.c: Regenerated.
85365         * tests/unictype/test-categ_Pi.c: Regenerated.
85366         * tests/unictype/test-categ_Po.c: Regenerated.
85367         * tests/unictype/test-categ_Ps.c: Regenerated.
85368         * tests/unictype/test-categ_S.c: Regenerated.
85369         * tests/unictype/test-categ_Sk.c: Regenerated.
85370         * tests/unictype/test-categ_Sm.c: Regenerated.
85371         * tests/unictype/test-categ_So.c: Regenerated.
85372         * tests/unictype/test-ctype_alnum.c: Regenerated.
85373         * tests/unictype/test-ctype_alpha.c: Regenerated.
85374         * tests/unictype/test-ctype_graph.c: Regenerated.
85375         * tests/unictype/test-ctype_lower.c: Regenerated.
85376         * tests/unictype/test-ctype_print.c: Regenerated.
85377         * tests/unictype/test-ctype_punct.c: Regenerated.
85378         * tests/unictype/test-ctype_upper.c: Regenerated.
85379         * tests/unictype/test-decdigit.h: Regenerated.
85380         * tests/unictype/test-digit.h: Regenerated.
85381         * tests/unictype/test-numeric.h: Regenerated.
85382         * tests/unictype/test-pr_alphabetic.c: Regenerated.
85383         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
85384         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
85385         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
85386         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
85387         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
85388         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
85389         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
85390         * tests/unictype/test-pr_combining.c: Regenerated.
85391         * tests/unictype/test-pr_dash.c: Regenerated.
85392         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
85393         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
85394         * tests/unictype/test-pr_deprecated.c: Regenerated.
85395         * tests/unictype/test-pr_diacritic.c: Regenerated.
85396         * tests/unictype/test-pr_extender.c: Regenerated.
85397         * tests/unictype/test-pr_format_control.c: Regenerated.
85398         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
85399         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
85400         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
85401         * tests/unictype/test-pr_id_continue.c: Regenerated.
85402         * tests/unictype/test-pr_id_start.c: Regenerated.
85403         * tests/unictype/test-pr_ideographic.c: Regenerated.
85404         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
85405         * tests/unictype/test-pr_lowercase.c: Regenerated.
85406         * tests/unictype/test-pr_math.c: Regenerated.
85407         * tests/unictype/test-pr_numeric.c: Regenerated.
85408         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
85409         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
85410         Regenerated.
85411         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
85412         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
85413         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
85414         * tests/unictype/test-pr_other_math.c: Regenerated.
85415         * tests/unictype/test-pr_punctuation.c: Regenerated.
85416         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
85417         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
85418         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
85419         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
85420         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
85421         * tests/unictype/test-pr_uppercase.c: Regenerated.
85422         * tests/unictype/test-pr_xid_continue.c: Regenerated.
85423         * tests/unictype/test-pr_xid_start.c: Regenerated.
85424         * tests/unictype/test-pr_zero_width.c: Regenerated.
85426         Update to Unicode 5.1.0.
85427         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
85428         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
85429         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
85430         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
85431         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
85432         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
85433         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
85434         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
85435         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
85436         (nonspacing_table_ind): Update.
85437         * tests/uniwidth/test-uc_width2.sh: Update expected result.
85439         Update to Unicode 5.1.0.
85440         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
85441         code transform.
85442         * lib/uniname/uniname.c (unicode_character_name,
85443         unicode_name_character): Add the range 0x1Fxxx to the code transform.
85444         * lib/uniname/uninames.h: Regenerated.
85445         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
85447 2009-02-07  Bruno Haible  <bruno@clisp.org>
85449         Merge gen-ctype and gen-lbrk into a single program.
85450         * lib/gen-uni-tables.c: New file, incorporating
85451         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
85452         Add directory prefixes to the names of the generated files.
85453         * lib/unictype/gen-ctype.c: Remove file.
85454         * lib/unilbrk/gen-lbrk.c: Remove file.
85455         * modules/gen-uni-tables: New file.
85456         * modules/unictype/gen-ctype: Remove file.
85457         * modules/unilbrk/gen-lbrk: Remove file.
85459 2009-02-07  Bruno Haible  <bruno@clisp.org>
85461         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
85463         New module 'unistr/u32-strcoll'.
85464         * modules/unistr/u32-strcoll: New file.
85465         * lib/unistr/u32-strcoll.c: New file.
85467         New module 'unistr/u16-strcoll'.
85468         * modules/unistr/u16-strcoll: New file.
85469         * lib/unistr/u16-strcoll.c: New file.
85471         New module 'unistr/u8-strcoll'.
85472         * modules/unistr/u8-strcoll: New file.
85473         * lib/unistr/u8-strcoll.c: New file.
85474         * lib/unistr/u-strcoll.h: New file.
85476 2009-02-07  Bruno Haible  <bruno@clisp.org>
85478         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
85479         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
85480         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
85481         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
85482         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
85483         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
85485 2009-02-07  Bruno Haible  <bruno@clisp.org>
85487         Make 64-bit clean.
85488         * lib/unictype/gen-ctype.c (output_predicate, output_category,
85489         output_combclass, output_bidi_category, output_decimal_digit,
85490         output_digit, output_numeric, output_mirror, output_scripts,
85491         output_ident_category): Use proper width specifier in format strings.
85493 2009-02-07  Bruno Haible  <bruno@clisp.org>
85495         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
85496         failure behaviour.
85498 2009-02-07  Jim Meyering  <meyering@redhat.com>
85500         regex: avoid compilation failure with upcoming gcc-4.4
85501         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
85502         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
85503         "... error: integer overflow in preprocessor expression".
85505 2009-02-05  Ben Pfaff  <blp@gnu.org>
85507         Fix link errors on Windows when close module is used.
85508         * modules/close: Add $(LIB_CLOSE) to Link section.
85509         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
85510         $(LIB_CLOSE) on Windows.
85512 2009-02-05  Jim Meyering  <meyering@redhat.com>
85514         still avoid unused-parameter warnings, but do it cleanly
85515         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
85516         (get_fs_usage): Cast to void instead.
85517         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
85518         (dev_from_mount_options, read_file_system_list): Cast to void.
85519         Prompted by Bruno Haible.
85521 2009-02-04  Jim Meyering  <meyering@redhat.com>
85523         fsusage.c: correct copyright year
85524         * lib/fsusage.c: Reflect year in which the change is pushed into
85526         avoid misc. warnings
85527         * lib/fsusage.c (UNUSED_PARAM): Define.
85528         (get_fs_usage): Mark parameter "disk" as unused.
85529         * lib/getugroups.c (getgrent): Use "void" in prototype.
85530         * lib/mountlist.c: Mark unused parameters.
85531         (read_file_system_list): Declare a local with "const".
85532         * lib/nanosleep.c (getnow): Declare static.
85533         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
85535         dirfd: set errno upon failure
85536         * lib/dirfd.c: Include <errno.h>.
85537         Set errno to ENOTSUP when returning -1.
85538         * modules/dirfd (Depends-on): Add errno.
85539         Suggested by John Kodis <kodis@comcast.net>.
85541 2009-02-01  Bruno Haible  <bruno@clisp.org>
85543         Don't assume sizeof (long) >= sizeof (void *).
85544         * lib/memcmp.c: Include stdint.h.
85545         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
85546         srcp2 to 'const byte *'.
85547         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
85548         types to uintptr_t.
85549         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
85550         * modules/memcmp (Depends-on): Add stdint.
85551         Reported by Ozkan Sezer <sezeroz@gmail.com>.
85553 2009-01-30  Eric Blake  <ebb9@byu.net>
85555         fix more require-before-expand issues
85556         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
85557         expand, AC_PROG_AWK.
85558         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
85560 2009-01-28  Eric Blake  <ebb9@byu.net>
85562         version-etc: use consistent URL formatting
85563         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
85564         Improve formatting.  Use fputs for string without %.
85566 2009-01-28  Jim Meyering  <meyering@redhat.com>
85568         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
85569         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
85570         "underquoted definition of NAME" from autoconf-2.59.
85572 2009-01-28  Bruno Haible  <bruno@clisp.org>
85574         * doc/gnulib.texi: Add "Obsolete modules" to index.
85576 2009-01-28  Jim Meyering  <meyering@redhat.com>
85578         useless-if-before-free: recognize more variants
85579         * build-aux/useless-if-before-free: Also recognize e.g.,
85580         if (NULL != p) free (p);
85582 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
85584         test-getaddrinfo: skip (don't fail) this test when there's no network
85585         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
85586         on the presumption that it means you lack network access.
85588 2009-01-26  Jim Meyering  <meyering@redhat.com>
85590         fflush: avoid warnings on modern systems
85591         * lib/fflush.c (rpl_fflush): Move declarations of locals,
85592         pos and result, into scopes where they're used.
85594 2009-01-26  Eric Blake  <ebb9@byu.net>
85596         Silence warning reintroduced by recent extensions patch.
85597         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
85598         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
85599         autoconf.
85601         Backport improved autoconf semantics of AC_DEFUN_ONCE.
85602         * m4/00gnulib.m4: New file.
85603         * gnulib-tool (func_get_filelist): Always use it.
85604         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
85605         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
85607 2009-01-25  Bruno Haible  <bruno@clisp.org>
85609         Make test-quotearg work on MacOS X and AIX.
85610         * tests/test-quotearg.sh: New file.
85611         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
85612         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
85613         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
85614         include <libintl.h>.
85615         (fake_locale): Remove variable.
85616         (gettext, dgettext, dcgettext): Remove functions.
85617         (main): Instead of setting a fake locale, set a real locale. Call
85618         textdomain and bindtextdomain.
85619         * modules/quotearg-tests (Files): Add the new files.
85620         (Depends-on): Add gettext, setenv, unsetenv.
85621         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
85622         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
85623         Augment TESTS_ENVIRONMENT.
85625 2009-01-25  Bruno Haible  <bruno@clisp.org>
85627         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
85628         fr_FR.ISO8859-1 locale on MacOS X.
85629         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
85630         ja_JP.eucJP locale on MacOS X.
85631         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
85632         zh_CN.GB18030 locale on MacOS X.
85634 2009-01-25  Bruno Haible  <bruno@clisp.org>
85636         Avoid link errors on MacOS X 10.3.
85637         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
85638         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
85640 2009-01-25  Bruno Haible  <bruno@clisp.org>
85642         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
85643         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
85644         * modules/pipe (Files): Remove m4/posix_spawn.m4.
85645         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
85646         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
85647         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
85648         posix_spawnattr_init, posix_spawnattr_setsigmask,
85649         posix_spawnattr_setflags, posix_spawnattr_destroy.
85651         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
85652         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
85653         * modules/execute (Files): Remove m4/posix_spawn.m4.
85654         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
85655         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
85656         posix_spawnattr_init, posix_spawnattr_setsigmask,
85657         posix_spawnattr_setflags, posix_spawnattr_destroy.
85659 2009-01-25  Bruno Haible  <bruno@clisp.org>
85661         * lib/glthread/threadlib.c: Include <stdlib.h>.
85663 2009-01-25  Bruno Haible  <bruno@clisp.org>
85665         * lib/glthread/threadlib.c (dummy): New declaration.
85667 2009-01-25  Bruno Haible  <bruno@clisp.org>
85669         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
85670         multibyte characters also for the GB18030 encoding. Don't crash when
85671         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
85673 2009-01-25  Bruno Haible  <bruno@clisp.org>
85675         Avoid redefining 'struct random_data' on OSF/1 5.1.
85676         * lib/stdlib.in.h: Include <random.h> if it exists.
85677         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
85678         HAVE_RANDOM_H. Include <random.h> when testing whether
85679         'struct random_data' exists.
85680         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
85682 2009-01-25  Bruno Haible  <bruno@clisp.org>
85684         Don't install charset.alias on MacOS X >= 10.3.
85685         * lib/localcharset.c (DARWIN7): New macro.
85686         (get_charset_aliases): Hardcode the result for Darwin7.
85687         * modules/localcharset (install-exec-local): Don't install
85688         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
85690 2009-01-25  Bruno Haible  <bruno@clisp.org>
85692         Don't install charset.alias on mingw and Cygwin.
85693         * modules/localcharset (install-exec-local): Don't install
85694         charset.alias on mingw and Cygwin, if the file does not yet exist.
85695         The result for these platforms is hardcoded in localcharset.c.
85697 2009-01-25  Bruno Haible  <bruno@clisp.org>
85699         Make it possible again to use AC_GNU_SOURCE together with gnulib.
85700         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
85701         before requiring AC_USE_SYSTEM_EXTENSIONS.
85703 2009-01-25  Jim Meyering  <meyering@redhat.com>
85705         c-strtod: avoid warnings
85706         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
85707         "assignment discards qualifiers from pointer target type" warnings.
85709 2009-01-24  Bruno Haible  <bruno@clisp.org>
85711         Add support for non-UTF-8 locales on MacOS X.
85712         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
85713         canonical encodings. For Darwin 7 and newer, don't map traditional
85714         encodings to UTF-8.
85715         Reported by Vincent Lefevre <vincent@vinc17.org>
85716         at <http://savannah.gnu.org/bugs/?25235>.
85718 2009-01-24  Bruno Haible  <bruno@clisp.org>
85720         * doc/gnulib.texi (Obsolete modules): New section.
85721         Reported by Mike Frysinger <vapier@gentoo.org>.
85723 2009-01-24  Bruno Haible  <bruno@clisp.org>
85725         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
85726         (%.dvi): New rule.
85728 2009-01-24  Bruno Haible  <bruno@clisp.org>
85730         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
85731         Reported by Eric Blake.
85733 2009-01-24  Bruno Haible  <bruno@clisp.org>
85735         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
85736         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
85737         Reported by Gary V. Vaughan <gary@gnu.org>.
85739 2009-01-24  Bruno Haible  <bruno@clisp.org>
85741         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
85743 2009-01-23  Bruno Haible  <bruno@clisp.org>
85745         Make c-strtod, c-strtold usable in libraries.
85746         * lib/c-strtod.c: Include string.h instead of xalloc.h.
85747         (C_STRTOD): Call strdup instead of xstrdup.
85748         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
85749         * modules/c-strtold (Depends-on): Likewise.
85750         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
85751         * NEWS: Mention the change.
85752         Reported by Michael Gold <mgold@ncf.ca>.
85754 2009-01-23  Jim Meyering  <meyering@redhat.com>
85756         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
85757         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
85758         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
85760 2009-01-23  Simon Josefsson  <simon@josefsson.org>
85762         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
85763         GNU CoreUtils.
85764         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
85765         * modules/version-etc (Description): Update.
85767 2009-01-22  Bruno Haible  <bruno@clisp.org>
85769         Cache the C locale object.
85770         * lib/c-strtod.c (c_locale_cache): New variable.
85771         (c_locale): New function.
85772         (C_STRTOD): Use it, and don't call freelocale.
85773         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
85774         Suggested by Paolo Bonzini.
85776 2009-01-21  Bruno Haible  <bruno@clisp.org>
85778         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
85779         conditions other than overflow.
85781 2009-01-21  Bruno Haible  <bruno@clisp.org>
85783         * lib/c-strtod.c: Include errno.h.
85784         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
85785         value from STRTOD_L and STRTOD.
85787 2009-01-21  Bruno Haible  <bruno@clisp.org>
85788         and Jim Meyering  <meyering@redhat.com>
85790         nanosleep: skip configure test (fail it) for apple universal builds
85791         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
85792         universal builds, assume that nanosleep does not work.
85793         * modules/nanosleep (Depends-on): Add multiarch.
85795         mktime: skip configure test (fail it) for apple universal builds
85796         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
85797         universal builds, assume that mktime does not work.
85798         * modules/mktime (Depends-on): Add multiarch.
85800 2009-01-21  Eric Blake  <ebb9@byu.net>
85802         multiarch: avoid expand-before-require warning
85803         * modules/multiarch (configure.ac): Require, rather than expand,
85804         gl_MULTIARCH.
85805         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
85806         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
85807         enforce that all clients require it.  Partial reversion of
85808         2008-12-29 patch.
85810         error: avoid expand-before-require warning
85811         * modules/errno (configure.ac): Require, rather than expand,
85812         gl_HEADER_ERRNO_H.
85813         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
85814         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
85815         enforce that all clients require it.
85817         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
85818         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
85819         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
85820         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
85822 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
85824         Revert:
85825         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
85827         regex: do not depend on obsolete modules.
85828         * modules/regex: Remove memcmp and memmove.
85830 2009-01-20  Bruno Haible  <bruno@clisp.org>
85832         Make the 'link' module link on Windows NT 4.
85833         * lib/link.c (_WIN32_WINNT): Don't define.
85834         (CreateHardLinkFuncType): New type.
85835         (CreateHardLinkFunc, initialized): New variables.
85836         (initialize): New function.
85837         (link): Invoke CreateHardLink indirectly through the function pointer.
85839 2009-01-20  Bruno Haible  <bruno@clisp.org>
85841         Fix compilation failure on mingw.
85842         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
85844 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
85846         * doc/c-strtod.texi: Mention a couple of restrictions.
85848 2009-01-20  Jim Meyering  <meyering@redhat.com>
85850         gettimeofday: move more declarations out of functions
85851         * lib/gettimeofday.c: Move extern declarations of tzset and
85852         gmtime out of containing functions.  Prompted by Bruno Haible.
85854 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
85856         regex: do not depend on obsolete modules.
85857         * modules/regex: Remove memcmp and memmove.
85859 2009-01-19  Bruno Haible  <bruno@clisp.org>
85861         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
85862         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
85863         gl_BIGENDIAN, not AC_C_BIGENDIAN.
85864         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
85865         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
85867 2009-01-19  Bruno Haible  <bruno@clisp.org>
85869         * tests/test-link.c: Include <errno.h>.
85870         (main): Exit with code 77 when a hard link cannot be created due to
85871         the file system.
85872         * tests/test-link.sh: Skip test when a hard link cannot be created due
85873         to the file system.
85874         Suggested by Eric Blake.
85876 2009-01-19  Martin Lambers  <marlam@marlam.de>
85878         * modules/link-tests: New file.
85879         * tests/test-link.sh: New file.
85880         * tests/test-link.c: New file.
85882 2009-01-19  Eric Blake  <ebb9@byu.net>
85884         doc: mention another function added in cygwin 1.7.0
85885         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
85886         Another new function in cygwin 1.7.
85888 2009-01-19  Bruno Haible  <bruno@clisp.org>
85890         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
85891         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
85892         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
85893         gl_BIGENDIAN, not AC_C_BIGENDIAN.
85894         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
85895         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
85896         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
85897         * m4/md4.m4 (gl_MD4): Likewise.
85898         * m4/md5.m4 (gl_MD5): Likewise.
85899         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
85900         * m4/sha1.m4 (gl_SHA1): Likewise.
85901         * m4/sha256.m4 (gl_SHA256): Likewise.
85902         * m4/sha512.m4 (gl_SHA512): Likewise.
85904 2009-01-19  Bruno Haible  <bruno@clisp.org>
85906         * modules/uniname/uniname-tests (Depends-on): Add progname.
85907         * tests/uniname/test-uninames.c: Include progname.h.
85908         (main): Call set_program_name.
85910         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
85911         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
85912         (main): Call set_program_name.
85914         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
85915         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
85916         (main): Call set_program_name.
85918         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
85919         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
85920         (main): Call set_program_name.
85922         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
85923         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
85924         (main): Call set_program_name.
85926         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
85927         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
85928         (main): Call set_program_name.
85930         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
85931         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
85932         (main): Call set_program_name.
85934         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
85935         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
85936         (main): Call set_program_name.
85938         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
85939         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
85940         (main): Call set_program_name.
85942 2009-01-19  Eric Blake  <ebb9@byu.net>
85944         test-unistd: test previous patch
85945         * tests/test-unistd.c: Test *_FILENO macros.
85947         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
85948         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
85949         Guarantee a definition.
85950         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
85951         * modules/unistd-safer (Depends-on): Add dependency on unistd.
85952         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
85953         * lib/dup-safer.c (STDERR_FILENO): Likewise.
85954         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
85955         Likewise.
85956         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
85957         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
85958         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
85959         Likewise.
85960         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
85961         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
85962         (STDERR_FILENO): Likewise.
85963         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
85964         (STDERR_FILENO): Likewise.
85965         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
85966         (STDERR_FILENO): Likewise.
85967         Reported by Elbert Pol.
85969 2009-01-19  Eric Blake  <ebb9@byu.net>
85971         doc: mention more functions added in cygwin 1.7.0
85972         * doc/posix-functions/abort.texi (abort): Update wording related
85973         to cygwin.
85974         * doc/posix-functions/daylight.texi (daylight): Likewise.
85975         * doc/posix-functions/optarg.texi (optarg): Likewise.
85976         * doc/posix-functions/optarg.texi (opterr): Likewise.
85977         * doc/posix-functions/optarg.texi (optind): Likewise.
85978         * doc/posix-functions/optarg.texi (optopt): Likewise.
85979         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
85980         worked in 1.5.x, and was withdrawn in 1.7.
85981         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
85982         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
85983         cygwin versions.
85984         * doc/posix-functions/perror.texi (perror): Likewise.
85985         * doc/posix-functions/printf.texi (printf): Likewise.
85986         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
85987         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
85988         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
85989         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
85990         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
85991         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
85992         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
85993         Likewise.
85994         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
85995         Likewise.
85996         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
85997         this function.
85998         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
85999         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
86000         Likewise.
86001         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
86002         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
86003         * doc/posix-functions/confstr.texi (confstr): Likewise.
86004         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
86005         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
86006         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
86007         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
86008         * doc/posix-functions/fputws.texi (fputws): Likewise.
86009         * doc/posix-functions/fwide.texi (fwide): Likewise.
86010         * doc/posix-functions/getwc.texi (getwc): Likewise.
86011         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
86012         * doc/posix-functions/putwc.texi (putwc): Likewise.
86013         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
86014         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
86015         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
86016         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
86017         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
86018         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
86019         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
86020         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
86021         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
86022         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
86023         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
86025 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
86027         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
86028         * lib/ioctl.c: Include <sys/ioctl.h>.
86030 2009-01-19  Simon Josefsson  <simon@josefsson.org>
86032         * modules/getdate-tests (Depends-on): Add progname.
86033         * tests/test-getdate.c: Use progname module, to avoid link errors
86034         on non-glibc systems.
86036 2009-01-18  Simon Josefsson  <simon@josefsson.org>
86038         * modules/filenamecat-tests (Depends-on): Add progname.
86039         * modules/fstrcmp-tests (Depends-on): Likewise.
86041         * tests/test-filenamecat.c: Use progname module, to avoid link
86042         errors on non-glibc systems.
86043         * tests/test-fstrcmp.c: Likewise.
86045 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
86047         gettimeofday: avoid warning: nested extern declaration of 'localtime'
86048         * lib/gettimeofday.c: Move extern declaration out of function.
86050 2009-01-18  Bruno Haible  <bruno@clisp.org>
86052         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
86053         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
86054         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
86056 2009-01-18  Bruno Haible  <bruno@clisp.org>
86058         * lib/strftime.c (MEMPCPY): Remove unused macro.
86059         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
86061 2009-01-18  Martin Lambers  <marlam@marlam.de>
86063         New module 'link'.
86064         * lib/unistd.in.h (link): New declaration.
86065         * lib/link.c: New file.
86066         * m4/link.m4: New file.
86067         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
86068         HAVE_LINK.
86069         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
86070         * modules/link: New file.
86071         * doc/posix-functions/link.texi: Mention the new module.
86073 2009-01-18  Bruno Haible  <bruno@clisp.org>
86075         * tests/test-avltree_list.c (main): Call set_program_name.
86076         * tests/test-avltree_oset.c (main): Likewise.
86077         * tests/test-obstack-printf.c: Include progname.h.
86078         (main): Call set_program_name.
86079         * tests/test-quotearg.c: Include progname.h.
86080         (main): Call set_program_name.
86081         * tests/test-xmemdup0.c: Include progname.h.
86082         (main): Call set_program_name.
86084 2009-01-18  Bruno Haible  <bruno@clisp.org>
86086         New module 'alphasort'.
86087         * lib/dirent.in.h (alphasort): New declaration.
86088         * lib/alphasort.c: New file, from glibc with modifications.
86089         * m4/alphasort.m4: New file.
86090         * modules/alphasort: New file.
86091         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
86092         HAVE_ALPHASORT.
86093         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
86094         HAVE_ALPHASORT.
86095         * doc/posix-functions/alphasort.texi: Mention the new module and the
86096         portability problems.
86098 2009-01-18  Bruno Haible  <bruno@clisp.org>
86100         New module 'scandir'.
86101         * lib/dirent.in.h (scandir): New declaration.
86102         * lib/scandir.c: New file, from glibc with modifications.
86103         * m4/scandir.m4: New file.
86104         * modules/scandir: New file.
86105         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
86106         HAVE_SCANDIR.
86107         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
86108         HAVE_SCANDIR.
86109         * doc/posix-functions/scandir.texi: Mention the new module and the
86110         portability problems.
86112 2009-01-17  Bruno Haible  <bruno@clisp.org>
86114         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
86115         Update documentation.
86116         (func_remove_suffix): Escape all dots in the suffix. Update
86117         documentation.
86118         (func_filter_filelist): Update documentation.
86119         Reported by Ralf Wildenhues.
86121 2009-01-17  Bruno Haible  <bruno@clisp.org>
86123         * modules/dprintf-posix-tests: New file.
86124         * tests/test-dprintf-posix.sh: New file.
86125         * tests/test-dprintf-posix.c: New file.
86127         New modules 'dprintf', 'dprintf-posix'.
86128         * lib/stdio.in.h (dprintf): New declaration.
86129         * lib/dprintf.c: New file.
86130         * m4/dprintf.m4: New file.
86131         * m4/dprintf-posix.m4: New file.
86132         * modules/dprintf: New file.
86133         * modules/dprintf-posix: New file.
86134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
86135         HAVE_DPRINTF, REPLACE_DPRINTF.
86136         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
86137         HAVE_DPRINTF, REPLACE_DPRINTF.
86138         * doc/posix-functions/dprintf.texi: Mention the new modules.
86140 2009-01-17  Bruno Haible  <bruno@clisp.org>
86142         * modules/vdprintf-posix-tests: New file.
86143         * tests/test-vdprintf-posix.sh: New file.
86144         * tests/test-vdprintf-posix.c: New file.
86146         New modules 'vdprintf', 'vdprintf-posix'.
86147         * lib/stdio.in.h (vdprintf): New declaration.
86148         * lib/vdprintf.c: New file.
86149         * m4/vdprintf.m4: New file.
86150         * m4/vdprintf-posix.m4: New file.
86151         * modules/vdprintf: New file.
86152         * modules/vdprintf-posix: New file.
86153         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
86154         HAVE_VDPRINTF, REPLACE_VDPRINTF.
86155         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
86156         HAVE_VDPRINTF, REPLACE_VDPRINTF.
86157         * doc/posix-functions/vdprintf.texi: Mention the new modules.
86159 2009-01-17  Bruno Haible  <bruno@clisp.org>
86161         Fix replacement of fopen on mingw.
86162         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
86163         mingw.
86165 2009-01-17  Bruno Haible  <bruno@clisp.org>
86167         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
86168         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
86170 2009-01-17  Bruno Haible  <bruno@clisp.org>
86172         Avoid test-fflush2.sh failure on mingw.
86173         * tests/test-fflush2.c: Include binary-io.h.
86174         (main): Put standard input into binary mode.
86175         * modules/fflush-tests (Depends-on): Add binary-io.
86177 2009-01-17  Bruno Haible  <bruno@clisp.org>
86179         * lib/wchar.in.h: In another particular situation, include only the
86180         system's <wchar.h> file.
86181         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
86182         Reported by Albert Chin-A-Young <china@thewrittenword.com>
86183         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
86185 2009-01-17  Bruno Haible  <bruno@clisp.org>
86187         Support for stripping executables in --enable-relocatable.
86188         * build-aux/install-reloc: Expect one more argument, or an environment
86189         variable RELOC_STRIP_PROG. If set, strip the destination program and
86190         its wrapper.
86191         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
86192         RELOC_STRIP_PROG.
86193         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
86194         to set RELOCATABLE_STRIP.
86195         * NEWS: Mention the new Makefile requirement.
86197 2009-01-17  Bruno Haible  <bruno@clisp.org>
86199         * build-aux/install-reloc: Remove debugging information left over by
86200         C compiler on MacOS X.
86202 2009-01-17  Bruno Haible  <bruno@clisp.org>
86204         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
86205         * lib/progreloc.c (find_executable): Fix type of pointer passed to
86206         _NSGetExecutablePath.
86208 2009-01-16  Jim Meyering  <meyering@redhat.com>
86210         strerror: avoid warnings about discarding "const"
86211         * lib/strerror.c (rpl_strerror): Instead of returning a const
86212         string from each and every "case", use a variable, and add a single
86213         cast after the switch.
86215 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
86217         * lib/arpa_inet.in.h: Add extern "C" block for C++.
86219 2009-01-16  Bruno Haible  <bruno@clisp.org>
86221         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
86222         array initializer syntax that also works in C++ mode.
86223         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
86225 2009-01-16  Jim Meyering  <meyering@redhat.com>
86227         poll: suppress a warning
86228         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
86229         to ignore "...unsigned expression < 0 is always false" warnings.
86231 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
86233         poll: remove declarations of unused variables
86234         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
86235         sockbuf and optlen.
86237 2009-01-15  Bruno Haible  <bruno@clisp.org>
86239         Make fflush-after-ungetc POSIX compliant on BSD systems.
86240         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
86241         (clear_ungetc_buffer): Implement also for other systems.
86242         (rpl_fflush): On glibc systems, invoke
86243         clear_ungetc_buffer_preserving_position. Otherwise, invoke
86244         clear_ungetc_buffer after fetching the stream's position, not before.
86246 2009-01-15  Bruno Haible  <bruno@clisp.org>
86248         Make fflush-after-ungetc POSIX compliant on glibc systems.
86249         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
86250         after ungetc.
86251         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
86252         (rpl_fflush): On glibc systems, simply call the system's fflush
86253         function after clearing the ungetc buffer.
86254         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
86255         Instead, lseek only to the end of file, then use the system's fseeko
86256         for the rest. On glibc systems, reset the EOF indicator bit.
86258 2009-01-15  Jim Meyering  <meyering@redhat.com>
86260         openmp.m4: revert quote-adding change, for portability to older autoconf
86261         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
86262         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
86263         Simon Josefsson noticed the problem when using autoconf-2.61.
86265 2009-01-15  Bruno Haible  <bruno@clisp.org>
86267         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
86268         * tests/test-fflush2.c (ASSERT): Always fail.
86269         (main): Add two tests for fflush() after ungetc(), taking into account
86270         the Austin Group's clarification.
86271         Suggested by Eric Blake.
86273 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
86275         mktime.m4: remove K&R-style function prototypes
86276         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
86277         for the Sun C++ compiler.
86279 2009-01-14  Bruno Haible  <bruno@clisp.org>
86281         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
86282         while including <wchar.h>.
86283         * lib/wchar.in.h: In two particular situations on HP-UX, include only
86284         the system's <wchar.h> file.
86285         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
86287 2009-01-14  Bruno Haible  <bruno@clisp.org>
86289         * m4/csharp.m4: Don't mention gettext on the serial number line.
86290         * m4/csharpexec.m4: Likewise.
86291         * m4/eaccess.m4: Likewise.
86292         * m4/javaexec.m4: Likewise.
86293         * m4/sig_atomic_t.m4: Likewise.
86294         * m4/tmpdir.m4: Likewise.
86295         * m4/intldir.m4: Bump gettext version.
86296         * m4/lib-ld.m4: Likewise.
86298 2009-01-14  Bruno Haible  <bruno@clisp.org>
86300         * lib/progname.c (set_program_name): Add more comments.
86301         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
86303 2009-01-14  Simon Josefsson  <simon@josefsson.org>
86305         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
86306         were sys/stat.h does not define it.
86308 2009-01-14  Jim Meyering  <meyering@redhat.com>
86310         many *.m4 files: improve m4 quoting
86311         99% of this change was performed by running the following commands:
86312         git ls-files | grep '\.m4$' | xargs perl -pi \
86313           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
86314           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
86315           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
86316           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
86317         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
86318         The remainder were to add Copyright dates, increment serial numbers,
86319         undo some changes in comments, exclude m4/intl.m4, and add quotes
86320         around the "1" in ",1" where the unusual spacing prohibited the
86321         above regexps from doing the job.  For more details, see
86322         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
86323         * m4/acl.m4: Modified.
86324         * m4/afs.m4: Likewise.
86325         * m4/alloca.m4: Likewise.
86326         * m4/argp.m4: Likewise.
86327         * m4/argz.m4: Likewise.
86328         * m4/atexit.m4: Likewise.
86329         * m4/bison-i18n.m4: Likewise.
86330         * m4/bison.m4: Likewise.
86331         * m4/byteswap.m4: Likewise.
86332         * m4/c-stack.m4: Likewise.
86333         * m4/c-strtod.m4: Likewise.
86334         * m4/calloc.m4: Likewise.
86335         * m4/canonicalize-lgpl.m4: Likewise.
86336         * m4/chown.m4: Likewise.
86337         * m4/clock_time.m4: Likewise.
86338         * m4/codeset.m4: Likewise.
86339         * m4/copy-file.m4: Likewise.
86340         * m4/csharp.m4: Likewise.
86341         * m4/csharpcomp.m4: Likewise.
86342         * m4/csharpexec.m4: Likewise.
86343         * m4/d-ino.m4: Likewise.
86344         * m4/d-type.m4: Likewise.
86345         * m4/dirfd.m4: Likewise.
86346         * m4/double-slash-root.m4: Likewise.
86347         * m4/eaccess.m4: Likewise.
86348         * m4/eealloc.m4: Likewise.
86349         * m4/environ.m4: Likewise.
86350         * m4/errno_h.m4: Likewise.
86351         * m4/euidaccess.m4: Likewise.
86352         * m4/execute.m4: Likewise.
86353         * m4/fatal-signal.m4: Likewise.
86354         * m4/fchdir.m4: Likewise.
86355         * m4/fcntl_h.m4: Likewise.
86356         * m4/fileblocks.m4: Likewise.
86357         * m4/filenamecat.m4: Likewise.
86358         * m4/findprog.m4: Likewise.
86359         * m4/flexmember.m4: Likewise.
86360         * m4/fnmatch.m4: Likewise.
86361         * m4/fopen.m4: Likewise.
86362         * m4/fpending.m4: Likewise.
86363         * m4/fprintf-posix.m4: Likewise.
86364         * m4/free.m4: Likewise.
86365         * m4/frexp.m4: Likewise.
86366         * m4/frexpl.m4: Likewise.
86367         * m4/fsusage.m4: Likewise.
86368         * m4/ftruncate.m4: Likewise.
86369         * m4/gc-camellia.m4: Likewise.
86370         * m4/gc-random.m4: Likewise.
86371         * m4/gc.m4: Likewise.
86372         * m4/getaddrinfo.m4: Likewise.
86373         * m4/getcwd-abort-bug.m4: Likewise.
86374         * m4/getcwd-path-max.m4: Likewise.
86375         * m4/getdate.m4: Likewise.
86376         * m4/getdomainname.m4: Likewise.
86377         * m4/getgroups.m4: Likewise.
86378         * m4/gethostname.m4: Likewise.
86379         * m4/gethrxtime.m4: Likewise.
86380         * m4/getline.m4: Likewise.
86381         * m4/getloadavg.m4: Likewise.
86382         * m4/getndelim2.m4: Likewise.
86383         * m4/getpass.m4: Likewise.
86384         * m4/gettext.m4: Likewise.
86385         * m4/gettime.m4: Likewise.
86386         * m4/gettimeofday.m4: Likewise.
86387         * m4/gnulib-common.m4: Likewise.
86388         * m4/group-member.m4: Likewise.
86389         * m4/host-os.m4: Likewise.
86390         * m4/iconv.m4: Likewise.
86391         * m4/iconv_open.m4: Likewise.
86392         * m4/inet_ntop.m4: Likewise.
86393         * m4/inet_pton.m4: Likewise.
86394         * m4/inline.m4: Likewise.
86395         * m4/intldir.m4: Likewise.
86396         * m4/intlmacosx.m4: Likewise.
86397         * m4/intmax.m4: Likewise.
86398         * m4/intmax_t.m4: Likewise.
86399         * m4/inttypes.m4: Likewise.
86400         * m4/inttypes_h.m4: Likewise.
86401         * m4/inttypes-pri.m4: Likewise.
86402         * m4/isapipe.m4: Likewise.
86403         * m4/isnand.m4: Likewise.
86404         * m4/isnanf.m4: Likewise.
86405         * m4/isnanl.m4: Likewise.
86406         * m4/javacomp.m4: Likewise.
86407         * m4/javaexec.m4: Likewise.
86408         * m4/jm-winsz1.m4: Likewise.
86409         * m4/jm-winsz2.m4: Likewise.
86410         * m4/lchown.m4: Likewise.
86411         * m4/lcmessage.m4: Likewise.
86412         * m4/ldexpl.m4: Likewise.
86413         * m4/lib-ld.m4: Likewise.
86414         * m4/lib-link.m4: Likewise.
86415         * m4/libsigsegv.m4: Likewise.
86416         * m4/link-follow.m4: Likewise.
86417         * m4/localcharset.m4: Likewise.
86418         * m4/locale-fr.m4: Likewise.
86419         * m4/locale-ja.m4: Likewise.
86420         * m4/locale-tr.m4: Likewise.
86421         * m4/locale-zh.m4: Likewise.
86422         * m4/lock.m4: Likewise.
86423         * m4/longlong.m4: Likewise.
86424         * m4/ls-mntd-fs.m4: Likewise.
86425         * m4/lstat.m4: Likewise.
86426         * m4/malloc.m4: Likewise.
86427         * m4/mathl.m4: Likewise.
86428         * m4/mbrtowc.m4: Likewise.
86429         * m4/mbstate_t.m4: Likewise.
86430         * m4/mbswidth.m4: Likewise.
86431         * m4/memchr.m4: Likewise.
86432         * m4/memcmp.m4: Likewise.
86433         * m4/memcpy.m4: Likewise.
86434         * m4/memmem.m4: Likewise.
86435         * m4/memmove.m4: Likewise.
86436         * m4/mempcpy.m4: Likewise.
86437         * m4/memrchr.m4: Likewise.
86438         * m4/memset.m4: Likewise.
86439         * m4/minmax.m4: Likewise.
86440         * m4/mkdir-slash.m4: Likewise.
86441         * m4/mkdtemp.m4: Likewise.
86442         * m4/mktime.m4: Likewise.
86443         * m4/mmap-anon.m4: Likewise.
86444         * m4/mountlist.m4: Likewise.
86445         * m4/nanosleep.m4: Likewise.
86446         * m4/nls.m4: Likewise.
86447         * m4/nocrash.m4: Likewise.
86448         * m4/open.m4: Likewise.
86449         * m4/openat.m4: Likewise.
86450         * m4/openmp.m4: Likewise.
86451         * m4/pathmax.m4: Likewise.
86452         * m4/perl.m4: Likewise.
86453         * m4/physmem.m4: Likewise.
86454         * m4/pipe.m4: Likewise.
86455         * m4/po.m4: Likewise.
86456         * m4/poll.m4: Likewise.
86457         * m4/posixtm.m4: Likewise.
86458         * m4/posixver.m4: Likewise.
86459         * m4/printf-frexp.m4: Likewise.
86460         * m4/printf-frexpl.m4: Likewise.
86461         * m4/printf-posix.m4: Likewise.
86462         * m4/printf-posix-rpl.m4: Likewise.
86463         * m4/printf.m4: Likewise.
86464         * m4/progtest.m4: Likewise.
86465         * m4/putenv.m4: Likewise.
86466         * m4/readline.m4: Likewise.
86467         * m4/readlink.m4: Likewise.
86468         * m4/readutmp.m4: Likewise.
86469         * m4/realloc.m4: Likewise.
86470         * m4/regex.m4: Likewise.
86471         * m4/relocatable.m4: Likewise.
86472         * m4/relocatable-lib.m4: Likewise.
86473         * m4/rename-dest-slash.m4: Likewise.
86474         * m4/rename.m4: Likewise.
86475         * m4/rmdir-errno.m4: Likewise.
86476         * m4/rmdir.m4: Likewise.
86477         * m4/roundf.m4: Likewise.
86478         * m4/roundl.m4: Likewise.
86479         * m4/rpmatch.m4: Likewise.
86480         * m4/save-cwd.m4: Likewise.
86481         * m4/selinux-selinux-h.m4: Likewise.
86482         * m4/setenv.m4: Likewise.
86483         * m4/settime.m4: Likewise.
86484         * m4/sig2str.m4: Likewise.
86485         * m4/sig_atomic_t.m4: Likewise.
86486         * m4/signalblocking.m4: Likewise.
86487         * m4/signbit.m4: Likewise.
86488         * m4/sigpipe.m4: Likewise.
86489         * m4/sockets.m4: Likewise.
86490         * m4/sockpfaf.m4: Likewise.
86491         * m4/st_dm_mode.m4: Likewise.
86492         * m4/stat-time.m4: Likewise.
86493         * m4/stdbool.m4: Likewise.
86494         * m4/stdint.m4: Likewise.
86495         * m4/stdint_h.m4: Likewise.
86496         * m4/stpcpy.m4: Likewise.
86497         * m4/stpncpy.m4: Likewise.
86498         * m4/strcase.m4: Likewise.
86499         * m4/strchrnul.m4: Likewise.
86500         * m4/strcspn.m4: Likewise.
86501         * m4/strdup.m4: Likewise.
86502         * m4/strftime.m4: Likewise.
86503         * m4/strndup.m4: Likewise.
86504         * m4/strnlen.m4: Likewise.
86505         * m4/strpbrk.m4: Likewise.
86506         * m4/strptime.m4: Likewise.
86507         * m4/strsep.m4: Likewise.
86508         * m4/strtod.m4: Likewise.
86509         * m4/strtoimax.m4: Likewise.
86510         * m4/strtok_r.m4: Likewise.
86511         * m4/strtol.m4: Likewise.
86512         * m4/strtoll.m4: Likewise.
86513         * m4/strtoul.m4: Likewise.
86514         * m4/strtoull.m4: Likewise.
86515         * m4/strtoumax.m4: Likewise.
86516         * m4/strverscmp.m4: Likewise.
86517         * m4/threadlib.m4: Likewise.
86518         * m4/timegm.m4: Likewise.
86519         * m4/tm_gmtoff.m4: Likewise.
86520         * m4/tmpdir.m4: Likewise.
86521         * m4/tmpfile.m4: Likewise.
86522         * m4/tzset.m4: Likewise.
86523         * m4/uintmax_t.m4: Likewise.
86524         * m4/unlinkdir.m4: Likewise.
86525         * m4/unlocked-io.m4: Likewise.
86526         * m4/uptime.m4: Likewise.
86527         * m4/userspec.m4: Likewise.
86528         * m4/utimbuf.m4: Likewise.
86529         * m4/utime.m4: Likewise.
86530         * m4/utimes-null.m4: Likewise.
86531         * m4/utimes.m4: Likewise.
86532         * m4/vararrays.m4: Likewise.
86533         * m4/vasnprintf.m4: Likewise.
86534         * m4/vfprintf-posix.m4: Likewise.
86535         * m4/vprintf-posix.m4: Likewise.
86536         * m4/wait-process.m4: Likewise.
86537         * m4/wchar_t.m4: Likewise.
86538         * m4/wint_t.m4: Likewise.
86539         * m4/write-any-file.m4: Likewise.
86540         * m4/yield.m4: Likewise.
86542 2009-01-13  Bruno Haible  <bruno@clisp.org>
86544         Avoid test-copy-file.sh failures when ACL support insufficient.
86545         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
86546         TESTS_ENVIRONMENT.
86547         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
86548         Reported by Jim Meyering.
86550 2009-01-13  Bruno Haible  <bruno@clisp.org>
86552         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
86553         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
86554         * modules/unistdio/u8-printf-parse (Files): Likewise.
86555         * modules/unistdio/u32-printf-parse (Files): Likewise.
86556         * modules/unistdio/ulc-printf-parse (Files): Likewise.
86558 2009-01-13  Simon Josefsson  <simon@josefsson.org>
86560         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
86561         and m4/inttypes_h.m4 too.
86563 2009-01-12  Eric Blake  <ebb9@byu.net>
86565         tests: IRIX 6.2 cc can't compile -0.0 into .data
86566         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
86567         rather than at compile-time.
86568         * tests/test-floorl.c (minus_zero): Likewise.
86569         * tests/test-frexpl.c (minus_zero): Likewise.
86570         * tests/test-isnan.c (minus_zerol): Likewise.
86571         * tests/test-isnanl.h (minus_zero): Likewise.
86572         * tests/test-ldexpl.c (minus_zero): Likewise.
86573         * tests/test-roundl.c (minus_zero): Likewise.
86574         * tests/test-signbit.c (minus_zerol): Likewise.
86575         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
86576         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
86577         * tests/test-truncl.c (minus_zero): Likewise.
86578         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
86579         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
86580         Reported by Tom G. Christensen and Nelson H. F. Beebe.
86582 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
86584         regex: fix glibc bug 9697
86585         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
86586         handling.
86588 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
86590         regex: fix glibc bug 697
86591         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
86592         being NULL also if there are no backreferences.
86594 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
86596         regex: merge glibc changes
86597         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
86598         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
86599         re_string_skip_chars, re_string_reconstruct): Likewise.
86600         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
86602 2009-01-07  Jim Meyering  <meyering@redhat.com>
86604         poll: filter through cppi
86605         * lib/poll.c: Indent cpp directives to reflect nesting.
86607 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
86609         poll: don't return uninitialized
86610         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
86612 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
86614         avoid compile failure on AIX 6.1
86615         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
86616         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
86618 2009-01-04  Jim Meyering  <meyering@redhat.com>
86620         remove duplicate inclusion of <stdio.h>
86621         * tests/test-fprintf-posix.c: Likewise.
86622         * tests/test-printf-posix.c: Likewise.
86623         * tests/test-snprintf-posix.c: Likewise.
86624         * tests/test-sprintf-posix.c: Likewise.
86625         * tests/test-vasprintf-posix.c: Likewise.
86626         * tests/test-vfprintf-posix.c: Likewise.
86627         * tests/test-vprintf-posix.c: Likewise.
86628         * tests/test-vsnprintf-posix.c: Likewise.
86629         * tests/test-vsprintf-posix.c: Likewise.
86631 2009-01-03  Jim Meyering  <meyering@redhat.com>
86633         gnulib-tool: fix sed-based filtering
86634         * gnulib-tool (func_filter_filelist): Remove extra backslash
86635         in sed_fff_filter definition.
86637 2009-01-02  Jim Meyering  <meyering@redhat.com>
86639         strftime: avoid compilation failure on Solaris 2.6
86640         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
86641         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
86642         Don't #define mbrlen or mbsinit, since now they're guaranteed to
86643         be available.  Reported by Tom G. Christensen.  Details in
86644         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
86646 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86647             Bruno Haible  <bruno@clisp.org>
86649         Speed up gnulib-tool by doing more string processing through shell
86650         built-ins.
86651         * gnulib-tool (fast_func_append): New variable.
86652         (func_remove_prefix, func_remove_suffix): New functions.
86653         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
86654         (func_filter_filelist): New function.
86655         (func_get_dependencies): Use func_remove_suffix instead of sed.
86656         (func_get_automake_snippet): Use func_filter_filelist instead of a
86657         subshell and sed invocation.
86659 2009-01-01  Bruno Haible  <bruno@clisp.org>
86661         Fix a security bug.
86662         * gnulib-tool (func_import, import, update): Don't allow the characters
86663         '"', '$', '`', '\' in macro arguments that become part of commands that
86664         are evaluated.
86666 2009-01-01  Bruno Haible  <bruno@clisp.org>
86668         * gnulib-tool (func_reset_sigpipe): Add more comments.
86670 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86672         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
86673         func_emit_tests_Makefile_am, func_import): Abort loops early if we
86674         already know the answer.
86676 2009-01-01  Jim Meyering  <meyering@redhat.com>
86678         * lib/version-etc.c (version_etc_va): Update copyright year.
86680 2008-12-30  Bruno Haible  <bruno@clisp.org>
86682         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
86683         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
86684         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
86686 2008-12-29  Eric Blake  <ebb9@byu.net>
86688         multiarch: avoid autoconf AC_REQUIRE bug
86689         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
86690         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
86691         2.63 and older.
86692         Reported by Bruno Haible, and analyzed in
86693         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
86695 2008-12-29  Bruno Haible  <bruno@clisp.org>
86697         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
86698         files in subdirectories correctly.
86699         Reported by Ralf Wildenhues.
86701 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
86703         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
86704         rather than 'join FILE -', for Solaris join.
86706 2008-12-29  Bruno Haible  <bruno@clisp.org>
86708         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
86709         quoting.
86710         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
86711         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
86712         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
86713         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
86714         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
86715         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
86716         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
86717         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
86718         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
86719         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
86720         * m4/nls.m4 (AM_NLS): Likewise.
86721         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
86722         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
86723         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
86724         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
86725         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
86726         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
86727         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
86728         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
86729         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
86730         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
86731         * m4/xsize.m4 (gl_XSIZE): Likewise.
86732         Suggested by Jim Meyering.
86734 2008-11-17  Bruce Korb  <bkorb@gnu.org>
86736         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
86737         * lib/parse-duration.c: use a switch instead of cascading if's.
86739 2008-12-29  Eric Blake  <ebb9@byu.net>
86741         wchar.h: supply WEOF on Irix 5.3
86742         * lib/wchar.in.h (wint_t): Also supply WEOF.
86743         * lib/wctype.in.h (wint_t): Likewise.
86744         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
86745         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
86746         Reported by Tom G. Christensen.
86748 2008-12-26  Bruno Haible  <bruno@clisp.org>
86750         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
86751         i486, i586, i686.
86753 2008-12-26  Bruno Haible  <bruno@clisp.org>
86755         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
86757 2008-12-26  Bruno Haible  <bruno@clisp.org>
86759         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
86760         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
86761         not __STDC_CONSTANT_MACROS.
86762         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
86764 2008-12-25  Bruno Haible  <bruno@clisp.org>
86766         Add support for universal builds to vasnprintf.
86767         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
86768         universal builds, guess no.
86769         * modules/vasnprintf-posix (Depends-on): Add multiarch.
86770         * modules/vasprintf-posix (Depends-on): Likewise.
86771         * modules/fprintf-posix (Depends-on): Likewise.
86772         * modules/vfprintf-posix (Depends-on): Likewise.
86773         * modules/snprintf-posix (Depends-on): Likewise.
86774         * modules/vsnprintf-posix (Depends-on): Likewise.
86775         * modules/sprintf-posix (Depends-on): Likewise.
86776         * modules/vsprintf-posix (Depends-on): Likewise.
86777         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
86778         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
86779         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
86780         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
86781         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
86782         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
86783         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
86785         Add support for universal builds to <inttypes.h>.
86786         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
86787         _SCNu64_PREFIX): In Apple
86788         universal builds, define directly, using _LP64.
86789         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
86790         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
86791         * modules/inttypes (Depends-on): Add multiarch.
86792         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
86794         Add support for universal builds to <stdint.h>.
86795         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
86796         universal builds, define directly, using _LP64.
86797         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
86798         Apple universal builds, don't test for the size and suffix of ptrdiff_t
86799         and size_t.
86800         * modules/stdint (Depends-on): Add multiarch.
86801         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
86803         New module 'multiarch'.
86804         * modules/multiarch: New file.
86805         * m4/multiarch.m4: New file.
86807 2008-12-25  Bruno Haible  <bruno@clisp.org>
86809         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
86811 2008-12-25  Bruno Haible  <bruno@clisp.org>
86813         * modules/btowc (License): Relicense under LGPLv2+.
86814         * modules/mbsinit (License): Likewise.
86815         * modules/mbrtowc (License): Likewise.
86816         * modules/wcrtomb (License): Likewise.
86817         * modules/streq (License): Likewise.
86818         Reported by David Lutterkort <lutter@redhat.com>.
86820 2008-12-23  Bruno Haible  <bruno@clisp.org>
86822         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
86824 2008-12-23  Bruno Haible  <bruno@clisp.org>
86826         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
86827         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
86828         GETADDRINFO_LIB, not in LIBS.
86829         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
86830         * modules/canon-host (Link): Likewise.
86831         * NEWS: Mention the change.
86832         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
86833         GETADDRINFO_LIB.
86835 2008-12-22  Bruno Haible  <bruno@clisp.org>
86837         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
86838         * doc/posix-functions/iswalpha_l.texi: Likewise.
86839         * doc/posix-functions/iswblank_l.texi: Likewise.
86840         * doc/posix-functions/iswcntrl_l.texi: Likewise.
86841         * doc/posix-functions/iswctype_l.texi: Likewise.
86842         * doc/posix-functions/iswdigit_l.texi: Likewise.
86843         * doc/posix-functions/iswgraph_l.texi: Likewise.
86844         * doc/posix-functions/iswlower_l.texi: Likewise.
86845         * doc/posix-functions/iswprint_l.texi: Likewise.
86846         * doc/posix-functions/iswpunct_l.texi: Likewise.
86847         * doc/posix-functions/iswspace_l.texi: Likewise.
86848         * doc/posix-functions/iswupper_l.texi: Likewise.
86849         * doc/posix-functions/iswxdigit_l.texi: Likewise.
86850         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
86851         * doc/posix-functions/open_wmemstream.texi: Likewise.
86852         * doc/posix-functions/swscanf.texi: Likewise.
86853         * doc/posix-functions/towctrans_l.texi: Likewise.
86854         * doc/posix-functions/towlower.texi: Likewise.
86855         * doc/posix-functions/towlower_l.texi: Likewise.
86856         * doc/posix-functions/towupper.texi: Likewise.
86857         * doc/posix-functions/towupper_l.texi: Likewise.
86858         * doc/posix-functions/vfwprintf.texi: Likewise.
86859         * doc/posix-functions/vfwscanf.texi: Likewise.
86860         * doc/posix-functions/vswscanf.texi: Likewise.
86861         * doc/posix-functions/vwprintf.texi: Likewise.
86862         * doc/posix-functions/vwscanf.texi: Likewise.
86863         * doc/posix-functions/wcpcpy.texi: Likewise.
86864         * doc/posix-functions/wcpncpy.texi: Likewise.
86865         * doc/posix-functions/wcscasecmp.texi: Likewise.
86866         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
86867         * doc/posix-functions/wcscoll_l.texi: Likewise.
86868         * doc/posix-functions/wcsdup.texi: Likewise.
86869         * doc/posix-functions/wcsncasecmp.texi: Likewise.
86870         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
86871         * doc/posix-functions/wcsnlen.texi: Likewise.
86872         * doc/posix-functions/wcsnrtombs.texi: Likewise.
86873         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
86874         * doc/posix-functions/wctrans_l.texi: Likewise.
86875         * doc/posix-functions/wctype_l.texi: Likewise.
86876         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
86877         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
86878         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
86879         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
86880         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
86881         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
86882         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
86883         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
86884         * doc/glibc-functions/wcschrnul.texi: Likewise.
86885         * doc/glibc-functions/wcsftime_l.texi: Likewise.
86886         * doc/glibc-functions/wcstod_l.texi: Likewise.
86887         * doc/glibc-functions/wcstof_l.texi: Likewise.
86888         * doc/glibc-functions/wcstol_l.texi: Likewise.
86889         * doc/glibc-functions/wcstold_l.texi: Likewise.
86890         * doc/glibc-functions/wcstoll_l.texi: Likewise.
86891         * doc/glibc-functions/wcstoq.texi: Likewise.
86892         * doc/glibc-functions/wcstoul_l.texi: Likewise.
86893         * doc/glibc-functions/wcstoull_l.texi: Likewise.
86894         * doc/glibc-functions/wcstouq.texi: Likewise.
86895         * doc/glibc-functions/wmempcpy.texi: Likewise.
86897 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
86898             Eric Blake  <ebb9@byu.net>
86899             Paolo Bonzini  <bonzini@gnu.org>
86900             Bruno Haible  <bruno@clisp.org>
86902         Make c-stack work on Haiku.
86903         * lib/c-stack.c (SA_ONSTACK): Define fallback.
86904         (c_stack_action): Use SA_ONSTACK flag.
86906 2008-12-22  Bruno Haible  <bruno@clisp.org>
86908         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
86910 2008-12-22  Bruno Haible  <bruno@clisp.org>
86912         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
86913         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
86914         being overridden.
86915         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
86916         New macros.
86917         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
86918         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
86919         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
86920         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
86922 2008-12-22  Bruno Haible  <bruno@clisp.org>
86924         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
86925         from test code.
86927 2008-12-22  Eric Blake  <ebb9@byu.net>
86929         Avoid gcc warnings on cygwin.
86930         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
86931         Avoid unused variable.
86932         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
86933         Likewise.
86935 2008-12-22  Bruno Haible  <bruno@clisp.org>
86937         Remove HAVE_MBRTOWC conditionals.
86938         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
86939         (mbscasecmp): Assume mbrtowc function.
86940         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
86941         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
86942         * lib/mbschr.c: Include mbuiter.h unconditionally.
86943         (mbschr): Assume mbrtowc function.
86944         * lib/mbscspn.c: Include mbuiter.h unconditionally.
86945         (mbscspn): Assume mbrtowc function.
86946         * lib/mbslen.c: Include mbuiter.h unconditionally.
86947         (mbslen): Assume mbrtowc function.
86948         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
86949         (mbsncasecmp): Assume mbrtowc function.
86950         * lib/mbsnlen.c: Include mbiter.h unconditionally.
86951         (mbsnlen): Assume mbrtowc function.
86952         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
86953         (mbspbrk): Assume mbrtowc function.
86954         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
86955         (mbspcasecmp): Assume mbrtowc function.
86956         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
86957         (mbsrchr): Assume mbrtowc function.
86958         * lib/mbssep.c: Include mbuiter.h unconditionally.
86959         (mbssep): Assume mbrtowc function.
86960         * lib/mbsspn.c: Include mbuiter.h unconditionally.
86961         (mbsspn): Assume mbrtowc function.
86962         * lib/mbsstr.c: Include mbuiter.h unconditionally.
86963         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
86964         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
86965         (mbstok_r): Assume mbrtowc function.
86966         * lib/propername.c: Include mbuiter.h unconditionally.
86967         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
86968         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
86969         (trim2): Assume mbrtowc function.
86970         * lib/mbswidth.c (mbsinit): Remove fallback definition.
86971         (mbsnwidth): Assume mbrtowc function.
86972         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
86973         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
86974         fallback definitions.
86975         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
86977 2008-12-22  Bruno Haible  <bruno@clisp.org>
86979         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
86981 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
86983         * modules/regex: Request emulations for the mb*/wc* functions we need.
86984         * m4/regex.m4: Don't look for those functions here.
86985         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
86987 2008-12-22  Bruno Haible  <bruno@clisp.org>
86989         * modules/fnmatch (Depends-on): Remove duplicated dependency.
86991 2008-12-21  Bruno Haible  <bruno@clisp.org>
86993         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
86994         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
86995         (Include): Remove conditionalization.
86996         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
86997         (Include): Remove conditionalization.
86998         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
86999         (Include): Remove conditionalization.
87000         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
87001         * m4/mbfile.m4 (gl_MBFILE): Likewise.
87002         * NEWS: Mention the change.
87003         Reported by Alan Hourihane <alanh@fairlite.co.uk>
87004         via Sergey Poznyakoff <gray@gnu.org.ua>.
87006 2008-12-21  Bruno Haible  <bruno@clisp.org>
87008         * MODULES.html.sh (Extended multibyte and wide character utilities
87009         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
87010         wcrtomb, wcsrtombs.
87011         (Support for systems lacking POSIX:2008): Add accept, bind, close,
87012         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
87013         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
87014         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
87016 2008-12-21  Bruno Haible  <bruno@clisp.org>
87018         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
87020 2008-12-21  Bruno Haible  <bruno@clisp.org>
87022         * modules/wcsnrtombs-tests: New file.
87023         * tests/test-wcsnrtombs1.sh: New file.
87024         * tests/test-wcsnrtombs2.sh: New file.
87025         * tests/test-wcsnrtombs3.sh: New file.
87026         * tests/test-wcsnrtombs4.sh: New file.
87027         * tests/test-wcsnrtombs.c: New file.
87029         New module 'wcsnrtombs'.
87030         * lib/wchar.in.h (wcsnrtombs): New declaration.
87031         * lib/wcsnrtombs.c: New file.
87032         * lib/wcsrtombs-state.c: New file.
87033         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
87034         (internal_state): Remove variable.
87035         * m4/wcsnrtombs.m4: New file.
87036         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
87037         compilation units.
87038         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
87039         HAVE_WCSNRTOMBS.
87040         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
87041         HAVE_WCSNRTOMBS.
87042         * modules/wcsnrtombs: New file.
87043         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
87044         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
87046 2008-12-21  Bruno Haible  <bruno@clisp.org>
87048         * modules/wcsrtombs-tests: New file.
87049         * tests/test-wcsrtombs1.sh: New file.
87050         * tests/test-wcsrtombs2.sh: New file.
87051         * tests/test-wcsrtombs3.sh: New file.
87052         * tests/test-wcsrtombs4.sh: New file.
87053         * tests/test-wcsrtombs.c: New file.
87055         New module 'wcsrtombs'.
87056         * lib/wchar.in.h (wcsrtombs): New declaration.
87057         * lib/wcsrtombs.c: New file.
87058         * m4/wcsrtombs.m4: New file.
87059         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
87060         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
87061         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
87062         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
87063         * modules/wcsrtombs: New file.
87064         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
87065         bugs.
87067 2008-12-21  Bruno Haible  <bruno@clisp.org>
87069         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
87070         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
87071         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
87072         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
87073         if not correct.
87074         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
87075         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
87076         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
87077         m4/locale-zh.m4, m4/codeset.m4.
87078         * doc/posix-functions/wcrtomb.texi: Document the bug.
87080 2008-12-21  Bruno Haible  <bruno@clisp.org>
87082         Work around a btowc() bug on IRIX 6.5.
87083         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
87084         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
87085         REPLACE_WTOBC if not.
87086         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
87087         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
87088         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
87090 2008-12-21  Bruno Haible  <bruno@clisp.org>
87092         * modules/wcrtomb-tests: New file.
87093         * tests/test-wcrtomb.sh: New file.
87094         * tests/test-wcrtomb.c: New file.
87096         New module 'wcrtomb'.
87097         * lib/wchar.in.h (wcrtomb): New declaration.
87098         * lib/wcrtomb.c: New file.
87099         * m4/wcrtomb.m4: New file.
87100         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
87101         HAVE_WCRTOMB.
87102         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
87103         HAVE_WCRTOMB.
87104         * modules/wcrtomb: New file.
87105         * doc/posix-functions/wcrtomb.texi: Mention the new module.
87107 2008-12-21  Bruno Haible  <bruno@clisp.org>
87109         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
87110         * modules/mbsrtowcs (Files): Likewise.
87111         * modules/wctob (Files): Likewise.
87112         * modules/c-strcase-tests (Files): Likewise.
87113         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
87114         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
87115         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
87116         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
87117         * modules/vasnprintf-posix-tests (Files): Likewise.
87119 2008-12-21  William Pursell  <bill.pursell@gmail.com>
87121         gitlog-to-changelog: pass all command-line arguments to git-log
87122         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
87123         it is sometimes convenient to filter the commits in various ways.
87124         gitlog-to-changelog only allows --since to specify a start date,
87125         but git-log itself supports many other filtering mechanisms.
87126         At the moment, I want to filter by branch name.  Rather than
87127         adding a --branch option to gitlog-to-changelog, it seems more
87128         flexible to simply pass all options directly to git-log and let
87129         git do the work.  Notice that this effectively makes --since a
87130         redundant option for gitlog-to-changelog, but removing it would
87131         require current usage to change since calls would then require
87132         an additional '--'.
87134 2008-12-21  Bruno Haible  <bruno@clisp.org>
87136         * modules/mbsnrtowcs-tests: New file.
87137         * tests/test-mbsnrtowcs1.sh: New file.
87138         * tests/test-mbsnrtowcs2.sh: New file.
87139         * tests/test-mbsnrtowcs3.sh: New file.
87140         * tests/test-mbsnrtowcs4.sh: New file.
87141         * tests/test-mbsnrtowcs.c: New file.
87143         New module 'mbsnrtowcs'.
87144         * lib/wchar.in.h (mbsnrtowcs): New declaration.
87145         * lib/mbsnrtowcs.c: New file.
87146         * lib/mbsrtowcs-state.c: New file.
87147         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
87148         (internal_state): Remove variable.
87149         * m4/mbsnrtowcs.m4: New file.
87150         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
87151         compilation units.
87152         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
87153         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
87154         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
87155         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
87156         * modules/mbsnrtowcs: New file.
87157         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
87158         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
87159         portability problem.
87161 2008-12-21  Bruno Haible  <bruno@clisp.org>
87163         Work around mbsrtowcs bug.
87164         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
87165         (gl_FUNC_MBSRTOWCS): Invoke it.
87166         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
87167         m4/locale-zh.m4.
87168         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
87170 2008-12-21  Bruno Haible  <bruno@clisp.org>
87172         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
87174 2008-12-21  Bruno Haible  <bruno@clisp.org>
87176         Update doc for AIX.
87177         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
87178         16-bit wchar_t type.
87179         * doc/posix-functions/btowc.texi: Likewise.
87180         * doc/posix-functions/fgetwc.texi: Likewise.
87181         * doc/posix-functions/fgetws.texi: Likewise.
87182         * doc/posix-functions/fputwc.texi: Likewise.
87183         * doc/posix-functions/fputws.texi: Likewise.
87184         * doc/posix-functions/fwide.texi: Likewise.
87185         * doc/posix-functions/fwprintf.texi: Likewise.
87186         * doc/posix-functions/fwscanf.texi: Likewise.
87187         * doc/posix-functions/getwchar.texi: Likewise.
87188         * doc/posix-functions/getwc.texi: Likewise.
87189         * doc/posix-functions/iswalnum.texi: Likewise.
87190         * doc/posix-functions/iswalpha.texi: Likewise.
87191         * doc/posix-functions/iswblank.texi: Likewise.
87192         * doc/posix-functions/iswcntrl.texi: Likewise.
87193         * doc/posix-functions/iswctype.texi: Likewise.
87194         * doc/posix-functions/iswdigit.texi: Likewise.
87195         * doc/posix-functions/iswgraph.texi: Likewise.
87196         * doc/posix-functions/iswlower.texi: Likewise.
87197         * doc/posix-functions/iswprint.texi: Likewise.
87198         * doc/posix-functions/iswpunct.texi: Likewise.
87199         * doc/posix-functions/iswspace.texi: Likewise.
87200         * doc/posix-functions/iswupper.texi: Likewise.
87201         * doc/posix-functions/iswxdigit.texi: Likewise.
87202         * doc/posix-functions/mbrtowc.texi: Likewise.
87203         * doc/posix-functions/mbsrtowcs.texi: Likewise.
87204         * doc/posix-functions/mbstowcs.texi: Likewise.
87205         * doc/posix-functions/mbtowc.texi: Likewise.
87206         * doc/posix-functions/putwchar.texi: Likewise.
87207         * doc/posix-functions/putwc.texi: Likewise.
87208         * doc/posix-functions/swprintf.texi: Likewise.
87209         * doc/posix-functions/tolower.texi: Likewise.
87210         * doc/posix-functions/toupper.texi: Likewise.
87211         * doc/posix-functions/towctrans.texi: Likewise.
87212         * doc/posix-functions/ungetwc.texi: Likewise.
87213         * doc/posix-functions/vswprintf.texi: Likewise.
87214         * doc/posix-functions/wcrtomb.texi: Likewise.
87215         * doc/posix-functions/wcscat.texi: Likewise.
87216         * doc/posix-functions/wcschr.texi: Likewise.
87217         * doc/posix-functions/wcscmp.texi: Likewise.
87218         * doc/posix-functions/wcscoll.texi: Likewise.
87219         * doc/posix-functions/wcscpy.texi: Likewise.
87220         * doc/posix-functions/wcscspn.texi: Likewise.
87221         * doc/posix-functions/wcsftime.texi: Likewise.
87222         * doc/posix-functions/wcslen.texi: Likewise.
87223         * doc/posix-functions/wcsncat.texi: Likewise.
87224         * doc/posix-functions/wcsncmp.texi: Likewise.
87225         * doc/posix-functions/wcsncpy.texi: Likewise.
87226         * doc/posix-functions/wcspbrk.texi: Likewise.
87227         * doc/posix-functions/wcsrchr.texi: Likewise.
87228         * doc/posix-functions/wcsrtombs.texi: Likewise.
87229         * doc/posix-functions/wcsspn.texi: Likewise.
87230         * doc/posix-functions/wcsstr.texi: Likewise.
87231         * doc/posix-functions/wcstod.texi: Likewise.
87232         * doc/posix-functions/wcstof.texi: Likewise.
87233         * doc/posix-functions/wcstoimax.texi: Likewise.
87234         * doc/posix-functions/wcstok.texi: Likewise.
87235         * doc/posix-functions/wcstold.texi: Likewise.
87236         * doc/posix-functions/wcstoll.texi: Likewise.
87237         * doc/posix-functions/wcstol.texi: Likewise.
87238         * doc/posix-functions/wcstombs.texi: Likewise.
87239         * doc/posix-functions/wcstoull.texi: Likewise.
87240         * doc/posix-functions/wcstoul.texi: Likewise.
87241         * doc/posix-functions/wcstoumax.texi: Likewise.
87242         * doc/posix-functions/wcswidth.texi: Likewise.
87243         * doc/posix-functions/wcsxfrm.texi: Likewise.
87244         * doc/posix-functions/wctob.texi: Likewise.
87245         * doc/posix-functions/wctomb.texi: Likewise.
87246         * doc/posix-functions/wctrans.texi: Likewise.
87247         * doc/posix-functions/wctype.texi: Likewise.
87248         * doc/posix-functions/wcwidth.texi: Likewise.
87249         * doc/posix-functions/wmemchr.texi: Likewise.
87250         * doc/posix-functions/wmemcmp.texi: Likewise.
87251         * doc/posix-functions/wmemcpy.texi: Likewise.
87252         * doc/posix-functions/wmemmove.texi: Likewise.
87253         * doc/posix-functions/wmemset.texi: Likewise.
87254         * doc/posix-functions/wprintf.texi: Likewise.
87255         * doc/posix-functions/wscanf.texi: Likewise.
87257 2008-12-21  Bruno Haible  <bruno@clisp.org>
87259         Update doc for HP-UX 11.11.
87260         * doc/posix-functions/btowc.texi: Clarify that the function is missing
87261         in HP-UX version 11.00, not in all versions of HP-UX 11.
87262         * doc/posix-functions/fwide.texi: Likewise.
87263         * doc/posix-functions/fwprintf.texi: Likewise.
87264         * doc/posix-functions/fwscanf.texi: Likewise.
87265         * doc/posix-functions/inet_ntop.texi: Likewise.
87266         * doc/posix-functions/inet_pton.texi: Likewise.
87267         * doc/posix-functions/mbrlen.texi: Likewise.
87268         * doc/posix-functions/mbrtowc.texi: Likewise.
87269         * doc/posix-functions/mbsinit.texi: Likewise.
87270         * doc/posix-functions/mbsrtowcs.texi: Likewise.
87271         * doc/posix-functions/swprintf.texi: Likewise.
87272         * doc/posix-functions/swscanf.texi: Likewise.
87273         * doc/posix-functions/towctrans.texi: Likewise.
87274         * doc/posix-functions/vfwprintf.texi: Likewise.
87275         * doc/posix-functions/vswprintf.texi: Likewise.
87276         * doc/posix-functions/vwprintf.texi: Likewise.
87277         * doc/posix-functions/wcrtomb.texi: Likewise.
87278         * doc/posix-functions/wcsrtombs.texi: Likewise.
87279         * doc/posix-functions/wcsstr.texi: Likewise.
87280         * doc/posix-functions/wctob.texi: Likewise.
87281         * doc/posix-functions/wctrans.texi: Likewise.
87282         * doc/posix-functions/wmemchr.texi: Likewise.
87283         * doc/posix-functions/wmemcmp.texi: Likewise.
87284         * doc/posix-functions/wmemcpy.texi: Likewise.
87285         * doc/posix-functions/wmemmove.texi: Likewise.
87286         * doc/posix-functions/wmemset.texi: Likewise.
87287         * doc/posix-functions/wprintf.texi: Likewise.
87288         * doc/posix-functions/wscanf.texi: Likewise.
87290 2008-12-21  Bruno Haible  <bruno@clisp.org>
87292         Work around a portability problem.
87293         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
87294         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
87296 2008-12-20  Bruno Haible  <bruno@clisp.org>
87298         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
87299         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
87300         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
87301         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
87302         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
87304         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
87305         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
87306         set.
87307         (GNULIB_defined_mbstate_t): New macro.
87308         (mbsinit): Redefine if REPLACE_MBSINIT is set.
87309         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
87310         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
87311         reuses the system's mbrtowc function but works around the bugs.
87312         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
87313         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
87314         macros.
87315         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
87316         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
87317         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
87318         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
87319         REPLACE_MBSINIT if mbsinit needs to be overridden.
87320         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
87321         REPLACE_MBSINIT, REPLACE_MBRTOWC.
87322         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
87323         REPLACE_MBSINIT, REPLACE_MBRTOWC.
87324         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
87325         m4/locale-zh.m4.
87326         (Depends): Add mbsinit.
87327         * modules/mbsinit (Depends): Add mbrtowc.
87328         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
87330 2008-12-20  Bruno Haible  <bruno@clisp.org>
87332         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
87333         so that there are no conversion errors on AIX.
87334         * tests/test-mbsrtowcs.c (main): LIkewise.
87336 2008-12-20  Bruno Haible  <bruno@clisp.org>
87338         Work around wctob bug on Solaris <= 9.
87339         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
87340         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
87341         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
87342         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
87343         * modules/wctob (Files): Add m4/locale-fr.m4.
87344         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
87346 2008-12-20  Bruno Haible  <bruno@clisp.org>
87348         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
87349         /dev/null.
87350         * tests/test-select-in.sh: Likewise.
87351         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
87353 2008-12-20  Bruno Haible  <bruno@clisp.org>
87355         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
87356         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
87357         Cygwin 1.5.x.
87359 2008-12-20  Bruno Haible  <bruno@clisp.org>
87361         Ensure mbstate_t is defined on HP-UX 11.11.
87362         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
87363         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
87364         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
87365         AC_USE_SYSTEM_EXTENSIONS.
87366         * modules/fnmatch (Depends-on): Add extensions.
87367         * modules/mbrlen (Depends-on): Likewise.
87368         * modules/mbrtowc (Depends-on): Likewise.
87369         * modules/mbsinit (Depends-on): Likewise.
87370         * modules/mbsrtowcs (Depends-on): Likewise.
87371         * modules/mbswidth (Depends-on): Likewise.
87372         * modules/quotearg (Depends-on): Likewise.
87373         * modules/strftime (Depends-on): Likewise.
87375 2008-12-20  Bruno Haible  <bruno@clisp.org>
87377         Ensure wctob is declared on IRIX 6.5.
87378         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
87379         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
87380         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
87381         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
87382         of HAVE_WCTOB.
87383         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
87384         HAVE_WCTOB.
87385         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
87387 2008-12-19  Bruno Haible  <bruno@clisp.org>
87389         * modules/mbsrtowcs-tests: New file.
87390         * tests/test-mbsrtowcs1.sh: New file.
87391         * tests/test-mbsrtowcs2.sh: New file.
87392         * tests/test-mbsrtowcs3.sh: New file.
87393         * tests/test-mbsrtowcs4.sh: New file.
87394         * tests/test-mbsrtowcs.c: New file.
87396         New module 'mbsrtowcs'.
87397         * lib/wchar.in.h (mbsrtowcs): New declaration.
87398         * lib/mbsrtowcs.c: New file.
87399         * m4/mbsrtowcs.m4: New file.
87400         * modules/mbsrtowcs: New file.
87401         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
87402         HAVE_MBSRTOWCS.
87403         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
87404         HAVE_MBSRTOWCS.
87405         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
87407 2008-12-19  Bruno Haible  <bruno@clisp.org>
87409         New module 'mbrlen'.
87410         * lib/wchar.in.h (mbrlen): New declaration.
87411         * lib/mbrlen.c: New file.
87412         * m4/mbrlen.m4: New file.
87413         * modules/mbrlen: New file.
87414         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
87415         HAVE_MBRLEN.
87416         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
87417         HAVE_MBRLEN.
87418         * doc/posix-functions/mbrlen.texi: Document the new module.
87420 2008-12-19  Bruno Haible  <bruno@clisp.org>
87422         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
87423         * modules/mbrtowc (Depends-on): Add verify.
87424         Suggested by Paul Eggert.
87426 2008-12-18  Bruno Haible  <bruno@clisp.org>
87428         * modules/mbsinit-tests: New file.
87429         * tests/test-mbsinit.sh: New file.
87430         * tests/test-mbsinit.c: New file.
87432 2008-12-18  Bruno Haible  <bruno@clisp.org>
87434         * modules/mbrtowc-tests: New file.
87435         * tests/test-mbrtowc1.sh: New file.
87436         * tests/test-mbrtowc2.sh: New file.
87437         * tests/test-mbrtowc3.sh: New file.
87438         * tests/test-mbrtowc4.sh: New file.
87439         * tests/test-mbrtowc.c: New file.
87441         New module 'mbrtowc'.
87442         * lib/wchar.in.h (mbstate_t): Override when the system does not have
87443         mbsinit and mbrtowc.
87444         (mbrtowc): New declaration.
87445         * lib/mbrtowc.c: New file.
87446         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
87447         * modules/mbrtowc: New file.
87448         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
87449         HAVE_MBRTOWC.
87450         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
87451         HAVE_MBRTOWC.
87452         * doc/posix-functions/mbrtowc.texi: Document the new module.
87454 2008-12-18  Bruno Haible  <bruno@clisp.org>
87456         New module 'wctob'.
87457         * lib/wchar.in.h (wctob): New declaration.
87458         * lib/wctob.c: New file.
87459         * m4/wctob.m4: New file.
87460         * modules/wctob: New file.
87461         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
87462         HAVE_WCTOB.
87463         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
87464         * doc/posix-functions/wctob.texi: Document the new module.
87466 2008-12-18  Bruno Haible  <bruno@clisp.org>
87468         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
87469         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
87471 2008-12-18  Simon Josefsson  <simon@josefsson.org>
87473         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
87474         G. Christensen" <tgc@jupiterrise.com>.
87476         * lib/flock.c: Need to include errno.h.  Reported by "Tom
87477         G. Christensen" <tgc@jupiterrise.com>.
87479         * lib/flock.c: Need to include string.h.  Reported by "Tom
87480         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
87481         <ebb9@byu.net>.
87483 2008-12-18  Bruno Haible  <bruno@clisp.org>
87485         * m4/locale-ja.m4: New file, from GNU gettext.
87487 2008-12-17  Bruno Haible  <bruno@clisp.org>
87489         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
87490         Suggested by Eric Blake.
87492 2008-12-17  Bruno Haible  <bruno@clisp.org>
87494         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
87496 2008-12-17  Bruno Haible  <bruno@clisp.org>
87498         * lib/mbsinit.c: Include verify.h. Verify an assumption.
87499         * modules/mbsinit (Depends-on): Add verify.
87500         Suggested by Paul Eggert.
87502 2008-12-17  Bruno Haible  <bruno@clisp.org>
87504         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
87505         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
87506         gl_FUNC_MBRTOWC.
87507         * m4/mbiter.m4 (gl_MBITER): LIkewise.
87508         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
87509         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
87510         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
87511         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
87512         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
87513         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
87514         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
87515         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
87516         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
87517         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
87518         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
87519         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
87520         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
87521         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
87522         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
87523         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
87524         * modules/trim (configure.ac): Likewise.
87526 2008-12-17  Bruno Haible  <bruno@clisp.org>
87528         * modules/btowc-tests: New file.
87529         * tests/test-btowc1.sh: New file.
87530         * tests/test-btowc2.sh: New file.
87531         * tests/test-btowc.c: New file.
87533         New module 'btowc'.
87534         * lib/wchar.in.h (btowc): New declaration.
87535         * lib/btowc.c: New file.
87536         * m4/btowc.m4: New file.
87537         * modules/btowc: New file.
87538         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
87539         HAVE_BTOWC.
87540         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
87541         * doc/posix-functions/btowc.texi: Document the new module.
87543 2008-12-17  Bruno Haible  <bruno@clisp.org>
87545         New module 'mbsinit'.
87546         * lib/wchar.in.h (mbsinit): New declaration.
87547         * lib/mbsinit.c: New file.
87548         * m4/mbsinit.m4: New file.
87549         * modules/mbsinit: New file.
87550         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
87551         HAVE_MBSINIT.
87552         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
87553         HAVE_MBSINIT.
87554         * doc/posix-functions/mbsinit.texi: Document the new module.
87556 2008-12-16  Bruno Haible  <bruno@clisp.org>
87558         * lib/unistd.in.h: Add comment.
87559         * tests/test-environ.c: Don't include <stdlib.h>.
87561 2008-12-16  Bruno Haible  <bruno@clisp.org>
87563         * lib/parse-duration.h (parse_duration): Document return value
87564         convention.
87565         * lib/parse-duration.c: Include specification header first. Add
87566         comments.
87567         (_): Remove macro.
87568         (parse_year_month_day, parse_hour_minute_second): Move side effects
87569         outside of strchr call.
87570         (parse_non_iso8601): Move side effects outside of isspace call.
87571         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
87572         call.
87574 2008-12-16  Bruno Haible  <bruno@clisp.org>
87576         * tests/test-parse-duration.sh: Produce no output when the test
87577         succeeds.
87579 2008-12-16  Bruno Haible  <bruno@clisp.org>
87581         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
87582         expressions.
87584 2008-12-15  Bruno Haible  <bruno@clisp.org>
87586         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
87587         * doc/glibc-functions/flistxattr.texi: Likewise.
87588         * doc/glibc-functions/fopencookie.texi: Likewise.
87589         * doc/glibc-functions/fremovexattr.texi: Likewise.
87590         * doc/glibc-functions/fsetxattr.texi: Likewise.
87591         * doc/glibc-functions/getxattr.texi: Likewise.
87592         * doc/glibc-functions/lgetxattr.texi: Likewise.
87593         * doc/glibc-functions/listxattr.texi: Likewise.
87594         * doc/glibc-functions/llistxattr.texi: Likewise.
87595         * doc/glibc-functions/lremovexattr.texi: Likewise.
87596         * doc/glibc-functions/lsetxattr.texi: Likewise.
87597         * doc/glibc-functions/removexattr.texi: Likewise.
87598         * doc/glibc-functions/setxattr.texi: Likewise.
87599         * doc/posix-functions/open_memstream.texi: Likewise.
87601 2008-12-15  Eric Blake  <ebb9@byu.net>
87603         Update doc for cygwin 1.7.
87604         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
87605         functions.
87606         * doc/posix-functions/fchmodat.texi: Likewise.
87607         * doc/posix-functions/fchownat.texi: Likewise.
87608         * doc/posix-functions/fdopendir.texi: Likewise.
87609         * doc/posix-functions/fmemopen.texi: Likewise.
87610         * doc/posix-functions/freeaddrinfo.texi: Likewise.
87611         * doc/posix-functions/fstatat.texi: Likewise.
87612         * doc/posix-functions/futimens.texi: Likewise.
87613         * doc/posix-functions/gai_strerror.texi: Likewise.
87614         * doc/posix-functions/getaddrinfo.texi: Likewise.
87615         * doc/posix-functions/getnameinfo.texi: Likewise.
87616         * doc/posix-functions/if_freenameindex.texi: Likewise.
87617         * doc/posix-functions/if_indextoname.texi: Likewise.
87618         * doc/posix-functions/if_nameindex.texi: Likewise.
87619         * doc/posix-functions/if_nametoindex.texi: Likewise.
87620         * doc/posix-functions/insque.texi: Likewise.
87621         * doc/posix-functions/linkat.texi: Likewise.
87622         * doc/posix-functions/llrint.texi: Likewise.
87623         * doc/posix-functions/llrintf.texi: Likewise.
87624         * doc/posix-functions/llrintl.texi: Likewise.
87625         * doc/posix-functions/lockf.texi: Likewise.
87626         * doc/posix-functions/lrintl.texi: Likewise.
87627         * doc/posix-functions/mkdirat.texi: Likewise.
87628         * doc/posix-functions/mkfifoat.texi: Likewise.
87629         * doc/posix-functions/mknodat.texi: Likewise.
87630         * doc/posix-functions/mq_close.texi: Likewise.
87631         * doc/posix-functions/mq_getattr.texi: Likewise.
87632         * doc/posix-functions/mq_notify.texi: Likewise.
87633         * doc/posix-functions/mq_open.texi: Likewise.
87634         * doc/posix-functions/mq_receive.texi: Likewise.
87635         * doc/posix-functions/mq_send.texi: Likewise.
87636         * doc/posix-functions/mq_setattr.texi: Likewise.
87637         * doc/posix-functions/mq_timedreceive.texi: Likewise.
87638         * doc/posix-functions/mq_timedsend.texi: Likewise.
87639         * doc/posix-functions/mq_unlink.texi: Likewise.
87640         * doc/posix-functions/open_memstream.texi: Likewise.
87641         * doc/posix-functions/openat.texi: Likewise.
87642         * doc/posix-functions/posix_fadvise.texi: Likewise.
87643         * doc/posix-functions/posix_fallocate.texi: Likewise.
87644         * doc/posix-functions/posix_madvise.texi: Likewise.
87645         * doc/posix-functions/posix_memalign.texi: Likewise.
87646         * doc/posix-functions/posix_openpt.texi: Likewise.
87647         * doc/posix-functions/readlinkat.texi: Likewise.
87648         * doc/posix-functions/remque.texi: Likewise.
87649         * doc/posix-functions/renameat.texi: Likewise.
87650         * doc/posix-functions/rintl.texi: Likewise.
87651         * doc/posix-functions/sem_unlink.texi: Likewise.
87652         * doc/posix-functions/shm_open.texi: Likewise.
87653         * doc/posix-functions/shm_unlink.texi: Likewise.
87654         * doc/posix-functions/signgam.texi: Likewise.
87655         * doc/posix-functions/sigset.texi: Likewise.
87656         * doc/posix-functions/stpcpy.texi: Likewise.
87657         * doc/posix-functions/stpncpy.texi: Likewise.
87658         * doc/posix-functions/strerror.texi: Likewise.
87659         * doc/posix-functions/strtod.texi: Likewise.
87660         * doc/posix-functions/symlinkat.texi: Likewise.
87661         * doc/posix-functions/unlinkat.texi: Likewise.
87662         * doc/posix-functions/utimensat.texi: Likewise.
87663         * doc/glibc-functions/bindresvport.texi: Likewise.
87664         * doc/glibc-functions/dn_expand.texi: Likewise.
87665         * doc/glibc-functions/exp10.texi: Likewise.
87666         * doc/glibc-functions/exp10f.texi: Likewise.
87667         * doc/glibc-functions/fgetxattr.texi: Likewise.
87668         * doc/glibc-functions/flistxattr.texi: Likewise.
87669         * doc/glibc-functions/fopencookie.texi: Likewise.
87670         * doc/glibc-functions/freeifaddrs.texi: Likewise.
87671         * doc/glibc-functions/fremovexattr.texi: Likewise.
87672         * doc/glibc-functions/fsetxattr.texi: Likewise.
87673         * doc/glibc-functions/getifaddrs.texi: Likewise.
87674         * doc/glibc-functions/getxattr.texi: Likewise.
87675         * doc/glibc-functions/lgetxattr.texi: Likewise.
87676         * doc/glibc-functions/listxattr.texi: Likewise.
87677         * doc/glibc-functions/llistxattr.texi: Likewise.
87678         * doc/glibc-functions/lremovexattr.texi: Likewise.
87679         * doc/glibc-functions/lsetxattr.texi: Likewise.
87680         * doc/glibc-functions/pow10.texi: Likewise.
87681         * doc/glibc-functions/pow10f.texi: Likewise.
87682         * doc/glibc-functions/rcmd_af.texi: Likewise.
87683         * doc/glibc-functions/removexattr.texi: Likewise.
87684         * doc/glibc-functions/res_init.texi: Likewise.
87685         * doc/glibc-functions/res_mkquery.texi: Likewise.
87686         * doc/glibc-functions/res_query.texi: Likewise.
87687         * doc/glibc-functions/res_querydomain.texi: Likewise.
87688         * doc/glibc-functions/res_send.texi: Likewise.
87689         * doc/glibc-functions/rresvport_af.texi: Likewise.
87690         * doc/glibc-functions/setxattr.texi: Likewise.
87691         * doc/glibc-functions/strcasestr.texi: Likewise.
87693 2008-12-15  Bruno Haible  <bruno@clisp.org>
87695         Fix compilation error on OSF/1 4.0.
87696         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
87697         <sys/time.h>, simply delegate to the system header.
87698         Reported by Daniel Richard G. <oss@teragram.com>.
87700 2008-12-15  Bruno Haible  <bruno@clisp.org>
87702         * doc/posix-functions/openat.texi: Mention the 'openat' module.
87703         * doc/posix-functions/fchmodat.texi: Likewise.
87704         * doc/posix-functions/fchownat.texi: Likewise.
87705         * doc/posix-functions/fdopendir.texi: Likewise.
87706         * doc/posix-functions/fstatat.texi: Likewise.
87707         * doc/posix-functions/mkdirat.texi: Likewise.
87708         * doc/posix-functions/unlinkat.texi: Likewise.
87710 2008-12-14  Bruno Haible  <bruno@clisp.org>
87712         Update doc for POSIX:2008.
87713         * doc/posix-functions/faccessat.texi: New file.
87714         * doc/posix-functions/fchmodat.texi: New file.
87715         * doc/posix-functions/fchownat.texi: New file.
87716         * doc/posix-functions/fdopendir.texi: New file.
87717         * doc/posix-functions/fstatat.texi: New file.
87718         * doc/posix-functions/futimens.texi: New file.
87719         * doc/posix-functions/linkat.texi: New file.
87720         * doc/posix-functions/mkdirat.texi: New file.
87721         * doc/posix-functions/mkfifoat.texi: New file.
87722         * doc/posix-functions/mknodat.texi: New file.
87723         * doc/posix-functions/open_wmemstream.texi: New file.
87724         * doc/posix-functions/openat.texi: New file.
87725         * doc/posix-functions/psiginfo.texi: New file.
87726         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
87727         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
87728         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
87729         * doc/posix-functions/readlinkat.texi: New file.
87730         * doc/posix-functions/renameat.texi: New file.
87731         * doc/posix-functions/strerror_l.texi: New file.
87732         * doc/posix-functions/symlinkat.texi: New file.
87733         * doc/posix-functions/unlinkat.texi: New file.
87734         * doc/posix-functions/utimensat.texi: New file.
87735         * doc/gnulib.texi (Function Substitutes): Add these subsections.
87737 2008-12-14  Bruno Haible  <bruno@clisp.org>
87739         Update doc for POSIX:2008.
87740         * doc/posix-functions/alphasort.texi: Renamed from
87741         doc/glibc-functions/alphasort.texi.
87742         * doc/posix-functions/dirfd.texi: Renamed from
87743         doc/glibc-functions/dirfd.texi.
87744         * doc/posix-functions/dprintf.texi: Renamed from
87745         doc/glibc-functions/dprintf.texi.
87746         * doc/posix-functions/duplocale.texi: Renamed from
87747         doc/glibc-functions/duplocale.texi.
87748         * doc/posix-functions/fexecve.texi: Renamed from
87749         doc/glibc-functions/fexecve.texi.
87750         * doc/posix-functions/fmemopen.texi: Renamed from
87751         doc/glibc-functions/fmemopen.texi.
87752         * doc/posix-functions/freelocale.texi: Renamed from
87753         doc/glibc-functions/freelocale.texi.
87754         * doc/posix-functions/getdate_err.texi: Renamed from
87755         doc/glibc-functions/getdate_err.texi.
87756         * doc/posix-functions/isalnum_l.texi: Renamed from
87757         doc/glibc-functions/isalnum_l.texi.
87758         * doc/posix-functions/isalpha_l.texi: Renamed from
87759         doc/glibc-functions/isalpha_l.texi.
87760         * doc/posix-functions/isblank_l.texi: Renamed from
87761         doc/glibc-functions/isblank_l.texi.
87762         * doc/posix-functions/iscntrl_l.texi: Renamed from
87763         doc/glibc-functions/iscntrl_l.texi.
87764         * doc/posix-functions/isdigit_l.texi: Renamed from
87765         doc/glibc-functions/isdigit_l.texi.
87766         * doc/posix-functions/isgraph_l.texi: Renamed from
87767         doc/glibc-functions/isgraph_l.texi.
87768         * doc/posix-functions/islower_l.texi: Renamed from
87769         doc/glibc-functions/islower_l.texi.
87770         * doc/posix-functions/isprint_l.texi: Renamed from
87771         doc/glibc-functions/isprint_l.texi.
87772         * doc/posix-functions/ispunct_l.texi: Renamed from
87773         doc/glibc-functions/ispunct_l.texi.
87774         * doc/posix-functions/isspace_l.texi: Renamed from
87775         doc/glibc-functions/isspace_l.texi.
87776         * doc/posix-functions/isupper_l.texi: Renamed from
87777         doc/glibc-functions/isupper_l.texi.
87778         * doc/posix-functions/iswalnum_l.texi: Renamed from
87779         doc/glibc-functions/iswalnum_l.texi.
87780         * doc/posix-functions/iswalpha_l.texi: Renamed from
87781         doc/glibc-functions/iswalpha_l.texi.
87782         * doc/posix-functions/iswblank_l.texi: Renamed from
87783         doc/glibc-functions/iswblank_l.texi.
87784         * doc/posix-functions/iswcntrl_l.texi: Renamed from
87785         doc/glibc-functions/iswcntrl_l.texi.
87786         * doc/posix-functions/iswctype_l.texi: Renamed from
87787         doc/glibc-functions/iswctype_l.texi.
87788         * doc/posix-functions/iswdigit_l.texi: Renamed from
87789         doc/glibc-functions/iswdigit_l.texi.
87790         * doc/posix-functions/iswgraph_l.texi: Renamed from
87791         doc/glibc-functions/iswgraph_l.texi.
87792         * doc/posix-functions/iswlower_l.texi: Renamed from
87793         doc/glibc-functions/iswlower_l.texi.
87794         * doc/posix-functions/iswprint_l.texi: Renamed from
87795         doc/glibc-functions/iswprint_l.texi.
87796         * doc/posix-functions/iswpunct_l.texi: Renamed from
87797         doc/glibc-functions/iswpunct_l.texi.
87798         * doc/posix-functions/iswspace_l.texi: Renamed from
87799         doc/glibc-functions/iswspace_l.texi.
87800         * doc/posix-functions/iswupper_l.texi: Renamed from
87801         doc/glibc-functions/iswupper_l.texi.
87802         * doc/posix-functions/iswxdigit_l.texi: Renamed from
87803         doc/glibc-functions/iswxdigit_l.texi.
87804         * doc/posix-functions/isxdigit_l.texi: Renamed from
87805         doc/glibc-functions/isxdigit_l.texi.
87806         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
87807         doc/glibc-functions/mbsnrtowcs.texi.
87808         * doc/posix-functions/mkdtemp.texi: Renamed from
87809         doc/glibc-functions/mkdtemp.texi.
87810         * doc/posix-functions/newlocale.texi: Renamed from
87811         doc/glibc-functions/newlocale.texi.
87812         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
87813         doc/glibc-functions/nl_langinfo_l.texi.
87814         * doc/posix-functions/open_memstream.texi: Renamed from
87815         doc/glibc-functions/open_memstream.texi.
87816         * doc/posix-functions/opterr.texi: Renamed from
87817         doc/glibc-functions/opterr.texi.
87818         * doc/posix-functions/optind.texi: Renamed from
87819         doc/glibc-functions/optind.texi.
87820         * doc/posix-functions/optopt.texi: Renamed from
87821         doc/glibc-functions/optopt.texi.
87822         * doc/posix-functions/psignal.texi: Renamed from
87823         doc/glibc-functions/psignal.texi.
87824         * doc/posix-functions/scandir.texi: Renamed from
87825         doc/glibc-functions/scandir.texi.
87826         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
87827         doc/glibc-functions/sched_get_priority_min.texi.
87828         * doc/posix-functions/signgam.texi: Renamed from
87829         doc/glibc-functions/signgam.texi.
87830         * doc/posix-functions/stpcpy.texi: Renamed from
87831         doc/glibc-functions/stpcpy.texi.
87832         * doc/posix-functions/stpncpy.texi: Renamed from
87833         doc/glibc-functions/stpncpy.texi.
87834         * doc/posix-functions/strcasecmp_l.texi: Renamed from
87835         doc/glibc-functions/strcasecmp_l.texi.
87836         * doc/posix-functions/strcoll_l.texi: Renamed from
87837         doc/glibc-functions/strcoll_l.texi.
87838         * doc/posix-functions/strfmon_l.texi: Renamed from
87839         doc/glibc-functions/strfmon_l.texi.
87840         * doc/posix-functions/strftime_l.texi: Renamed from
87841         doc/glibc-functions/strftime_l.texi.
87842         * doc/posix-functions/strncasecmp_l.texi: Renamed from
87843         doc/glibc-functions/strncasecmp_l.texi.
87844         * doc/posix-functions/strndup.texi: Renamed from
87845         doc/glibc-functions/strndup.texi.
87846         * doc/posix-functions/strnlen.texi: Renamed from
87847         doc/glibc-functions/strnlen.texi.
87848         * doc/posix-functions/strsignal.texi: Renamed from
87849         doc/glibc-functions/strsignal.texi.
87850         * doc/posix-functions/strxfrm_l.texi: Renamed from
87851         doc/glibc-functions/strxfrm_l.texi.
87852         * doc/posix-functions/timer_gettime.texi: Renamed from
87853         doc/glibc-functions/timer_gettime.texi.
87854         * doc/posix-functions/tolower_l.texi: Renamed from
87855         doc/glibc-functions/tolower_l.texi.
87856         * doc/posix-functions/toupper_l.texi: Renamed from
87857         doc/glibc-functions/toupper_l.texi.
87858         * doc/posix-functions/towctrans_l.texi: Renamed from
87859         doc/glibc-functions/towctrans_l.texi.
87860         * doc/posix-functions/towlower_l.texi: Renamed from
87861         doc/glibc-functions/towlower_l.texi.
87862         * doc/posix-functions/towupper_l.texi: Renamed from
87863         doc/glibc-functions/towupper_l.texi.
87864         * doc/posix-functions/uselocale.texi: Renamed from
87865         doc/glibc-functions/uselocale.texi.
87866         * doc/posix-functions/vdprintf.texi: Renamed from
87867         doc/glibc-functions/vdprintf.texi.
87868         * doc/posix-functions/wcpcpy.texi:
87869         Renamed from doc/glibc-functions/wcpcpy.texi.
87870         * doc/posix-functions/wcpncpy.texi: Renamed from
87871         doc/glibc-functions/wcpncpy.texi.
87872         * doc/posix-functions/wcscasecmp.texi: Renamed from
87873         doc/glibc-functions/wcscasecmp.texi.
87874         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
87875         doc/glibc-functions/wcscasecmp_l.texi.
87876         * doc/posix-functions/wcscoll_l.texi: Renamed from
87877         doc/glibc-functions/wcscoll_l.texi.
87878         * doc/posix-functions/wcsdup.texi: Renamed from
87879         doc/glibc-functions/wcsdup.texi.
87880         * doc/posix-functions/wcsncasecmp.texi: Renamed from
87881         doc/glibc-functions/wcsncasecmp.texi.
87882         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
87883         doc/glibc-functions/wcsncasecmp_l.texi.
87884         * doc/posix-functions/wcsnlen.texi: Renamed from
87885         doc/glibc-functions/wcsnlen.texi.
87886         * doc/posix-functions/wcsnrtombs.texi: Renamed from
87887         doc/glibc-functions/wcsnrtombs.texi.
87888         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
87889         doc/glibc-functions/wcsxfrm_l.texi.
87890         * doc/posix-functions/wctrans_l.texi: Renamed from
87891         doc/glibc-functions/wctrans_l.texi.
87892         * doc/posix-functions/wctype_l.texi: Renamed from
87893         doc/glibc-functions/wctype_l.texi.
87894         * doc/gnulib.texi (Function Substitutes): Add these subsections.
87895         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
87896         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
87897         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
87898         these subsections.
87899         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
87900         Remove sections.
87902 2008-12-14  Bruno Haible  <bruno@clisp.org>
87904         Update doc for POSIX:2008.
87905         * doc/posix-functions/*.texi: Update URL of POSIX specification.
87907 2008-12-14  Bruno Haible  <bruno@clisp.org>
87909         Update doc for POSIX:2008.
87910         * doc/pastposix-functions/bcmp.texi: Renamed from
87911         doc/posix-functions/bcmp.texi.
87912         * doc/pastposix-functions/bcopy.texi: Renamed from
87913         doc/posix-functions/bcopy.texi.
87914         * doc/pastposix-functions/bsd_signal.texi: Renamed from
87915         doc/posix-functions/bsd_signal.texi.
87916         * doc/pastposix-functions/bzero.texi: Renamed from
87917         doc/posix-functions/bzero.texi.
87918         * doc/pastposix-functions/ecvt.texi: Renamed from
87919         doc/posix-functions/ecvt.texi.
87920         * doc/pastposix-functions/fcvt.texi: Renamed from
87921         doc/posix-functions/fcvt.texi.
87922         * doc/pastposix-functions/ftime.texi: Renamed from
87923         doc/posix-functions/ftime.texi.
87924         * doc/pastposix-functions/gcvt.texi: Renamed from
87925         doc/posix-functions/gcvt.texi.
87926         * doc/pastposix-functions/getcontext.texi: Renamed from
87927         doc/posix-functions/getcontext.texi.
87928         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
87929         doc/posix-functions/gethostbyaddr.texi.
87930         * doc/pastposix-functions/gethostbyname.texi: Renamed from
87931         doc/posix-functions/gethostbyname.texi.
87932         * doc/pastposix-functions/getwd.texi: Renamed from
87933         doc/posix-functions/getwd.texi.
87934         * doc/pastposix-functions/h_errno.texi: Renamed from
87935         doc/posix-functions/h_errno.texi.
87936         * doc/pastposix-functions/index.texi: Renamed from
87937         doc/posix-functions/index.texi.
87938         * doc/pastposix-functions/makecontext.texi: Renamed from
87939         doc/posix-functions/makecontext.texi.
87940         * doc/pastposix-functions/mktemp.texi: Renamed from
87941         doc/posix-functions/mktemp.texi.
87942         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
87943         doc/posix-functions/pthread_attr_getstackaddr.texi.
87944         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
87945         doc/posix-functions/pthread_attr_setstackaddr.texi.
87946         * doc/pastposix-functions/rindex.texi: Renamed from
87947         doc/posix-functions/rindex.texi.
87948         * doc/pastposix-functions/scalb.texi: Renamed from
87949         doc/posix-functions/scalb.texi.
87950         * doc/pastposix-functions/setcontext.texi: Renamed from
87951         doc/posix-functions/setcontext.texi.
87952         * doc/pastposix-functions/swapcontext.texi: Renamed from
87953         doc/posix-functions/swapcontext.texi.
87954         * doc/pastposix-functions/ualarm.texi: Renamed from
87955         doc/posix-functions/ualarm.texi.
87956         * doc/pastposix-functions/usleep.texi: Renamed from
87957         doc/posix-functions/usleep.texi.
87958         * doc/pastposix-functions/vfork.texi: Renamed from
87959         doc/posix-functions/vfork.texi.
87960         * doc/pastposix-functions/wcswcs.texi: Renamed from
87961         doc/posix-functions/wcswcs.texi.
87962         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
87963         (Function Substitutes): Update.
87965 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87967         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
87968         m4/strerror.m4.
87970 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87971             Bruno Haible  <bruno@clisp.org>
87973         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
87975 2008-12-13  Bruno Haible  <bruno@clisp.org>
87977         * modules/strtoull (Depends-on): Remove unistd.
87979 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87981         * modules/strtoull (Depends-on): Add stdlib.
87983 2008-12-11  Simon Josefsson  <simon@josefsson.org>
87985         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
87987 2008-12-10  Jim Meyering  <meyering@redhat.com>
87989         gl_ASSERT: don't say assertions are disabled when they're not
87990         * m4/assert.m4 (gl_ASSERT): Do not make configure report
87991         "checking whether to enable assertions... no", when they are in
87992         fact enabled.  This is solely a bug in the output of configure.
87993         In spite of saying "no", NDEBUG was not defined in that case.
87994         Also, as noted by Eric Blake, leave assertions enabled upon
87995         --enable-assert=INVALID.
87997 2008-12-10  Bruno Haible  <bruno@clisp.org>
87999         Change MODULES.html to refer to POSIX:2008 where possible.
88000         * MODULES.html.sh (POSIX2008_URL): New variable.
88001         (posix_headers): Remove sys/timeb, ucontext.
88002         (posix2001_headers): New variable.
88003         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
88004         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
88005         index, makecontext, mktemp, pthread_attr_getstackaddr,
88006         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
88007         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
88008         (posix2001_functions): New variable.
88009         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
88010         otherwise.
88012 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88014         add missing include to parse-duration.c
88015         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
88016         * modules/parse-duration (Depends-on): Add xalloc.
88018         fix sed script reading maint.mk
88019         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
88020         (syntax-check-rules): Use it.
88022 2008-12-09  Bruno Haible  <bruno@clisp.org>
88024         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
88025         MacOS X 10.4/PowerPC.
88026         Reported by Simon Josefsson.
88028 2008-12-08  Jim Meyering  <meyering@redhat.com>
88030         work around mingw's lack of some S_IF definitions
88031         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
88032         Reported by Simon Josefsson.
88034 2008-12-08  Bruno Haible  <bruno@clisp.org>
88036         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
88037         applied to variables. Needed on MacOS X 10.4/PowerPC.
88038         Reported by Simon Josefsson.
88040 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
88041         and Eric Blake  <ebb9@byu.net>
88043         assert: honor --enable-assert
88044         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
88045         order to honor --enable-assert, rather than treating it as a
88046         synonym for --disable-assert.
88048 2008-12-08  Jim Meyering  <meyering@redhat.com>
88050         * lib/posixtm.c: Remove now-useless declaration of mktime.
88052         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
88054 2008-12-07  Bruno Haible  <bruno@clisp.org>
88056         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
88057         test_once): Mark functions as static.
88058         * tests/test-tls.c (test_tls): Likewise.
88060 2008-12-07  Bruno Haible  <bruno@clisp.org>
88062         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
88063         iconv_register_autodetect.
88065 2008-12-07  Jim Meyering  <meyering@redhat.com>
88067         posixtm.c: avoid a warning
88068         * lib/posixtm.c (posixtime): Don't initialize tm0.
88069         It's no longer needed to placate gcc4's -Wuninitialized,
88070         and the attempt to placate would elicit a new warning.
88072         unicodeio.c: mark unused parameters
88073         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
88074         (fallback_failure_callback): Likewise.
88076 2008-12-07  Bruno Haible  <bruno@clisp.org>
88078         * gnulib-tool (func_create_testdir): When building the tests
88079         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
88080         Reported by Simon Josefsson.
88082 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88084         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
88086 2008-12-06  Bruno Haible  <bruno@clisp.org>
88088         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
88089         Suggested by Eric Blake.
88091 2008-12-06  Bruno Haible  <bruno@clisp.org>
88093         Fix a c-stack test failure on MacOS X.
88094         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
88095         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
88096         handler for SIGBUS as well.
88097         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
88098         install a signal handler for SIGBUS as well.
88099         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
88101 2008-12-06  Bruno Haible  <bruno@clisp.org>
88103         Advocacy documentation.
88104         * doc/gnulib-intro.texi (Benefits): New section.
88105         * doc/gnulib.texi: Update.
88107 2008-12-06  Bruno Haible  <bruno@clisp.org>
88109         Document the 'manywarnings' module.
88110         * doc/manywarnings.texi: New file.
88111         * doc/gnulib.texi: Include it.
88113 2008-12-05  Eric Blake  <ebb9@byu.net>
88115         tests: silence some gcc warnings
88116         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
88117         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
88118         type mismatches.
88120 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88121             Bruno Haible  <bruno@clisp.org>
88123         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
88125 2008-11-29  Jim Meyering  <meyering@redhat.com>
88127         unicodeio.c: mark unused parameters
88128         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
88129         (fallback_failure_callback): Likewise.
88131         fts: fix a thinko
88132         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
88133         (set_stat_type): Return S_IF*-valued "type" directly.
88134         Prompted by James Youngman's spotting a related bug.
88135         Confirmed by further testing through find.
88137         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
88138         * lib/fts.c (D_TYPE): Define.
88139         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
88140         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
88141         (s_ifmt_shift_bits): New function.
88142         (set_stat_type): New function.
88143         (fts_build): When not calling fts_stat, call set_stat_type
88144         to propagate dirent.d_type info to fts_read caller.
88145         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
88146         fts_statp->st_mode type information may be valid.
88148 2008-11-28  Simon Josefsson  <simon@josefsson.org>
88150         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
88151         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
88152         <sds@gnu.org>.
88154 2008-11-20  Bruno Haible  <bruno@clisp.org>
88156         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
88157         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
88158         INCLUDE_NEXT.
88159         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
88160         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
88161         * modules/math (Makefile.am): Substitute
88162         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
88163         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
88165 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
88166             Bruno Haible  <bruno@clisp.org>
88168         * lib/stdint.in.h: Define all type macros so that their expansion is
88169         a single typedef'ed token. Fixes a compilation failure in Boost which
88170         does "using ::int8_t;".
88172 2008-11-18  Simon Josefsson  <simon@josefsson.org>
88174         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
88175         gl_MANYWARN_ALL_GCC.
88176         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
88177         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
88178         * modules/manywarnings: New file.
88179         * MODULES.html.sh: Mention manywarnings module.
88181 2008-11-18  Bruno Haible  <bruno@clisp.org>
88183         * doc/gnulib-tool.texi (Unit tests): New section.
88185 2008-11-18  Simon Josefsson  <simon@josefsson.org>
88187         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
88188         paths like 'lib/po/foo.po'.
88190 2008-11-17  Simon Josefsson  <simon@josefsson.org>
88192         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
88193         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
88195 2008-11-17  Simon Josefsson  <simon@josefsson.org>
88197         * m4/warnings.m4: Use CPPFLAGS to really check whether the
88198         parameter works.
88200 2008-11-17  Simon Josefsson  <simon@josefsson.org>
88202         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
88204 2008-11-17  Bruce Korb  <bkorb@gnu.org>
88206         * modules/parse-duration-tests: New file.
88207         * tests/test-parse-duration.sh: New file.
88208         * tests/test-parse-duration.c: New file.
88210         New module 'parse-duration'.
88211         * lib/parse-duration.h: New file.
88212         * lib/parse-duration.c: New file.
88213         * modules/parse-duration: New file.
88215 2008-11-17  Bruno Haible  <bruno@clisp.org>
88217         * tests/test-select-out.sh: Comment out the first pipe test.
88218         Reported by Simon Josefsson.
88220 2008-11-17  Bruno Haible  <bruno@clisp.org>
88222         * modules/getaddrinfo (Depends-on): Add servent, hostent.
88223         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
88224         gl_HOSTENT.
88226 2008-11-17  Bruno Haible  <bruno@clisp.org>
88228         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
88229         -lnetwork and -lnet. Needed for Haiku and BeOS.
88231 2008-11-16  Bruno Haible  <bruno@clisp.org>
88233         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
88235 2008-11-16  Bruno Haible  <bruno@clisp.org>
88237         Avoid test failure on Haiku.
88238         * tests/test-fsync.c: Include <errno.h>.
88239         (main): Don't require that fsync (0) fails.
88241 2008-11-15  Bruno Haible  <bruno@clisp.org>
88243         New module 'hostent'.
88244         * modules/hostent: New file.
88245         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
88247 2008-11-15  Bruno Haible  <bruno@clisp.org>
88249         New module 'servent'.
88250         * modules/servent: New file.
88251         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
88253 2008-11-15  Bruno Haible  <bruno@clisp.org>
88255         Avoid generating same test program with two different rules.
88256         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
88257         test-frexp to test-frexp-nolibm.
88258         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
88259         test-frexpl to test-frexpl-nolibm.
88261 2008-11-15  Bruno Haible  <bruno@clisp.org>
88263         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
88264         $(FREXPL_LIBM).
88266 2008-11-15  Bruno Haible  <bruno@clisp.org>
88268         * lib/netdb.in.h: Activate the definitions also when the system's
88269         <netdb.h> has 'struct addrinfo'.
88270         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
88271         EAI_OVERFLOW or AI_NUMERICSERV.
88272         * doc/posix-headers/netdb.texi: Document the problem.
88274 2008-11-15  Bruno Haible  <bruno@clisp.org>
88276         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
88278         Make the 'sched' module work on platforms where <sched.h> exists but
88279         is incomplete (such as Haiku).
88280         * lib/sched.in.h; Include the system's <sched.h> if it exists.
88281         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
88282         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
88283         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
88284         HAVE_STRUCT_SCHED_PARAM.
88285         * modules/sched (Depends-on): Add include_next.
88286         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
88287         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
88288         * doc/posix-headers/sched.texi: Document the issue.
88290 2008-11-13  Jim Meyering  <meyering@redhat.com>
88292         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
88293         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
88294         test would fail due to the difference in the Report bugs to ...
88295         line.  The expected address is empty, "<>", while the actual
88296         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
88298 2008-11-12  Bruno Haible  <bruno@clisp.org>
88300         lstat: don't compile lstat.c on systems lacking lstat
88301         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
88302         which don't have lstat; this is handled by lib/sys_stat.in.h already.
88303         Reported by Daniel P. Berrange via Jim Meyering.
88305 2008-11-12  Jim Meyering  <meyering@redhat.com>
88307         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
88309 2008-11-12  Simon Josefsson  <simon@josefsson.org>
88311         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
88312         instead.
88314 2008-11-12  Bruno Haible  <bruno@clisp.org>
88316         * lib/unicodeio.c: Include unistr.h.
88317         (utf8_wctomb): Remove function.
88318         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
88320 2008-11-12  Simon Josefsson  <simon@josefsson.org>
88322         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
88323         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
88324         <bruno@clisp.org>.
88325         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
88327 2008-11-12  Simon Josefsson  <simon@josefsson.org>
88329         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
88330         * doc/gnulib.texi: Add section for warnings.
88332 2008-11-11  Bruno Haible  <bruno@clisp.org>
88334         * lib/sockets.h: Add a comment.
88336 2008-11-11  Karl Berry  <karl@gnu.org>
88338         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
88340 2008-11-11  Eric Blake  <ebb9@byu.net>
88342         fdl.texi: avoid git symlinks
88343         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
88345 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88347         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
88349 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88351         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
88352         (gl_WARN_ADD): Substitute $2 if literal.
88354 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88356         * m4/warning.m4: Remove.
88358 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
88360         * m4/warnings.m4: Almost complete rewrite. :-)
88362 2008-11-10  Simon Josefsson  <simon@josefsson.org>
88364         * modules/warnings: New module.
88365         * m4/warnings.m4: New file.
88366         * MODULES.html.sh: Mention warnings module.
88367         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
88368         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
88370 2008-11-10  Eric Blake  <ebb9@byu.net>
88372         fdl.texi: make a symlink to the latest version
88373         * doc/standards.texi: Revert today's earlier change.
88374         * doc/fdl-1.2.texi: Rename from old fdl.texi...
88375         * doc/fdl.texi: ...and replace this with a symlink to the newer
88376         fdl-1.3.texi.
88378 2008-11-10  Bruno Haible  <bruno@clisp.org>
88380         * tests/test-select-fd.c (main): Accept the result file name as fourth
88381         argument.
88382         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
88383         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
88385 2008-11-10  Bruno Haible  <bruno@clisp.org>
88387         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
88388         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
88389         as autoconf-substituted macros.
88390         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
88391         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
88392         gl_NETDB_H_DEFAULTS. Set these variables.
88393         * modules/netdb (Makefile.am): Substitute these variables.
88395 2008-11-10  Eric Blake  <ebb9@byu.net>
88397         standards.texi: include correct file for FDL 1.3
88398         * doc/standards.texi (GNU Free Documentation License): Change
88399         include file to pull in FDL 1.3, not 1.2.
88401         fdl.texi: revert accidental change to license
88402         * doc/fdl.texi: This is FDL 1.2, not 1.3.
88404 2008-11-10  Bruno Haible  <bruno@clisp.org>
88406         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
88407         cross-compiling guesses also when the native compile gives no result.
88409 2008-11-10  Bruno Haible  <bruno@clisp.org>
88411         * lib/spawni.c (__spawni): Force variable into the stack.
88413 2008-11-10  Bruno Haible  <bruno@clisp.org>
88415         Add support for Haiku.
88416         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
88417         glibc and BeOS, but also on Haiku.
88418         * lib/fpurge.c (fpurge): Likewise.
88419         * lib/freadable.c (freadable): Likewise.
88420         * lib/freadahead.c (freadahead): Likewise.
88421         * lib/freading.c (freading): Likewise.
88422         * lib/freadptr.c (freadptr): Likewise.
88423         * lib/freadseek.c (freadptrinc): Likewise.
88424         * lib/fseeko.c (rpl_fseeko): Likewise.
88425         * lib/fseterr.c (fseterr): Likewise.
88426         * lib/fwritable.c (fwritable): Likewise.
88427         * lib/fwriting.c (fwriting): Likewise.
88428         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
88430 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
88432         * lib/config.charset: Treat Haiku like BeOS.
88434 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
88436         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
88437         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
88439 2008-11-08  Bruno Haible  <bruno@clisp.org>
88441         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
88442         AC_CACHE_CHECK.
88444 2008-11-08  Bruno Haible  <bruno@clisp.org>
88446         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
88448 2008-11-08  Bruno Haible  <bruno@clisp.org>
88450         * tests/test-select-fd.c: New file.
88451         * tests/test-select-in.sh: New file.
88452         * tests/test-select-out.sh: New file.
88453         * tests/test-select-stdin.c: New file.
88454         * modules/select-tests (Files): Add the new files.
88455         (Depends-on): Add gettimeofday.
88456         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
88457         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
88458         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
88460 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
88461             Bruno Haible  <bruno@clisp.org>
88463         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
88465 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
88467         * build-aux/pmccabe2html: Added support for C++ source files.
88469 2008-11-05  Ben Pfaff  <blp@gnu.org>
88471         Fix lib/close.c build on Windows.
88472         * modules/close (Files): Add lib/w32sock.h.
88474 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
88476         Accept Bison's NEWS format.
88477         * build-aux/announce-gen (print_news_deltas): Tweak
88478         $re_prefix.
88480 2008-11-04  Bruno Haible  <bruno@clisp.org>
88482         * modules/random_r (Maintainer): Add glibc.
88484 2008-11-04  Simon Josefsson  <simon@josefsson.org>
88486         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
88487         by karl@freefriends.org (Karl Berry).
88488         * doc/alloca.texi: Likewise.
88489         * doc/c-ctype.texi: Likewise.
88490         * doc/c-strcase.texi: Likewise.
88491         * doc/c-strcaseeq.texi: Likewise.
88492         * doc/c-strcasestr.texi: Likewise.
88493         * doc/c-strstr.texi: Likewise.
88494         * doc/c-strtod.texi: Likewise.
88495         * doc/c-strtold.texi: Likewise.
88496         * doc/ctime.texi: Likewise.
88497         * doc/error.texi: Likewise.
88498         * doc/fdl.texi: Likewise.
88499         * doc/gcd.texi: Likewise.
88500         * doc/getdate.texi: Likewise.
88501         * doc/gnulib-intro.texi: Likewise.
88502         * doc/gnulib-tool.texi: Likewise.
88503         * doc/gnulib.texi: Likewise.
88504         * doc/inet_ntoa.texi: Likewise.
88505         * doc/maintain.texi: Likewise.
88506         * doc/make-stds.texi: Likewise.
88507         * doc/quote.texi: Likewise.
88508         * doc/regexprops-generic.texi: Likewise.
88509         * doc/standards.texi: Likewise.
88510         * doc/verify.texi: Likewise.
88511         * doc/visibility.texi: Likewise.
88512         * doc/gnulib.texi (GNU Free Documentation License): Include
88513         fdl-1.3.texi instead of fdl.texi.
88515 2008-11-04  Simon Josefsson  <simon@josefsson.org>
88517         * doc/fdl-1.3.texi: New file, from
88518         <http://www.gnu.org/licenses/fdl-1.3.texi>.
88519         * modules/fdl-1.3: Add.
88520         * MODULES.html.sh: Add fdl-1.3.
88522 2008-11-03  Bruno Haible  <bruno@clisp.org>
88524         Make determination of absolute name of header file work with AIX xlc.
88525         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
88526         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
88527         preprocessing.
88528         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
88529         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
88531 2008-11-03  Simon Josefsson  <simon@josefsson.org>
88533         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
88534         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
88535         <ludo@gnu.org>.
88537 2008-11-02  Bruno Haible  <bruno@clisp.org>
88539         Mark 'strpbrk' obsolete.
88540         * modules/strpbrk (Status, Notice): New sections.
88541         * modules/strtok_r (Depends-on): Add strpbrk.
88543 2008-11-02  Bruno Haible  <bruno@clisp.org>
88545         Mark 'strdup' obsolete.
88546         * modules/strdup (Status, Notice): New sections.
88547         * modules/findprog (Depends-on): Add strdup.
88548         * modules/getaddrinfo (Depends-on): Likewise.
88549         * modules/localename (Depends-on): Likewise.
88550         * modules/relocatable-lib (Depends-on): Likewise.
88551         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
88552         * modules/relocatable-prog (Depends-on): Likewise.
88553         * modules/trim (Depends-on): Likewise.
88554         * modules/unictype/gen-ctype (Depends-on): Likewise.
88555         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
88557 2008-11-02  Bruno Haible  <bruno@clisp.org>
88559         Mark 'strcspn' obsolete.
88560         * modules/strcspn (Status, Notice): New sections.
88562 2008-11-02  Bruno Haible  <bruno@clisp.org>
88564         Mark 'rmdir' obsolete.
88565         * modules/rmdir (Status, Notice): New sections.
88566         * modules/clean-temp (Depends-on): Add rmdir.
88567         * modules/openat (Depends-on): Likewise.
88569 2008-11-02  Bruno Haible  <bruno@clisp.org>
88571         Mark 'raise' obsolete.
88572         * modules/raise (Status, Notice): New sections.
88573         (Include): Specify <signal.h>.
88574         * modules/stdio (Depends-on): Add raise.
88575         * modules/write (Depends-on): Likewise.
88577 2008-11-02  Bruno Haible  <bruno@clisp.org>
88579         Mark 'memset' obsolete.
88580         * modules/memset (Status, Notice): New sections.
88582 2008-11-02  Bruno Haible  <bruno@clisp.org>
88584         Mark 'memmove' obsolete.
88585         * modules/memmove (Status, Notice): New sections.
88586         * modules/argp (Depends-on): Add memmove.
88587         * modules/argz (Depends-on): Likewise.
88588         * modules/canonicalize (Depends-on): Likewise.
88589         * modules/canonicalize-lgpl (Depends-on): Likewise.
88590         * modules/fts (Depends-on): Likewise.
88591         * modules/getcwd (Depends-on): Likewise.
88592         * modules/human (Depends-on): Likewise.
88593         * modules/regex (Depends-on): Likewise.
88594         * modules/striconveh (Depends-on): Likewise.
88595         * modules/trim (Depends-on): Likewise.
88596         * modules/unistr/u8-move (Depends-on): Likewise.
88597         * modules/unistr/u16-move (Depends-on): Likewise.
88598         * modules/unistr/u32-move (Depends-on): Likewise.
88600 2008-11-02  Bruno Haible  <bruno@clisp.org>
88602         Mark 'memcpy' obsolete.
88603         * modules/memcpy (Status, Notice): New sections.
88605 2008-11-02  Bruno Haible  <bruno@clisp.org>
88607         Mark 'memcmp' obsolete.
88608         * modules/memcmp (Status, Notice): New sections.
88609         * modules/argmatch (Depends-on): Add memchr.
88610         * modules/backupfile (Depends-on): Likewise.
88611         * modules/c-strcasestr (Depends-on): Likewise.
88612         * modules/crypto/des (Depends-on): Likewise.
88613         * modules/csharpcomp (Depends-on): Likewise.
88614         * modules/fnmatch (Depends-on): Likewise.
88615         * modules/git-merge-changelog (Depends-on): Likewise.
88616         * modules/isnand (Depends-on): Likewise.
88617         * modules/isnand-nolibm (Depends-on): Likewise.
88618         * modules/isnanf (Depends-on): Likewise.
88619         * modules/isnanf-nolibm (Depends-on): Likewise.
88620         * modules/isnanl (Depends-on): Likewise.
88621         * modules/isnanl-nolibm (Depends-on): Likewise.
88622         * modules/mbchar (Depends-on): Likewise.
88623         * modules/memcoll (Depends-on): Likewise.
88624         * modules/quotearg (Depends-on): Likewise.
88625         * modules/regex (Depends-on): Likewise.
88626         * modules/relocatable-prog (Depends-on): Likewise.
88627         * modules/same (Depends-on): Likewise.
88628         * modules/signbit (Depends-on): Likewise.
88629         * modules/strcasestr-simple (Depends-on): Likewise.
88630         * modules/unictype/gen-ctype (Depends-on): Likewise.
88631         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
88632         * modules/uniname/uniname (Depends-on): Likewise.
88633         * modules/unistr/u8-cmp (Depends-on): Likewise.
88635 2008-11-02  Bruno Haible  <bruno@clisp.org>
88637         Mark 'memchr' obsolete.
88638         * modules/memchr (Status, Notice): New sections.
88639         * modules/argp (Depends-on): Add memchr.
88640         * modules/base64 (Depends-on): Likewise.
88641         * modules/c-strcasestr (Depends-on): Likewise.
88642         * modules/chdir-long (Depends-on): Likewise.
88643         * modules/fnmatch (Depends-on): Likewise.
88644         * modules/getsubopt (Depends-on): Likewise.
88645         * modules/git-merge-changelog (Depends-on): Likewise.
88646         * modules/glob (Depends-on): Likewise.
88647         * modules/strcasestr-simple (Depends-on): Likewise.
88648         * modules/strnlen (Depends-on): Likewise.
88650 2008-11-02  Bruno Haible  <bruno@clisp.org>
88652         Mark 'atexit' obsolete.
88653         * modules/atexit (Status, Notice): New sections.
88654         * modules/chdir-long (Depends-on): Add atexit.
88655         * modules/wait-process (Depends-on): Likewise.
88657 2008-11-02  Bruno Haible  <bruno@clisp.org>
88659         * gnulib-tool: New option --with-obsolete.
88660         (func_usage): Document it.
88661         (func_modules_transitive_closure): Drop obsolete dependencies if
88662         incobsolete is not true.
88663         (func_import): Read and save the incobsolete variable to the cache.
88665 2008-11-02  Bruno Haible  <bruno@clisp.org>
88667         * modules/TEMPLATE-EXTENDED: New field 'Status'.
88668         * gnulib-tool: New option --extract-status.
88669         (func_usage): Document it.
88670         (sed_extract_prog): Recognize it.
88671         (func_get_status): New function.
88673 2008-10-30  Simon Josefsson  <simon@josefsson.org>
88675         * modules/sockets (License): Change from LGPL to LGPLv2+.
88677 2008-10-28  Simon Josefsson  <simon@josefsson.org>
88679         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
88681 2008-10-28  Simon Josefsson  <simon@josefsson.org>
88683         * MODULES.html.sh (Support for systems lacking POSIX:2001):
88684         Mention times and sys_times.
88685         * modules/sys_times, modules/sys_times-tests: New modules.
88686         * modules/times, modules/times-tests: Likewise
88687         * m4/sys_times_h.m4: New file.
88688         * lib/sys_times.in.h: Likewise
88689         * lib/times.c: Likewise.
88690         * tests/test-sys_times.c: Likewise.
88691         * tests/test-times.c: Likewise.
88692         * doc/posix-headers/sys_times.texi: Update.
88693         * doc/posix-functions/times.texi: Update.
88695 2008-10-28  Jim Meyering  <meyering@redhat.com>
88697         * modules/tempname (Depends-on): Add lstat.
88699         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
88701 2008-10-28  Simon Josefsson  <simon@josefsson.org>
88703         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
88704         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
88705         using idiom used elsewhere in gnulib.
88707 2008-10-27  Jim Meyering  <meyering@redhat.com>
88709         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
88711 2008-10-27  Simon Josefsson  <simon@josefsson.org>
88713         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
88714         TESTS_ENVIRONMENT, for shell scripts that needs to call built
88715         programs.
88716         * tests/test-argp-2.sh: Use $EXEEXT when needed.
88718 2008-10-27  Simon Josefsson  <simon@josefsson.org>
88720         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
88722 2008-10-27  Bruno Haible  <bruno@clisp.org>
88724         * tests/test-lstat.c: Include <stdio.h>.
88726 2008-10-27  Simon Josefsson  <simon@josefsson.org>
88728         * modules/lstat-tests: New module.
88729         * tests/test-lstat.c: New file.
88731 2008-10-26  Jim Meyering  <meyering@redhat.com>
88733         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
88735 2008-10-26  Simon Josefsson  <simon@josefsson.org>
88736             Bruno Haible  <bruno@clisp.org>
88738         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
88739         * modules/configmake (Include): Add a note that the include must come
88740         after all system headers.
88741         * lib/javaversion.c: Include configmake.h after all other includes.
88743 2008-10-26  Bruno Haible  <bruno@clisp.org>
88745         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
88746         HAVE_STRUCT_RANDOM_DATA to 1.
88747         (gl_STDLIB_H): Simplify.
88749 2008-10-26  Simon Josefsson  <simon@josefsson.org>
88751         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
88752         substitute HAVE_STRUCT_RANDOM_DATA.
88753         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
88754         random_data.
88755         * modules/stdlib (Makefile.am): Substitute
88756         HAVE_STRUCT_RANDOM_DATA.
88758 2008-10-26  Simon Josefsson  <simon@josefsson.org>
88760         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
88761         * doc/gnulib-intro.texi (Copyright): Likewise.
88763 2008-10-26  Simon Josefsson  <simon@josefsson.org>
88765         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
88766         findings.
88768 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
88769             Bruno Haible  <bruno@clisp.org>
88771         * lib/unistd.in.h: Include <winsock2.h>.
88772         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
88773         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
88774         Provide dummy declarations.
88775         (gethostname): Override.
88776         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
88777         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
88778         gl_PREREQ_SYS_H_WINSOCK2.
88779         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
88780         * doc/posix-functions/gethostname.texi: More details.
88782 2008-10-25  Bruno Haible  <bruno@clisp.org>
88784         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
88785         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
88786         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
88788         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
88789         here ...
88790         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
88791         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
88792         gl_UNISTD_H_DEFAULTS.
88794 2008-10-25  Eric Blake  <ebb9@byu.net>
88796         signbit: avoid spurious compiler failure
88797         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
88798         declarations inside function.
88800 2008-10-24  Simon Josefsson  <simon@josefsson.org>
88801             Bruno Haible  <bruno@clisp.org>
88803         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
88804         * modules/random_r (Depends-on): Add stdint.
88806 2008-10-24  Bruno Haible  <bruno@clisp.org>
88808         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
88809         Eggert.
88810         * modules/strerror (License): Likewise.
88812 2008-10-24  Jim Meyering  <meyering@redhat.com>
88814         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
88815         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
88817 2008-10-24  Eric Blake  <ebb9@byu.net>
88819         getgroups: fix compilation when getgroups is available
88820         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
88821         but with <config.h> override of getgroups disabled.
88823 2008-10-24  Simon Josefsson  <simon@josefsson.org>
88825         * doc/gnulib.texi (Header files): Add note about C++ problems.
88826         Explained by Bruno Haible <bruno@clisp.org>.
88828 2008-10-23  Bruno Haible  <bruno@clisp.org>
88830         Define a dummy SA_NODEFER macro on Interix.
88831         * lib/signal.in.h (SA_NODEFER): Define fallback.
88832         Reported by Aleksey Cheusov <cheusov@tut.by> via
88833         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
88835 2008-10-23  Bruno Haible  <bruno@clisp.org>
88837         * modules/freadahead (License): Change to LGPLv2+.
88838         Suggested by Simon Josefsson.
88840 2008-10-23  Jim Meyering  <meyering@redhat.com>
88842         random_r: new module
88843         * modules/random_r: New file.
88844         * m4/random_r.m4: New file.
88845         * lib/random_r.c: New file, from glibc.
88846         * modules/random_r-tests: New file.
88847         * tests/test-random_r.c: New file.
88848         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
88849          Declare.
88850         (RAND_MAX): Define.
88851         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
88852         * modules/stdlib: Substitute them, too.
88853         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
88854         * doc/glibc-functions/initstate_r.texi: Mention the new module.
88855         * doc/glibc-functions/random_r.texi: Likewise.
88856         * doc/glibc-functions/setstate_r.texi: Likewise.
88857         * doc/glibc-functions/srandom_r.texi: Likewise.
88858         * config/srclist.txt: Mention it.
88860 2008-10-23  David Lutterkort  <lutter@redhat.com>
88862         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
88863         link requirement
88865 2008-10-23  Jim Meyering  <meyering@redhat.com>
88867         selinux-h: mark parameters of stub functions as intentionally unused
88868         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
88869         * lib/se-context.in.h: Likewise.
88871 2008-10-22  Simon Josefsson  <simon@josefsson.org>
88873         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
88875 2008-10-22  Simon Josefsson  <simon@josefsson.org>
88877         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
88879 2008-10-22  Eric Blake  <ebb9@byu.net>
88881         glthread/thread: avoid compiler warning
88882         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
88883         Add unreachable abort to silence compiler.
88885 2008-10-22  Eric Blake  <ebb9@byu.net>
88887         netdb: also supply struct addrinfo for cygwin 1.5.x
88888         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
88889         older cygwin.
88890         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
88891         cygwin.
88892         * doc/posix-headers/netdb.texi (netdb.h): Document this.
88894 2008-10-22  Bruno Haible  <bruno@clisp.org>
88896         * users.txt: Update entry about pspp.
88898 2008-10-21  Bruno Haible  <bruno@clisp.org>
88900         Simplification.
88901         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
88902         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
88904         Simplification.
88905         * lib/ioctl.c (ioctl): Don't undefine.
88906         * lib/socket.c (socket): Don't undefine.
88908         Remove unused module indicator macros.
88909         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
88910         GNULIB_$1 as a C macro.
88912         * doc/posix-functions/close.texi: Undo last change.
88913         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
88914         Windows platforms.
88916 2008-10-21  Bruno Haible  <bruno@clisp.org>
88918         Add gethostname() declaration to <unistd.h>.
88919         * lib/unistd.in.h (gethostname): New declaration.
88920         * lib/gethostname.c: Include <unistd.h>.
88921         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
88922         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
88923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
88924         and HAVE_GETHOSTNAME.
88925         * modules/gethostname (Depends-on): Add unistd.
88926         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
88927         (Include): Specify <unistd.h>.
88928         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
88929         HAVE_GETHOSTNAME.
88930         * tests/test-gethostname.c: Include <unistd.h> first.
88932 2008-10-21  Bruno Haible  <bruno@clisp.org>
88934         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
88935         * modules/select-tests (Depends-on): Likewise.
88936         Reported by Simon Josefsson.
88938 2008-10-21  Simon Josefsson  <simon@josefsson.org>
88940         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
88941         * lib/accept.c: New file, based on winsock.c.
88942         * lib/bind.c: New file, based on winsock.c.
88943         * lib/connect.c: New file, based on winsock.c.
88944         * lib/getpeername.c: New file, based on winsock.c.
88945         * lib/getsockname.c: New file, based on winsock.c.
88946         * lib/getsockopt.c: New file, based on winsock.c.
88947         * lib/ioctl.c: New file, based on winsock.c.
88948         * lib/listen.c: New file, based on winsock.c.
88949         * lib/recv.c: New file, based on winsock.c.
88950         * lib/recvfrom.c: New file, based on winsock.c.
88951         * lib/send.c: New file, based on winsock.c.
88952         * lib/sendto.c: New file, based on winsock.c.
88953         * lib/setsockopt.c: New file, based on winsock.c.
88954         * lib/shutdown.c: New file, based on winsock.c.
88955         * lib/socket.c: New file, based on winsock.c.
88956         * lib/w32sock.h: New file, based on winsock.c.
88957         * lib/winsock.c: Remove file.
88958         * modules/accept: Likewise.
88959         * modules/bind: Likewise.
88960         * modules/connect: Likewise.
88961         * modules/getpeername: Likewise.
88962         * modules/getsockname: Likewise.
88963         * modules/getsockopt: Likewise.
88964         * modules/ioctl: Likewise.
88965         * modules/listen: Likewise.
88966         * modules/recv: Likewise.
88967         * modules/recvfrom: Likewise.
88968         * modules/send: Likewise.
88969         * modules/sendto: Likewise.
88970         * modules/setsockopt: Likewise.
88971         * modules/shutdown: Likewise.
88972         * modules/socket: Use socket.c instead of winsock.c.
88973         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
88974         * doc/posix-functions/accept.texi: Doc fix.
88975         * doc/posix-functions/bind.texi: Doc fix.
88976         * doc/posix-functions/close.texi: Doc fix.
88977         * doc/posix-functions/connect.texi: Doc fix.
88978         * doc/posix-functions/getpeername.texi: Doc fix.
88979         * doc/posix-functions/getsockname.texi: Doc fix.
88980         * doc/posix-functions/getsockopt.texi: Doc fix.
88981         * doc/posix-functions/ioctl.texi: Doc fix.
88982         * doc/posix-functions/listen.texi: Doc fix.
88983         * doc/posix-functions/recv.texi: Doc fix.
88984         * doc/posix-functions/recvfrom.texi: Doc fix.
88985         * doc/posix-functions/send.texi: Doc fix.
88986         * doc/posix-functions/sendto.texi: Doc fix.
88987         * doc/posix-functions/setsockopt.texi: Doc fix.
88988         * doc/posix-functions/shutdown.texi: Doc fix.
88989         * doc/posix-functions/socket.texi: Doc fix.
88991 2008-10-20  Bruno Haible  <bruno@clisp.org>
88993         Take into account the role of SIGABRT_COMPAT on Windows 2008.
88994         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
88995         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
88996         as an alias for SIGABRT.
88997         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
88998         (sigaction): Map it to SIGABRT.
88999         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
89001 2008-10-20  Bruno Haible  <bruno@clisp.org>
89003         * lib/fts.c: Don't include lstat.h.
89004         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
89006         Move the lstat() declaration to <sys/stat.h>.
89007         * lib/lstat.h: Remove file.
89008         * lib/sys_stat.in.h: Add special invocation convention.
89009         (lstat): New declaration.
89010         * lib/lstat.c (orig_lstat): New function.
89011         (rpl_lstat): Use orig_lstat instead of lstat.
89012         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
89013         AC_C_INLINE. Set REPLACE_LSTAT.
89014         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
89015         and REPLACE_LSTAT.
89016         * modules/lstat (Files): Remove lib/lstat.h.
89017         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
89018         (Include): Specify <sys/stat.h> instead of lstat.h.
89019         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
89020         REPLACE_LSTAT.
89021         * NEWS: Mention the change.
89023 2008-10-20  Bruno Haible  <bruno@clisp.org>
89025         * modules/posix_spawn-tests: New file.
89026         * tests/test-posix_spawn3.c: New file.
89028 2008-10-20  Bruno Haible  <bruno@clisp.org>
89030         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
89031         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
89032         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
89033         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
89034         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
89036 2008-10-20  Bruno Haible  <bruno@clisp.org>
89038         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
89039         of posix_spawn on AIX 5.3.
89041 2008-10-20  Bruno Haible  <bruno@clisp.org>
89043         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
89045 2008-10-20  Bruno Haible  <bruno@clisp.org>
89047         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
89048         of AC_LANG_PROGRAM.
89050 2008-10-20  Simon Josefsson  <simon@josefsson.org>
89052         * lib/netdb.in.h: Don't define GNU specific constants until they
89053         are supported or needed.  Reported by Bruno Haible
89054         <bruno@clisp.org>.
89056 2008-10-20  Simon Josefsson  <simon@josefsson.org>
89058         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
89060 2008-10-20  Simon Josefsson  <simon@josefsson.org>
89062         * lib/getaddrinfo.h: Remove file.
89063         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
89064         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
89065         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
89066         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
89067         * modules/netdb: Substitute GNULIB_GETADDRINFO.
89068         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
89069         * tests/test-getaddrinfo.c: Likewise.
89070         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
89071         * NEWS: Mention change.
89073 2008-10-19  Bruno Haible  <bruno@clisp.org>
89075         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
89077 2008-10-19  Bruno Haible  <bruno@clisp.org>
89079         * lib/wait-process.c: Include simply <sys/wait.h>.
89080         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
89081         WIFSTOPPED): Remove fallback definitions.
89082         * modules/wait-process (Depends-on): Add sys_wait.
89084         New module 'sys_wait'.
89085         * modules/sys_wait: New file.
89086         * lib/sys_wait.in.h: New file, partially copied from
89087         lib/wait-process.c.
89088         * m4/sys_wait_h.m4: New file.
89089         * doc/posix-headers/sys_wait.texi: Mention the new module.
89091 2008-10-19  Bruno Haible  <bruno@clisp.org>
89093         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
89095 2008-10-19  Bruno Haible  <bruno@clisp.org>
89097         Assume that waitpid() fills an 'int' status, not a 'union wait'.
89098         * lib/wait-process.c (WAIT_T): Remove type.
89099         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
89100         (wait_subprocess): Update.
89102 2008-10-19  Bruno Haible  <bruno@clisp.org>
89104         New module 'atoll'.
89105         * modules/atoll: New file.
89106         * lib/stdlib.in.h (atoll): New declaration.
89107         * lib/atoll.c: New file, from glibc with modifications.
89108         * m4/atoll.m4: New file.
89109         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
89110         HAVE_ATOLL.
89111         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
89112         * doc/posix-functions/atoll.texi: Mention the new module.
89114 2008-10-19  Bruno Haible  <bruno@clisp.org>
89116         Add strtoull() declaration to <stdlib.h>.
89117         * lib/stdlib.in.h (strtoull): New declaration.
89118         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
89119         Set HAVE_STRTOULL.
89120         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
89121         HAVE_STRTOULL.
89122         * modules/strtoull (Depends-on): Add stdlib.
89123         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89124         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
89125         HAVE_STRTOULL.
89127 2008-10-19  Bruno Haible  <bruno@clisp.org>
89129         Add strtoll() declaration to <stdlib.h>.
89130         * lib/stdlib.in.h (strtoll): New declaration.
89131         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
89132         Set HAVE_STRTOLL.
89133         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
89134         HAVE_STRTOLL.
89135         * modules/strtoll (Depends-on): Add stdlib.
89136         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89137         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
89139 2008-10-19  Bruno Haible  <bruno@clisp.org>
89141         * modules/bcopy (Depends-on): Add strings.
89142         (Include): Specify <strings.h>.
89144 2008-10-19  Bruno Haible  <bruno@clisp.org>
89146         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
89148 2008-10-19  Bruno Haible  <bruno@clisp.org>
89150         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
89151         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
89152         mingw.
89154 2008-10-19  Bruno Haible  <bruno@clisp.org>
89156         * lib/atanl.c: Don't include isnanl.h.
89157         * lib/cosl.c: Likewise.
89158         * lib/ldexpl.c: Likewise.
89159         * lib/logl.c: Likewise.
89160         * lib/sinl.c: Likewise.
89161         * lib/sqrtl.c: Likewise.
89162         * lib/tanl.c: Likewise.
89164         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
89165         * lib/isnanf.h: Remove file.
89166         * lib/isnand.h: Remove file.
89167         * lib/isnanl.h: Remove file.
89168         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
89169         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
89170         macros.
89171         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
89172         HAVE_ISNANF, don't define it as a C macro.
89173         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
89174         HAVE_ISNAND, don't define it as a C macro.
89175         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
89176         HAVE_ISNANL, don't define it as a C macro.
89177         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
89178         HAVE_ISNAN[FDL].
89179         * modules/isnanf (Files): Remove lib/isnanf.h.
89180         (Depends-on): Add math.
89181         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
89182         (Include): Specify <math.h> instead of isnanf.h.
89183         * modules/isnand (Files): Remove lib/isnand.h.
89184         (Depends-on): Add math.
89185         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
89186         (Include): Specify <math.h> instead of isnand.h.
89187         * modules/isnanl (Files): Remove lib/isnanl.h.
89188         (Depends-on): Add math.
89189         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
89190         (Include): Specify <math.h> instead of isnanl.h.
89191         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
89192         HAVE_ISNAN[FDL].
89193         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
89194         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
89195         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
89196         * NEWS: Mention the change.
89198 2008-10-18  Bruno Haible  <bruno@clisp.org>
89200         Add getusershell(), setusershell(), endusershell() declarations to
89201         <unistd.h>.
89202         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
89203         declarations.
89204         * lib/getusershell.c: Include unistd.h.
89205         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
89206         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
89207         HAVE_GETUSERSHELL.
89208         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
89209         and HAVE_GETUSERSHELL.
89210         * modules/getusershell (Depends-on): Add unistd, extensions.
89211         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89212         (Include): Specify <unistd.h>.
89213         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
89214         HAVE_GETUSERSHELL.
89216 2008-10-18  Bruno Haible  <bruno@clisp.org>
89218         Add a getloadavg() declaration to <stdlib.h>.
89219         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
89220         getloadavg declaration.
89221         (getloadavg): New declaration.
89222         * lib/getloadavg.c: Include <stdlib.h> first.
89223         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
89224         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
89225         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
89226         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
89227         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
89228         * modules/getloadavg (Depends-on): Add stdlib, extensions.
89229         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89230         (Include): Specify <stdlib.h>.
89231         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
89232         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
89234 2008-10-18  Bruno Haible  <bruno@clisp.org>
89236         * lib/dirchownmod.c: Don't include lchmod.h.
89238         Move the lchmod() declaration to <sys/stat.h>.
89239         * lib/lchmod.h: Remove file.
89240         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
89241         (lchmod): New declaration, moved here from lib/lchown.h.
89242         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
89243         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
89244         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
89245         and HAVE_LCHMOD.
89246         * modules/lchmod (Files): Remove lib/lchmod.h.
89247         (Depends-on): Add sys_stat, extensions.
89248         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
89249         (Include): Specify <sys/stat.h> instead of lchmod.h.
89250         * modules/sys_stat (Depends-on): Add link-warning.
89251         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
89252         definition of GL_LINK_WARNING.
89253         * NEWS: Mention the change.
89255 2008-10-18  Bruno Haible  <bruno@clisp.org>
89257         * lib/fchdir.c: Don't include dirfd.h.
89258         * lib/fts.c: Likewise.
89259         * lib/getcwd.c: Likewise.
89260         * lib/glob.c: Likewise.
89262         Move the dirfd() declaration to <dirent.h>.
89263         * lib/dirfd.h: Remove file.
89264         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
89265         (dirfd): New declaration.
89266         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
89267         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
89268         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
89269         HAVE_DECL_DIRFD.
89270         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
89271         HAVE_DECL_DIRFD.
89272         * modules/dirfd (Files): Remove lib/dirfd.h.
89273         (Depends-on): Add dirent, extensions.
89274         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
89275         (Include): Specify <dirent.h> instead of dirfd.h.
89276         * modules/dirent (Depends-on): Add link-warning.
89277         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
89278         definition of GL_LINK_WARNING.
89279         * NEWS: Mention the change.
89281 2008-10-18  Bruno Haible  <bruno@clisp.org>
89283         Move the euidaccess() declaration to <unistd.h>.
89284         * lib/euidaccess.h: Remove file.
89285         * lib/unistd.in.h (euidaccess): New declaration.
89286         * lib/euidaccess.c: Don't include euidaccess.h.
89287         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
89288         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
89289         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
89290         and HAVE_EUIDACCESS.
89291         * modules/euidaccess (Files): Remove lib/euidaccess.h.
89292         (Depends-on): Add unistd.
89293         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89294         (Include): Specify <unistd.h> instead of euidaccess.h.
89295         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
89296         HAVE_EUIDACCESS.
89297         * NEWS: Mention the change.
89299 2008-10-18  Bruno Haible  <bruno@clisp.org>
89301         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
89303         Move the getdomainname() declaration to <unistd.h>.
89304         * lib/getdomainname.h: Remove file.
89305         * lib/unistd.in.h (getdomainname): New declaration.
89306         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
89307         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
89308         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
89309         HAVE_GETDOMAINNAME.
89310         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
89311         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
89312         * modules/getdomainname (Files): Remove lib/getdomainname.h.
89313         (Depends-on): Add unistd, extensions.
89314         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
89315         (Includes): Specify <unistd.h> instead of getdomainname.h.
89316         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
89317         HAVE_GETDOMAINNAME.
89318         * NEWS: Mention the change.
89320 2008-10-18  Bruno Haible  <bruno@clisp.org>
89322         * modules/dirent: New file.
89323         * m4/dirent_h.m4: New file.
89324         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
89325         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
89326         * modules/fchdir (Files): Remove lib/dirent.in.h.
89327         (Depends-on): Add dirent.
89328         (Makefile.am): Move rules to modules/dirent.
89329         * doc/posix-headers/dirent.texi: Mention the new module.
89331 2008-10-18  Bruno Haible  <bruno@clisp.org>
89333         Avoid -Wunused-parameter warnings in public gnulib header files.
89334         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
89335         macro.
89336         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
89338 2008-10-18  Bruno Haible  <bruno@clisp.org>
89340         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
89341         * doc/glibc-functions/error.texi: Mention the module 'error'.
89342         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
89343         * doc/glibc-functions/getdomainname.texi: Mention the module
89344         'getdomainname'.
89345         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
89346         * doc/glibc-functions/getpagesize.texi: Mention the module
89347         'getpagesize'.
89348         * doc/glibc-functions/getusershell.texi: Mention the module
89349         'getusershell'.
89350         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
89351         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
89352         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
89353         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
89354         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
89355         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
89356         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
89357         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
89358         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
89359         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
89360         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
89361         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
89362         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
89363         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
89365 2008-10-17  Bruno Haible  <bruno@clisp.org>
89367         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
89368         HP-UX and IRIX, use -0.0L.
89369         * tests/test-ceill.c (minus_zero): Likewise.
89370         * tests/test-floorl.c (minus_zero): Likewise.
89371         * tests/test-frexpl.c (minus_zero): Likewise.
89372         * tests/test-isnan.c (minus_zerol): Likewise.
89373         * tests/test-isnanl.h (minus_zero): Likewise.
89374         * tests/test-ldexpl.c (minus_zero): Likewise.
89375         * tests/test-roundl.c (minus_zero): Likewise.
89376         * tests/test-signbit.c (minus_zerol): Likewise.
89377         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
89378         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
89379         * tests/test-truncl.c (minus_zero): Likewise.
89380         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
89381         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
89382         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
89383         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
89385 2008-10-17  Bruno Haible  <bruno@clisp.org>
89387         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
89388         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
89389         that it gets activated only for gcc >= 3.0.
89390         * lib/dirent.in.h: Likewise.
89391         * lib/errno.in.h: Likewise.
89392         * lib/fcntl.in.h: Likewise.
89393         * lib/float.in.h: Likewise.
89394         * lib/iconv.in.h: Likewise.
89395         * lib/inttypes.in.h: Likewise.
89396         * lib/locale.in.h: Likewise.
89397         * lib/math.in.h: Likewise.
89398         * lib/netdb.in.h: Likewise.
89399         * lib/netinet_in.in.h: Likewise.
89400         * lib/search.in.h: Likewise.
89401         * lib/signal.in.h: Likewise.
89402         * lib/spawn.in.h: Likewise.
89403         * lib/stdarg.in.h: Likewise.
89404         * lib/stdint.in.h: Likewise.
89405         * lib/stdio.in.h: Likewise.
89406         * lib/stdlib.in.h: Likewise.
89407         * lib/string.in.h: Likewise.
89408         * lib/strings.in.h: Likewise.
89409         * lib/sys_file.in.h: Likewise.
89410         * lib/sys_ioctl.in.h: Likewise.
89411         * lib/sys_select.in.h: Likewise.
89412         * lib/sys_socket.in.h: Likewise.
89413         * lib/sys_stat.in.h: Likewise.
89414         * lib/sys_time.in.h: Likewise.
89415         * lib/sysexits.in.h: Likewise.
89416         * lib/time.in.h: Likewise.
89417         * lib/unistd.in.h: Likewise.
89418         * lib/wchar.in.h: Likewise.
89419         * lib/wctype.in.h: Likewise.
89420         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
89422 2008-10-17  Jim Meyering  <meyering@redhat.com>
89424         ignore-value: don't depend on inline module
89425         * modules/ignore-value (Depends-on): Remove 'inline'.
89426         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
89427         Suggestion from Bruno Haible.
89429 2008-10-17  Bruno Haible  <bruno@clisp.org>
89431         New implementation of condition variables for Win32.
89432         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
89433         (gl_linked_waitqueue_t): New type.
89434         (gl_cond_t): Use it.
89435         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
89436         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
89437         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
89438         (glthread_cond_init_func, glthread_cond_wait_func,
89439         glthread_cond_timedwait_func, glthread_cond_signal_func,
89440         glthread_cond_broadcast_func, glthread_cond_destroy_func):
89441         Reimplemented on the basis of gl_linked_waitqueue_t.
89442         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
89443         gl_waitqueue_t.
89444         (gl_rwlock_t): Update.
89445         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
89447 2008-10-17  Simon Josefsson  <simon@josefsson.org>
89449         * modules/recvfrom (Depends-on): Add dependency on getpeername.
89450         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
89452 2008-10-17  Jim Meyering  <meyering@redhat.com>
89454         ignore-value: new module
89455         * modules/ignore-value: New file.
89456         * lib/ignore-value.h: New file.
89457         * MODULES.html.sh (Compiler warning management): New section,
89458         just for this module.  More to come.
89460 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
89462         open-safer.c: avoid 'signed and unsigned in conditional...' warning
89463         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
89464         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
89466 2008-10-16  Jim Meyering  <meyering@redhat.com>
89468         openat-die.c: avoid 'no previous prototype' warning
89469         * lib/openat-die.c: Include "openat.h".
89470         Reported by Reuben Thomas <rrt@sc3d.org>.
89472 2008-10-16  Simon Josefsson  <simon@josefsson.org>
89474         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
89475         * lib/netdb.in.h: Fix typo.
89476         Reported by Bruno Haible  <bruno@clisp.org>
89478         * lib/netdb.in.h: Include sys/socket.h for platforms without
89479         netdb.h, to get structures like hostent on MinGW.
89480         * modules/netdb (Depends-on): Add sys_socket.
89482 2008-10-15  Simon Josefsson  <simon@josefsson.org>
89484         * modules/netdb, modules/netdb-tests: New file.
89485         * m4/netdb_h.m4: New file.
89486         * lib/netdb.in.h: Add, currently just an empty file pending
89487         definitions.
89488         * tests/test-netdb.c: New file.
89489         * doc/posix-headers/netdb.texi: Mention that we replace it if
89490         needed.
89491         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89492         netdb.
89494 2008-10-15  Simon Josefsson  <simon@josefsson.org>
89496         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
89497         with code.
89499 2008-10-13  Bruno Haible  <bruno@clisp.org>
89501         * lib/glthread/cond.c (glthread_cond_wait_func,
89502         glthread_cond_timedwait_func): Add a comment.
89504 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89506         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
89507         * tests/test-select.c: Likewise,
89509 2008-10-13  Bruno Haible  <bruno@clisp.org>
89511         * lib/glthread/cond.c (glthread_cond_wait_func,
89512         glthread_cond_timedwait_func): Fix variable name.
89513         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
89515 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
89517         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
89518         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
89519         struct sockaddr.sa_len.
89520         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
89522 2008-10-13  Simon Josefsson  <simon@josefsson.org>
89524         * build-aux/pmccabe2html: Add css and css_url parameters.
89526 2008-10-12  Bruno Haible  <bruno@clisp.org>
89528         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
89529         calling aclx_get.
89530         Reported by Rainer Tammer <tammer@tammer.net>.
89532 2008-10-12  Bruno Haible  <bruno@clisp.org>
89534         Use msvcrt aware primitives for creation/termination of Win32 threads.
89535         * lib/glthread/thread.c: Include <process.h>.
89536         (glthread_create_func): Use _beginthreadex instead of CreateThread.
89537         (wrapper_func): Update signature.
89538         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
89540 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
89541             Bruno Haible  <bruno@clisp.org>
89543         Provide a Win32 implementation of the 'cond' module.
89544         * lib/glthread/cond.h [USE_WIN32]: New implementation.
89545         * lib/glthread/cond.c (glthread_cond_init_func,
89546         glthread_cond_wait_func, glthread_cond_timedwait_func,
89547         glthread_cond_signal_func, glthread_cond_broadcast_func,
89548         glthread_cond_destroy_func) [USE_WIN32]: New functions.
89549         * modules/cond (Dependencies): Add gettimeofday.
89551 2008-10-11  Bruno Haible  <bruno@clisp.org>
89553         Make sleep work on older versions of mingw.
89554         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
89555         only whether it exists.
89556         * doc/posix-functions/sleep.texi: Mention the problem with older
89557         versions of mingw.
89559 2008-10-11  Bruno Haible  <bruno@clisp.org>
89561         New module 'shutdown'.
89562         * modules/shutdown: New file.
89563         * lib/sys_socket.in.h (shutdown): New declaration.
89564         * lib/winsock.c (shutdown): New function.
89565         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
89566         GNULIB_SHUTDOWN.
89567         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
89568         * doc/posix-functions/shutdown.texi: Document the new module.
89570 2008-10-11  Jim Meyering  <meyering@redhat.com>
89572         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
89574 2008-10-11  Bruno Haible  <bruno@clisp.org>
89576         New module 'fclose'.
89577         * modules/fclose: New file.
89578         * lib/stdio.in.h (fclose): New declaration.
89579         * lib/fclose.c: New file.
89580         * m4/fclose.m4: New file.
89581         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
89582         REPLACE_FCLOSE.
89583         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
89584         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
89585         REPLACE_FCLOSE.
89586         * modules/close (Depends-on): fclose.
89587         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
89589 2008-10-11  Bruno Haible  <bruno@clisp.org>
89591         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
89592         set errno and don't call _close.
89594 2008-10-10  Bruno Haible  <bruno@clisp.org>
89596         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
89597         ACL, not afterwards. Fixes test failure on Cygwin.
89599 2008-10-09  Ben Pfaff  <blp@gnu.org>
89601         * build-aux/announce-gen: Fix gnulib version related part of usage
89602         message.  Die with a useful error message if no tarballs are
89603         found.
89605 2008-10-10  Jim Meyering  <meyering@redhat.com>
89607         bootstrap: use git's --depth=N option only if it's supported
89608         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
89609         recognize the --depth option.  Reported by Pádraig Brady.
89611 2008-10-09  Bruno Haible  <bruno@clisp.org>
89613         New module 'ioctl'.
89614         * modules/ioctl: New file.
89615         * lib/sys_socket.in.h (ioctl): Remove declaration.
89616         * lib/winsock.c: Include <sys/ioctl.h>.
89617         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
89618         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
89619         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
89620         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
89621         * doc/posix-functions/ioctl.texi: Mention the new module.
89623 2008-10-09  Bruno Haible  <bruno@clisp.org>
89625         New module 'sys_ioctl'.
89626         * lib/sys_ioctl.in.h: New file.
89627         * m4/sys_ioctl_h.m4: New file.
89628         * modules/sys_ioctl: New file.
89629         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
89631 2008-10-09  Bruno Haible  <bruno@clisp.org>
89633         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
89634         * lib/winsock.c: Include <stdarg.h>.
89635         (rpl_ioctl): Change to second argument 'int' and then varargs.
89637 2008-10-09  Bruno Haible  <bruno@clisp.org>
89639         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
89640         when the sys_socket module is present and the system has <winsock2.h>.
89642 2008-10-09  Bruno Haible  <bruno@clisp.org>
89644         * doc/posix-functions/close.texi: Mention module 'close' instead of
89645         module 'sys_socket'.
89647 2008-10-09  Bruno Haible  <bruno@clisp.org>
89649         * doc/glibc-headers/sys_ioctl.texi: New file.
89650         * doc/gnulib.texi: Include it.
89652 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89653             Bruno Haible  <bruno@clisp.org>
89655         Combine the two replacements of 'close'.
89656         * lib/sys_socket.in.h (close): Define to a reminder to include
89657         <unistd.h>.
89658         (_gl_close_fd_maybe_socket): New declaration.
89659         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
89660         * lib/winsock.c (close): Remove undefinition.
89661         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
89662         needed for the gnulib module 'close'.
89663         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
89664         define to an error symbol or to a warning, if suitable.
89665         * lib/close.c: Include <sys/socket.h>.
89666         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
89667         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
89668         UNISTD_H_HAVE_WINSOCK2_H.
89669         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
89670         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
89671         UNISTD_H_HAVE_WINSOCK2_H.
89672         * modules/sys_socket (Files): Add m4/unistd_h.m4.
89673         (configure.ac): Set a module indicator.
89674         (Makefile.am): Substitute GNULIB_CLOSE.
89675         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
89676         * modules/poll-tests (Depends-on): Add close.
89677         * modules/select-tests (Depends-on): Likewise.
89679 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89680             Bruno Haible  <bruno@clisp.org>
89682         New module 'close'.
89683         * modules/close: New file.
89684         * lib/unistd.in.h (close): Move declaration out of the
89685         FCHDIR_REPLACEMENT scope.
89686         (_gl_unregister_fd): New declaration.
89687         * lib/close.c: New file.
89688         * lib/fchdir.c (rpl_close): Remove function.
89689         * m4/close.m4: New file.
89690         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
89691         close.
89692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
89693         REPLACE_CLOSE.
89694         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
89695         REPLACE_CLOSE.
89696         * modules/fchdir (Depends-on): Add close.
89698 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89699             Bruno Haible  <bruno@clisp.org>
89701         * lib/fcntl.in.h (open): Simplify conditionals.
89702         (_gl_register_fd): New declaration.
89703         * lib/fchdir.c (rpl_open): Remove function.
89704         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
89705         also.
89706         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
89707         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
89708         open.
89710 2008-10-09  Jim Meyering  <meyering@redhat.com>
89712         GNUmakefile: use the more name-space-friendly "_version"
89713         * top/GNUmakefile (_dummy): Update.
89714         (_version): Rename from "version".
89716 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89717             Bruno Haible  <bruno@clisp.org>
89719         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
89720         rpl_close.
89721         (_gl_register_fd): New function, extracted from rpl_open.
89722         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
89723         (rpl_open, rpl_opendir): Use _gl_register_fd.
89725 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
89727         Fix organization of 'open' replacement.
89728         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
89729         (gl_FUNC_OPEN): Use it.
89730         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
89732 2008-10-08  Bruno Haible  <bruno@clisp.org>
89734         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
89736 2008-10-08  Simon Josefsson  <simon@josefsson.org>
89738         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
89739         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
89740         listen).
89742 2008-10-08  Eric Blake  <ebb9@byu.net>
89744         GNUmakefile: add 'make version' target
89745         * top/GNUmakefile (_curr-ver): Split version update rules...
89746         (version): ...into a target.
89748 2008-10-07  Bruno Haible  <bruno@clisp.org>
89750         Use a more portable replacement expression for -0.0L.
89751         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
89752         instead of -0.0L. Fix m4 quotation.
89754         * tests/test-signbit.c: Include <float.h>.
89755         (minus_zero): New variable.
89756         (test_signbitl): Use minus_zero instead of -zero.
89757         * modules/signbit-tests (Depends-on): Add float.
89759         * tests/test-ceill.c: Include <float.h>.
89760         (zero): Remove variable.
89761         (minus_zero): New variable.
89762         (main): Use minus_zero instead of -zero.
89763         * modules/ceill-tests (Depends-on): Add float.
89765         * tests/test-floorl.c: Include <float.h>.
89766         (zero): Remove variable.
89767         (minus_zero): New variable.
89768         (main): Use minus_zero instead of -zero.
89769         * modules/floorl-tests (Depends-on): Add float.
89771         * tests/test-roundl.c: Include <float.h>.
89772         (zero): Remove variable.
89773         (minus_zero): New variable.
89774         (main): Use minus_zero instead of -zero.
89775         * modules/roundl-tests (Depends-on): Add float.
89777         * tests/test-truncl.c: Include <float.h>.
89778         (zero): Remove variable.
89779         (minus_zero): New variable.
89780         (main): Use minus_zero instead of -zero.
89781         * modules/truncl-tests (Depends-on): Add float.
89783         * tests/test-frexpl.c (zero): Remove variable.
89784         (minus_zero): New variable.
89785         (main): Use minus_zero instead of -zero.
89786         * modules/frexpl-tests (Depends-on): Add float.
89788         * tests/test-isnan.c (zerol): Remove variable.
89789         (minus_zerol): New variable.
89790         (test_long_double): Use minus_zerol instead of -zerol.
89791         * modules/isnan-tests (Depends-on): Add float.
89793         * tests/test-isnanl.h (zero): Remove variable.
89794         (minus_zero): New variable.
89795         (main): Use minus_zero instead of -zero.
89796         * modules/isnanl-nolibm-tests (Depends-on): Add float.
89797         * modules/isnanl-tests (Depends-on): Add float.
89799         * tests/test-ldexpl.c (zero): Remove variable.
89800         (minus_zero): New variable.
89801         (main): Use minus_zero instead of -zero.
89802         * modules/ldexpl-tests (Depends-on): Add float.
89804         * tests/test-snprintf-posix.h (zerol): Remove variable.
89805         (minus_zerol): New variable.
89806         (test_function): Use minus_zerol instead of -zerol.
89807         * modules/snprintf-posix-tests (Depends-on): Add float.
89808         * modules/vsnprintf-posix-tests (Depends-on): Add float.
89810         * tests/test-sprintf-posix.h (zerol): Remove variable.
89811         (minus_zerol): New variable.
89812         (test_function): Use minus_zerol instead of -zerol.
89813         * modules/sprintf-posix-tests (Depends-on): Add float.
89814         * modules/vsprintf-posix-tests (Depends-on): Add float.
89816         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
89817         (minus_zerol): New variable.
89818         (test_function): Use minus_zerol instead of -zerol.
89819         * modules/vasnprintf-posix-tests (Depends-on): Add float.
89821         * tests/test-vasprintf-posix.c (zerol): Remove variable.
89822         (minus_zerol): New variable.
89823         (test_function): Use minus_zerol instead of -zerol.
89824         * modules/vasprintf-posix-tests (Depends-on): Add float.
89826 2008-10-07  Simon Josefsson  <simon@josefsson.org>
89828         * MODULES.html.sh (Support for building documentation): Mention
89829         pmccabe2html.  Sort entries.
89831         Add pmccabe2html module, from gnupdf.
89832         * build-aux/pmccabe.css: New file.
89833         * build-aux/pmccabe2html: New file.
89834         * m4/pmccabe2html.m4: New file.
89835         * modules/pmccabe2html: New file.
89837 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
89839         flock: new module
89840         * MODULES.html.sh: Add to list of modules.
89841         * lib/flock.c: flock implementation for Windows and Unix systems
89842         which have fcntl.
89843         * doc/glibc-functions/flock.texi: Update documentation.
89844         * lib/sys_file.in.h: <sys/file.h> header file.
89845         * m4/flock.m4: M4 macros.
89846         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
89847         * modules/flock: flock module.
89848         * modules/flock-tests: flock tests module.
89849         * modules/sys_file: sys/file.h module.
89850         * tests/test-flock.c: test suite for flock.
89852 2008-10-06  Jim Meyering  <meyering@redhat.com>
89854         bootstrap: check for LT_INIT more portably still ;-)
89855         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
89856         Spotted by Bruno Haible.
89858 2008-10-06  Eric Blake  <ebb9@byu.net>
89860         test-signbit: avoid tripping Irix cc bug on -0.0L
89861         * tests/test-signbit.c (minus_zerol): Delete, and replace with
89862         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
89863         entire testsuite consistent and avoids an Irix 6.2 bug.
89865 2008-10-05  Bruno Haible  <bruno@clisp.org>
89866             Jim Meyering  <jim@meyering.net>
89868         Add an option for ignoring EPIPE during close_stdout.
89869         * lib/closeout.h: Include <stdbool.h>.
89870         (close_stdout_set_ignore_EPIPE): New declaration.
89871         * lib/closeout.c: Include <stdbool.h>.
89872         (ignore_EPIPE): New variable.
89873         (close_stdout_set_ignore_EPIPE): New function.
89874         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
89875         * lib/close-stream.c (close_stream): Mention the possible EPIPE
89876         failure.
89877         * modules/closeout (Depends-on): Add stdbool.
89879 2008-10-05  Bruno Haible  <bruno@clisp.org>
89881         * modules/accept: New file.
89882         * modules/bind: New file.
89883         * modules/connect: New file.
89884         * modules/getpeername: New file.
89885         * modules/getsockname: New file.
89886         * modules/getsockopt: New file.
89887         * modules/listen: New file.
89888         * modules/recv: New file.
89889         * modules/recvfrom: New file.
89890         * modules/send: New file.
89891         * modules/sendto: New file.
89892         * modules/setsockopt: New file.
89893         * modules/socket: New file.
89894         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
89895         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
89896         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
89897         the particular module is requested. Add a link warning when the
89898         particular module is not requested.
89899         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
89900         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
89901         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
89902         the particular module is requested.
89903         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
89904         gl_SYS_SOCKET_H_DEFAULTS): New macros.
89905         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
89906         * modules/sys_socket (Depends-on): Add link-warning.
89907         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
89908         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
89909         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
89910         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
89911         GL_LINK_WARNING.
89912         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
89913         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
89914         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
89915         * doc/posix-functions/getpeername.texi: Mention the new module
89916         'getpeername'.
89917         * doc/posix-functions/getsockname.texi: Mention the new module
89918         'getsockname'.
89919         * doc/posix-functions/getsockopt.texi: Mention the new module
89920         'getsockopt'.
89921         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
89922         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
89923         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
89924         * doc/posix-functions/send.texi: Mention the new module 'send'.
89925         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
89926         * doc/posix-functions/setsockopt.texi: Mention the new module
89927         'setsockopt'.
89928         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
89929         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
89930         listen, connect, accept.
89931         * modules/select-tests (Depends-on): Likewise.
89933 2008-10-05  Bruno Haible  <bruno@clisp.org>
89935         * lib/winsock.c (strerror): Remove unused #undef.
89936         (rpl_close): Remove unused local variable.
89938         * modules/sys_socket (Depends-on); Add errno.
89940 2008-10-05  Bruno Haible  <bruno@clisp.org>
89942         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
89943         (select): Add a link warning when the 'select' module is not used.
89944         * modules/sys_select (Depends-on): Add link-warning.
89945         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
89946         Suggested by Paolo Bonzini.
89948 2008-10-05  Jim Meyering  <meyering@redhat.com>
89950         bootstrap: check for LT_INIT more portably
89951         * build-aux/bootstrap: Avoid using grep -E, since it's not
89952         portable enough.  Suggestion from Bruno Haible.
89954 2008-10-05  Bruno Haible  <bruno@clisp.org>
89956         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
89957         as being fixed by gnulib.
89959 2008-10-05  Bruno Haible  <bruno@clisp.org>
89961         * modules/select-tests: New file, mostly copied from
89962         modules/sys_select-tests.
89963         * tests/test-select.c: New file, mostly copied from
89964         tests/test-sys_select.c.
89965         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
89966         * modules/sys_select-tests (Depends-on): Remove all dependencies.
89967         (Makefile.am): Remove test_sys_select_LDADD.
89969         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
89970         to an undefined symbol, for an error message.
89971         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
89972         (gl_SYS_SELECT_H_DEFAULTS): New macro.
89973         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
89974         winsock-select.c here.
89975         * modules/sys_select (Files): Remove lib/winsock-select.c.
89976         (Depends-on): Remove alloca.
89977         (Makefile.am): Substitute GNULIB_SELECT.
89978         * modules/select: New file.
89979         * doc/posix-functions/select.texi: Update.
89981 2008-10-05  Bruno Haible  <bruno@clisp.org>
89983         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
89984         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
89985         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
89986         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
89987         getdtablesize.
89988         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
89989         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
89991 2008-10-05  Bruno Haible  <bruno@clisp.org>
89993         * modules/getdtablesize-tests: New file.
89994         * tests/test-getdtablesize.c: New file.
89996         New module 'getdtablesize'.
89997         * lib/unistd.in.h (getdtablesize): New declaration.
89998         * lib/getdtablesize.c: New file.
89999         * m4/getdtablesize.m4: New file.
90000         * modules/getdtablesize: New file.
90001         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
90002         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
90003         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
90004         HAVE_GETDTABLESIZE.
90005         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
90007 2008-10-05  Bruno Haible  <bruno@clisp.org>
90009         * modules/sched (Makefile.am): Fix typo.
90010         Reported by Simon Josefsson.
90012 2008-10-05  Jim Meyering  <meyering@redhat.com>
90014         bootstrap: check for LT_INIT, too
90015         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
90016         are deprecated.  Suggestion from Ralf Wildenhues.
90018 2008-10-05  Bruno Haible  <bruno@clisp.org>
90020         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
90021         overriding them by ours.
90022         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
90024 2008-10-05  Jim Meyering  <meyering@redhat.com>
90026         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
90027         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
90028         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
90030 2008-10-04  Bruno Haible  <bruno@clisp.org>
90032         * modules/dup2 (License): Change to LGPLv2+.
90033         * modules/sleep (License): Likewise.
90034         * modules/perror (License): Likewise.
90035         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
90036         Blake.
90037         * modules/signal (License): Likewise.
90038         * modules/sigprocmask (License): Likewise.
90039         * modules/raise (License): Change to LGPLv2+, with approval by Jim
90040         Meyering.
90042 2008-10-04  Bruno Haible  <bruno@clisp.org>
90044         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
90045         Reported by Rainer Tammer <tammer@tammer.net>.
90047 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
90048             Bruno Haible  <bruno@clisp.org>
90050         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
90051         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
90052         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
90054 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
90056         filevercmp: new module
90057         * lib/filevercmp.h: New function filevercmp comparing version strings.
90058         * lib/filevercmp.c: Implementation of filevercmp function.
90059         * modules/filevercmp: Module metadata.
90060         * tests/test-filevercmp.c: Unit test for new module.
90061         * modules/filevercmp-tests: Unit test metadata.
90062         * MODULES.html.sh: Add filevercmp module.
90064 2008-10-03  Bruno Haible  <bruno@clisp.org>
90066         * lib/c-ctype.h: Add comment.
90067         Reported by Jim Meyering.
90069 2008-10-02  Bruno Haible  <bruno@clisp.org>
90071         * modules/posix_spawn-internal (Depends-on): Add 'open'.
90073 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
90075         * build-aux/bootstrap: Allow renaming bootstrap, and change the
90076         name of bootstrap.conf accordingly.
90078 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
90080         * build-aux/bootstrap: Install git-merge-changelog configuration
90081         items into .gitconfig if needed.
90083 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
90085         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
90086         git repository, and initialize/update it accordingly.
90088 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
90090         * modules/fsync-tests: New file.
90091         * tests/test-fsync.c: New file.
90093         New module 'fsync'.
90094         * lib/fsync.c: New file.
90095         * m4/fsync.m4: New file.
90096         * modules/fsync: New file.
90097         * lib/unistd.in.h (fsync): New declaration.
90098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
90099         GNULIB_FSYNC and HAVE_FSYNC.
90100         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
90101         * MODULES.html.sh (posix_functions): Add fsync.
90102         * doc/posix-functions/fsync.texi: Mention the new module.
90104 2008-10-02  Jim Meyering  <meyering@redhat.com>
90106         fts.c: sync with similar code from coreutils' remove.c
90107         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
90108         Guard also with "#if defined __linux__", since for now at least,
90109         this code is Linux-kernel-specific.
90111 2008-10-02  Jim Meyering  <meyering@redhat.com>
90113         fts: bug fixes
90114         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
90115         Include <sys/vfs.h>, not <sys/statfs.h>.
90117         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
90118         Include <sys/vfs.h>, not <sys/statfs.h>.
90120 2008-10-01  Bruno Haible  <bruno@clisp.org>
90122         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
90123         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
90124         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
90125         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
90126         * doc/posix-functions/posix_spawnp.texi: Likewise.
90127         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
90128         whether posix_spawn actually works.
90129         * m4/pipe.m4 (gl_PIPE): Likewise.
90130         * modules/execute (Files): Add m4/posix_spawn.m4.
90131         * modules/pipe (Files): Add m4/posix_spawn.m4.
90132         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
90134 2008-10-01  Jim Meyering  <meyering@redhat.com>
90136         remove trailing spaces
90137         * NEWS: Likewise.
90138         * lib/poll.c (poll): Likewise.
90139         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
90140         * lib/winsock.c (rpl_close): Likewise.
90141         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
90142         * modules/yield: Likewise.
90143         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
90144         * tests/test-sys_select.c (connect_to_socket): Likewise.
90146         fts.c: adjust a new interface to be more generally useful
90147         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
90148         (fts_build): Adjust caller.
90150 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90152         * modules/cond-tests: New file.
90153         * tests/test-cond.c: New file.
90155 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90156             Bruno Haible  <bruno@clisp.org>
90158         * modules/cond (Dependencies): Add errno, time.
90159         * lib/glthread/cond.h: Include <time.h>.
90160         (gl_cond_define, gl_cond_define_initialized): Use the same definition
90161         across platforms.
90163 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90164             Bruno Haible  <bruno@clisp.org>
90166         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
90168 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90169             Bruno Haible  <bruno@clisp.org>
90171         * modules/tls-tests (Depends-on): Add thread, yield.
90172         (configure.ac): Remove all checks.
90173         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
90174         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
90175         gl_thread_self): Remove definitions. Include glthread/thread.h and
90176         glthread/yield.h instead.
90177         (test_tls): Pass an additional NULL argument to gl_thread_join.
90179 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90180             Bruno Haible  <bruno@clisp.org>
90182         * modules/lock-tests (Depends-on): Add thread, yield.
90183         (configure.ac): Remove all checks.
90184         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
90185         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
90186         gl_thread_self): Remove definitions. Include glthread/thread.h and
90187         glthread/yield.h instead.
90188         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
90189         additional NULL argument to gl_thread_join.
90191 2008-09-30  Bruno Haible  <bruno@clisp.org>
90193         Fix the Win32 implementation of the 'thread' module.
90194         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
90195         pointer type.
90196         (gl_thread_self): Invoke gl_thread_self_func.
90197         (gl_thread_self_func): New declaration.
90198         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
90199         (do_init_self_key, init_self_key): New functions.
90200         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
90201         Remove some fields.
90202         (running_threads, running_lock): Remove variables.
90203         (get_current_thread_handle): New function.
90204         (gl_thread_self_func, wrapper_func, glthread_create_func,
90205         glthread_join_func, gl_thread_exit_func): Largely rewritten and
90206         simplified.
90208 2008-09-30  Bruno Haible  <bruno@clisp.org>
90210         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
90211         files.
90213 2008-09-30  Jim Meyering  <meyering@redhat.com>
90215         fts.m4: correct the test for statfs.f_type
90216         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
90217         when checking for statfs.f_type.
90219 2008-09-15  Simon Josefsson  <simon@josefsson.org>
90221         tests: avoid some compiler warnings
90222         * tests/test-memchr.c (main): Pass NULL indirectly.
90223         * tests/test-getdate.c (main): Remove unused variable 'ret'.
90225 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
90227         getdate.y: disallow countable dayshifts like "4 yesterday ago"
90228         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
90229         exactly specified dayshifts.
90230         (dayshift): New rule.
90231         (rel): Add dayshift.
90232         (relative_time_table) [tomorrow, yesterday, today, now]:
90233         Use tDAY_SHIFT in place of tDAY_UNIT.
90234         * tests/test-getdate.c: Add tests for now-disallowed countable
90235         dayshifts, e.g., "4 yesterday ago".
90237 2008-09-29  Bruno Haible  <bruno@clisp.org>
90239         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
90240         * tests/test-posix_spawn1.in.sh: Renamed from
90241         tests/test-posix_spawn.in.sh.
90242         * tests/test-posix_spawn2.c: New file.
90243         * tests/test-posix_spawn2.in.sh: New file.
90244         * modules/posix_spawnp-tests (Files): Update.
90245         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
90247 2008-09-29  Bruno Haible  <bruno@clisp.org>
90249         Propagate effects of putenv/setenv/unsetenv to child processes.
90250         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
90251         * lib/pipe.c (create_pipe): Likewise.
90253 2008-09-29  Bruno Haible  <bruno@clisp.org>
90255         Enable use of shell scripts as executables in mingw.
90256         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
90257         run the program as a shell script.
90258         * lib/pipe.c (create_pipe): Likewise.
90259         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
90260         resulting array.
90262 2008-09-29  Eric Blake  <ebb9@byu.net>
90264         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
90266 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
90268         * doc/posix-functions/accept.texi: Update mingw problems.
90269         * doc/posix-functions/bind.texi: Update mingw problems.
90270         * doc/posix-functions/close.texi: Update mingw problems.
90271         * doc/posix-functions/connect.texi: Update mingw problems.
90272         * doc/posix-functions/getpeername.texi: Update mingw problems.
90273         * doc/posix-functions/getsockname.texi: Update mingw problems.
90274         * doc/posix-functions/getsockopt.texi: Update mingw problems.
90275         * doc/posix-functions/ioctl.texi: Update mingw problems.
90276         * doc/posix-functions/listen.texi: Update mingw problems.
90277         * doc/posix-functions/recv.texi: Update mingw problems.
90278         * doc/posix-functions/recvfrom.texi: Update mingw problems.
90279         * doc/posix-functions/select.texi: Update mingw problems.
90280         * doc/posix-functions/send.texi: Update mingw problems.
90281         * doc/posix-functions/sendto.texi: Update mingw problems.
90282         * doc/posix-functions/setsockopt.texi: Update mingw problems.
90283         * doc/posix-functions/socket.texi: Update mingw problems.
90285 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
90286             Bruno Haible  <bruno@clisp.org>
90288         * lib/sys_select.in.h: Include sys/time.h.
90289         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
90290         * modules/sys_select: Depend on sys_time.
90291         * tests/test-sys_select.c: Test that sys/select.h defines struct
90292         timeval fully.
90294 2008-09-29  Bruno Haible  <bruno@clisp.org>
90296         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
90297         * lib/sys_select.in.h: Likewise.
90299 2008-09-29  Bruno Haible  <bruno@clisp.org>
90301         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
90303 2008-09-29  Bruno Haible  <bruno@clisp.org>
90305         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
90306         Set LIBSOCKET instead of augmenting LIBS.
90307         * modules/sockets (Link): New section.
90308         * modules/sockets-tests (test_sockets_LDADD): New variable.
90309         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
90310         * modules/poll-tests (test_poll_LDADD): New variable.
90311         * NEWS: Document the change.
90313 2008-09-29  Bruno Haible  <bruno@clisp.org>
90315         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
90316         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
90317         ARPA_INET_H directly.
90318         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
90320 2008-09-28  Bruno Haible  <bruno@clisp.org>
90322         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
90323         from gl_HEADER_SYS_SOCKET.
90324         (gl_HEADER_SYS_SOCKET): Invoke it.
90325         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
90327 2008-09-28  Bruno Haible  <bruno@clisp.org>
90329         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
90330         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
90331         Needed on OSF/1 4.0.
90333 2008-09-28  Bruno Haible  <bruno@clisp.org>
90335         Override open more carefully.
90336         * lib/open.c (orig_open): New function.
90337         (rpl_open): Use orig_open instead of open.
90338         * lib/fcntl.in.h: Add special invocation convention.
90339         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
90340         (gl_FUNC_OPEN): Invoke it.
90342         Override freopen more carefully.
90343         * lib/freopen.c (orig_freopen): New function.
90344         (rpl_freopen): Use orig_freopen instead of freopen.
90345         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
90346         (gl_FUNC_FREOPEN): Invoke it.
90348         Override fopen more carefully.
90349         * lib/fopen.c (orig_fopen): New function.
90350         (rpl_fopen): Use orig_fopen instead of fopen.
90351         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
90352         (gl_FUNC_FOPEN): Invoke it.
90353         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
90355 2008-09-28  Bruno Haible  <bruno@clisp.org>
90357         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
90358         SIGPIPE.
90360 2008-09-28  Bruno Haible  <bruno@clisp.org>
90362         * tests/test-sigaction.c (handler, main): Disable the check whether
90363         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
90364         glibc systems with LinuxThreads.
90366 2008-09-28  Bruno Haible  <bruno@clisp.org>
90368         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
90370         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
90371         with AIX xlc.
90372         * lib/fcntl.in.h (open): Likewise.
90373         Reported by Rainer Tammer <tammer@tammer.net>.
90375 2008-09-28  Bruno Haible  <bruno@clisp.org>
90377         * modules/posix_spawnp-tests: New file.
90378         * tests/test-posix_spawn.c: New file.
90379         * tests/test-posix_spawn.in.sh: New file.
90381         New module 'posix_spawnp'.
90382         * modules/posix_spawnp: New file.
90383         * lib/spawnp.c: New file, from GNU libc with modifications.
90384         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
90386         New module 'posix_spawn'.
90387         * modules/posix_spawn: New file.
90388         * lib/spawn.c: New file, from GNU libc with modifications.
90389         * doc/posix-functions/posix_spawn.texi: Mention the new module.
90391         New module 'posix_spawnattr_destroy'.
90392         * modules/posix_spawnattr_destroy: New file.
90393         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
90394         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
90395         module.
90397         New module 'posix_spawnattr_setsigmask'.
90398         * modules/posix_spawnattr_setsigmask: New file.
90399         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
90400         modifications.
90401         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
90402         new module.
90404         New module 'posix_spawnattr_getsigmask'.
90405         * modules/posix_spawnattr_getsigmask: New file.
90406         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
90407         modifications.
90408         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
90409         new module.
90411         New module 'posix_spawnattr_setsigdefault'.
90412         * modules/posix_spawnattr_setsigdefault: New file.
90413         * lib/spawnattr_setdefault.c: New file, from GNU libc with
90414         modifications.
90415         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
90416         new module.
90418         New module 'posix_spawnattr_getsigdefault'.
90419         * modules/posix_spawnattr_getsigdefault: New file.
90420         * lib/spawnattr_getdefault.c: New file, from GNU libc with
90421         modifications.
90422         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
90423         new module.
90425         New module 'posix_spawnattr_setschedpolicy'.
90426         * modules/posix_spawnattr_setschedpolicy: New file.
90427         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
90428         modifications.
90429         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
90430         new module.
90432         New module 'posix_spawnattr_getschedpolicy'.
90433         * modules/posix_spawnattr_getschedpolicy: New file.
90434         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
90435         modifications.
90436         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
90437         new module.
90439         New module 'posix_spawnattr_setschedparam'.
90440         * modules/posix_spawnattr_setschedparam: New file.
90441         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
90442         modifications.
90443         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
90444         new module.
90446         New module 'posix_spawnattr_getschedparam'.
90447         * modules/posix_spawnattr_getschedparam: New file.
90448         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
90449         modifications.
90450         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
90451         new module.
90453         New module 'posix_spawnattr_setpgroup'.
90454         * modules/posix_spawnattr_setpgroup: New file.
90455         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
90456         modifications.
90457         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
90458         module.
90460         New module 'posix_spawnattr_getpgroup'.
90461         * modules/posix_spawnattr_getpgroup: New file.
90462         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
90463         modifications.
90464         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
90465         module.
90467         New module 'posix_spawnattr_setflags'.
90468         * modules/posix_spawnattr_setflags: New file.
90469         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
90470         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
90471         module.
90473         New module 'posix_spawnattr_getflags'.
90474         * modules/posix_spawnattr_getflags: New file.
90475         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
90476         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
90477         module.
90479         New module 'posix_spawnattr_init'.
90480         * modules/posix_spawnattr_init: New file.
90481         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
90482         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
90483         module.
90485         New module 'posix_spawn_file_actions_destroy'.
90486         * modules/posix_spawn_file_actions_destroy: New file.
90487         * lib/spawn_faction_destroy.c: New file, from GNU libc with
90488         modifications.
90489         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
90490         the new module.
90492         New module 'posix_spawn_file_actions_addopen'.
90493         * modules/posix_spawn_file_actions_addopen: New file.
90494         * lib/spawn_faction_addopen.c: New file, from GNU libc with
90495         modifications.
90496         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
90497         the new module.
90499         New module 'posix_spawn_file_actions_adddup2'.
90500         * modules/posix_spawn_file_actions_adddup2: New file.
90501         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
90502         modifications.
90503         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
90504         the new module.
90506         New module 'posix_spawn_file_actions_addclose'.
90507         * modules/posix_spawn_file_actions_addclose: New file.
90508         * lib/spawn_faction_addclose.c: New file, from GNU libc with
90509         modifications.
90510         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
90511         the new module.
90513         New module 'posix_spawn_file_actions_init'.
90514         * modules/posix_spawn_file_actions_init: New file.
90515         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
90516         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
90517         new module.
90519         New module 'posix_spawn-internal'.
90520         * modules/posix_spawn-internal: New file.
90521         * lib/spawn_int.h: New file, from GNU libc with modifications.
90522         * lib/spawni.c: New file, from GNU libc with modifications.
90523         * m4/posix_spawn.m4: New file.
90525         New module 'spawn'.
90526         * modules/spawn: New file.
90527         * lib/spawn.in.h: New file, from GNU libc with modifications.
90528         * m4/spawn_h.m4: New file.
90529         * doc/posix-headers/spawn.texi: Mention the new module.
90531 2008-09-28  Bruno Haible  <bruno@clisp.org>
90533         * modules/sched-tests: New file.
90534         * tests/test-sched.c: New file.
90536         New module 'sched'.
90537         * modules/sched: New file.
90538         * lib/sched.in.h: New file.
90539         * m4/sched_h.m4: New file.
90540         * doc/posix-headers/sched.texi: Mention the new module.
90542 2008-09-27  Eric Blake  <ebb9@byu.net>
90544         Fix previous patch, and tweak references to $0.
90545         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
90546         (func_version, func_gnulib_dir): Don't call this program
90547         gnulib-tool.
90548         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
90549         with using $0 in function.
90550         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
90551         (func_fatal_error): Reuse the name the user invoked us with.
90553 2008-09-27  Bruno Haible  <bruno@clisp.org>
90555         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
90556         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
90557         (gl_ICONV_H): Not here.
90558         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
90559         instead of assigning ICONV_H directly.
90561         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
90562         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
90563         WCHAR_H directly.
90565 2008-09-27  Bruno Haible  <bruno@clisp.org>
90567         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
90568         * modules/arpa_inet (Depends-on): Add link-warning.
90569         (Makefile.am): Insert the definition of GL_LINK-WARNING.
90570         * modules/unistd (Makefile.am): Likewise.
90572 2008-09-26  Bruno Haible  <bruno@clisp.org>
90574         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
90575         variables.
90576         (func_version): Essentially copied from gnulib-tool.
90577         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
90578         func_readlink): Copied from gnulib-tool.
90580 2008-09-26  Bruno Haible  <bruno@clisp.org>
90582         * gnulib-tool (func_version): Change directory to $gnulib_dir before
90583         invoking git-version-gen.
90585 2008-09-26  Bruno Haible  <bruno@clisp.org>
90587         * posix-modules: Update to directory names changed on 2008-01-19.
90588         Remove commas in output before splitting into words. No more need to
90589         avoid 'ftruncate' since 2007-02-19.
90591 2008-09-26  Bruno Haible  <bruno@clisp.org>
90593         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
90595 2008-09-26  Bruno Haible  <bruno@clisp.org>
90597         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
90598         * modules/fwriteerror (Depends-on): Add errno.
90600 2008-09-26  Bruno Haible  <bruno@clisp.org>
90602         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
90603         * tests/test-vc-list-files-cvs.sh: Likewise.
90605 2008-09-26  Bruno Haible  <bruno@clisp.org>
90607         * doc/posix-headers/sys_resource.texi: Reorder items.
90609 2008-09-26  Jim Meyering  <meyering@redhat.com>
90611         fts: tweak inode comparison function
90612         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
90613         inode numbers, as documented.
90615         fts: sort dirent entries on inode number before traversing
90616         This avoids a quadratic, seek-related performance penalty when
90617         operating on a directory containing many entries (measurable at 10k;
90618         3.5 hours at 2 million entries with a cold cache) on certain types
90619         of file systems, including ext3 and ext4, but not tmpfs.
90620         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
90621         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
90622         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
90623         (fs_handles_readdir_ordered_dirents_efficiently): New function.
90624         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
90625         (fts_build): Set the stat.st_ino member from D_INO.
90626         If it is likely to be useful, sort dirent entries on inode number.
90628         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
90629         and the struct statfs.f_type member.
90630         * modules/fts (Depends-on): Add d-ino.
90632 2008-09-26  Bruno Haible  <bruno@clisp.org>
90634         * modules/sigpipe-die (Depends-on): Add sigpipe.
90636         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
90637         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
90638         and GNULIB_STDIO_H_SIGPIPE are set.
90639         * lib/stdio-write.c: New file.
90640         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
90641         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
90642         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
90643         REPLACE_STDIO_WRITE_FUNCS.
90644         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
90645         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
90646         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
90647         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
90648         * modules/stdio (Files): Add lib/stdio-write.c.
90649         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
90650         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
90651         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
90652         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
90653         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
90654         REPLACE_FPRINTF_POSIX.
90655         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
90656         REPLACE_PRINTF_POSIX.
90657         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
90658         REPLACE_VFPRINTF_POSIX.
90659         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
90660         REPLACE_VPRINTF_POSIX.
90661         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
90662         SIGPIPE issue.
90663         * doc/posix-functions/fputc.texi: Likewise.
90664         * doc/posix-functions/fputs.texi: Likewise.
90665         * doc/posix-functions/fwrite.texi: Likewise.
90666         * doc/posix-functions/printf.texi: Likewise.
90667         * doc/posix-functions/putc.texi: Likewise.
90668         * doc/posix-functions/putchar.texi: Likewise.
90669         * doc/posix-functions/puts.texi: Likewise.
90670         * doc/posix-functions/vfprintf.texi: Likewise.
90671         * doc/posix-functions/vprintf.texi: Likewise.
90673         * modules/safe-write (Depends-on): Add write.
90675         * modules/sigpipe-tests: New file.
90676         * tests/test-sigpipe.c: New file.
90677         * tests/test-sigpipe.sh: New file.
90679         * modules/write: New file.
90680         * lib/unistd.in.h: Include <sys/types.h>.
90681         (write): New declaration.
90682         * lib/write.c: New file.
90683         * m4/write.m4: New file.
90684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
90685         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
90686         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
90687         GNULIB_WRITE, REPLACE_WRITE.
90688         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
90689         and the SIGPIPE issue.
90691         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
90692         (raise): New declaration.
90693         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
90694         (ext_signal): New function.
90695         (rpl_raise): New function.
90696         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
90697         GNULIB_SIGNAL_H_SIGPIPE.
90698         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
90699         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
90701         * modules/sigpipe: New file.
90702         * m4/sigpipe.m4: New file.
90704 2008-09-25  Derek Price  <derek@ximbiot.com>
90705             Bruno Haible  <bruno@clisp.org>
90707         * gnulib-tool (func_import): Report all license incompatibilities, not
90708         just the first one.
90710 2008-09-25  Bruno Haible  <bruno@clisp.org>
90712         * gnulib-tool (func_import): When computing the edits, consider not
90713         only the Makefile.ams that exist but also those that will be generated.
90715 2008-09-25  Simon Josefsson  <simon@josefsson.org>
90717         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
90718         fixes gnulib-tool --test warning about duplicate dependency.
90720 2008-09-25  Bruno Haible  <bruno@clisp.org>
90722         * gnulib-tool: Don't ask the user to perform edits in the generated
90723         Makefile.ams.
90724         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
90725         apply to the Makefile.am being generated.
90726         (func_emit_tests_Makefile_am): Execute edits that apply to the
90727         Makefile.am being generated.
90728         (func_import): Setup list of Makefile.am edits before emitting the
90729         Makefile.ams, not at the end.
90730         (func_create_testdir): Update.
90731         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
90733 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90735         * gnulib-tool (func_import): Store the --tests-base option in the
90736         comment in gnulib-cache.m4.
90738 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
90740         * NEWS: Document increased portability that sys_select now provides.
90742         * lib/sys_select.in.h: Install select wrapper.
90743         * lib/sys_socket.in.h: Use more descriptive name when there is no
90744         select wrapper.
90745         * lib/winsock-select.c: New.
90746         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
90747         Require gl_HEADER_SYS_SOCKET.
90748         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
90749         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
90750         * tests/test-sys_select.c: Add functional tests.
90752 2008-09-24  Eric Blake  <ebb9@byu.net>
90754         open, fopen: close fd leak in last patch
90755         * lib/open.c (rpl_open): Close fd before returning error.
90756         * lib/fopen.c (rpl_fopen): Close fd before returning error.
90757         * doc/posix-functions/open.texi (open): Document that Irix also
90758         has the bug.
90759         * doc/posix-functions/fopen.texi (fopen): Likewise.
90760         Reported by Paolo Bonzini.
90762 2008-09-24  Bruno Haible  <bruno@clisp.org>
90764         Ensure that a filename ending in a slash cannot be used to access a
90765         non-directory.
90766         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
90767         to check whether it's really a directory.
90768         * lib/fopen.c: Include fcntl.h, unistd.h.
90769         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
90770         and fdopen().
90771         * modules/fopen (Depends-on): Add unistd.
90772         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
90773         * tests/test-fopen.c (main): Likewise.
90774         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
90775         * doc/posix-functions/fopen.texi: Likewise.
90776         Reported by Eric Blake.
90778 2008-09-23  Eric Blake  <ebb9@byu.net>
90780         c-stack: avoid compiler optimizations when provoking overflow
90781         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
90782         recursion harder to optimize, to ensure a stack overflow occurs.
90783         * tests/test-c-stack.c (recurse): Likewise.
90784         Borrowed from libsigsegv.
90786         c-stack: work around Irix sigaltstack bug
90787         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
90788         whether sigaltstack uses wrong end of stack_t (copied in part from
90789         libsigsegv).
90790         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
90791         Irix bug, without requiring an over-allocation.
90792         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
90793         bug.
90795         fopen: document mingw bug on directories
90796         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
90797         not allowing a stream visiting a directory, even though reading
90798         from such a stream is not portable.
90800 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
90802         * lib/poll.c: Rewrite.
90803         * modules/poll: Depend on alloca.
90805 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
90807         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
90808         instead define prototypes for a full set of wrappers.  Ensure
90809         that Cygwin does not use the compatibility code, which is only
90810         for MinGW.
90811         * lib/winsock.c: New.
90812         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
90813         * modules/sys_socket: Add lib/winsock.c.
90815         * modules/poll-tests: Add errno and perror.
90816         * tests/test-poll.c: Use ioctl, not ioctlsocket.
90818 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
90820         * tests/test-poll.c: Downgrade minimum needed Winsock version.
90822 2008-09-23  Bruno Haible  <bruno@clisp.org>
90824         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
90825         * doc/glibc-functions/*: Likewise.
90827 2008-09-23  Simon Josefsson  <simon@josefsson.org>
90829         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
90830         success.
90832 2008-09-22  Eric Blake  <ebb9@byu.net>
90833             Bruno Haible  <bruno@clisp.org>
90835         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
90836         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
90837         supply %A but mishandle pseudo-NaN.
90838         Reported by Simon Josefsson.
90840 2008-09-21  Bruno Haible  <bruno@clisp.org>
90842         * tests/test-lock.c (main): Tweak skip message.
90843         * tests/test-tls.c (main): Likewise.
90845 2008-09-21  Bruno Haible  <bruno@clisp.org>
90847         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
90848         whether 'struct sigaction' has sa_sigaction here...
90849         (gl_PREREQ_SIG_HANDLER_H): ... not here.
90850         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
90852 2008-09-21  Bruno Haible  <bruno@clisp.org>
90854         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
90855         section.
90856         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
90857         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
90858         the new section.
90859         (Support for obsolete systems lacking POSIX:2001): New section.
90860         (String handling <string.h>): Move strdup to the new section.
90861         Suggested by Simon Josefsson and Paolo Bonzini.
90863 2008-09-21  Bruno Haible  <bruno@clisp.org>
90865         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
90866         exponents in %e and %g results on 'long double'. Needed for mingw's
90867         improved *printf functions.
90868         * tests/test-vasprintf-posix.c (test_function): Likewise.
90869         * tests/test-snprintf-posix.h (test_function): Likewise.
90870         * tests/test-sprintf-posix.h (test_function): Likewise.
90871         Reported by Eric Blake.
90873 2008-09-21  Bruno Haible  <bruno@clisp.org>
90875         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
90876         * tests/test-sprintf-posix.h (test_function): Likewise.
90878 2008-09-21  Bruno Haible  <bruno@clisp.org>
90880         * modules/getpass (Depends-on): Add strdup-posix.
90882         New module 'strdup-posix'.
90883         * modules/strdup-posix: New file.
90884         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
90885         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
90886         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
90887         REPLACE_STRDUP.
90888         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
90889         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
90890         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90891         strdup-posix.
90893         * modules/strdup (Depends-on): Remove malloc-posix.
90895 2008-09-20  Bruno Haible  <bruno@clisp.org>
90897         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
90898         Wildenhues.
90900 2008-09-20  Bruno Haible  <bruno@clisp.org>
90902         Ensure that wint_t gets defined on IRIX 5.3.
90903         * lib/wchar.in.h (wint_t): Define if not defined by the system.
90904         * lib/wctype.in.h (wint_t): Likewise.
90905         (__wctype_wint_t): Remove type.
90906         (isw*): Use wint_t instead of __wctype_wint_t.
90907         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
90908         * modules/wchar (Files): Add m4/wint_t.m4.
90909         (Makefile.am): Substitute HAVE_WINT_T.
90910         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
90911         * tests/test-wctype.c: Check that wint_t is defined.
90912         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
90913         * doc/posix-headers/wctype.texi: Likewise.
90914         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
90916 2008-09-18  Bruno Haible  <bruno@clisp.org>
90918         * gnulib-tool (func_exit): Update comment.
90920 2008-09-18  Simon Josefsson  <simon@josefsson.org>
90922         * modules/getaddrinfo (Depends-on): Remove strdup, this module
90923         assumes strdup exists and does not depend on strdup to return
90924         ENOMEM on out of memory conditions.
90926 2008-09-18  Bruno Haible  <bruno@clisp.org>
90928         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
90929         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
90930         digits for the exponent.
90932 2008-09-18  Jim Meyering  <meyering@redhat.com>
90933             Bruno Haible  <bruno@clisp.org>
90935         * lib/vasnprintf.c (decimal_point_char): Define also if
90936         NEED_PRINTF_INFINITE_LONG_DOUBLE.
90938 2008-09-16  Bruno Haible  <bruno@clisp.org>
90939         and Eric Blake  <ebb9@byu.net>
90941         vasnprintf: support Irix 5.3
90942         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
90943         that mishandle long double infinity.
90944         Reported by Tom G. Christensen.
90946 2008-09-16  Bruno Haible  <bruno@clisp.org>
90948         * doc/glibc-functions/scandir.texi: Mention the function is missing on
90949         Solaris 9.
90950         * doc/glibc-functions/alphasort.texi: Likewise.
90951         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
90953 2008-09-16  Jim Meyering  <meyering@redhat.com>
90955         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
90956         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
90957         a umask modification leak out of a subshell.  Otherwise, the
90958         opensolaris /bin/sh would be accepted and thus cause unwarranted
90959         failures in the coreutils test suite.
90961 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
90963         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
90964         to succeed.
90966 2008-09-16  Jim Meyering  <meyering@redhat.com>
90968         avoid spurious test failure when library is built without ACL support
90969         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
90970         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
90971         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
90972         * tests/test-copy-acl.sh: Likewise.
90974 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90976         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
90977         based on character occurrence counts.
90979 2008-09-15  Eric Blake  <ebb9@byu.net>
90981         tests: avoid some compiler warnings
90982         * tests/test-memchr.c (main): Pass NULL indirectly.
90983         * tests/test-closein.c (main): Avoid unused variable.
90985 2008-09-15  Bruno Haible  <bruno@clisp.org>
90987         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
90988         are missing on OpenBSD 4.0 individually.
90989         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
90991 2008-09-15  Bruno Haible  <bruno@clisp.org>
90993         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
90994         * doc/posix-functions/strerror.texi: Mention also Cygwin.
90995         * doc/posix-functions/perror.texi: Likewise.
90996         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
90997         is missing.
90998         Reported by Eric Blake.
91000         * lib/errno.in.h: Use replacement values >= 2000.
91001         Reported by Eric Blake.
91003 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91005         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
91006         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
91007         limit.
91008         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
91009         compareseq was aborted.
91011 2008-09-14  Bruno Haible  <bruno@clisp.org>
91013         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
91014         yvec_edit_count.
91015         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
91016         (fstrcmp_bounded): Simplify result computation accordingly.
91018 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91020         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
91021         (fstrcmp): Define in terms of fstrcmp_bounded.
91022         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
91023         lower_bound argument.
91024         Return quickly if the result is certainly < lower_bound.
91025         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
91027 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91029         * lib/diffseq.h (EARLY_ABORT): New macro.
91030         (compareseq): Change return type to bool. Return true when EARLY_ABORT
91031         evaluates to true.
91033 2008-09-14  Bruno Haible  <bruno@clisp.org>
91035         * modules/perror-tests: New file.
91036         * tests/test-perror.sh: New file.
91037         * tests/test-perror.c: New file.
91039         New module 'perror'.
91040         * lib/stdio.in.h (perror): New declaration.
91041         * lib/perror.c: New file.
91042         * m4/perror.m4: New file.
91043         * modules/perror: New file.
91044         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
91045         * doc/posix-functions/perror.texi: Mention the perror module.
91046         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
91047         REPLACE_PERROR.
91048         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
91049         REPLACE_PERROR.
91051 2008-09-14  Bruno Haible  <bruno@clisp.org>
91053         * modules/stdio (Makefile.am): Reorder to match the order in
91054         lib/stdio.in.h.
91055         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
91057 2008-09-13  Bruno Haible  <bruno@clisp.org>
91059         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
91061 2008-09-13  Bruno Haible  <bruno@clisp.org>
91063         Extend strerror to cover the added errno values.
91064         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
91065         (rpl_strerror): Provide error messages for the added errno values and
91066         for the WSA* values.
91067         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
91068         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
91069         strerror.
91070         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
91071         * modules/strerror (Depends-on): Add errno.
91072         * doc/posix-functions/strerror.texi: Document the change.
91073         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
91074         and EOVERFLOW.
91076 2008-09-13  Bruno Haible  <bruno@clisp.org>
91078         * modules/EOVERFLOW: Remove file.
91079         * m4/eoverflow.m4: Remove file.
91080         * modules/EOVERFLOW-tests: Remove file.
91081         * tests/test-EOVERFLOW.c: Remove file.
91082         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
91083         * modules/ftell (Depends-on): Likewise.
91084         * modules/getdelim (Depends-on): Likewise.
91085         * modules/getugroups (Depends-on): Likewise.
91086         * modules/poll (Depends-on): Likewise.
91087         * modules/snprintf (Depends-on): Likewise.
91088         * modules/sprintf-posix (Depends-on): Likewise.
91089         * modules/vasnprintf (Depends-on): Likewise.
91090         * modules/vasprintf (Depends-on): Likewise.
91091         * modules/vfprintf-posix (Depends-on): Likewise.
91092         * modules/vsnprintf (Depends-on): Likewise.
91093         * modules/vsprintf-posix (Depends-on): Likewise.
91094         * modules/xvasprintf (Depends-on): Likewise.
91095         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
91096         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
91097         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
91098         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
91099         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
91100         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
91101         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
91102         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
91103         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
91104         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
91105         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
91106         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
91107         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
91108         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
91109         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
91110         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
91111         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
91112         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
91113         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
91114         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
91115         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
91116         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
91117         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
91118         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
91119         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
91120         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
91121         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
91122         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
91123         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
91124         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
91125         * MODULES.html.sh: Remove EOVERFLOW.
91126         * NEWS: Mention the change.
91128 2008-09-13  Bruno Haible  <bruno@clisp.org>
91130         * modules/errno-tests: New file.
91131         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
91133         * lib/errno.in.h: New file.
91134         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
91135         * modules/errno: New file.
91136         * doc/posix-headers/errno.texi: Update documentation.
91137         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
91139 2008-09-13  Bruno Haible  <bruno@clisp.org>
91141         * tests/test-poll.c: Use #if for native Windows, rather than testing
91142         __MSVCRT__.
91144 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91145             Bruno Haible  <bruno@clisp.org>
91147         * lib/glob.c: Don't include <pwd.h> on native Windows.
91148         (WINDOWS32): New macro.
91149         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
91151 2008-09-13  Bruno Haible  <bruno@clisp.org>
91153         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
91154         (ETIMEDOUT): Remove macro.
91155         (glthread_cond_timedwait_multithreaded): New declaration.
91156         (glthread_cond_timedwait): Use it.
91157         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
91158         (glthread_cond_timedwait_multithreaded): New function.
91160 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
91162         * modules/poll-tests: Do not check for io.h.
91163         * tests/test-poll.c: Check for __MSVCRT__ instead.
91165 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
91167         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
91168         * modules/poll-tests: Add inet_pton, stdbool, sockets.
91169         * tests/test-poll.c: Use them.  Use _pipe on Windows.
91171 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
91173         * modules/poll-tests: New.
91174         * tests/test-poll.c: New.
91176 2008-09-12  Eric Blake  <ebb9@byu.net>
91178         frexp: test for NetBSD failure on -0.0
91179         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
91180         not all, bugs from NetBSD 3.0 have been fixed.
91181         * doc/posix-functions/frexp.texi (frexp): Document bug.
91182         Reported by Thomas Klausner.
91184         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
91185         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
91186         literal -0.0.
91187         Reported by Jonathan C. Patschke <jp@centtech.com>.
91189 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91191         * lib/glthread/cond.h: Use dummy implementation also if
91192         USE_WIN32_THREADS.
91194 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91196         * modules/fnmatch-posix (License): Change to LGPLv2+.
91197         * modules/fnmatch-gnu (License): Likewise.
91199 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91201         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
91203 2008-09-11  Jim Meyering  <meyering@redhat.com>
91205         * users.txt: Add gtk-vnc.
91207 2008-09-08  Simon Josefsson  <simon@josefsson.org>
91209         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
91210         rotate amounts.
91212         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
91213         required for 16-bit and 8-bit rotates.
91214         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
91215         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
91216         UINT8_MAX instead of hard-coded constants.
91217         Suggested by Paul Eggert.
91219 2008-09-07  Bruno Haible  <bruno@clisp.org>
91221         * tests/test-striconveh.c (main): Check behaviour when converting from
91222         UTF-7.
91224         Make striconveh work better with stateful encodings.
91225         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
91226         that iconv does not increment the inptr when returning -1/EINVAL.
91228 2008-09-07  Bruno Haible  <bruno@clisp.org>
91230         * build-aux/config.rpath: Update according to libtool-2.2.6.
91231         * build-aux/config.libpath: Likewise.
91233 2008-09-06  Bruno Haible  <bruno@clisp.org>
91235         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
91236         * lib/freadptr.c (freadptr): Likewise.
91237         * lib/freadseek.c (freadptrinc): Likewise.
91238         Reported by Simon Josefsson.
91240 2008-09-06  Bruno Haible  <bruno@clisp.org>
91242         * modules/freadptr (License): Change to LGPLv2+.
91243         * modules/freadseek (License): Likewise.
91244         Suggested by Eric Blake.
91246         * modules/memchr2 (License): Change to LGPLv2+.
91247         Approved by Eric Blake.
91249 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91250             Bruno Haible  <bruno@clisp.org>
91252         Make gnulib-tool work with native 'sed' on AIX.
91253         * gnulib-tool (sed_noop): New variable.
91254         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
91255         func_add_or_update, func_create_testdir): Use it to initialize sed
91256         script variables.
91257         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
91259 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
91260             Bruno Haible  <bruno@clisp.org>
91262         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
91263         also works after #include directives.
91265 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
91267         getdate.y: reject an out-of-range timezone value
91268         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
91269         the range [-24...+24].  When specified with only one or two digits,
91270         * tests/test-getdate.c: Tests for the fix.
91271         * doc/getdate.texi: Document this change.
91273 2008-09-03  Bruno Haible  <bruno@clisp.org>
91275         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
91277 2008-09-02  Simon Josefsson  <simon@josefsson.org>
91279         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
91280         <bruce.korb@gmail.com> with ideas from Ben Pfaff
91281         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
91282         Blake <ebb9@byu.net>.
91284         * tests/test-bitrotate.c: Add more test vectors.
91286 2008-09-02  Eric Blake  <ebb9@byu.net>
91288         vasnprintf-posix: handle large precision via %.*d
91289         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
91290         when handling it ourselves.
91291         * tests/test-vasnprintf-posix.c (test_function): Add test.
91292         * tests/test-snprintf-posix.h (test_function): Likewise.
91293         * tests/test-sprintf-posix.h (test_function): Likewise.
91294         * tests/test-vasprintf-posix.c (test_function): Likewise.
91295         Reported by Alain Guibert.
91297 2008-09-01  Eric Blake  <ebb9@byu.net>
91299         c-stack: make configure-time check more robust
91300         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
91301         successful sigaction call.
91302         Reported by Tom G. Christensen.
91304 2008-09-01  Bruno Haible  <bruno@clisp.org>
91306         New module 'findprog-lgpl'.
91307         * modules/findprog-lgpl: New file.
91308         * lib/findprog-lgpl.c: New file.
91309         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
91310         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
91311         to decide whether to use strdup or xstrdup, concatenated_filename or
91312         xconcatenated_filename.
91314 2008-09-01  Bruno Haible  <bruno@clisp.org>
91316         Split module 'concat-filename' into 'concat-filename' (LGPL) and
91317         'xconcat-filename' (GPL).
91318         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
91319         (License): Change to LGPLv2+.
91320         * modules/xconcat-filename: New file.
91321         * lib/concat-filename.h (concatenated_filename): Change specification.
91322         (xconcatenated_filename): New declaration.
91323         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
91324         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
91325         memory situations.
91326         * lib/xconcat-filename.c: New file.
91327         * NEWS: Mention the change.
91328         * lib/findprog.c: Include concat-filename.h, not filename.h.
91329         (find_in_path): Use xconcatenated_filename instead of
91330         concatenated_filename.
91331         * lib/javacomp.c: Include concat-filename.h, not filename.h.
91332         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
91333         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
91334         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
91335         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
91336         instead of concatenated_filename.
91337         * lib/javaexec.c: Include concat-filename.h, not filename.h.
91338         (execute_java_class): Use xconcatenated_filename instead of
91339         concatenated_filename.
91340         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
91341         * modules/javacomp (Depends-on): Likewise.
91342         * modules/javaexec (Depends-on): Likewise.
91344 2008-09-01  Bruno Haible  <bruno@clisp.org>
91346         Split module 'filename' into 'filename' and 'concat-filename'.
91347         * modules/filename: Keep only lib/filename.h.
91348         (License): Change to LGPLv2+.
91349         * modules/concat-filename: New file, extracted from modules/filename.
91350         * lib/filename.h (concatenated_filename): Remove declaration.
91351         * lib/concat-filename.h: New file, extracted from lib/filename.h.
91352         * lib/concat-filename.c: Include concat-filename.h.
91353         * NEWS: Mention the change.
91355 2008-09-01  Simon Josefsson  <simon@josefsson.org>
91357         * lib/bitrotate.h (rotl8, rotr8): Add.
91359         * modules/bitrotate (configure.ac): Need
91360         AC_REQUIRE([AC_C_INLINE]).
91361         (Description): Mention stdint.h.  Reported by Bruno Haible
91362         <bruno@clisp.org>.
91364         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
91365         Paolo Bonzini <bonzini@gnu.org>.
91367 2008-08-31  Bruno Haible  <bruno@clisp.org>
91369         Assume Solaris specific bi-arch conventions on Solaris systems.
91370         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
91371         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
91372         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
91373         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
91374         like acl_libdirstem.
91375         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
91376         acl_libdirstem.
91377         * NEWS: Mention the change.
91378         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
91380 2008-08-31  Jim Meyering  <meyering@redhat.com>
91382         * lib/strftime.h: Add comments describing the two added arguments.
91384         remove duplicate #include directives
91385         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
91386         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
91388 2008-08-31  Bruno Haible  <bruno@clisp.org>
91390         New module 'sigpipe-die'.
91391         * modules/sigpipe-die: New file.
91392         * lib/sigpipe-die.h: New file.
91393         * lib/sigpipe-die.c: New file.
91394         * MODULES.html.sh (Signal handling): Add sigpipe-die.
91396 2008-08-31  Bruno Haible  <bruno@clisp.org>
91398         Don't override previously installed signal handlers.
91399         * lib/fatal-signal.c (saved_sigactions): New variable.
91400         (uninstall_handlers): Reset the signal to the saved handler, not
91401         to SIG_DFL (except when ignored).
91402         (install_handlers): Save the previous handlers.
91404 2008-08-30  Bruno Haible  <bruno@clisp.org>
91406         * gnulib-tool (func_reset_sigpipe): New function.
91407         (func_get_automake_snippet, func_modules_transitive_closure,
91408         func_import): Invoke it before a join command that reads from stdin,
91409         to avoid "echo: write error: Broken pipe" error messages on stderr.
91410         Reported by Sam Steingold <sds@gnu.org>.
91412 2008-08-30  Bruno Haible  <bruno@clisp.org>
91414         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
91415         Code copied from m4/open.m4.
91416         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
91417         access and the filename ends in a slash. Code copied from lib/open.c.
91418         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
91419         * tests/test-fopen.c (main): Check against bug with trailing slash.
91421 2008-08-29  Bruno Haible  <bruno@clisp.org>
91423         Avoid some "gcc -pedantic" warnings.
91424         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
91425         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
91426         * lib/dirent.in.h: Likewise.
91427         * lib/fcntl.in.h: Likewise.
91428         * lib/float.in.h: Likewise.
91429         * lib/iconv.in.h: Likewise.
91430         * lib/inttypes.in.h: Likewise.
91431         * lib/locale.in.h: Likewise.
91432         * lib/math.in.h: Likewise.
91433         * lib/netinet_in.in.h: Likewise.
91434         * lib/search.in.h: Likewise.
91435         * lib/signal.in.h: Likewise.
91436         * lib/stdarg.in.h: Likewise.
91437         * lib/stdint.in.h: Likewise.
91438         * lib/stdio.in.h: Likewise.
91439         * lib/stdlib.in.h: Likewise.
91440         * lib/string.in.h: Likewise.
91441         * lib/strings.in.h: Likewise.
91442         * lib/sys_select.in.h: Likewise.
91443         * lib/sys_socket.in.h: Likewise.
91444         * lib/sys_stat.in.h: Likewise.
91445         * lib/sys_time.in.h: Likewise.
91446         * lib/sysexits.in.h: Likewise.
91447         * lib/time.in.h: Likewise.
91448         * lib/unistd.in.h: Likewise.
91449         * lib/wchar.in.h: Likewise.
91450         * lib/wctype.in.h: Likewise.
91451         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
91452         * modules/fchdir (Makefile.am): Likewise.
91453         * modules/fcntl (Makefile.am): Likewise.
91454         * modules/float (Makefile.am): Likewise.
91455         * modules/iconv_open (Makefile.am): Likewise.
91456         * modules/inttypes (Makefile.am): Likewise.
91457         * modules/locale (Makefile.am): Likewise.
91458         * modules/math (Makefile.am): Likewise.
91459         * modules/netinet_in (Makefile.am): Likewise.
91460         * modules/search (Makefile.am): Likewise.
91461         * modules/signal (Makefile.am): Likewise.
91462         * modules/stdarg (Makefile.am): Likewise.
91463         * modules/stdint (Makefile.am): Likewise.
91464         * modules/stdio (Makefile.am): Likewise.
91465         * modules/stdlib (Makefile.am): Likewise.
91466         * modules/string (Makefile.am): Likewise.
91467         * modules/strings (Makefile.am): Likewise.
91468         * modules/sys_select (Makefile.am): Likewise.
91469         * modules/sys_socket (Makefile.am): Likewise.
91470         * modules/sys_stat (Makefile.am): Likewise.
91471         * modules/sys_time (Makefile.am): Likewise.
91472         * modules/sysexits (Makefile.am): Likewise.
91473         * modules/time (Makefile.am): Likewise.
91474         * modules/unistd (Makefile.am): Likewise.
91475         * modules/wchar (Makefile.am): Likewise.
91476         * modules/wctype (Makefile.am): Likewise.
91477         Reported by Reuben Thomas <rrt@sc3d.org>.
91479 2008-08-29  Bruno Haible  <bruno@clisp.org>
91481         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
91482         any more.
91484 2008-08-29  Simon Josefsson  <simon@josefsson.org>
91486         * MODULES.html.sh (Misc): Add bitrotate.
91488         * modules/bitrotate: New file.
91490         * lib/bitrotate.h: New file.
91492         * modules/bitrotate-tests: New file.
91494         * tests/test-bitrotate.c: New file.
91496         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
91497         on the bitrotate module.
91499         * lib/arctwo.c: Use new bitrotate module.
91501 2008-08-29  Jim Meyering  <meyering@redhat.com>
91503         bootstrap: merge changes from coreutils
91504         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
91505         of copied files.  Remove a kludge, now that this is fixed.
91506         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
91507         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
91508         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
91510 2008-08-29  Bruno Haible  <bruno@clisp.org>
91512         * MODULES.html.sh: Remove --cvs-urls option.
91514 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
91516         maint.mk: adjust to file name change
91517         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
91519 2008-08-28  Jim Meyering  <meyering@redhat.com>
91521         * modules/getndelim2 (License): Relicense to LGPLv2+.
91522         Approved by Richard Stallman for the version of 1995, and by
91523         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
91525 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
91527         * lib/getdelim.c (flockfile, funlockfile): Make all of them
91528         dummy if one is not available.  Do not touch them if
91529         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
91530         (getc_maybe_unlocked): New.
91531         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
91533 2008-08-26  Eric Blake  <ebb9@byu.net>
91535         doc/INSTALL: resync from autoconf
91536         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
91537         (INSTALL_PRELUDE): Delete; this is done more efficiently by
91538         moving...
91539         * install.texi [!autoconf]: ...here.  Resync from autoconf.
91540         * INSTALL: Regenerate.
91541         * INSTALL.ISO: New file.
91542         * INSTALL.UTF-8: Likewise.
91544 2008-08-26  Jim Meyering  <meyering@redhat.com>
91546         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
91547         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
91548         these definitions conditional, so that they may be overridden, too.
91550 2008-08-26  Bruno Haible  <bruno@clisp.org>
91552         Generate INSTALL file variants with prettier quotes.
91553         * doc/Makefile (INSTALL_PRELUDE): New macro.
91554         (INSTALL): Use it.
91555         (INSTALL.ISO, INSTALL.UTF-8): New rules.
91557 2008-08-26  Bruno Haible  <bruno@clisp.org>
91559         Run makeinfo in an English locale.
91560         * doc/Makefile (MAKEINFO): New variable.
91562 2008-08-26  Bruno Haible  <bruno@clisp.org>
91564         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
91565         Suggested by Eric Blake.
91567 2008-08-25  Bruno Haible  <bruno@clisp.org>
91569         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
91571 2008-08-25  Eric Blake  <ebb9@byu.net>
91573         c-stack: test that stack overflow can be caught
91574         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
91575         that platform allows handling stack overflow; at least OS/2 EMX
91576         has sigaltstack, but crashes before transferring control to
91577         handler on stack overflow.
91578         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
91579         check for HAVE_STACK_OVERFLOW_HANDLING.
91580         Reported by Elbert Pol.
91582 2008-08-25  Bruno Haible  <bruno@clisp.org>
91584         * doc/posix-functions/strftime.texi: Fix description of strftime
91585         module.
91587 2008-08-24  Bruno Haible  <bruno@clisp.org>
91589         * tests/uniwidth/test-uc_width2.c: New file.
91590         * tests/uniwidth/test-uc_width2.sh: New file.
91591         * modules/uniwidth/width-tests (Files): Add the new files.
91592         (TESTS): Add uniwidth/test-uc_width2.sh.
91593         (TESTS_ENVIRONMENT): New variable.
91594         (check_PROGRAMS): Add test-uc_width2.
91595         (test_uc_width2_SOURCES): New variable.
91597         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
91598         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
91599         not 0x00AB.
91600         Reported by Alexander V. Lukyanov <lav@netis.ru>.
91602 2008-08-22  Eric Blake  <ebb9@byu.net>
91604         test-lock, test-tls: mention why a test is skipped
91605         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
91606         skipped.
91607         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
91609         count-one-bits: relax license
91610         * modules/count-one-bits (License): Relicense to LGPLv2+.
91611         Suggested by Ludovic Courtès, approved by Ben Pfaff.
91613 2008-08-22  Andreas Schwab  <schwab@suse.de>
91615         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
91616         Remove spurious space in assignment.
91618 2008-08-21  Simon Josefsson  <simon@josefsson.org>
91620         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
91621         Paul Eggert <eggert@CS.UCLA.EDU>.
91623 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
91625         * modules/gettext: Add m4/threadlib.m4.
91627 2008-08-19  Eric Blake  <ebb9@byu.net>
91629         test-c-stack: fix compilation failure on FreeBSD 5.0
91630         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
91631         headers before <sys/resource.h>.
91632         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
91633         the bug.
91634         Reported by Nelson H. F. Beebe.
91636         strverscmp: migrate from "strverscmp.h" to <string.h>
91637         * modules/string (Makefile.am): Add new hooks.
91638         * modules/strverscmp (Files): Remove strverscmp.h.
91639         (Depends-on): Add string.
91640         (configure.ac): Add indicator.
91641         (Include): Mention new header.
91642         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
91643         defaults.
91644         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
91645         results.
91646         * lib/strverscmp.h: Delete.
91647         * lib/string.in.h (strverscmp): Provide declaration, when needed.
91648         * tests/test-strverscmp.c (includes): Adjust client.
91649         * lib/check-version.c (includes): Likewise.
91650         * NEWS: Document the change.
91652         strverscmp: add unit test
91653         * modules/strverscmp-tests: New file.
91654         * tests/test-strverscmp.c: Likewise.
91656 2008-08-19  Simon Josefsson  <simon@josefsson.org>
91658         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
91659         regarding Windows crypto stuff, from Mono.
91661 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
91663         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
91664         if present, for intel RND.  Return error on failures.
91666 2008-08-18  Ben Pfaff  <blp@gnu.org>
91668         gitlog-to-changelog: give better diagnostic for failed pipe-open
91669         * build-aux/gitlog-to-changelog: Improve error message: suggest
91670         that the version of Git may be too old.
91672 2008-08-18  Simon Josefsson  <simon@josefsson.org>
91674         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
91675         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
91677 2008-08-18  Bruno Haible  <bruno@clisp.org>
91679         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
91680         pthread_in_use().
91682 2008-08-18  Bruno Haible  <bruno@clisp.org>
91684         * lib/glthread/threadlib.c: Include <pthread.h>.
91686 2008-08-18  Bruno Haible  <bruno@clisp.org>
91688         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
91689         glthread_recursive_lock_* macros.
91690         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
91691         Fix syntax error.
91693 2008-08-18  Bruno Haible  <bruno@clisp.org>
91695         * lib/glthread/thread.c: Avoid forcing a context switch right after
91696         thread creation.
91698 2008-08-17  Bruno Haible  <bruno@clisp.org>
91700         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
91701         * lib/glthread/thread.h: Provide Win32 specific implementation.
91702         * modules/thread (Files): Add lib/glthread/thread.c.
91703         (Depends-on): Add lock.
91704         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
91706 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91708         New module 'yield'.
91709         * modules/yield: New file.
91710         * lib/glthread/yield.h: New file.
91711         * m4/yield.m4: New file.
91712         * MODULES.html.sh (Multithreading): Add yield.
91714 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91716         New module 'thread'.
91717         * modules/thread: New file.
91718         * lib/glthread/thread.h: New file.
91719         * m4/thread.m4: New file.
91720         * MODULES.html.sh (Multithreading): Add thread.
91722 2008-08-17  Bruno Haible  <bruno@clisp.org>
91724         * lib/glthread/lock.h: Include <stdlib.h> always.
91725         * lib/glthread/tls.h: Likewise.
91726         * lib/glthread/cond.h: Likewise.
91728 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91730         New module 'cond'.
91731         * modules/cond: New file.
91732         * lib/glthread/cond.h: New file.
91733         * lib/glthread/cond.c: New file.
91734         * m4/cond.m4: New file.
91735         * MODULES.html.sh (Multithreading): Add cond.
91737 2008-08-16  Eric Blake  <ebb9@byu.net>
91739         c-stack: fix regression on Irix 5.3 from 2008-06-21
91740         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
91741         sa_sigaction...
91742         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
91743         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
91744         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
91745         * modules/signal (Makefile.am): Use the value.
91746         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
91747         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
91748         * doc/posix-headers/signal.texi (signal.h): Document this
91749         portability issue.
91750         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
91751         Reported by Tom G. Christensen.
91753 2008-08-17  Bruno Haible  <bruno@clisp.org>
91755         New module 'threadlib'.
91756         * modules/threadlib: New file.
91757         * lib/glthread/threadlib.c: New file, extracted from
91758         lib/glthread/lock.c.
91759         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
91760         functions.
91761         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
91762         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
91763         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
91764         macros.
91765         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
91766         (gl_DISABLE_THREADS): Remove macro.
91767         * modules/lock (Files): Remove build-aux/config.rpath.
91768         (Depends-on): Remove havelib. Add threadlib.
91769         (configure.ac-early): Remove section.
91770         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
91771         * modules/tls (Depends-on): Remove lock. Add threadlib.
91772         (Link): New section, copied from threadlib.
91773         * MODULES.html.sh (Multithreading): Add threadlib.
91775 2008-08-14  Bruno Haible  <bruno@clisp.org>
91777         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
91778         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
91779         glthread_rwlock_unlock, glthread_rwlock_destroy,
91780         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
91781         glthread_recursive_lock_destroy): Define as macros always.
91782         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
91783         glthread_lock_lock.
91784         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
91785         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
91786         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
91787         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
91788         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
91789         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
91790         (glthread_recursive_lock_lock_func): Renamed from
91791         glthread_recursive_lock_lock.
91792         (glthread_recursive_lock_unlock_func): Renamed from
91793         glthread_recursive_lock_unlock.
91794         (glthread_recursive_lock_destroy_func): Renamed from
91795         glthread_recursive_lock_destroy.
91797 2008-08-14  Bruno Haible  <bruno@clisp.org>
91799         * lib/glthread/lock.h: Renamed from lib/lock.h.
91800         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
91801         * lib/glthread/tls.h: Renamed from lib/tls.h.
91802         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
91803         * lib/fstrcmp.c: Update includes.
91804         * lib/strsignal.c: Update includes.
91805         * modules/lock (Files, Makefile.am): Update.
91806         (Include): Change to "glthread/lock.h".
91807         * modules/tls (Files, Makefile.am): Update.
91808         (Include): Change to "glthread/tls.h".
91809         * tests/test-lock.c: Update includes.
91810         * tests/test-tls.c: Update includes.
91811         * NEWS: Mention the renamed header files.
91813 2008-08-11  Jim Meyering  <meyering@redhat.com>
91815         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
91817 2008-08-11  Eric Blake  <ebb9@byu.net>
91819         test-c-stack: avoid C99-ism
91820         * tests/test-c-stack.c (main): Fix whitespace, move declaration
91821         before statement.
91822         Reported by Alain Guibert.
91824 2008-08-10  Jim Meyering  <meyering@redhat.com>
91826         ensure that return value of uinttostr et al are not ignored
91827         * lib/inttostr.h (__GNUC_PREREQ): Define.
91828         (__attribute_warn_unused_result__): Define.
91829         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
91831 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
91833         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
91834         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
91836 2008-08-07  Jim Meyering  <meyering@redhat.com>
91838         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
91840         * modules/mkstemp (License): Relicense under LGPLv2+.
91841         * modules/tempname (License): Likewise.
91843 2008-08-06  Bruno Haible  <bruno@clisp.org>
91845         * lib/poll.c (poll): Further micro-optimization.
91847 2008-08-06  Jim Meyering  <meyering@redhat.com>
91849         inet_pton.c: use locale-independent tolower
91850         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
91851         (inet_pton6): Use c_tolower rather than tolower.
91852         * modules/inet_pton (Depends-on): Add c-ctype.
91854 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
91856         * lib/poll.c (poll): Avoid division when timeout is 0, cache
91857         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
91859 2008-08-06  Jim Meyering  <meyering@redhat.com>
91861         * modules/inet_pton (License): Relicense under LGPLv2+.
91863 2008-08-03  Bruno Haible  <bruno@clisp.org>
91865         Additional non-aborting API for lock and tls.
91866         * lib/lock.h: Include <errno.h>.
91867         (glthread_lock_init): New macro/function.
91868         (gl_lock_init): Define as wrapper around glthread_lock_init.
91869         (glthread_lock_lock): New macro/function.
91870         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
91871         (glthread_lock_unlock): New macro/function.
91872         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
91873         (glthread_lock_destroy): New macro/function.
91874         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
91875         (glthread_rwlock_init): New macro/function.
91876         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
91877         (glthread_rwlock_rdlock): New macro/function.
91878         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
91879         (glthread_rwlock_wrlock): New macro/function.
91880         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
91881         (glthread_rwlock_unlock): New macro/function.
91882         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
91883         (glthread_rwlock_destroy): New macro/function.
91884         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
91885         (glthread_recursive_lock_init): New macro/function.
91886         (gl_recursive_lock_init): Define as wrapper around
91887         glthread_recursive_lock_init.
91888         (glthread_recursive_lock_lock): New macro/function.
91889         (gl_recursive_lock_lock): Define as wrapper around
91890         glthread_recursive_lock_lock.
91891         (glthread_recursive_lock_unlock): New macro/function.
91892         (gl_recursive_lock_unlock): Define as wrapper around
91893         glthread_recursive_lock_unlock.
91894         (glthread_recursive_lock_destroy): New macro/function.
91895         (gl_recursive_lock_destroy): Define as wrapper around
91896         glthread_recursive_lock_destroy.
91897         (glthread_once): New macro/function.
91898         (gl_once): Define as wrapper around glthread_once.
91899         Update function declarations.
91900         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
91901         glthread_rwlock_init. Return error code.
91902         (glthread_rwlock_rdlock_multithreaded): Renamed from
91903         glthread_rwlock_rdlock. Return error code.
91904         (glthread_rwlock_wrlock_multithreaded): Renamed from
91905         glthread_rwlock_wrlock. Return error code.
91906         (glthread_rwlock_unlock_multithreaded): Renamed from
91907         glthread_rwlock_unlock. Return error code.
91908         (glthread_rwlock_destroy_multithreaded): Renamed from
91909         glthread_rwlock_destroy. Return error code.
91910         (glthread_recursive_lock_init_multithreaded): Renamed from
91911         glthread_recursive_lock_init. Return error code.
91912         (glthread_recursive_lock_lock_multithreaded): Renamed from
91913         glthread_recursive_lock_lock. Return error code.
91914         (glthread_recursive_lock_unlock_multithreaded): Renamed from
91915         glthread_recursive_lock_unlock. Return error code.
91916         (glthread_recursive_lock_destroy_multithreaded): Renamed from
91917         glthread_recursive_lock_destroy. Return error code.
91918         (glthread_once_call): Make static.
91919         (glthread_once_multithreaded): Renamed from glthread_once.
91920         * lib/tls.h: Include <errno.h>.
91921         (glthread_tls_key_init): New macro/function.
91922         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
91923         (glthread_tls_set): New macro/function.
91924         (gl_tls_set): Define as wrapper around glthread_tls_set.
91925         (glthread_tls_key_destroy): New macro/function.
91926         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
91927         Update function declarations.
91928         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
91929         glthread_tls_get.
91930         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
91932 2008-08-04  Eric Blake  <ebb9@byu.net>
91934         gnumakefile: use space, not TAB, outside of targets
91935         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
91937 2008-08-02  Jim Meyering  <meyering@redhat.com>
91939         getdate.y: avoid locale-dependent date parsing failure
91940         In Turkish locales, getdate would fail to recognize keywords
91941         containing a lowercase "i".  The solution is not to rely on
91942         locale-sensitive case-conversion.
91943         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
91944         (lookup_word): Use c_toupper in place of toupper.
91945         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
91946         Reported by Vefa Bicakci <bicave@superonline.com> in
91947         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
91948         * modules/getdate (Depends-on): Add c-ctype.
91950 2008-08-02  Bruno Haible  <bruno@clisp.org>
91952         * gnulib-tool (func_import): When updating or creating a .gitignore
91953         file, prepend each added line with a slash, and ignore leading slashes
91954         from the existing lines.
91955         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
91957 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91959         Portability fix for GNU make 3.79.1.
91960         * top/GNUmakefile: Avoid 'else COND', which older GNU make
91961         versions do not understand.
91963 2008-08-01  Bruno Haible  <bruno@clisp.org>
91965         Work around bug of HP-UX 10.20 cc with -0.0 literal.
91966         * tests/test-isnanf.h (zero): New variable.
91967         (main): Avoid literal -0.0f.
91968         * tests/test-isnand.h (zero): New variable.
91969         (main): Avoid literal -0.0.
91970         * tests/test-isnanl.h (zero): New variable.
91971         (main): Avoid literal -0.0L.
91972         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
91973         (test_float, test_double, test_long_double): Avoid literals -0.0f,
91974         -0.0, -0.0L.
91975         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
91976         (test_signbitd): Avoid literal -0.0.
91977         (test_signbitl): Avoid literal -0.0L.
91978         * tests/test-ceilf1.c (zero): New variable.
91979         (main): Avoid literal -0.0f.
91980         * tests/test-ceill.c (zero): New variable.
91981         (main): Avoid literal -0.0L.
91982         * tests/test-floorf1.c (zero): New variable.
91983         (main): Avoid literal -0.0f.
91984         * tests/test-floorl.c (zero): New variable.
91985         (main): Avoid literal -0.0L.
91986         * tests/test-roundf1.c (zero): New variable.
91987         (main): Avoid literal -0.0f.
91988         * tests/test-round1.c (zero): New variable.
91989         (main): Avoid literal -0.0.
91990         * tests/test-roundl.c (zero): New variable.
91991         (main): Avoid literal -0.0L.
91992         * tests/test-truncf1.c (zero): New variable.
91993         (main): Avoid literal -0.0f.
91994         * tests/test-trunc1.c (zero): New variable.
91995         (main): Avoid literal -0.0.
91996         * tests/test-truncl.c (zero): New variable.
91997         (main): Avoid literal -0.0L.
91998         * tests/test-frexp.c (zero): New variable.
91999         (main): Avoid literal -0.0.
92000         * tests/test-frexpl.c (zero): New variable.
92001         (main): Avoid literal -0.0L.
92002         * tests/test-ldexpl.c (zero): New variable.
92003         (main): Avoid literal -0.0L.
92004         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
92005         (zerod, zerol): New variables.
92006         (test_function): Avoid literals -0.0, -0.0L.
92007         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
92008         (zerod, zerol): New variables.
92009         (test_function): Avoid literals -0.0, -0.0L.
92010         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
92011         (zerod, zerol): New variables.
92012         (test_function): Avoid literals -0.0, -0.0L.
92013         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
92014         (zerod, zerol): New variables.
92015         (test_function): Avoid literals -0.0, -0.0L.
92016         * tests/test-strtod.c (zero): New variable.
92017         (main): Avoid literal -0.0.
92018         Reported by Jonathan C. Patschke <jp@centtech.com>.
92020 2008-07-31  Jim Meyering  <meyering@redhat.com>
92022         sha256.h: correct definition of SHA224_DIGEST_SIZE
92023         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
92024         Reported by Paulie Pena IV <paulie4@gmail.com>.
92025         Define as 224 / 8, rather than as a literal.
92026         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
92027         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
92028         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
92030 2008-07-31  Bruno Haible  <bruno@clisp.org>
92032         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
92033         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
92034         Reported by Jonathan Patschke <jp@centtech.com>.
92036 2008-07-31  Bruno Haible  <bruno@clisp.org>
92038         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
92039         Reported by Paolo Bonzini <bonzini@gnu.org>.
92041 2008-07-30  Eric Blake  <ebb9@byu.net>
92043         test-strtod: allow compilation without -lm
92044         * tests/test-strtod.c (main): Avoid link dependence on fabs.
92045         Reported by Dennis Clarke <blastwave@gmail.com>.
92047 2008-07-28  Jim Meyering  <meyering@redhat.com>
92049         bootstrap: work also when there are no .po files in po/
92050         * build-aux/bootstrap (update_po_files): Complete the change
92051         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
92053 2008-07-27  Jim Meyering  <meyering@redhat.com>
92055         * users.txt: Add zile.
92057 2008-07-26  Ben Pfaff  <blp@gnu.org>
92059         Add missing dependencies on new m4/exponent[fdl].m4 files.
92060         * modules/isnanf-nolibm: Add m4/exponentf.m4.
92061         * modules/isnand-nolibm: Add m4/exponentd.m4.
92062         * modules/isnanl-nolibm: Add m4/exponentl.m4.
92063         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
92064         m4/isnan[fdl].m4, because the macros actually used moved.
92065         Reported by Jim Meyering.
92067 2008-07-14  Ben Pfaff  <blp@gnu.org>
92069         Add isinf module.
92070         * lib/isinf.c: New file.
92071         * lib/math.in.h: Define isinf macro if we have decided to replace
92072         it.
92073         * m4/isinf.m4: New file.
92074         * m4/math_h.m4: Initialize and substitute variables for isinf
92075         module.
92076         * modules/isinf: New file.
92077         * modules/isinf-tests: New file.
92078         * modules/math: Add substitutions for new module.
92079         * tests/test-isinf.c: New file.
92080         * doc/posix-functions/isinf.texi: Mention new module.
92081         * MODULES.html.sh: Mention new module.
92083 2008-07-14  Ben Pfaff  <blp@gnu.org>
92085         Factor out some macros for use by additional modules.
92086         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
92087         exponentf.m4.
92088         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
92089         exponentd.m4.
92090         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
92091         file exponentl.m4.
92092         * m4/exponentf.m4: New file.
92093         * m4/exponentd.m4: New file.
92094         * m4/exponentl.m4: New file.
92095         * modules/isnanf: Use new file m4/exponentf.m4.
92096         * modules/isnand: Use new file m4/exponentd.m4.
92097         * modules/isnanl: Use new file m4/exponentl.m4.
92099 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
92101         mktime.c: normalize tp->tm_isdst value to -1/0/1.
92102         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
92103         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
92104         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
92106         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
92107         readlink on platforms without PATH_MAX.
92109 2008-07-21  Eric Blake  <ebb9@byu.net>
92111         Warn, not fail, on stale version.
92112         * top/GNUmakefile (_curr-ver): Tone down previous patch.
92114         Don't allow installation with stale devel version number.
92115         * top/GNUmakefile (_is-install-target): New macro.
92116         (_curr-ver): Forbid installation with stale version number.
92118 2008-07-20  Bruno Haible  <bruno@clisp.org>
92120         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
92121         TESTS_ENVIRONMENT.
92122         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
92124 2008-07-20  Bruno Haible  <bruno@clisp.org>
92126         * lib/c-stack.h (c_stack_action): Add documentation.
92127         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
92129 2008-07-20  Bruno Haible  <bruno@clisp.org>
92131         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
92132         * modules/readlink (License): Likewise.
92134 2008-07-17  Eric Blake  <ebb9@byu.net>
92136         * modules/c-stack (Link): Fix typo.
92138         Make c-stack use libsigsegv, when available.
92139         * modules/c-stack (Depends-on): Add libsigsegv.
92140         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
92141         needed.
92142         * lib/c-stack.c (SIGSTKSZ): Define fallback.
92143         (segv_handler, overflow_handler, c_stack_action)
92144         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
92145         implementation when libsigsegv is available, but only when using
92146         the library is necessary.
92147         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
92148         comment, explaining why XSI check fails on Linux.
92149         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
92150         * tests/test-c-stack2.sh: Tweak skip message.
92151         * NEWS: Document new link-time requirements.
92153 2008-07-16  Eric Blake  <ebb9@byu.net>
92155         c-stack: Expose false positives when not using libsigsegv.
92156         * modules/c-stack-tests (Files): Expand test.
92157         * tests/test-c-stack.c (main): Add means to conditionally trigger
92158         non-overflow SIGSEGV.
92159         * tests/test-c-stack2.sh: New file.
92161 2008-07-14  Bruno Haible  <bruno@clisp.org>
92163         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
92164         Reported by Eric Blake.
92166 2008-07-14  Sam Steingold  <sds@gnu.org>
92167             Bruno Haible  <bruno@clisp.org>
92169         New module libsigsegv.
92170         * modules/libsigsegv: New file.
92171         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
92172         modifications.
92173         * MODULES.html.sh (Signal handling): New section.
92175 2008-07-14  Bruno Haible  <bruno@clisp.org>
92177         * modules/unictype/ctype-* (Description): Add the word "function".
92178         Improves the resulting doc in MODULES.html.
92180 2008-07-12  Ben Pfaff  <blp@gnu.org>
92182         Add longlong module.
92183         * modules/longlong: New file.
92185 2008-07-12  Bruno Haible  <bruno@clisp.org>
92187         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
92188         to empty.
92190 2008-07-10  Ben Pfaff  <blp@gnu.org>
92192         Add isnan module.
92193         * doc/posix-functions/isnan.texi: Mention new module.
92194         * lib/math.in.h: Define isnan macro if we have decided to replace
92195         it.
92196         * m4/isnan.m4: New file.
92197         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
92198         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
92199         also.
92200         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
92201         redundancy.
92202         * m4/math_h.m4: Initialize and substitute variables for isnan
92203         module.
92204         * modules/isnan: New file.
92205         * modules/isnan-tests: New file.
92206         * modules/math: Add substitutions for new module.
92207         * tests/test-isnan.c: New file.
92208         * MODULES.html.sh: Mention new module.
92210 2008-07-10  Ben Pfaff  <blp@gnu.org>
92212         Add isnanf module.
92213         * lib/isnanf.m4: New file.
92214         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
92215         (gl_HAVE_ISNANF_IN_LIBM): New macro.
92216         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
92217         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
92218         * modules/isnanf: New file.
92219         * modules/isnanf-tests: New file.
92220         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
92221         files.
92222         * tests/test-isnanf-nolibm.c: factored most of its contents into
92223         new file tests/test-isnanf.h.
92224         * tests/test-isnanf.h: New file.
92225         * tests/test-isnanf.c: New file.
92226         * MODULES.html.sh: Mention new module.
92227         * doc/glibc-functions/isnanf.texi: Mention new module.
92229 2008-07-10  Ben Pfaff  <blp@gnu.org>
92231         Add isnand module.
92232         * lib/isnand.h: New file.
92233         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
92234         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
92235         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
92236         functionality also.
92237         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
92238         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
92239         (gl_HAVE_ISNAND_IN_LIBM): New macro.
92240         * modules/isnand: New file.
92241         * modules/isnand-tests: New file.
92242         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
92243         files.
92244         * tests/test-isnand-nolibm.c: factored most of its contents into
92245         new file tests/test-isnand.h.
92246         * tests/test-isnand.h: New file.
92247         * tests/test-isnand.c: New file.
92248         * MODULES.html.sh: Mention new module.
92250 2008-07-10  Ben Pfaff  <blp@gnu.org>
92252         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
92253         * lib/isnand.h: Rename lib/isnand-nolibm.h.
92254         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
92255         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
92256         * modules/isnanf-nolibm: Update references to renamed files.
92257         * modules/isnand-nolibm: Likewise.
92258         * modules/isnanf-nolibm-tests: Likewise.
92259         * modules/isnand-nolibm-tests: Likewise.
92260         * lib/frexp.c: Likewise.
92261         * lib/isfinite.c: Likewise.
92262         * lib/signbitd.c: Likewise.
92263         * lib/signbitf.c: Likewise.
92264         * lib/vasnprintf.c: Likewise.
92265         * tests/test-ceilf1.c: Likewise.
92266         * tests/test-ceilf2.c: Likewise.
92267         * tests/test-floorf1.c: Likewise.
92268         * tests/test-floorf2.c: Likewise.
92269         * tests/test-frexp.c: Likewise.
92270         * tests/test-round1.c: Likewise.
92271         * tests/test-round2.c: Likewise.
92272         * tests/test-roundf1.c: Likewise.
92273         * tests/test-strtod.c: Likewise.
92274         * tests/test-trunc1.c: Likewise.
92275         * tests/test-trunc2.c: Likewise.
92276         * tests/test-truncf1.c: Likewise.
92277         * tests/test-truncf2.c: Likewise.
92278         * NEWS: Mention the renamed header files.
92280 2008-07-11  Jim Meyering  <meyering@redhat.com>
92282         vc-list-files: make the last-resort awk code more portable
92283         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
92284         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
92285         does not support it.
92287 2008-07-10  Eric Blake  <ebb9@byu.net>
92289         Work with tar's bootstrap.
92290         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
92291         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
92292         an m4 comment.
92294 2008-07-09  Jim Meyering  <meyering@redhat.com>
92296         posix-shell.m4: fix typo that made this test malfunction
92297         * m4/posix-shell.m4: Remove capitalization in variable name.
92299 2008-07-08  Bruno Haible  <bruno@clisp.org>
92301         * m4/onceonly.m4: Update comments.
92302         Reported by Ben Pfaff <blp@cs.stanford.edu>.
92304 2008-07-04  Jim Meyering  <meyering@redhat.com>
92306         * users.txt: Add vc-dwim.
92307         (bison, coreutils): Use the gitweb URL.
92309 2008-07-03  Jim Meyering  <meyering@redhat.com>
92311         * users.txt: Add libffcall.  From Sam Steingold.
92313 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
92315         getdate.y: do not ignore TZ with relative day, month or year offset
92316         * lib/getdate.y (get_date): Move the tz-handling block to follow the
92317         relative-date-handling, since otherwise, the latter would clobber the
92318         sole output (an updated Start value) of the tz-handling block.
92319         * tests/test-getdate.c: Tests for the fix
92321 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92323         Recognize 'foo_LIBRARIES += libgnu.a'.
92324         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
92325         makefile snippet has already specified an installation location,
92326         also using '+='.
92328 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
92330         getdate.y: factor out common actions
92331         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
92332         Use them in place of open-coded actions.
92334 2008-07-01  Simon Josefsson  <simon@josefsson.org>
92336         Add self-test for getdate module.
92337         * modules/getdate-tests: New file.
92338         * tests/test-getdate.c: New file.
92340 2008-06-29  Bruno Haible  <bruno@clisp.org>
92342         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
92343         .gitignore.
92344         Reported by Sylvain Beucler <beuc@beuc.net>.
92346 2008-06-29  Bruno Haible  <bruno@clisp.org>
92348         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
92349         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
92351 2008-06-29  Bruno Haible  <bruno@clisp.org>
92353         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
92354         EXTRA_DIST.
92355         Reported by Sylvain Beucler <beuc@beuc.net>.
92357 2008-06-26  Jim Meyering  <meyering@redhat.com>
92359         make several modules depend on the "open" module
92360         This provides slightly increased consistency when opening-for-write
92361         the name of a non-directory spelled with a trailing slash.
92362         * modules/chdir-safer: Likewise.
92363         * modules/chown: Likewise.
92364         * modules/clean-temp: Likewise.
92365         * modules/copy-file: Likewise.
92366         * modules/fchdir: Likewise.
92367         * modules/fcntl-safer: Likewise.
92368         * modules/pipe: Likewise.
92369         * modules/utime: Likewise.
92370         Prompted by Eric Blake and Bruno Haible.
92372 2008-06-24  Andreas Schwab  <schwab@suse.de>
92374         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
92375         literals can be used as initializers for global variables.
92377 2008-06-23  Eric Blake  <ebb9@byu.net>
92379         Make gnulib-cache.m4 easier to diff.
92380         * gnulib-tool (func_import): Allow newlines when reading cached
92381         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
92383 2008-06-23  Bruno Haible  <bruno@clisp.org>
92385         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
92386         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
92387         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
92388         m4/signalblocking.m4.
92389         (gl_PREREQ_SIGACTION): Don't invoke it.
92390         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
92391         gl_PREREQ_SIG_HANDLER_H.
92392         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
92393         Don't check for sigaction here.
92395 2008-06-23  Bruno Haible  <bruno@clisp.org>
92397         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
92398         (install_handlers): Don't set the SA_RESETHAND flag.
92400 2008-06-23  Bruno Haible  <bruno@clisp.org>
92402         * m4/sigaction.m4: Comment fixes.
92403         * lib/signal.in.h: Likewise.
92405 2008-06-23  Eric Blake  <ebb9@byu.net>
92407         Fix typo.
92408         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
92410         Avoid SA_ namespace.
92411         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
92412         Reported by Ralf Wildenhues.
92414         Avoid test failure due to SA_RESTORER.
92415         * tests/test-sigaction.c (SA_MASK): New macro.
92416         (main): Avoid failing due to extension flags being set.
92417         Reported by Jim Meyering.
92419         Revert use of sig-handler.h in sigprocmask.c.
92420         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
92421         it requires the existence of struct sigaction.
92422         * lib/sigprocmask.c (handler_t): Restore typedef.
92423         (rpl_signal, old_handlers): Use local type.
92425 2008-06-22  Bruno Haible  <bruno@clisp.org>
92427         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
92428         conditionally.
92429         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
92431 2008-06-22  Bruno Haible  <bruno@clisp.org>
92433         * doc/posix-functions/siginterrupt.texi: Move note.
92435         * lib/signal.in.h (SA_RESTART): New macro.
92436         * lib/sigaction.c: Update comment.
92438         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
92440         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
92441         (gl_PREREQ_SIGPROCMASK): Invoke it.
92442         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
92444         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
92446         * lib/sigprocmask.c: Update a comment.
92448 2008-06-21  Eric Blake  <ebb9@byu.net>
92450         Use sigaction module rather than signal().
92451         * modules/c-stack (Depends-on): Add sigaction.
92452         * modules/fatal-signal (Depends-on): Likewise.
92453         * modules/nanosleep (Depends-on): Likewise.
92454         * modules/sigprocmask (Files): Add sig-handler.h.
92455         * modules/sigaction (Files): Likewise.
92456         * lib/sig-handler.h (get_handler): New file, suggested by Paul
92457         Eggert.
92458         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
92459         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
92460         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
92461         (init_fatal_signals): Likewise.
92462         * lib/nanosleep.c (rpl_nanosleep): Likewise.
92463         (siginterrupt): Delete fallback.
92464         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
92465         instead.
92466         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
92467         siginterrupt.
92469         New module sigaction, for mingw.
92470         * modules/sigaction: New module...
92471         * modules/sigaction-tests: ...and its test.
92472         * m4/sigaction.m4: New file.
92473         * lib/sigaction.c: Likewise.
92474         * tests/test-sigaction.c: Likewise.
92475         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
92476         * modules/signal (Makefile.am): Likewise.
92477         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
92478         needed.
92479         * doc/posix-headers/signal.texi (signal.h): Mention provided
92480         types.
92481         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
92482         that sigaction is preferable.
92483         * doc/posix-functions/sigaction.texi (sigaction): Mention new
92484         module.
92485         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
92486         sigaction.
92488         Improve robustness of sigprocmask by overriding signal.
92489         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
92490         is in use.
92491         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
92492         (SIGKILL, SIGSTOP): Provide fallbacks.
92493         (rpl_signal): Implement.
92494         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
92495         signal can be called inside handlers.
92497         Fix nanosleep module on mingw.
92498         * modules/nanosleep (Depends-on): Add sys_select.
92499         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
92501         Fix licensing of sigprocmask.
92502         * modules/raise (License): Relicense as LGPL.
92504 2008-06-21  Bruno Haible  <bruno@clisp.org>
92506         * lib/propername.c (proper_name_utf8): Don't use the transliterated
92507         result if it contains question marks.
92508         Reported by Michael Geng <linux@michaelgeng.de>.
92510 2008-06-19  Bruno Haible  <bruno@clisp.org>
92512         Fix CVS-ism.
92513         * doc/gnulib.texi: Include updated-stamp.texi.
92514         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
92515         (updated-stamp.texi): New rule.
92516         (gnulib.info): Depend on it.
92517         * doc/.gitignore: Add updated-stamp.texi.
92518         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
92520 2008-06-19  Bruno Haible  <bruno@clisp.org>
92522         * doc/Makefile (gnulib.info): Update and simplify dependencies.
92523         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
92525 2008-06-19  Eric Blake  <ebb9@byu.net>
92527         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
92528         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
92529         Reported by Stepan Kasal.
92531 2008-06-18  Bruno Haible  <bruno@clisp.org>
92533         * lib/fatal-signal.c (init_fatal_signals): Add comment.
92534         Reported by Eric Blake.
92536 2008-06-18  Eric Blake  <ebb9@byu.net>
92538         Work around cygwin 1.5.25 strsignal bug.
92539         * tests/test-strsignal.c: Allow for const char *.
92540         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
92542 2008-06-18  Simon Josefsson  <simon@josefsson.org>
92544         * users.txt: Update URL to article and add author/date
92545         information.
92547 2008-06-17  Bruno Haible  <bruno@clisp.org>
92549         New macro gl_DISABLE_THREADS.
92550         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
92551         if the user did not pass --enable-threads or --disable-threads option.
92552         (gl_DISABLE_THREADS): New macro.
92553         Reported by Eric Blake <ebb9@byu.net>.
92555 2008-06-17  Bruno Haible  <bruno@clisp.org>
92557         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
92558         when the macro ignores it.
92559         Based on a patch by Eric Blake <ebb9@byu.net>.
92561 2008-06-17  Bruno Haible  <bruno@clisp.org>
92563         * modules/tls (License): Change to LGPLv2+.
92564         Reported by Eric Blake.
92566 2008-06-17  Eric Blake  <ebb9@byu.net>
92568         Simplify c-stack prerequisites.
92569         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
92570         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
92571         no longer requires <ucontext.h> to exist.  Optimize setrlimit
92572         check.
92573         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
92574         <sys/resource.h>.
92576         Move c-stack test into testsuite.
92577         * modules/c-stack-tests: New file.
92578         * lib/c-stack.c [DEBUG]: Move test program...
92579         * tests/test-c-stack.c: ...into this new file.  Skip rather than
92580         fail test if sigaltstack is lacking.
92581         * tests/test-c-stack.sh: New driver file.
92583 2008-06-16  Eric Blake  <ebb9@byu.net>
92585         Use raise module consistently.
92586         * modules/fatal-signal (Depends-on): Add raise.
92587         * modules/sigprocmask (Depends-on): Likewise.
92588         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
92589         * lib/sigprocmask.c (sigprocmask): Likewise.
92590         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
92591         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
92593         Fix compliance bug in sigpending.
92594         * lib/sigprocmask.c (sigpending): Return pending array via
92595         parameter, not return value.
92597 2008-06-14  Eric Blake  <ebb9@byu.net>
92599         Improve obstack-printf test code.
92600         * tests/test-obstack-printf.c (test_function): Fix comment, and
92601         simplify usage of obstack_* in macros.  Add a test for coverage.
92602         Reported by Bruno Haible.
92604 2008-06-14  Bruno Haible  <bruno@clisp.org>
92606         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
92607         array size as a constant, not as a const variable.
92608         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
92609         AC_USE_SYSTEM_EXTENSIONS.
92610         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
92611         Test whether the obstack_printf function actually exists.
92612         * modules/obstack-printf (Depends-on): Add extensions.
92613         (Include): Remove obstack.h.
92614         * modules/obstack-printf-posix (Depends-on): Add extensions.
92615         (Include): Remove obstack.h.
92617 2008-06-13  Eric Blake  <ebb9@byu.net>
92619         Add obstack-printf and obstack-printf-posix modules.
92620         * modules/obstack-printf: New file.
92621         * modules/obstack-printf-posix: Likewise.
92622         * MODULES.html.sh (Misc): Mention them.
92623         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
92624         Likewise.
92625         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
92626         Likewise.
92627         * modules/stdio (Makefile.am): Accomodate new modules.
92628         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
92629         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
92630         Declare.
92631         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
92632         functions.
92633         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
92634         (gl_REPLACE_OBSTACK_PRINTF): New macros
92635         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
92636         * tests/test-obstack-printf.c: New file.
92637         * modules/obstack-printf-tests: Likewise.
92638         * modules/obstack-printf-posix-tests: Likewise.
92640 2008-06-11  Bruno Haible  <bruno@clisp.org>
92642         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
92643         * lib/open.c: Include errno.h.
92644         (open): Fail when attempting to write to a file that has a trailing
92645         slash.
92646         * tests/test-open.c (main): Test against trailing slash bug.
92647         * doc/posix-functions/open.texi: Mention the trailing slash bug.
92649 2008-06-10  Bruno Haible  <bruno@clisp.org>
92651         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
92652         for $? to work inside the trap command, with various /bin/sh-s.
92653         * tests/test-vc-list-files-cvs.sh: Likewise.
92655 2008-06-10  Bruno Haible  <bruno@clisp.org>
92657         * lib/acl-internal.h: Don't include gettext.h here.
92658         * lib/set-mode-acl.c: Include gettext.h here.
92659         * lib/copy-acl.c: Likewise.
92661 2008-06-10  Bruno Haible  <bruno@clisp.org>
92663         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
92664         * lib/wait-process.c (wait_subprocess): Likewise.
92665         * lib/execute.h (execute): Add termsigp argument.
92666         * lib/execute.c (execute): Likewise.
92667         * lib/csharpcomp.c (compile_csharp_using_pnet,
92668         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
92669         * lib/csharpexec.c (execute_csharp_using_pnet,
92670         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
92671         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
92672         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
92673         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
92674         is_jikes_present): Update.
92675         * lib/javaexec.c (execute_java_class): Update.
92676         * lib/javaversion.c (execute_and_read_line): Update.
92677         * NEWS: Document the changes.
92678         Reported by Eric Blake.
92680 2008-06-10  Eric Blake  <ebb9@byu.net>
92682         Add missing include.
92683         * tests/test-strstr.c (includes): Add <signal.h>.
92684         * tests/test-strcasestr.c (includes): Likewise.
92685         * tests/test-memmem.c (includes): Likewise.
92687 2008-06-10  Bruno Haible  <bruno@clisp.org>
92689         * lib/wait-process.c (wait_subprocess): Add an assertion.
92691 2008-06-10  Bruno Haible  <bruno@clisp.org>
92693         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
92695 2008-06-10  Bruno Haible  <bruno@clisp.org>
92697         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
92698         using alarm().
92699         * tests/test-strcasestr.c (main): Likewise.
92700         * tests/test-strstr.c (main): Likewise.
92702 2008-06-09  Bruno Haible  <bruno@clisp.org>
92704         Work around the Solaris 10 ACE ACLs ABI change.
92705         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
92706         declare if ACL_NO_TRIVIAL is present.
92707         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
92708         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
92709         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
92710         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
92711         define if ACL_NO_TRIVIAL is present.
92712         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
92713         and use the current ABI.
92714         (file_has_acl): Use same #if condition as elsewhere.
92715         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
92716         in use, and use the current ABI.
92717         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
92718         Reported by Jim Meyering.
92720 2008-06-09  Eric Blake  <ebb9@byu.net>
92722         Work around environments that (stupidly) ignore SIGALRM.
92723         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
92724         before using alarm().
92725         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
92726         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
92727         Reported by Ian Beckwith <ianb@erislabs.net>.
92729         Produce autobuild blurb earlier in log.
92730         * modules/autobuild (configure.ac-early): Move AB_INIT here.
92732 2008-06-09  Jim Meyering  <meyering@redhat.com>
92733         and Ondřej Vašík  <ovasik@redhat.com>
92735         utimens.c: correct kernel bug work-around
92736         Ondřej Vašík found that the invalid return value of 280 indicates
92737         failure, not success, and the kernel bug we're trying to work
92738         around affects not just the utimensat call, but also the fallback
92739         futimens call.
92740         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
92741         not success.
92742         [HAVE_FUTIMENS]: Use the same work-around, here.
92744 2008-06-09  Jim Meyering  <meyering@redhat.com>
92746         add more guards around definition of ACE_-related code
92747         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
92748         ALLOW and ACE_OWNER are also defined.
92750 2008-06-08  Bruno Haible  <bruno@clisp.org>
92752         * lib/acl-internal.h: Add me as co-author.
92753         * lib/file-has-acl.c: Likewise.
92754         * lib/set-mode-acl.c: Likewise.
92755         * lib/copy-acl.c: Likewise.
92757 2008-06-08  Bruno Haible  <bruno@clisp.org>
92759         Add support for AIX ACLs.
92760         * lib/acl-internal.h (acl_nontrivial): New declaration.
92761         * lib/file-has-acl.c (acl_nontrivial): New function.
92762         (file_has_acl): Add implementation using AIX 4 ACL API.
92763         * lib/set-mode-acl.c (qset_acl): Likewise.
92764         * lib/copy-acl.c (qcopy_acl): Likewise.
92766 2008-06-08  Bruno Haible  <bruno@clisp.org>
92768         Add support for HP-UX ACLs.
92769         * lib/acl-internal.h (acl_nontrivial): New declaration.
92770         * lib/file-has-acl.c (acl_nontrivial): New function.
92771         (file_has_acl): Add implementation using HP-UX 11 ACL API.
92772         * lib/set-mode-acl.c (qset_acl): Likewise.
92773         * lib/copy-acl.c (qcopy_acl): Likewise.
92775 2008-06-08  Bruno Haible  <bruno@clisp.org>
92777         Add support for Cygwin ACLs.
92778         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
92779         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
92780         the chmod_or_fchmod call.
92781         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
92783 2008-06-08  Bruno Haible  <bruno@clisp.org>
92785         Fix bug with setuid modes in Solaris 10+ code.
92786         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
92787         succeeded, when the mode contains some special bits.
92789 2008-06-08  Bruno Haible  <bruno@clisp.org>
92791         Add support for Solaris 7..10 ACLs.
92792         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
92793         declarations.
92794         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
92795         functions.
92796         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
92797         * lib/set-mode-acl.c (qset_acl): Likewise.
92798         * lib/copy-acl.c (qcopy_acl): Likewise.
92800 2008-06-08  Bruno Haible  <bruno@clisp.org>
92802         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
92803         declaration.
92804         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
92805         (acl_access_nontrivial): Remove MacOS X case.
92806         (file_has_acl): Use acl_extended_nontrivial.
92807         * lib/copy-acl.c (qcopy_acl): Likewise.
92809 2008-06-08  Bruno Haible  <bruno@clisp.org>
92811         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
92813 2008-06-08  Jim Meyering  <meyering@redhat.com>
92815         * modules/acl (Maintainer): Add Bruno Haible.
92817 2008-06-07  Bruno Haible  <bruno@clisp.org>
92819         Improve support for Tru64 ACLs.
92820         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
92821         ACL on OSF/1.
92823 2008-06-07  Bruno Haible  <bruno@clisp.org>
92825         Add support for MacOS X ACLs.
92826         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
92827         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
92828         * lib/set-mode-acl.c (qset_acl): Likewise.
92829         * lib/copy-acl.c (qcopy_acl): Likewise.
92831 2008-06-07  Bruno Haible  <bruno@clisp.org>
92833         Fix memory leak introduced on 2008-05-22.
92834         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
92835         use.
92837 2008-06-07  Bruno Haible  <bruno@clisp.org>
92839         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
92840         to construct an empty ACL.
92842 2008-06-07  Bruno Haible  <bruno@clisp.org>
92844         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
92845         precisely.
92846         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
92848 2008-06-07  Bruno Haible  <bruno@clisp.org>
92850         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
92851         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
92853 2008-06-07  Bruno Haible  <bruno@clisp.org>
92855         * doc/posix-functions/_setjmp.texi: Explain the use of this function
92856         regardless of POSIX.
92857         * doc/posix-functions/_longjmp.texi: Likewise.
92858         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
92859         SystemV platform in this case.
92861 2008-06-06  Eric Blake  <ebb9@byu.net>
92863         Document abort() bugs.
92864         * doc/posix-functions/abort.texi (abort): Mention anomalies.
92866         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
92867         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
92868         sigsetjmp.
92869         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
92870         siglongjmp, but only as a macro.
92871         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
92872         is obsolete.
92873         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
92875         Tweak documentation to cover cygwin argz bugs.
92876         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
92877         argz bug fix; no code change needed since no cygwin releases
92878         occurred between the last fix and the bug being tested.
92879         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
92880         module and recently fixed cygwin bugs.
92881         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
92882         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
92883         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
92884         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
92885         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
92886         Likewise.
92887         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
92888         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
92889         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
92890         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
92891         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
92892         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
92893         Likewise.
92895         Avoid gcc warning on cygwin.
92896         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
92897         !ACL_NO_TRIVIAL]: Avoid unused variable.
92899 2008-06-05  Eric Blake  <ebb9@byu.net>
92901         Be tolerant of UNKNOWN version in gnulib-tool test dir.
92902         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
92903         git-version-gen fails to come up with a version.
92904         Reported by Simon Josefsson.
92906 2008-06-05  Jim Meyering  <meyering@redhat.com>
92907             Paul Eggert  <eggert@cs.ucla.edu>
92909         utimens.c: work around a probable Linux kernel bug
92910         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
92911         appears to be a kernel bug that causes utimensat to return 280
92912         instead of 0, indicating success.
92914 2008-06-04  Bruno Haible  <bruno@clisp.org>
92916         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
92917         2008-06-01 commit.
92919 2008-06-04  Bruno Haible  <bruno@clisp.org>
92921         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
92922         * lib/file-has-acl.c (acl_access_nontrivial): New function.
92923         (file_has_acl): Use it. Save errno afterwards.
92924         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
92926 2008-06-03  Bruno Haible  <bruno@clisp.org>
92928         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
92929         draft code. Simplify #ifs.
92930         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
92931         Put Solaris code after POSIX-draft code. Fix comments regarding
92932         Solaris 10, HP-UX. Mention Cygwin.
92933         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
92935 2008-06-03  Eric Blake  <ebb9@byu.net>
92937         Provide fallback for older kernels.
92938         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
92939         Provide runtime fallback if kernel lacks support.
92940         Reported by Mike Frysinger.
92942 2008-06-02  Bruno Haible  <bruno@clisp.org>
92944         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
92945         it exists.
92947 2008-06-02  Bruno Haible  <bruno@clisp.org>
92949         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
92950         * lib/copy-acl.c (qcopy_acl): Update comment.
92952 2008-06-02  Bruno Haible  <bruno@clisp.org>
92954         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
92955         like ACL APIs.
92957 2008-06-02  Bruno Haible  <bruno@clisp.org>
92959         * tests/test-file-has-acl.sh: Use different code for Cygwin.
92960         * tests/test-set-mode-acl.sh: Likewise.
92961         * tests/test-copy-acl.sh: Likewise.
92962         * tests/test-copy-file.sh: Likewise.
92964 2008-06-02  Bruno Haible  <bruno@clisp.org>
92966         * tests/test-file-has-acl.sh: Remove unused code.
92968 2008-06-01  Bruno Haible  <bruno@clisp.org>
92970         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
92971         (copy_acl): Just a wrapper around qcopy_acl that emits the error
92972         messages.
92973         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
92975 2008-06-01  Bruno Haible  <bruno@clisp.org>
92977         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
92978         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
92979         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
92980         APIs.
92981         * modules/acl-tests (configure.ac): Remove tests now contained in
92982         m4/acl.m4.
92984 2008-06-02  Jim Meyering  <meyering@redhat.com>
92986         announce-gen: use a better key-server host name
92987         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
92988         it may be more consistently reliable.  Suggested by Werner Koch
92989         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
92991 2008-06-01  Bruno Haible  <bruno@clisp.org>
92993         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
92994         Reported by Voroskoi Andras <voroskoi@gmail.com>.
92996 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
92998         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
93000 2008-06-01  Bruno Haible  <bruno@clisp.org>
93002         New ACL tests.
93003         * tests/test-file-has-acl.sh: New file.
93004         * tests/test-file-has-acl.c: New file.
93005         * tests/test-set-mode-acl.sh: New file.
93006         * tests/test-set-mode-acl.c: New file.
93007         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
93008         * tests/test-copy-acl.c: New file.
93009         * modules/acl-tests: New file, based on modules/copy-file-tests.
93010         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
93011         (Depends-on): Add acl-tests.
93012         (configure.ac): Remove checks.
93013         (Makefile.am): Don't create test-sameacls program here any more.
93015 2008-06-01  Bruno Haible  <bruno@clisp.org>
93017         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
93018         * tests/test-sameacls.c: Include progname.h.
93019         (main): Invoke set_program_name. Portability fixes for MacOS X,
93020         Solaris, HP-UX.
93022 2008-06-01  Bruno Haible  <bruno@clisp.org>
93024         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
93025         function.
93026         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
93028 2008-06-01  Bruno Haible  <bruno@clisp.org>
93030         * modules/rpmatch (Depends-on): Add strdup.
93032 2008-06-01  Bruno Haible  <bruno@clisp.org>
93034         * lib/pipe.c: Include unistd-safer.h.
93035         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
93036         * modules/pipe (Depends-on): Add unistd-safer.
93038 2008-05-30  Simon Josefsson  <simon@josefsson.org>
93040         * modules/autobuild (configure.ac): Call AB_INIT.
93042 2008-05-30  Simon Josefsson  <simon@josefsson.org>
93044         * tests/test-getaddrinfo.c: Don't print debug messages by default.
93045         Suggested by Bruno Haible <bruno@clisp.org>.
93047 2008-05-30  Simon Josefsson  <simon@josefsson.org>
93049         * tests/test-base64.c: Cast size_t to unsigned long when invoking
93050         printf.  Use %lu instead of %d.  Reported by Bruno Haible
93051         <bruno@clisp.org>.
93053 2008-05-29  Eric Blake  <ebb9@byu.net>
93055         Prefer new POSIX 200x interfaces over futimesat.
93056         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
93057         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
93058         when available.
93059         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
93061 2008-05-28  Bruno Haible  <bruno@clisp.org>
93063         * modules/stpcpy (License): Change to LGPLv2+.
93064         Requested by David Lutterkort <dlutter@redhat.com>.
93066 2008-05-27  Bruno Haible  <bruno@clisp.org>
93068         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
93069         current mingw.
93070         Reported by Jose E. Marchesi <jemarch@gnu.org>.
93072 2008-05-27  Bruno Haible  <bruno@clisp.org>
93074         * modules/iconv_open (Link): New section, from module 'iconv'.
93075         * modules/striconv (Link): Likewise.
93076         * modules/striconveh (Link): Likewise.
93077         * modules/xstriconv (Link): Likewise.
93078         * modules/unicodeio (Link): Likewise.
93079         * modules/propername (Link): Likewise.
93080         Reported by Jim Meyering.
93082 2008-05-26  Jim Meyering  <meyering@redhat.com>
93084         sha256: do not artificially restrict buffer length to be < 2^32
93085         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
93086         uint32_t to size_t.
93087         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
93088         to match.
93090         avoid unaligned access errors, e.g., on sparc
93091         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
93092         direct access through a possibly-unaligned uint64* pointer.
93093         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
93094         direct access through a possibly-unaligned uint32* pointer.
93095         Prompted by this patch from Tom "spot" Callaway:
93096         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
93098         sha512.c: fix typo in comment
93099         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
93101 2008-05-25  Bruno Haible  <bruno@clisp.org>
93103         * lib/set-mode-acl.c: Renamed from lib/acl.c.
93104         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
93105         (Makefile.am): Update lib_SOURCES.
93107 2008-05-25  Bruno Haible  <bruno@clisp.org>
93109         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
93111 2008-05-25  Jim Meyering  <meyering@redhat.com>
93113         useless-if-before-free: freed expr may have white-space differences
93114         * build-aux/useless-if-before-free: Recognize cases in which the
93115         freed expression differs from the tested one in embedded white
93116         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
93117         $1 was used, so we can't make any regexp shy.  Improved tests now
93118         detect this.
93120         useless-if-before-free: accept white space in the expression.
93121         * build-aux/useless-if-before-free: For now, any white space
93122         in the expression must be identical in the free argument.
93124         useless-if-before-free: efficiency tweak
93125         * build-aux/useless-if-before-free: Make the expression-matching
93126         regexp "shy".
93127         Make the *outer* regexp shy, not the expr-matching one.
93129         update code-in-comment to accept cast of free arg
93130         * build-aux/useless-if-before-free: Update regexp.
93132 2008-05-25  Bruno Haible  <bruno@clisp.org>
93134         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
93135         * modules/copy-file-tests (Files, Makefile.am): Update.
93136         * tests/test-copy-file.c (func_test_copy): Update.
93138 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
93140         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
93142 2008-05-23  Bruno Haible  <bruno@clisp.org>
93144         Improve support for ACLs on OSF/1.
93145         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
93146         Remove fallback for unknown flavors of ACLs.
93148 2008-05-22  Bruno Haible  <bruno@clisp.org>
93150         Add support for ACLs on OSF/1.
93151         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
93152         replacements.
93153         (acl_free_text): New macro fallback.
93154         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
93155         acl_free.
93156         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
93157         acl_free_text function. Require AC_C_INLINE.
93159 2008-05-22  Bruno Haible  <bruno@clisp.org>
93161         Make copy_acl work on MacOS X 10.5.
93162         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
93163         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
93164         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
93165         If MODE_INSIDE_ACL, don't assume that every system has the same text
93166         representation for ACLs as FreeBSD.
93167         * lib/copy-acl.c (copy_acl): Add support for platforms with
93168         !MODE_INSIDE_ACL.
93169         * lib/file-has-acl.c (file_has_acl): Likewise.
93170         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
93171         FreeBSD, MacOS X, or IRIX, respectively.
93173 2008-05-22  Bruno Haible  <bruno@clisp.org>
93175         * lib/acl.h: Don't include <sys/acl.h>.
93176         (GETACLCNT): Move fallback to lib/acl-internal.h.
93177         * lib/acl-internal.h: Include <sys/acl.h> here.
93178         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
93180 2008-05-22  Bruno Haible  <bruno@clisp.org>
93182         Split off copy_acl function to separate file.
93183         * lib/copy-acl.c: New file, extracted from lib/acl.c.
93184         * lib/acl.c (copy_acl): Moved function to separate file.
93185         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
93186         * modules/acl (Files): Add lib/copy-acl.c.
93187         (Makefiles.am): Augment lib_SOURCES.
93189 2008-05-22  Bruno Haible  <bruno@clisp.org>
93191         * modules/copy-file-tests: New file.
93192         * tests/test-copy-file.sh: New file.
93193         * tests/test-copy-file.c: New file.
93194         * tests/test-copy-file-sameacls.c: New file.
93196 2008-05-22  Eric Blake  <ebb9@byu.net>
93198         Avoid gcc warning.
93199         * tests/test-memcmp.c (main): Pass NULL indirectly.
93201 2008-05-21  Bruno Haible  <bruno@clisp.org>
93203         Add reference doc about ACLs.
93204         * doc/acl-resources.txt: New file.
93205         * doc/acl-cygwin.txt: New file.
93207 2008-05-21  Bruno Haible  <bruno@clisp.org>
93209         Avoid one more warning from gcc.
93210         * lib/vasnprintf.c (IF_LINT): Update comments.
93211         (VASNPRINTF): Use it also for the 'prefix' array initializer.
93213 2008-05-21  Jim Meyering  <meyering@redhat.com>
93215         avoid a warning from gcc
93216         * lib/vasnprintf.c (IF_LINT): Define.
93217         (scale10_round_decimal_long_double):
93218         Use it to avoid a "may be used uninitialized" warning.
93219         (scale10_round_decimal_double): Likewise.
93221 2008-05-21  Simon Josefsson  <simon@josefsson.org>
93223         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
93224         declared.
93226 2008-05-20  Bruno Haible  <bruno@clisp.org>
93228         * tests/test-memcmp.c (main): Test also the sign of the result. Test
93229         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
93231 2008-05-20  Simon Josefsson  <simon@josefsson.org>
93233         * modules/memcmp-tests: New file.
93234         * tests/test-memcmp.c: New file.
93236 2008-05-19  Bruno Haible  <bruno@clisp.org>
93238         * modules/propername (Notice, configure.ac): Put quoted "..." into
93239         --keyword option.
93240         * lib/propername.h: Update comments accordingly.
93241         Reported by Eric Blake.
93243 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
93245         * modules/getpass-gnu (Depends-on): Add fseeko.
93247 2008-05-19  Simon Josefsson  <simon@josefsson.org>
93249         * modules/base64-tests: New file.
93251 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
93253         * lib/base64.c (base64_decode_ctx): If a decode context structure
93254         was passed in use it to ignore newlines.  If a context structure
93255         was _not_ passed in, continue to treat newlines as garbage (this
93256         is the historical behavior).  Formerly base64_decode.
93257         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
93258         takes a decode context structure.
93259         * lib/base64.h (base64_decode): Macro for four-argument calls.
93260         (base64_decode_alloc): Likewise.
93261         * lib/base64.c (base64_decode_ctx): If a decode context structure
93262         was passed in use it to ignore newlines.  If a context structure
93263         was _not_ passed in, continue to treat newlines as garbage (this
93264         is the historical behavior).  Formerly base64_decode.
93265         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
93266         takes a decode context structure.
93267         * lib/base64.h (base64_decode): Macro for four-argument calls.
93268         (base64_decode_alloc): Likewise.
93270 2008-05-19  Jim Meyering  <meyering@redhat.com>
93272         avoid a warning from gcc
93273         * lib/trim.c (IF_LINT): Define.
93274         (trim2): Use it to avoid a "may be used uninitialized" warning.
93276         Fix doc typo.
93277         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
93279 2008-05-19  Bruno Haible  <bruno@clisp.org>
93281         * doc/glibc-functions/getpass.texi: Document limits of other
93282         implementations.
93284 2008-05-19  Simon Josefsson  <simon@josefsson.org>
93285             Bruno Haible <bruno@clisp.org>
93287         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
93289 2008-05-18  Bruno Haible  <bruno@clisp.org>
93291         * modules/propername: New file, from GNU gettext.
93292         * lib/propername.h: New file, from GNU gettext.
93293         * lib/propername.c: New file, from GNU gettext.
93294         * MODULES.html.sh (Internationalization functions): Add propername.
93296 2008-05-16  Jim Meyering  <meyering@redhat.com>
93297             Bruno Haible  <bruno@clisp.org>
93299         Avoid some warnings from "gcc -Wshadow".
93300         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
93302 2008-05-15  Eric Blake  <ebb9@byu.net>
93304         Extend previous patch to cygwin 1.7.0.
93305         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
93306         fast implementation in cygwin >= 1.7.0.
93307         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
93308         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
93310 2008-05-15  Bruno Haible  <bruno@clisp.org>
93312         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
93313         implementation in glibc >= 2.9.
93314         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
93315         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
93317 2008-05-15  Bruno Haible  <bruno@clisp.org>
93319         * MODULES.html.sh (Internationalization functions): Remove linebreak.
93320         (Unicode string functions): Add unilbrk/*.
93321         Reported by Karl Berry.
93323 2008-05-15  Eric Blake  <ebb9@byu.net>
93325         Fix violation of <stdbool.h> replacement in regex.
93326         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
93327         * lib/regexec.c (re_search_internal): Likewise.
93328         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
93330 2008-05-15  Jim Meyering  <meyering@redhat.com>
93332         avoid distracting test output when git or cvs is not found
93333         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
93334         * tests/test-vc-list-files-git.sh: Likewise.
93336 2008-05-15  Eric Blake  <ebb9@byu.net>
93338         Glibc finally accepted the memmem speedup code, bugzilla #5514.
93339         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
93340         glibc version.
93341         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
93342         * doc/posix-functions/strstr.texi (strstr): Likewise.
93343         * lib/str-two-way.h (MAX): Sychronize with glibc.
93345 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
93347         * lib/regcomp.c (optimize_utf8): Add a note on why we test
93348         opr.ctx_type.
93349         (calc_first): Initialize constraint field.
93350         (duplicate_node_closure): Use it instead of special casing ANCHORS.
93351         Fix grammar.
93352         (duplicate_node): Merge constraint field for all node types.
93353         (calc_eclosure_iter): Look at constraint field for all node types.
93354         * lib/regex_internal.c (create_cd_newstate): Don't look at
93355         opr.ctx_type.
93357 2008-05-14  Bruno Haible  <bruno@clisp.org>
93359         Help GCC to do better code generation.
93360         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
93361         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
93362         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
93363         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
93364         Declare with attribute 'malloc' if supported.
93366 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
93368         use "echo STR|wc -c" rather than unportable "expr length STR"
93369         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
93370         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
93372 2008-05-14  Jim Meyering  <meyering@redhat.com>
93374         use dd ibs=$n count=1 ... rather than less-portable head -c$n
93375         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
93376         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
93377         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
93378         via Collin Lasse.
93380 2008-05-14  Eric Blake  <ebb9@byu.net>
93382         Avoid quadratic growth in gl_LIBSOURCES.
93383         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
93384         Suggested by Bruno Haible.
93386         Test xmemdup0.
93387         * modules/xmemdup0-tests: New file.
93388         * tests/test-xmemdup0.c: Likewise.
93390 2008-05-13  Eric Blake  <ebb9@byu.net>
93392         Split xmemdup0 into its own module.
93393         * modules/xmemdup0: New file.
93394         * lib/xmemdup0.h: Likewise.
93395         * lib/xmemdup0.c: Likewise.
93396         * MODULES.html.sh (Memory management functions): Add xmemdup0.
93397         * lib/xalloc.h (xmemdup0): Remove.
93398         * lib/xmalloc.c (xmemdup0): Likewise.
93400 2008-05-13  Eric Blake  <ebb9@byu.net>
93401             Bruno Haible  <bruno@clisp.org>
93403         Reduce number of forks required during autoconf.
93404         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
93405         and gl_LIBSOURCES_DIR.
93406         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
93407         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
93408         m4_syscmd per file.
93409         <m4_foreach_w>: Move...
93410         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
93412 2008-05-13  Eric Blake  <ebb9@byu.net>
93414         * gnulib-tool: Fix various comment typos.
93416 2008-05-12  Bruno Haible  <bruno@clisp.org>
93418         Tailor the linebreaking algorithm.
93419         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
93421 2008-05-12  Bruno Haible  <bruno@clisp.org>
93423         Update to Unicode 5.0.0.
93424         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
93425         LBP_JV, LBP_JT. Redistribute values.
93426         (unilbrk_table): Change size.
93427         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
93428         Unicode TR#14 rev. 22.
93429         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
93430         LBP_JV, LBP_JT. Redistribute values.
93431         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
93432         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
93433         Update.
93434         * lib/unilbrk/lbrkprop1.h: Regenerated.
93435         * lib/unilbrk/lbrkprop2.h: Regenerated.
93436         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
93437         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
93438         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
93439         Likewise.
93440         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
93441         Likewise.
93442         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
93443         result.
93444         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
93445         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
93446         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
93447         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
93448         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
93449         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
93451 2008-05-11  Bruno Haible  <bruno@clisp.org>
93453         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
93455 2008-05-11  Bruno Haible  <bruno@clisp.org>
93457         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
93458         * modules/unilbrk/gen-lbrk: New file.
93460 2008-05-11  Bruno Haible  <bruno@clisp.org>
93462         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
93463         * m4/sha512.m4 (gl_SHA512): Likewise.
93465 2008-05-11  Jim Meyering  <meyering@redhat.com>
93467         New modules: crypto/sha256, crypto/sha512 (from coreutils)
93468         * modules/crypto/sha256: New file.
93469         * modules/crypto/sha512: Likewise.
93470         * lib/sha256.c: Likewise.
93471         * lib/sha256.h: Likewise.
93472         * lib/sha512.c: Likewise.
93473         * lib/sha512.h: Likewise.
93474         * lib/u64.h: Likewise.
93475         * m4/sha256.m4: Likewise.
93476         * m4/sha512.m4: Likewise.
93477         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
93479 2008-05-10  Bruno Haible  <bruno@clisp.org>
93481         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
93482         (Input/Output <stdio.h>): Add xprintf.
93483         (Signal handling <signal.h>): Add strsignal.
93484         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
93485         (Core language properties): Add func.
93486         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
93487         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
93488         strings.
93489         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
93490         (Input/output): New section.
93491         (File system functions): Add openat-die, stat-macros.
93492         (Networking functions): Add sockets.
93493         (Unicode string functions): Add unictype/*.
93494         (Support for building libraries and executables): Add gperf.
93495         (Support for building documentation): Add agpl-3.0.
93496         (Misc): Add nocrash.
93498 2008-05-10  Bruno Haible  <bruno@clisp.org>
93500         * modules/unictype/gen-ctype: New file.
93502 2008-05-10  Jim Meyering  <meyering@redhat.com>
93504         Make chdir-safer.c more efficient on a system with no symlinks.
93505         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
93506         also if ELOOP is zero.  Suggested by Bruno Haible.
93508         Make chdir-safer.c slightly safer.
93509         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
93510         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
93512         Avoid compile failure on systems without ELOOP (like mingw).
93513         * lib/chdir-safer.c (ELOOP): Define if not already defined.
93514         Reported by Bruno Haible.
93516 2008-05-10  Bruno Haible  <bruno@clisp.org>
93518         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
93519         (is_utf8_encoding): Use a case-insensitive comparison.
93520         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
93521         streq.
93523 2008-05-10  Bruno Haible  <bruno@clisp.org>
93525         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
93526         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
93527         * lib/unilbrk/ulc-common.h (iconv_string_length,
93528         iconv_string_keeping_offsets): Remove declarations.
93529         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
93530         Don't include <iconv.h>, streq.h, xsize.h.
93531         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
93532         conversion.
93533         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
93534         <iconv.h>, streq.h, xsize.h.
93535         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
93536         conversion.
93537         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
93538         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
93539         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
93540         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
93542 2008-05-10  Bruno Haible  <bruno@clisp.org>
93544         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
93545         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
93547         * modules/unilbrk/u32-width-linebreaks-tests: New file.
93548         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
93550         * modules/unilbrk/u16-width-linebreaks-tests: New file.
93551         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
93553         * modules/unilbrk/u8-width-linebreaks-tests: New file.
93554         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
93556         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
93557         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
93559         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
93560         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
93562         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
93563         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
93565         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
93566         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
93568 2008-05-10  Bruno Haible  <bruno@clisp.org>
93570         Split up 'linebreak' module.
93571         * lib/unilbrk.h: New file, based on lib/linebreak.h.
93572         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
93573         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
93574         modifications.
93575         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
93576         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
93577         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
93578         lib/linebreak.c.
93579         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
93580         lib/linebreak.c.
93581         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
93582         lib/linebreak.c.
93583         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
93584         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
93585         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
93586         lib/linebreak.c.
93587         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
93588         lib/linebreak.c.
93589         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
93590         lib/linebreak.c.
93591         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
93592         lib/linebreak.c.
93593         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
93594         lib/linebreak.c.
93595         * modules/unilbrk/base: New file.
93596         * modules/unilbrk/tables: New file.
93597         * modules/unilbrk/u8-possible-linebreaks: New file.
93598         * modules/unilbrk/u16-possible-linebreaks: New file.
93599         * modules/unilbrk/u32-possible-linebreaks: New file.
93600         * modules/unilbrk/ulc-common: New file.
93601         * modules/unilbrk/ulc-possible-linebreaks: New file.
93602         * modules/unilbrk/u8-width-linebreaks: New file.
93603         * modules/unilbrk/u16-width-linebreaks: New file.
93604         * modules/unilbrk/u32-width-linebreaks: New file.
93605         * modules/unilbrk/ulc-width-linebreaks: New file.
93606         * lib/linebreak.h: Remove file.
93607         * lib/linebreak.c: Remove file.
93608         * m4/linebreak.m4: Remove file.
93609         * modules/linebreak: Remove file.
93610         * NEWS: Mention the changes.
93612 2008-05-09  Eric Blake  <ebb9@byu.net>
93614         Add xmemdup0.
93615         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
93616         implementation.
93617         * lib/xmalloc.c (xmemdup0): New C implementation.
93619 2008-05-08  Bruno Haible  <bruno@clisp.org>
93621         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
93623 2008-05-07  Eric Blake  <ebb9@byu.net>
93625         Support cross-compilation of <wctype.h>.
93626         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
93627         AC_CACHE_CHECK.
93629 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
93631         * build-aux/vc-list-files: Add support for bzr.
93633 2008-05-03  Jim Meyering  <meyering@redhat.com>
93635         avoid failed assertion with tight malloc
93636         * tests/test-getndelim2.c: Correct an off-by-one assertion.
93638 2008-05-03  Simon Josefsson  <simon@josefsson.org>
93640         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
93641         are needed from arpa/inet.h.
93642         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
93643         Reported by Bruno Haible.
93645 2008-05-02  Jim Meyering  <meyering@redhat.com>
93647         avoid compilation error on FreeBSD 6
93648         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
93650 2008-05-01  Jim Meyering  <meyering@redhat.com>
93652         useless-if-before-free: correct --help's exit status description
93653         * build-aux/useless-if-before-free (usage): Like grep, exit 0
93654         for one or more matches, etc.  Reported by Bruno Haible.
93656         vc-list-files: make the stand-alone gnulib test work
93657         * modules/vc-list-files-tests (configure.ac):
93658         Define and AC_SUBST abs_aux_dir.
93659         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
93660         $(abs_top_srcdir) to each script and having each of them
93661         duplicate the work of setting PATH, set PATH here, using
93662         the new variable, abs_aux_dir instead.
93663         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
93664         * tests/test-vc-list-files-git.sh: Likewise.
93665         Reported by Bruno Haible.
93667 2008-05-01  Bruno Haible  <bruno@clisp.org>
93669         * lib/getndelim2.c (getndelim2): Fix newsize computation during
93670         reallocation. Rename 'done' to 'found_delimiter'.
93672 2008-05-01  Jim Meyering  <meyering@redhat.com>
93674         vc-list-files: accommodate /bin/sh like the one from Solaris 10
93675         * build-aux/vc-list-files: Use `...`, not $(...).
93677 2008-04-30  Jim Meyering  <meyering@redhat.com>
93679         add tests for vc-list-files
93680         * modules/vc-list-files-tests: New module.
93681         * tests/test-vc-list-files-cvs.sh: New file.
93682         * tests/test-vc-list-files-git.sh: New file.
93684         avoid a warning from gcc
93685         * lib/getndelim2.c (IF_LINT): Define.
93686         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
93688         vc-list-files: work properly with build-aux/cvsu, too
93689         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
93690         to all cvs-based clauses.
93692         vc-list-files: work properly in the CVS+awk case, too
93693         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
93695         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
93696         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
93697         take more than one file argument, so .  Add quotes, just in case $dir
93698         ever contains a shell meta-character.  Prompted by Soren Hansen in
93699         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
93701 2008-04-29  Eric Blake  <ebb9@byu.net>
93703         Optimize getndelim2 to use block operations when possible.
93704         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
93705         freadseek, and memchr2.
93706         * lib/getndelim2.c (getndelim2): Use them for block reads.
93708 2008-04-29  Bruno Haible  <bruno@clisp.org>
93710         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
93711         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
93712         * modules/inet_ntop (Depends-on): Add extensions.
93713         * modules/inet_pton (Depends-on): Likewise.
93714         Reported by Simon Josefsson.
93716 2008-04-29  Jim Meyering  <meyering@redhat.com>
93718         When the is more than one match in a block, match all of them.
93719         * build-aux/useless-if-before-free: Iterate through each block
93720         until there are no more matches.
93722         Fix broken useless-if-before-free script.
93723         * build-aux/useless-if-before-free: Fix typo: missing "?" after
93724         the expression to match cast of argument to free-like function.
93726 2008-04-29  Eric Blake  <ebb9@byu.net>
93728         Use new header.
93729         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
93731 2008-04-29  Jim Meyering  <meyering@redhat.com>
93733         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
93734         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
93735         by gnulib to exist and to declare e.g., inet_ntop.
93736         Don't include "inet_ntop.h", now removed.
93738         * m4/arpa_inet_h.m4: Remove trailing blanks.
93740 2008-04-29  Eric Blake  <ebb9@byu.net>
93742         Silence valgrind on safe reads beyond potential array bounds.
93743         * lib/rawmemchr.valgrind: New file.
93744         * lib/strchrnul.valgrind: Likewise.
93745         * modules/rawmemchr (Files): Distribute new file.
93746         * modules/strchrnul (Files): Likewise.
93747         Suggested by Bruno Haible.
93749 2008-04-29  Bruno Haible  <bruno@clisp.org>
93751         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
93752         (inet_ntop, inet_pton): Change portability warning's wording.
93753         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
93754         Invoke gl_CHECK_NEXT_HEADERS.
93755         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
93756         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
93757         set ARPA_INET_H.
93758         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
93759         * modules/arpa_inet (Description): No longer only for systems that
93760         lack it.
93761         (Depends-on): Add include_next.
93762         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
93763         HAVE_ARPA_INET_H.
93765 2008-04-29  Jim Meyering  <meyering@redhat.com>
93767         * modules/mkdir (License): Re-license as LGPLv2+.
93769 2008-04-29  Bruno Haible  <bruno@clisp.org>
93771         * modules/rawmemchr (Maintainer): Set to Eric.
93772         * modules/strchrnul (Maintainer): Likewise.
93774 2008-04-29  Simon Josefsson  <simon@josefsson.org>
93776         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
93777         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
93779         * modules/arpa_inet (arpa/inet.h): Use them.
93781 2008-04-28  Eric Blake  <ebb9@byu.net>
93783         Test getndelim2.
93784         * modules/getndelim2-tests: New file.
93785         * tests/test-getndelim2.c: Likewise.
93786         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
93787         stream.
93788         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
93790         * MODULES.html.sh: Document new module.
93792 2008-04-20  Bruno Haible  <bruno@clisp.org>
93794         * lib/c-stack.c (die): Use raise.
93795         * modules/c-stack (Depends-on): Add raise.
93797 2008-04-28  Bruno Haible  <bruno@clisp.org>
93799         Expect rpmatch to be declared.
93800         * lib/yesno.c (rpmatch): Remove declaration.
93802         Declare rpmatch.
93803         * lib/stdlib.in.h (rpmatch): New declaration.
93804         * lib/rpmatch.c: Include <stdlib.h> first.
93805         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
93806         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
93807         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
93808         HAVE_RPMATCH.
93809         * modules/rpmatch (Depends-on): Add stdlib, extensions.
93810         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
93811         (Include): Set to <stdlib.h>.
93812         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
93813         HAVE_RPMATCH.
93814         * NEWS: Document the change.
93816 2008-04-28  Bruno Haible  <bruno@clisp.org>
93818         Change rpmatch to use nl_langinfo when appropriate.
93819         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
93820         (N_): New macro.
93821         (localized_pattern): New function/macro.
93822         (try): Remove match, nomatch arguments. Copy the pattern into safe
93823         memory before caching it.
93824         (rpmatch): Use localized_pattern. Add translator comments.
93825         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
93826         Suggested by Eric Blake.
93827         * modules/rpmatch (Depends-on): Add stdbool.
93829 2008-04-28  Eric Blake  <ebb9@byu.net>
93831         Add rawmemchr module, matching glibc.
93832         * modules/string (Makefile.am): New indicator.
93833         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
93834         * lib/string.in.h (rawmemchr): Declare when appropriate.
93835         * modules/rawmemchr: New file.
93836         * m4/rawmemchr.m4: Likewise.
93837         * lib/rawmemchr.c: Likewise.
93838         * modules/rawmemchr-tests: Likewise.
93839         * tests/test-rawmemchr.c: Likewise.
93840         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
93841         module.
93842         * modules/strchrnul (Depends-on): Add rawmemchr.
93843         * lib/strchrnul.c (strchrnul): Optimize a corner case.
93845         Whitespace cleanup.
93846         * tests/test-strchrnul.c: Reindent.
93847         * lib/strchrnul.c: Likewise.
93849         Optimize and test strchrnul.
93850         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
93851         * modules/strchrnul-tests: New file.
93852         * tests/test-strchrnul.c: Likewise.
93854         Remove intprops dependency.
93855         * modules/memchr (Depends-on): Remove intprops.
93856         * modules/memrchr (Depends-on): Likewise.
93857         * modules/memchr2 (Depends-on): Likewise.
93858         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
93859         * lib/memrchr.c (__memrchr): Likewise.
93860         * lib/memrchr2.c (memchr2): Likewise.
93861         Reported by Simon Josefsson.
93863 2008-04-28  Simon Josefsson  <simon@josefsson.org>
93865         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
93866         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
93868 2008-04-28  Simon Josefsson  <simon@josefsson.org>
93870         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
93872         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
93874         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
93876         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
93877         declarations.
93878         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
93880         * m4/inet_pton.m4: Don't check for header files.
93882         * m4/inet_ntop.m4: Don't check for header files.
93884 2008-04-28  Simon Josefsson  <simon@josefsson.org>
93886         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
93887         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
93888         trigger for cygwin).
93889         Reported by Bruno Haible  <bruno@clisp.org>.
93891 2008-04-28  Bruno Haible  <bruno@clisp.org>
93893         * doc/posix-functions/strdup.texi: Mention mingw problem.
93895 2008-04-27  Bruno Haible  <bruno@clisp.org>
93897         * modules/stat-time-tests (Depends-on): Add sleep.
93898         * tests/test-stat-time.c (force_unlink): New function.
93899         (cleanup): Use it.
93900         (test_mtime): Remove the ctime related tests.
93901         (test_ctime): New function, containing the ctime related tests.
93902         (main): Call test_ctime, except on native Windows platforms.
93904 2008-04-27  Bruno Haible  <bruno@clisp.org>
93906         * lib/rpmatch.c (rpmatch): Add some comments.
93907         Reported by James Youngman <jay@gnu.org>.
93909 2008-04-27  Bruno Haible  <bruno@clisp.org>
93911         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
93912         quiet NaNs.
93914 2008-04-27  Bruno Haible  <bruno@clisp.org>
93916         Make test-yesno.sh work on mingw.
93917         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
93918         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
93919         (main): Set stdin to binary mode.
93920         * modules/yesno-tests (Depends-on): Add binary-io.
93922 2008-04-27  Bruno Haible  <bruno@clisp.org>
93924         Fix 'isfinite' on x86, x86_64, ia64 platforms.
93925         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
93926         argument that lie outside the IEEE 854 domain.
93927         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
93928         (gl_ISFINITE): Use it.
93929         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
93931 2008-04-27  Bruno Haible  <bruno@clisp.org>
93933         Allow local renaming in config.h.
93934         * lib/memrchr.c (memrchr): Don't undefine outside libc.
93936 2008-04-27  Bruno Haible  <bruno@clisp.org>
93938         * lib/memchr.c (__memchr): Change type of 'i'.
93939         * lib/memchr2.c (memchr2): Likewise.
93941 2008-04-26  Eric Blake  <ebb9@byu.net>
93942         and Bruno Haible  <bruno@clisp.org>
93944         Optimize and test memrchr.
93945         * modules/memrchr (Depends-on): Add intprops.
93946         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
93947         * modules/memrchr-tests: New file.
93948         * tests/test-memrchr.c: New file.
93950 2008-04-26  Bruno Haible  <bruno@clisp.org>
93952         Add tentative support for DragonFly BSD.
93953         * lib/stdio-impl.h: Add macros for DragonFly BSD.
93954         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
93955         fp.
93956         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
93957         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
93958         * lib/fpurge.c (fpurge): Likewise.
93959         * lib/freadable.c (freaadable): Likewise.
93960         * lib/freadahead.c (freadahead): Likewise.
93961         * lib/freading.c (freading): Likewise.
93962         * lib/freadptr.c (freadptr): Likewise.
93963         * lib/freadseek.c (freadptrinc): Likewise.
93964         * lib/fseeko.c (fseeko): Likewise.
93965         * lib/fseterr.c (fseterr): Likewise.
93966         * lib/fwritable.c (fwritable): Likewise.
93967         * lib/fwriting.c (fwriting): Likewise.
93969 2008-04-26  Bruno Haible  <bruno@clisp.org>
93971         * lib/stdio-impl.h: New file.
93972         * lib/fbufmode.c: Include stdio-impl.h.
93973         (fbufmode): Use fp_, remove redundant #defines.
93974         * lib/fflush.c: Include stdio-impl.h.
93975         (clear_ungetc_buffer): Remove redundant #defines.
93976         * lib/fpurge.c: Include stdio-impl.h.
93977         (fpurge): Remove redundant #defines.
93978         * lib/freadable.c: Include stdio-impl.h.
93979         (freadable): Remove redundant #defines.
93980         * lib/freadahead.c: Include stdio-impl.h.
93981         (freadahead): Remove redundant #defines.
93982         * lib/freading.c: Include stdio-impl.h.
93983         (freading): Remove redundant #defines.
93984         * lib/freadptr.c: Include stdio-impl.h.
93985         (freadptr): Remove redundant #defines.
93986         * lib/freadseek.c: Include stdio-impl.h.
93987         (freadptrinc): Remove redundant #defines.
93988         * lib/fseeko.c: Include stdio-impl.h.
93989         (rpl_fseeko): Remove redundant #defines.
93990         * lib/fseterr.c: Include stdio-impl.h.
93991         (fseterr): Remove redundant #defines.
93992         * lib/fwritable.c: Include stdio-impl.h.
93993         (fwritable: Remove redundant #defines.
93994         * lib/fwriting.c: Include stdio-impl.h.
93995         (fwriting): Remove redundant #defines.
93996         * modules/fbufmode (Files): Add lib/stdio-impl.h.
93997         * modules/fflush (Files): Likewise.
93998         * modules/fpurge (Files): Likewise.
93999         * modules/freadable (Files): Likewise.
94000         * modules/freadahead (Files): Likewise.
94001         * modules/freading (Files): Likewise.
94002         * modules/freadptr (Files): Likewise.
94003         * modules/freadseek (Files): Likewise.
94004         * modules/fseeko (Files): Likewise.
94005         * modules/fseterr (Files): Likewise.
94006         * modules/fwritable (Files): Likewise.
94007         * modules/fwriting (Files): Likewise.
94009 2008-04-26  Bruno Haible  <bruno@clisp.org>
94011         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
94012         restore_seek_optimization, update_fpos_cache): New functions, extracted
94013         from rpl_fflush.
94014         (rpl_fflush): Use them.
94015         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
94016         (gl_REPLACE_FFLUSH): Use it.
94018 2008-04-26  Bruno Haible  <bruno@clisp.org>
94020         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
94021         on Solaris.
94022         * tests/test-xstrtoimax.sh: Likewise.
94023         * tests/test-xstrtoumax.sh: Likewise.
94024         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
94026 2008-04-26  Bruno Haible  <bruno@clisp.org>
94028         * modules/memchr-tests: New file.
94029         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
94031 2008-04-26  Eric Blake  <ebb9@byu.net>
94032             Bruno Haible  <bruno@clisp.org>
94034         * lib/memchr.c: Include intprops.h.
94035         (__memchr): Optimize parallel detection of matching bytes. Rename local
94036         variables. Add explanatory comments.
94038 2008-04-26  Bruno Haible  <bruno@clisp.org>
94040         Fix module 'memchr', broken since 2000-10-28.
94041         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
94043 2008-04-26  Bruno Haible  <bruno@clisp.org>
94045         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
94046         comments.
94048 2008-04-25  Eric Blake  <ebb9@byu.net>
94050         Use native fstatat on cygwin 1.7.0.
94051         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
94052         first.
94054 2008-04-23  Eric Blake  <ebb9@byu.net>
94056         Improve memchr2 performance.
94057         * lib/memchr2.c (memchr2): Further optimize parallel detection of
94058         NUL bytes.
94059         * modules/memchr2 (Depends-on): Use intprops.h.
94061 2008-04-23  Simon Josefsson  <simon@josefsson.org>
94063         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
94064         an inline function instead of a CPP macro.  Patch by Ben Pfaff
94065         <blp@cs.stanford.edu>.
94067 2008-04-23  Simon Josefsson  <simon@josefsson.org>
94069         * lib/arpa_inet.in.h: New file.
94071         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
94072         (Makefile.am): Sed in substitute header file.
94074         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
94075         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
94077         * modules/inet_ntop (configure.ac): Use
94078         gl_ARPA_INET_MODULE_INDICATOR.
94080         * modules/inet_pton (configure.ac): Use
94081         gl_ARPA_INET_MODULE_INDICATOR.
94083 2008-04-22  Jim Meyering  <meyering@redhat.com>
94085         * modules/verify (License): Re-license as LGPLv2+.
94087 2008-04-22  Simon Josefsson  <simon@josefsson.org>
94089         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
94090         parameter to void* as per POSIX standard (MinGW uses char*).
94092 2008-04-21  Bruno Haible  <bruno@clisp.org>
94094         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
94095         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
94096         Define to replacements if REPLACE_ISWCNTRL is 1.
94097         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
94098         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
94099         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
94100         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
94101         what it fixes.
94102         * doc/posix-functions/iswalpha.texi: Likewise.
94103         * doc/posix-functions/iswblank.texi: Likewise.
94104         * doc/posix-functions/iswcntrl.texi: Likewise.
94105         * doc/posix-functions/iswdigit.texi: Likewise.
94106         * doc/posix-functions/iswgraph.texi: Likewise.
94107         * doc/posix-functions/iswlower.texi: Likewise.
94108         * doc/posix-functions/iswprint.texi: Likewise.
94109         * doc/posix-functions/iswpunct.texi: Likewise.
94110         * doc/posix-functions/iswspace.texi: Likewise.
94111         * doc/posix-functions/iswupper.texi: Likewise.
94112         * doc/posix-functions/iswxdigit.texi: Likewise.
94113         Reported by Alain Guibert.
94115 2008-04-21  Bruno Haible  <bruno@clisp.org>
94117         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
94118         Patch by Alain Guibert.
94120 2008-04-21  Bruno Haible  <bruno@clisp.org>
94122         Fix test failures on mingw.
94123         * tests/test-xstrtol.c (print_no_progname): New function.
94124         (main): Install it in error_print_progname hook.
94125         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
94126         * tests/test-xstrtoimax.sh: Likewise.
94127         * tests/test-xstrtoumax.sh: Likewise.
94129 2008-04-21  Bruno Haible  <bruno@clisp.org>
94131         Fix test failure on mingw.
94132         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
94134 2008-04-21  Bruno Haible  <bruno@clisp.org>
94136         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
94137         Actually assign a value.
94139 2008-04-20  Bruno Haible  <bruno@clisp.org>
94141         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
94142         take 2.
94143         * lib/canonicalize.c (canonicalize_file_name): Elide if the
94144         'canonicalize-lgpl' module is also used.
94145         * lib/canonicalize-lgpl.c: Undo last change.
94146         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
94148 2008-04-20  Bruno Haible  <bruno@clisp.org>
94150         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
94151         config.h. Provide _mkdir based fallback for mingw.
94152         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
94153         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
94154         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
94155         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
94156         rather than defining mkdir in config.h.
94157         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
94158         (gl_SYS_STAT_H_DEFAULTS): New macro.
94159         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
94160         HAVE_IO_H any more.
94161         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
94162         HAVE_DECL_MKDIR and HAVE_IO_H.
94164 2008-04-20  Bruno Haible  <bruno@clisp.org>
94166         * lib/isapipe.c: Port to native Windows platforms.
94168 2008-04-20  Bruno Haible  <bruno@clisp.org>
94170         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
94172 2008-04-21  Eric Blake  <ebb9@byu.net>
94174         Work around preprocessors that don't handle UINTMAX_MAX.
94175         * lib/memchr2.c (memchr2): Avoid embedded #if.
94176         Reported by Alain Guibert, fix suggested by Bruno Haible.
94178 2008-04-21  Simon Josefsson  <simon@josefsson.org>
94180         * doc/posix-functions/strftime.texi (strftime): Explain better
94181         Windows incompatibility.  Suggested by Micah Cowan
94182         <micah@cowan.name>.
94184 2008-04-20  Bruno Haible  <bruno@clisp.org>
94186         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
94187         unistr/u8-mblen.
94189 2008-04-20  Bruno Haible  <bruno@clisp.org>
94191         Fix test failure on platforms with non-GNU iconv.
94192         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
94193         (U_TO_U8): Use it, rather than u16_to_u8.
94194         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
94195         units at the end of the input string.
94196         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
94198 2008-04-20  Bruno Haible  <bruno@clisp.org>
94200         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
94201         when the resulting length is 0.
94202         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
94204 2008-04-20  Bruno Haible  <bruno@clisp.org>
94206         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
94207         works.
94208         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
94210 2008-04-20  Bruno Haible  <bruno@clisp.org>
94212         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
94213         * modules/tsearch-tests (configure.ac): Test for initstate function.
94215 2008-04-20  Bruno Haible  <bruno@clisp.org>
94217         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
94218         for nlink_t if missing.
94219         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
94221 2008-04-19  Bruno Haible  <bruno@clisp.org>
94223         Work around snprintf bug on Linux libc5.
94224         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
94225         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
94226         gl_SNPRINTF_SIZE1.
94227         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
94228         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
94229         that test failed.
94230         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
94231         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
94232         * modules/snprintf (Files): Add m4/printf.m4.
94233         * modules/vsnprintf (Files): Likewise.
94234         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
94235         * doc/posix-functions/vsnprintf.texi: Likewise.
94237 2008-04-19  Bruno Haible  <bruno@clisp.org>
94239         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
94240         from 0.0058 to less than 10^-7.
94242 2008-04-19  Bruno Haible  <bruno@clisp.org>
94244         Fix rounding when a precision is given.
94245         * lib/vasnprintf.c (is_borderline): New function.
94246         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
94247         9...9x.
94248         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
94249         %e, %g.
94250         * tests/test-vasprintf-posix.c (test_function): Likewise.
94251         * tests/test-snprintf-posix.h (test_function): Likewise.
94252         * tests/test-sprintf-posix.h (test_function): Likewise.
94253         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
94254         * tests/test-printf-posix.h (test_function): Likewise.
94255         * tests/test-printf-posix.output: Update.
94256         Reported by John Darrington <john@darrington.wattle.id.au> via
94257         Ben Pfaff <blp@cs.stanford.edu>.
94259 2008-04-18  Simon Josefsson  <simon@josefsson.org>
94261         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
94262         Suggested by Bruno Haible <bruno@clisp.org>.
94264 2008-04-17  Bruno Haible  <bruno@clisp.org>
94266         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
94267         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
94268         implementation.
94269         Patch by Bruce Merry <bmerry@gmail.com>.
94271 2008-04-17  Simon Josefsson  <simon@josefsson.org>
94273         * doc/posix-functions/strftime.texi (strftime): Mention that %e
94274         doesn't work under Windows.
94276 2008-04-16  Bruno Haible  <bruno@clisp.org>
94278         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
94279         New macros.
94280         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
94281         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
94282         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
94283         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
94284         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
94285         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
94286         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
94287         macros.
94288         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
94289         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
94290         Northern Sotho, Uighur.
94292 2008-04-16  Bruno Haible  <bruno@clisp.org>
94294         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
94295         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
94296         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
94297         Reported by Daniel Bergström <daniel@octocode.com>.
94299 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
94300             Bruno Haible  <bruno@clisp.org>
94302         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
94303         function.
94304         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
94305         New functions, mostly extracted from gl_locale_name_default.
94306         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
94308 2008-04-16  Eric Blake  <ebb9@byu.net>
94310         Adjust strtod detection to catch glibc 2.7 bug.
94311         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
94312         Reported by John Gatewood Ham.
94314 2008-04-16  Bruno Haible  <bruno@clisp.org>
94316         Add tentative support for Linux libc5.
94317         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
94318         * lib/fpurge.c (fpurge): Likewise.
94319         * lib/freadable.c (freadable): Likewise.
94320         * lib/freadahead.c (freadahead): Likewise.
94321         * lib/freading.c (freading): Likewise.
94322         * lib/freadptr.c (freadptr): Likewise.
94323         * lib/freadseek.c (freadptrinc): Likewise.
94324         * lib/fseeko.c (rpl_fseeko): Likewise.
94325         * lib/fseterr.c (fseterr): Likewise.
94326         * lib/fwritable.c (fwritable): Likewise.
94327         * lib/fwriting.c (fwriting): Likewise.
94328         Reported by Alain Guibert <alguibert+bts@free.fr>.
94330 2008-04-15  Bruno Haible  <bruno@clisp.org>
94332         * modules/mathl (configure.ac): Define module indicator.
94334 2008-04-15  Bruno Haible  <bruno@clisp.org>
94336         * lib/logl.c (logl): Remove unused variables.
94338 2008-04-15  Bruno Haible  <bruno@clisp.org>
94340         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
94341         fails.
94343 2008-04-15  Bruno Haible  <bruno@clisp.org>
94345         * lib/trim.c (trim2): Fix argument of isspace() macro.
94347 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
94349         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
94350         to 0.
94351         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
94353 2008-04-14  Bruno Haible  <bruno@clisp.org>
94355         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
94356         AC_LANG_PROGRAM argument.
94357         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
94358         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
94359         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
94360         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
94361         * m4/math_h.m4 (gl_MATH_H): Likewise.
94362         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
94363         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
94364         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
94365         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
94366         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
94367         * m4/regex.m4 (gl_REGEX): Likewise.
94368         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
94369         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
94370         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
94371         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
94372         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
94373         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
94374         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
94375         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
94377 2008-04-14  Jim Meyering  <meyering@redhat.com>
94379         test-strtod: fix typos: s/abs/fabs/
94380         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
94382 2008-04-13  Bruno Haible  <bruno@clisp.org>
94384         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
94385         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
94386         module is also used and while not building the reloc-wrapper.
94388 2008-04-13  Bruno Haible  <bruno@clisp.org>
94390         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
94392 2008-04-13  Bruno Haible  <bruno@clisp.org>
94394         Fix AIX compilation failure introduced on 2008-04-02.
94395         * tests/test-frexp.c (exp): Undefine before redefining.
94396         * tests/test-frexpl.c (exp): Likewise.
94398 2008-04-13  Bruno Haible  <bruno@clisp.org>
94400         Work around a HP-UX stdio bug.
94401         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
94402         * tests/test-ftello.c (main): Likewise.
94403         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
94404         * doc/posix-functions/ftello.texi: Likewise.
94406 2008-04-13  Bruno Haible  <bruno@clisp.org>
94408         Make test-signbit pass on HP-UX/hppa.
94409         * tests/test-signbit.c (minus_zerol): New variable.
94410         (test_signbitl): Use it.
94412 2008-04-13  Bruno Haible  <bruno@clisp.org>
94414         Make truncl work on OSF/1 4.0.
94415         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
94416         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
94417         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
94418         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
94419         HAVE_DECL_TRUNCL.
94420         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
94421         HAVE_DECL_TRUNCL.
94422         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
94424 2008-04-13  Bruno Haible  <bruno@clisp.org>
94426         * lib/unictype.h: Remove trailing comma from enumeration definitions.
94428 2008-04-13  Bruno Haible  <bruno@clisp.org>
94430         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
94431         expression, so as to avoid HP-UX 11 cc compiler bug.
94433 2008-04-13  Bruno Haible  <bruno@clisp.org>
94435         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
94437 2008-04-13  Bruno Haible  <bruno@clisp.org>
94439         * lib/git-merge-changelog.c: Remove empty declaration outside of
94440         functions.
94442 2008-04-13  Bruno Haible  <bruno@clisp.org>
94444         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
94446 2008-04-13  Bruno Haible  <bruno@clisp.org>
94448         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
94449         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
94450         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
94451         also if it exists but lacks definitions of the SHUT_* macros.
94452         * modules/sys_socket (Description): Update.
94453         Reported by Elbert Pol <e.pol@chello.nl>.
94455 2008-04-13  Bruno Haible  <bruno@clisp.org>
94457         * lib/localcharset.c (OS2): Don't redefine if already defined.
94458         Reported by Elbert Pol <e.pol@chello.nl>.
94460 2008-04-13  Bruno Haible  <bruno@clisp.org>
94462         * lib/binary-io.h [__EMX__]: Include <io.h>.
94463         Reported by Elbert Pol <e.pol@chello.nl>.
94465 2008-04-12  Bruno Haible  <bruno@clisp.org>
94467         * lib/fpucw.h: Enable the definitions also for x86_64.
94468         Needed for NetBSD/x86_64.
94469         Reported by Thomas Klausner <tk@giga.or.at>.
94471 2008-04-12  Bruno Haible  <bruno@clisp.org>
94473         * tests/test-strtod.c: Include isnand.h.
94474         (main): Use isnand instead of isnan.
94475         Reported by Jim Meyering.
94477 2008-04-12  Bruno Haible  <bruno@clisp.org>
94479         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
94480         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
94482 2008-04-12  Jim Meyering  <meyering@redhat.com>
94484         * m4/math_h.m4 (gl_MATH_H): Fix typos.
94486 2008-04-12  Bruno Haible  <bruno@clisp.org>
94488         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
94489         Reported by Elbert Pol <e.pol@chello.nl>.
94491 2008-04-12  Eric Blake  <ebb9@byu.net>
94493         Work around Solaris 10 math.h bug.
94494         * m4/math_h.m4 (gl_MATH_H): Check for bug.
94495         (gl_MATH_H_DEFAULTS): Set up default.
94496         * modules/math (Makefile.am): Replace new indicators.
94497         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
94498         * tests/test-math.c (main): Test this.
94499         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
94500         * doc/posix-headers/math.texi (math.h): Mention bug.
94501         Reported by Nelson H. F. Beebe and Jim Meyering.
94503 2008-04-11  Bruno Haible  <bruno@clisp.org>
94505         Adapt to future versions of Apple GCC.
94506         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
94507         Reported by Peter O'Gorman <peter@pogma.com>.
94509 2008-04-11  Bruno Haible  <bruno@clisp.org>
94511         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
94513 2008-04-11  Bruno Haible  <bruno@clisp.org>
94515         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
94517         * modules/getaddrinfo-tests (Makefile.am): Define
94518         test_getaddrinfo_LDADD.
94520 2008-04-11  Bruno Haible  <bruno@clisp.org>
94522         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
94523         (init): Fix syntax error.
94524         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
94525         is declared.
94527 2008-04-11  Bruno Haible  <bruno@clisp.org>
94529         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
94530         * modules/glob (Depends-on): Add stdbool.
94532 2008-04-11  Bruno Haible  <bruno@clisp.org>
94534         * lib/trim.c: Include <string.h>.
94536 2008-04-11  Eric Blake  <ebb9@byu.net>
94538         Avoid compile failure on OS/2.
94539         * lib/regex_internal.h (internal_function): Disable optimization
94540         on OS/2 (__EMX__), where it caused compiler error.
94541         Reported by Elbert Pol.
94543 2008-04-11  Bruno Haible  <bruno@clisp.org>
94545         Flush the standard error stream before aborting. Needed on mingw.
94546         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
94547         * tests/test-array_list.c (ASSERT): Likewise.
94548         * tests/test-array_oset.c (ASSERT): Likewise.
94549         * tests/test-avltree_list.c (ASSERT): Likewise.
94550         * tests/test-avltree_oset.c (ASSERT): Likewise.
94551         * tests/test-avltreehash_list.c (ASSERT): Likewise.
94552         * tests/test-binary-io.c (ASSERT): Likewise.
94553         * tests/test-byteswap.c (ASSERT): Likewise.
94554         * tests/test-c-ctype.c (ASSERT): Likewise.
94555         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
94556         * tests/test-c-strcasestr.c (ASSERT): Likewise.
94557         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
94558         * tests/test-c-strstr.c (ASSERT): Likewise.
94559         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
94560         * tests/test-canonicalize.c (ASSERT): Likewise.
94561         * tests/test-carray_list.c (ASSERT): Likewise.
94562         * tests/test-ceilf1.c (ASSERT): Likewise.
94563         * tests/test-ceilf2.c (ASSERT): Likewise.
94564         * tests/test-ceill.c (ASSERT): Likewise.
94565         * tests/test-count-one-bits.c (ASSERT): Likewise.
94566         * tests/test-fbufmode.c (ASSERT): Likewise.
94567         * tests/test-fflush2.c (ASSERT): Likewise.
94568         * tests/test-floorf1.c (ASSERT): Likewise.
94569         * tests/test-floorf2.c (ASSERT): Likewise.
94570         * tests/test-floorl.c (ASSERT): Likewise.
94571         * tests/test-fopen.c (ASSERT): Likewise.
94572         * tests/test-fpending.c (ASSERT): Likewise.
94573         * tests/test-fprintf-posix.c (ASSERT): Likewise.
94574         * tests/test-fpurge.c (ASSERT): Likewise.
94575         * tests/test-freadable.c (ASSERT): Likewise.
94576         * tests/test-freadahead.c (ASSERT): Likewise.
94577         * tests/test-freading.c (ASSERT): Likewise.
94578         * tests/test-freadptr.c (ASSERT): Likewise.
94579         * tests/test-freadptr2.c (ASSERT): Likewise.
94580         * tests/test-freadseek.c (ASSERT): Likewise.
94581         * tests/test-freopen.c (ASSERT): Likewise.
94582         * tests/test-frexp.c (ASSERT): Likewise.
94583         * tests/test-frexpl.c (ASSERT): Likewise.
94584         * tests/test-fseek.c (ASSERT): Likewise.
94585         * tests/test-fseeko.c (ASSERT): Likewise.
94586         * tests/test-fstrcmp.c (ASSERT): Likewise.
94587         * tests/test-ftell.c (ASSERT): Likewise.
94588         * tests/test-ftello.c (ASSERT): Likewise.
94589         * tests/test-func.c (ASSERT): Likewise.
94590         * tests/test-fwritable.c (ASSERT): Likewise.
94591         * tests/test-fwriting.c (ASSERT): Likewise.
94592         * tests/test-getdelim.c (ASSERT): Likewise.
94593         * tests/test-getline.c (ASSERT): Likewise.
94594         * tests/test-i-ring.c (ASSERT): Likewise.
94595         * tests/test-iconv-utf.c (ASSERT): Likewise.
94596         * tests/test-iconv.c (ASSERT): Likewise.
94597         * tests/test-isfinite.c (ASSERT): Likewise.
94598         * tests/test-isnand.c (ASSERT): Likewise.
94599         * tests/test-isnanf.c (ASSERT): Likewise.
94600         * tests/test-isnanl.h (ASSERT): Likewise.
94601         * tests/test-ldexpl.c (ASSERT): Likewise.
94602         * tests/test-linked_list.c (ASSERT): Likewise.
94603         * tests/test-linkedhash_list.c (ASSERT): Likewise.
94604         * tests/test-localename.c (ASSERT): Likewise.
94605         * tests/test-lseek.c (ASSERT): Likewise.
94606         * tests/test-mbscasecmp.c (ASSERT): Likewise.
94607         * tests/test-mbscasestr1.c (ASSERT): Likewise.
94608         * tests/test-mbscasestr2.c (ASSERT): Likewise.
94609         * tests/test-mbscasestr3.c (ASSERT): Likewise.
94610         * tests/test-mbscasestr4.c (ASSERT): Likewise.
94611         * tests/test-mbschr.c (ASSERT): Likewise.
94612         * tests/test-mbscspn.c (ASSERT): Likewise.
94613         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
94614         * tests/test-mbspbrk.c (ASSERT): Likewise.
94615         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
94616         * tests/test-mbsrchr.c (ASSERT): Likewise.
94617         * tests/test-mbsspn.c (ASSERT): Likewise.
94618         * tests/test-mbsstr1.c (ASSERT): Likewise.
94619         * tests/test-mbsstr2.c (ASSERT): Likewise.
94620         * tests/test-mbsstr3.c (ASSERT): Likewise.
94621         * tests/test-memchr2.c (ASSERT): Likewise.
94622         * tests/test-memmem.c (ASSERT): Likewise.
94623         * tests/test-open.c (ASSERT): Likewise.
94624         * tests/test-printf-frexp.c (ASSERT): Likewise.
94625         * tests/test-printf-frexpl.c (ASSERT): Likewise.
94626         * tests/test-printf-posix.c (ASSERT): Likewise.
94627         * tests/test-quotearg.c (ASSERT): Likewise.
94628         * tests/test-rbtree_list.c (ASSERT): Likewise.
94629         * tests/test-rbtree_oset.c (ASSERT): Likewise.
94630         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
94631         * tests/test-round1.c (ASSERT): Likewise.
94632         * tests/test-roundf1.c (ASSERT): Likewise.
94633         * tests/test-roundl.c (ASSERT): Likewise.
94634         * tests/test-signbit.c (ASSERT): Likewise.
94635         * tests/test-sleep.c (ASSERT): Likewise.
94636         * tests/test-snprintf-posix.c (ASSERT): Likewise.
94637         * tests/test-snprintf.c (ASSERT): Likewise.
94638         * tests/test-sprintf-posix.c (ASSERT): Likewise.
94639         * tests/test-stat-time.c (ASSERT): Likewise.
94640         * tests/test-strcasestr.c (ASSERT): Likewise.
94641         * tests/test-strerror.c (ASSERT): Likewise.
94642         * tests/test-striconv.c (ASSERT): Likewise.
94643         * tests/test-striconveh.c (ASSERT): Likewise.
94644         * tests/test-striconveha.c (ASSERT): Likewise.
94645         * tests/test-strsignal.c (ASSERT): Likewise.
94646         * tests/test-strstr.c (ASSERT): Likewise.
94647         * tests/test-strtod.c (ASSERT): Likewise.
94648         * tests/test-trunc1.c (ASSERT): Likewise.
94649         * tests/test-trunc2.c (ASSERT): Likewise.
94650         * tests/test-truncf1.c (ASSERT): Likewise.
94651         * tests/test-truncf2.c (ASSERT): Likewise.
94652         * tests/test-truncl.c (ASSERT): Likewise.
94653         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
94654         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
94655         * tests/test-vasnprintf.c (ASSERT): Likewise.
94656         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
94657         * tests/test-vasprintf.c (ASSERT): Likewise.
94658         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
94659         * tests/test-vprintf-posix.c (ASSERT): Likewise.
94660         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
94661         * tests/test-vsnprintf.c (ASSERT): Likewise.
94662         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
94663         * tests/test-wcwidth.c (ASSERT): Likewise.
94664         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
94665         * tests/test-xprintf-posix.c (ASSERT): Likewise.
94666         * tests/test-xvasprintf.c (ASSERT): Likewise.
94667         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
94668         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
94669         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
94670         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
94671         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
94672         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
94673         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
94674         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
94675         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
94676         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
94677         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
94678         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
94679         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
94680         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
94681         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
94682         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
94683         * tests/unictype/test-block_list.c (ASSERT): Likewise.
94684         * tests/unictype/test-block_of.c (ASSERT): Likewise.
94685         * tests/unictype/test-block_test.c (ASSERT): Likewise.
94686         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
94687         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
94688         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
94689         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
94690         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
94691         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
94692         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
94693         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
94694         * tests/unictype/test-combining.c (ASSERT): Likewise.
94695         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
94696         * tests/unictype/test-digit.c (ASSERT): Likewise.
94697         * tests/unictype/test-mirror.c (ASSERT): Likewise.
94698         * tests/unictype/test-numeric.c (ASSERT): Likewise.
94699         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
94700         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
94701         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
94702         * tests/unictype/test-scripts.c (ASSERT): Likewise.
94703         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
94704         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
94705         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
94706         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
94707         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
94708         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
94709         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
94710         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
94711         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
94712         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
94713         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
94714         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
94715         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
94716         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
94717         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
94718         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
94719         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
94720         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
94721         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
94722         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
94723         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
94724         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
94725         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
94726         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
94727         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
94728         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
94729         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
94730         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
94731         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
94732         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
94733         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
94734         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
94735         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
94736         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
94737         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
94738         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
94739         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
94740         Reported by Eric Blake.
94742 2008-04-11  Bruno Haible  <bruno@clisp.org>
94744         * lib/wchar.in.h: Tweak comment.
94746 2008-04-11  Bruno Haible  <bruno@clisp.org>
94748         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
94749         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
94750         gl_COMMON.
94751         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
94753 2008-04-11  Bruno Haible  <bruno@clisp.org>
94755         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
94757 2008-04-11  Simon Josefsson  <simon@josefsson.org>
94759         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
94760         of attempting to use non-existing /dev/*random.  Based on patch
94761         from Adam Strzelecki <ono@java.pl> in
94762         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
94764 2008-04-08  Bruno Haible  <bruno@clisp.org>
94766         Add tentative support for emx+gcc.
94767         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
94768         * lib/fpurge.c (fpurge): Likewise.
94769         * lib/freadable.c (freadable): Likewise.
94770         * lib/freadahead.c (freadahead): Likewise.
94771         * lib/freading.c (freading): Likewise.
94772         * lib/freadptr.c (freadptr): Likewise.
94773         * lib/freadseek.c (freadptrinc): Likewise.
94774         * lib/fseeko.c (rpl_fseeko): Likewise.
94775         * lib/fseterr.c (fseterr): Likewise.
94776         * lib/fwritable.c (fwritable): Likewise.
94777         * lib/fwriting.c (fwriting): Likewise.
94778         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
94780 2008-04-09  Eric Blake  <ebb9@byu.net>
94782         Avoid some autoconf warnings.
94783         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
94784         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
94785         * m4/afs.m4 (gl_AFS): Likewise.
94786         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
94787         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
94788         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
94789         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
94790         (gl_INTEGER_TYPE_SUFFIX): Likewise.
94791         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
94792         (AC_CHECK_DECLS_ONCE): Likewise.
94793         Rename file...
94794         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
94795         gnulib-tool requires autoconf 2.59 or better.
94796         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
94798 2008-04-08  Eric Blake  <ebb9@byu.net>
94800         Use 'git describe --match' if present (added in git 1.5.5).
94801         * build-aux/git-version-gen: Limit result to tags that match 'v*'
94802         if possible.
94804 2008-04-08  Bruno Haible  <bruno@clisp.org>
94806         Add tentative support for OpenServer.
94807         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
94808         _ptr, _cnt.
94809         * lib/fpurge.c (fpurge): Likewise.
94810         * lib/freadable.c (freadable): Likewise.
94811         * lib/freadahead.c (freadahead): Likewise.
94812         * lib/freading.c (freading): Likewise.
94813         * lib/freadptr.c (freadptr): Likewise.
94814         * lib/freadseek.c (freadptrinc): Likewise.
94815         * lib/fseeko.c (rpl_fseeko): Likewise.
94816         * lib/fseterr.c (fseterr): Likewise.
94817         * lib/fwritable.c (fwritable): Likewise.
94818         * lib/fwriting.c (fwriting): Likewise.
94819         Reported by Roger Cornelius <rac@tenzing.org> and
94820         Brian K. White <brian@aljex.com>.
94822 2008-04-06  Jim Meyering  <meyering@redhat.com>
94824         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
94826 2008-04-06  Bruno Haible  <bruno@clisp.org>
94828         Avoid possible error with non-ASCII bytes in UTF-8 locales.
94829         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
94830         * tests/test-printf-posix.sh: Likewise.
94831         * tests/test-vfprintf-posix.sh: Likewise.
94832         * tests/test-vprintf-posix.sh: Likewise.
94833         * tests/test-xprintf-posix.sh: Likewise.
94835 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94837         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
94838         hide error from 'ls', needed on OS/2.
94839         Report by Elbert Pol <elbert.pol@gmail.com>.
94841 2008-04-04  Eric Blake  <ebb9@byu.net>
94843         Make test-fseeko.c failures meaningful.
94844         * tests/test-fseeko.c: Print line number on failure.
94845         * tests/test-fseek.c: Likewise.
94846         Reported by Nelson H. F. Beebe.
94848         Improve strtod bug detection check.
94849         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
94850         required for Solaris 10.
94851         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
94853 2008-04-04  Bruno Haible  <bruno@clisp.org>
94855         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
94856         by m4/setenv.m4.
94858 2008-04-03  Eric Blake  <ebb9@byu.net>
94860         Ensure sane .version contents.
94861         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
94862         version string.
94863         * build-aux/git-version-gen: Improve documentation.
94865         Make GNU make output nicer.
94866         * top/GNUmakefile [!_have-Makefile]: Add dependency on
94867         MAKECMDGOALS to enforce message for all command line targets.  Set
94868         srcdir for use in maint.mk.
94870         Another maintainer tweak.
94871         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
94872         a target that regenerates version.
94874 2008-04-03  Jim Meyering  <meyering@redhat.com>
94876         vc-list-files: don't cause coreutils "make po-check" failure
94877         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
94879 2008-04-03  Eric Blake  <ebb9@byu.net>
94881         Allow VPATH usage of vc-list-files.
94882         * build-aux/vc-list-files (scriptversion): Add timestamp.
94883         (options): Add --help, --version, -C.
94884         (CVS): Support installed cvsu.
94886 2008-04-02  Bruno Haible  <bruno@clisp.org>
94888         Avoid some "statement with no effect" warnings from gcc.
94889         * tests/test-wctype.c (main): Explicitly ignore unused values.
94890         Reported by Jim Meyering.
94892 2008-04-02  Jim Meyering  <meyering@redhat.com>
94894         Avoid some warnings from "gcc -Wshadow".
94895         * tests/test-frexp.c (exp): Define to a different identifier.
94896         * tests/test-frexpl.c (exp): Likewise.
94898 2008-04-03  Jim Meyering  <meyering@redhat.com>
94900         bootstrap: remove dangling *.[ch] symlinks from lib
94901         * build-aux/bootstrap [dangling symlink removal]: Move find's
94902         -depth option to precede all others, to avoid a warning.
94903         Remove *.[ch] files too, and from "$source_base" (usually lib/).
94905 2008-04-02  Bruno Haible  <bruno@clisp.org>
94907         Avoid some warnings from "gcc -Wshadow".
94908         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
94909         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
94910         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
94911         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
94912         Reported by Jim Meyering.
94914 2008-04-01  Bruno Haible  <bruno@clisp.org>
94916         Fix test to work on IRIX 6.5 with cc.
94917         * tests/test-math.c (numeric_equal): New function.
94918         (main): Use it.
94920 2008-04-01  Bruno Haible  <bruno@clisp.org>
94922         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
94924 2008-04-01  Bruno Haible  <bruno@clisp.org>
94926         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
94927         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
94928         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
94929         (Depends-on): Remove math.
94931         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
94932         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
94933         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
94934         (Depends-on): Remove math.
94936         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
94937         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
94938         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
94939         (Depends-on): Remove math.
94940         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
94941         (Depends-on): Remove math.
94943         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
94944         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
94945         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
94946         (Depends-on): Remove math.
94947         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
94948         (Depends-on): Remove math.
94950         * tests/test-round1.c: Include nan.h.
94951         (main): Use NaNd instead of NAN.
94952         * modules/round-tests (Files): Add tests/nan.h.
94954         * tests/test-trunc1.c: Include nan.h.
94955         (main): Use NaNd instead of NAN.
94956         * modules/trunc-tests (Files): Add tests/nan.h.
94958         * tests/test-roundf1.c: Include nan.h.
94959         (main): Use NaNf instead of NAN.
94960         * modules/roundf-tests (Files): Add tests/nan.h.
94962         * tests/test-truncf1.c: Include nan.h.
94963         (main): Use NaNf instead of NAN.
94964         * modules/truncf-tests (Files): Add tests/nan.h.
94966         * tests/test-ceilf1.c: Include nan.h.
94967         (main): Use NaNf instead of NAN.
94968         * modules/ceilf-tests (Files): Add tests/nan.h.
94970         * tests/test-floorf1.c: Include nan.h.
94971         (main): Use NaNf instead of NAN.
94972         * modules/floorf-tests (Files): Add tests/nan.h.
94974         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
94975         (main): Use NaNf instead of NAN.
94976         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
94978         * tests/test-isnand.c: Include nan.h instead of <math.h>.
94979         (main): Use NaNd instead of NAN.
94980         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
94982         * tests/test-frexp.c: Include nan.h.
94983         (main): Use NaNd instead of NAN.
94984         * modules/frexp-tests (Files): Add tests/nan.h.
94986         * lib/isnan.c: Don't include <math.h>.
94987         (FUNC): Don't use NAN macro.
94988         * modules/isnand-nolibm (Depends-on): Remove math.
94989         * modules/isnanf-nolibm (Depends-on): Remove math.
94990         * modules/isnanl (Depends-on): Remove math.
94991         * modules/isnanl-nolibm (Depends-on): Remove math.
94993         * tests/nan.h: New file.
94995 2008-04-01  Eric Blake  <ebb9@byu.net>
94997         Fix typos.
94998         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
94999         values to be the right type.
95001         For now, cater to gnulib strtod inaccuracies.
95002         * tests/test-strtod.c (main): Allow 1-ulp error on expected
95003         fractional results.  While not as nice from a QoI perspective, it
95004         is a quicker patch than correctly implementing decimal to binary
95005         rounding.
95007 2008-03-31  Eric Blake  <ebb9@byu.net>
95009         Guarantee a definition of NAN.
95010         * lib/math.in.h (NAN): Define if missing.
95011         * tests/test-math.c (main): Test it.
95012         * doc/posix-headers/math.texi (math.h): Document this.
95013         * lib/isnan.c (rpl_isnand): Use it.
95014         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
95015         * tests/test-floorf1.c (NaN): Likewise.
95016         * tests/test-frexp.c (NaN): Likewise.
95017         * tests/test-isnand.c (NaN): Likewise.
95018         * tests/test-isnanf.c (NaN): Likewise.
95019         * tests/test-round1.c (NaN): Likewise.
95020         * tests/test-roundf1.c (NaN): Likewise.
95021         * tests/test-snprintf-posix.h (NaN): Likewise.
95022         * tests/test-sprintf-posix.h (NaN): Likewise.
95023         * tests/test-trunc1.c (NaN): Likewise.
95024         * tests/test-truncf1.c (NaN): Likewise.
95025         * tests/test-vasnprintf-posix.c (NaN): Likewise.
95026         * tests/test-vasprintf-posix.c (NaN): Likewise.
95027         * modules/isnand-nolibm (Depends-on): Add math.
95028         * modules/isnanf-nolibm (Depends-on): Likewise.
95029         * modules/isnanl (Depends-on): Likewise.
95030         * modules/isnanl-nolibm (Depends-on): Likewise.
95031         * modules/snprintf-posix-tests (Depends-on): Likewise.
95032         * modules/sprintf-posix-tests (Depends-on): Likewise.
95033         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
95034         * modules/vsprintf-posix-tests (Depends-on): Likewise.
95035         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
95036         * modules/vasprintf-posix-tests (Depends-on): Likewise.
95038 2008-03-31  Bruno Haible  <bruno@clisp.org>
95040         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
95041         * doc/posix-functions/strtod.texi: Likewise.
95043 2008-03-31  Bruno Haible  <bruno@clisp.org>
95045         * tests/test-strtod.c (main): Don't use C99 syntax.
95047 2008-03-31  Bruno Haible  <bruno@clisp.org>
95049         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
95050         Reported by Eric Blake.
95052 2008-03-31  Jim Meyering  <meyering@redhat.com>
95054         Don't compare actual signbit return values.
95055         * tests/test-strtod.c (main): Rather, compare only their
95056         zero/non-zero nature.
95058 2008-03-31  Eric Blake  <ebb9@byu.net>
95060         More strtod documentation.
95061         * doc/posix-functions/strtod.texi (strtod): Interpret more test
95062         failures as distinct bugs.
95064 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
95066         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
95067         Problem reported by Erik Benada in
95068         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
95070 2008-03-30  Bruno Haible  <bruno@clisp.org>
95072         * tests/test-strtod.c: Add comments about which assertion fails on which
95073         platform.
95074         * doc/posix-functions/strtod.texi: Add info about many more platforms.
95076 2008-03-30  Eric Blake  <ebb9@byu.net>
95078         Test signbit behavior on zeros.
95079         * tests/test-signbit.c (test_signbitf): Add tests for zero.
95080         (test_signbitd, test_signbitl): Likewise.
95082         More strtod touchups.
95083         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
95084         sign of negative underflow, for now.  Use .5, not .1.
95085         * doc/posix-functions/strtod.texi (strtod): Mention these
95086         limitations.
95087         Reported by Jim Meyering.
95089 2008-03-30  Bruno Haible  <bruno@clisp.org>
95091         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
95092         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
95094 2008-03-30  Bruno Haible  <bruno@clisp.org>
95096         Avoid failure when attempting to return empty iconv results on some
95097         platforms.
95098         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
95099         allocation, don't report ENOMEM when the resulting string is empty.
95101 2008-03-30  Bruno Haible  <bruno@clisp.org>
95103         Fix buffer overrun.
95104         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
95105         Don't consider the width for tmp_length. Check count against tmp_length
95106         before doing the padding. Ensure enough allocation during padding.
95108 2008-03-30  Eric Blake  <ebb9@byu.net>
95110         strtod touchups.
95111         * lib/strtod.c (strtod): Avoid compiler warnings.
95112         Reported by Jim Meyering.
95114 2008-03-30  Bruno Haible  <bruno@clisp.org>
95116         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
95117         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
95118         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
95119         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
95120         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
95121         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
95122         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
95123         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
95125         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
95126         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
95127         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
95128         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
95129         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
95130         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
95131         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
95132         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
95134         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
95135         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
95136         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
95137         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
95138         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
95139         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
95140         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
95141         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
95143         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
95144         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
95146         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
95147         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
95149         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
95150         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
95152         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
95153         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
95154         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
95156         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
95157         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
95158         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
95160         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
95161         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
95162         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
95164         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
95165         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
95166         * modules/vasprintf (Depends-on): Add EOVERFLOW.
95168         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
95169         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
95170         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
95171         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
95172         (Depends-on): Add EOVERFLOW.
95173         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
95174         (Depends-on): Add EOVERFLOW.
95175         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
95176         (Depends-on): Add EOVERFLOW.
95177         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
95178         (Depends-on): Add EOVERFLOW.
95179         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
95180         (Depends-on): Add EOVERFLOW.
95181         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
95182         (Depends-on): Add EOVERFLOW.
95183         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
95184         (Depends-on): Add EOVERFLOW.
95185         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
95186         (Depends-on): Add EOVERFLOW.
95188         * lib/sprintf.c (EOVERFLOW): Remove fallback.
95189         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
95190         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
95192         * lib/snprintf.c (EOVERFLOW): Remove fallback.
95193         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
95194         * modules/snprintf (Depends-on): Add EOVERFLOW.
95196         * lib/poll.c (EOVERFLOW): Remove fallback.
95197         * modules/poll (Depends-on): Add EOVERFLOW.
95199         * lib/getugroups.c (EOVERFLOW): Remove fallback.
95200         * modules/getugroups (Depends-on): Add EOVERFLOW.
95202         * lib/getdelim.c (EOVERFLOW): Remove fallback.
95203         * modules/getdelim (Depends-on): Add EOVERFLOW.
95205         * lib/ftell.c (EOVERFLOW): Remove fallback.
95206         * modules/ftell (Depends-on): Add EOVERFLOW.
95208         * lib/fprintf.c (EOVERFLOW): Remove fallback.
95209         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
95210         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
95212         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
95214         * modules/EOVERFLOW-tests: New file.
95215         * tests/test-EOVERFLOW.c: New file.
95217         * modules/EOVERFLOW: New file.
95218         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
95220 2008-03-30  Bruno Haible  <bruno@clisp.org>
95222         Fix bug introduced on 2007-06-10.
95223         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
95224         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
95226 2008-03-30  Bruno Haible  <bruno@clisp.org>
95228         Improve freadseek's efficiency after ungetc.
95229         * lib/freadseek.c: Include freadahead.h.
95230         (freadptrinc): New function, extracted from freadseek.
95231         (freadseek): Use it in a loop. Use freadahead to determine the number
95232         of loop iterations.
95233         * modules/freadseek (Depends-on): Add freadahead.
95234         (configure.ac): Require AC_C_INLINE.
95236 2008-03-30  Bruno Haible  <bruno@clisp.org>
95238         * lib/freadseek.c (freadseek): Don't ignore the return value of
95239         freadptr.
95241 2008-03-29  Eric Blake  <ebb9@byu.net>
95243         Add hex float support.
95244         * modules/strtod (Depends-on): Add c-ctype.
95245         (Link): Mention POW_LIB.
95246         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
95247         whitespace between 'e' and exponent.
95248         * tests/test-strtod.c (main): Enable hex float tests.
95249         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
95250         now provides.
95252         Document various strtod bugs, with some fixes.
95253         * doc/posix-functions/strtod.texi (strtod): Document bugs with
95254         "-0x", "inf", "nan", and hex constants.
95255         * doc/posix-functions/atof.texi (atof): Likewise.
95256         * modules/stdlib (Makefile.am): Support strtod.
95257         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
95258         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
95259         detect additional strtod bugs.
95260         * lib/stdlib.in.h (rpl_strtod): Add declarations.
95261         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
95262         bool where appropriate.  Parse 'inf' and 'nan'.
95263         * tests/test-strtod.c: New file.
95264         * modules/strtod (Depends-on): Add stdbool, stdlib.
95265         (configure.ac): Turn on module indicator.
95266         * modules/strtod-tests: New module.
95268 2008-03-29  Eric Blake  <ebb9@byu.net>
95270         Fix ftell on mingw.
95271         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
95272         * modules/ftell-tests (Depends-on): Add binary-io.
95273         * modules/ftello-tests (Depends-on): Likewise.
95274         * tests/test-ftell.c (main): Enhance test to cover behavior after
95275         ungetc.  Enforce binary mode.
95276         * tests/test-ftello.c (main): Likewise.
95278         Pass test-freadseek on cygwin.
95279         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
95280         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
95281         ungetc buffer.
95283         * tests/test-fflush2.c (main): Fix typo.
95285 2008-03-29  Bruno Haible  <bruno@clisp.org>
95287         * tests/test-fflush2.c (main): Temporarily disable the contents of
95288         this test.
95289         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
95290         Reported by Eric Blake.
95292 2008-03-28  Simon Josefsson  <simon@josefsson.org>
95294         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
95295         (GC_SHA224_DIGEST_SIZE): Add.
95297         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
95298         (gc_hash_digest_length): Likewise.
95299         (gc_hash_buffer): Likewise.
95301 2008-03-25  Bruno Haible  <bruno@clisp.org>
95303         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
95304         detail which gettext release to use.
95305         Reported by Simon Josefsson.
95307 2008-03-26  Jim Meyering  <meyering@redhat.com>
95309         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
95310         * modules/gnumakefile (clean-GNUmakefile): Also, use
95311         test ... && ... || : syntax rather than if-then ... fi.
95313         gnumakefile: Don't double-quote-expand $(VPATH) value.
95314         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
95316 2008-03-24  Eric Blake  <ebb9@byu.net>
95318         Alter GNUmakefile to install into top directory.
95319         * modules/maintainer-makefile: Split, and add dependency...
95320         * modules/gnumakefile: to this new module.
95321         * build-aux/GNUmakefile: Move...
95322         * top/GNUmakefile: ...here.
95323         * build-aux/maint.mk: Move...
95324         * top/maint.mk: ...here.
95325         * MODULES.html.sh (Support for maintaining...): Document new
95326         module.
95328 2008-03-23  Bruno Haible  <bruno@clisp.org>
95330         * gnulib-tool: New options --vc-files, --no-vc-files.
95331         (func_usage): Document them.
95332         (vc_files): New variable.
95333         (func_import): Consider vc_files.
95334         (func_create_testdir): Set vc_files to empty.
95335         Suggested by Jim Meyering and Karl Berry.
95337 2008-03-23  Bruno Haible  <bruno@clisp.org>
95339         Fix regex compilation error on HP-UX 11.
95340         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
95341         * modules/regex (Files): Add m4/mbstate_t.m4.
95342         Reported by Ton Voon <ton.voon@altinity.com>.
95344 2008-03-23  Bruno Haible  <bruno@clisp.org>
95346         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
95348 2008-03-23  Eric Blake  <ebb9@byu.net>
95349             Bruno Haible  <bruno@clisp.org>
95351         Install files from top/ in the destination directory.
95352         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
95353         augmentation also for the files from top/.
95354         (func_import, func_create_testdir): Rewrite file names:
95355         top/filename -> filename.
95357 2008-03-23  Bruno Haible  <bruno@clisp.org>
95359         Tweak "gnulib --version" output.
95360         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
95362 2008-03-23  Bruno Haible  <bruno@clisp.org>
95364         Tweak "gnulib --version" output.
95365         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
95366         rather than contents of ChangeLog, when possible.
95368 2008-03-21  Eric Blake  <ebb9@byu.net>
95370         More --version tweaks.
95371         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
95372         date of last ChangeLog entry.
95374 2008-03-21  Jim Meyering  <meyering@redhat.com>
95376         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
95378 2008-03-20  Eric Blake  <ebb9@byu.net>
95380         VPATH fix.
95381         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
95383 2008-03-20  Simon Josefsson  <simon@josefsson.org>
95385         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
95386         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
95388 2008-03-20  Eric Blake  <ebb9@byu.net>
95390         Sync GNUmakefile with coreutils.
95391         * build-aux/GNUmakefile (have-Makefile): Rename...
95392         (_have-Makefile): ...to this, for namespace consideration.
95393         (GNUmakefile.cfg): Include, if present.
95394         (_autoreconf): Define a default.
95395         (_is-dist-target): New rule for rebuilds to pick up intra-release
95396         version.
95397         (maint-cfg.mk): Rename...
95398         (cfg.mk): ...to this.
95400 2008-03-18  Jim Meyering  <meyering@redhat.com>
95402         New script and module: mktempd
95403         * MODULES.html.sh (maint+release support): Add mktempd.
95404         * build-aux/mktempd: New file.
95405         * modules/mktempd: New file.
95407 2008-03-15  Jim Meyering  <meyering@redhat.com>
95409         Undo last change.
95410         * lib/sha1.c, lib/md5.c: 63 != ~63.
95411         Reported by Andreas Schwab.
95413         sha1.c, md5.c: Hoist a redundant expression.
95414         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
95415         "ctx->buflen" only once, before calling *_process_block.
95416         * lib/md5.c (md5_process_bytes): Likewise.
95418 2008-03-14  Eric Blake  <ebb9@byu.net>
95420         Bump copyright year in files generated by gnulib-tool.
95421         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
95422         gnulib-tool, rather than hard-coding it.
95424         Fix 'gnulib-tool --version' output to work with git.
95425         * gnulib-tool (func_gnulib_dir): New function, extracted from...
95426         (startup): ...here.
95427         (func_version): Use it to invoke git-version-gen, rather than
95428         relying on CVS keyword expansion.  Modernize wording.
95429         (cvsdatestamp, last_checkin_date, version): Kill unused
95430         variables.
95432 2008-03-12  Jim Meyering  <meyering@redhat.com>
95434         Recognize optional cast of the argument to free.
95435         * build-aux/useless-if-before-free: Update regexps.
95437         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
95439 2008-03-11  Bruno Haible  <bruno@clisp.org>
95441         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
95442         by a single package.
95443         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
95444         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
95445         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
95446         Reported by Sam Steingold <sds@gnu.org>.
95448 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
95450         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
95451         repositories.
95453 2008-03-11  Bruno Haible  <bruno@clisp.org>
95455         Avoid conflicts between local macro definitions.
95456         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
95457         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
95459 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
95460             Bruno Haible  <bruno@clisp.org>
95462         Make va_copy work with some version of xlc on AIX 5.1.
95463         * lib/stdarg.in.h: New file.
95464         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
95465         On AIX, use a <stdarg.h> file substitute.
95466         * modules/stdarg (Files): Add lib/stdarg.in.h.
95467         (Depends-on): Add include_next.
95468         (Makefile.am): Build a stdarg.h substitute if requested.
95469         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
95471 2008-03-10  Bruno Haible  <bruno@clisp.org>
95473         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
95474         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
95475         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
95477 2008-03-10  Bruno Haible  <bruno@clisp.org>
95479         * modules/stdlib (Depends-on): Add include_next, remove
95480         absolute-header.
95482 2008-03-09  Bruno Haible  <bruno@clisp.org>
95484         * lib/freadahead.h (freadahead): Document more precisely.
95485         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
95486         the sum of both buffer sizes.
95487         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
95488         * NEWS: Document the change.
95490 2008-03-09  Bruno Haible  <bruno@clisp.org>
95492         Extend freadptr to return also the buffer size.
95493         * lib/freadptr.h (freadptr): Add sizep argument.
95494         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
95495         (freadptr): Add sizep argument. Determine buffer size like freadahead
95496         does.
95497         * tests/test-freadptr.c: Don't include freadahead.h.
95498         (main): Adapt for new calling convention of freadptr.
95499         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
95500         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
95501         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
95502         tests/test-freadptr2.sh.
95503         (Depends): Remove freadahead.
95504         (TESTS): Add test-freadptr2.sh.
95505         (check_PROGRAMS): Add test-freadptr2.
95507 2008-03-09  Bruno Haible  <bruno@clisp.org>
95509         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
95510         Report and solution by Simon Josefsson.
95512 2008-03-06  Bruno Haible  <bruno@clisp.org>
95514         Make fflush after ungetc work on BSD platforms.
95515         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
95516         * tests/test-fflush2.c: New file.
95517         * tests/test-fflush2.sh: New file.
95518         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
95519         tests/test-fflush2.c.
95520         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
95521         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
95523 2008-03-06  Eric Blake  <ebb9@byu.net>
95525         Likewise for ftello.
95526         * modules/ftello (Dependencies): Add extensions.
95527         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
95529 2008-03-06  Bruno Haible  <bruno@clisp.org>
95531         * modules/fseeko (Dependencies): Add extensions.
95532         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
95533         Needed on glibc systems.
95535 2008-03-06  Bruno Haible  <bruno@clisp.org>
95537         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
95538         email address.
95539         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
95541 2008-03-06  Bruno Haible  <bruno@clisp.org>
95543         * users.txt: Add libgnupdf.
95545 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
95547         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
95548         (Header File Substitutes, Function Substitutes,
95549         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
95550         (Build robot for gnulib): Fix typo.
95552 2008-03-06  Bruno Haible  <bruno@clisp.org>
95554         * doc/gnulib-tool.texi (VCS Issues): Small updates.
95555         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
95557 2008-03-06  Bruno Haible  <bruno@clisp.org>
95559         * doc/func.texi: New file, extracted from doc/gnulib.texi.
95560         * doc/gnulib.texi: Include it.
95562 2008-03-06  Simon Josefsson  <simon@josefsson.org>
95564         * modules/func (License): Change license to unlimited; there was
95565         no LGPL parts in the module anyway.
95567 2008-03-06  Simon Josefsson  <simon@josefsson.org>
95569         * modules/__func__: Renamed to modules/func.
95570         * modules/__func__-tests: Renamed to modules/func-tests.
95571         * tests/test-__func__.c: Renamed to tests/test-func.c.
95572         * m4/__func__.m4: Renamed to m4/func.m4.
95573         * doc/gnulib.texi (__func__): Section renamed to func.
95574         Suggested by Eric Blake <ebb9@byu.net>.
95576 2008-03-06  Simon Josefsson  <simon@josefsson.org>
95578         * doc/gnulib.texi (__func__): Use C99 terminology when talking
95579         about __func__.  Make example self-contained.  Suggested by Eric
95580         Blake <ebb9@byu.net>.
95582         * tests/test-__func__.c (main): Avoid extraneous () around __func.
95583         Suggested by Eric Blake <ebb9@byu.net>.
95585 2008-03-06  Simon Josefsson  <simon@josefsson.org>
95587         * modules/__func__: New file.
95588         * modules/__func__-tests: New file.
95589         * tests/test-__func__.c: New file.
95590         * m4/__func__.m4: New file.
95591         * doc/gnulib.texi (__func__): Document __func__ module.
95593 2008-03-05  Simon Josefsson  <simon@josefsson.org>
95595         * modules/byteswap (License): Re-license as LGPLv2+.
95597 2008-03-05  Simon Josefsson  <simon@josefsson.org>
95599         * doc/Makefile: Add pdf target.
95601 2008-03-05  Simon Josefsson  <simon@josefsson.org>
95603         * modules/inline (License): Use 'unlimited', since there are only
95604         *.m4 files in this module.
95606 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
95607             Bruno Haible  <bruno@clisp.org>
95609         Add support for HP C 7.1 on OpenVMS 8.3.
95610         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
95612 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
95614         Update VMS specifics.
95615         * lib/getopt.c [VMS]: Remove include of unixlib.h.
95617 2008-03-02  Jim Meyering  <meyering@redhat.com>
95619         Remove the last dependency on the "free" module.
95620         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
95621         Reported by Bob Proulx.
95623         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
95625         Remove useless "if" tests before free.  Deprecate "free" module.
95626         * doc/posix-functions/free.texi: Mention that this
95627         module is no longer useful.
95628         * modules/free (Notice): Say this module is obsolete.
95629         * modules/readutmp (Depends-on): Remove free.
95630         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
95631         * lib/putenv.c (putenv): Likewise.
95632         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
95633         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
95634         * tests/test-c-strcasestr.c (main): Likewise.
95635         * tests/test-c-strstr.c (main): Likewise.
95636         * tests/test-mbscasestr1.c (main): Likewise.
95637         * tests/test-mbscasestr2.c (main): Likewise.
95638         * tests/test-mbsstr1.c (main): Likewise.
95639         * tests/test-mbsstr2.c (main): Likewise.
95640         * tests/test-memmem.c (main): Likewise.
95641         * tests/test-strcasestr.c (main): Likewise.
95642         * tests/test-striconv.c (main): Likewise.
95643         * tests/test-striconveh.c (main): Likewise.
95644         * tests/test-striconveha.c (main): Likewise.
95645         * tests/test-strstr.c (main): Likewise.
95647         * build-aux/git-version-gen: Adjust a comment and the Usage string.
95649         bootstrap: sync from coreutils again
95650         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
95652 2008-03-01  Jim Meyering  <meyering@redhat.com>
95654         bootstrap: sync from coreutils
95655         * build-aux/bootstrap (update_po_files): Copy a .po file into place
95656         also when the target doesn't exist.
95658 2008-03-01  Eric Blake  <ebb9@byu.net>
95660         Fix bugs in last patch.
95661         * lib/memchr2.c (memchr2): Fix typo.
95662         * tests/test-memchr2.c: Test previous bug, and don't use GNU
95663         extension.
95664         Reported by Bruce Korb.
95666         New module 'memchr2'.
95667         * modules/memchr2: New file.
95668         * modules/memchr2-tests: Likewise.
95669         * lib/memchr2.h: Likewise.
95670         * lib/memchr2.c: Likewise, based on memchr.c.
95671         * tests/test-memchr2.c: New test.
95672         * MODULES.html.sh (String handling): Add memchr2.
95674 2008-02-29  Bruno Haible  <bruno@clisp.org>
95676         * modules/freadseek-tests: New file.
95677         * tests/test-freadseek.sh: New file.
95678         * tests/test-freadseek.c: New file.
95680         New module 'freadseek'.
95681         * modules/freadseek: New file.
95682         * lib/freadseek.h: New file.
95683         * lib/freadseek.c: New file.
95684         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
95686 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
95688         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
95689         wydawca.
95691         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
95692         program_invocation_name and program_invocation_short_name are
95693         present.
95695 2008-02-28  Bruno Haible  <bruno@clisp.org>
95697         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
95698         * tests/test-freadptr.sh: Also test non-seekable stdin.
95700 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
95702         * build-aux/bootstrap (source_base, m4_base)
95703         (doc_base, tests_base): New variables.
95704         (gnulib_tool_options): Do not hardcode base directories, use
95705         the above variables instead.
95707 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
95709         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
95711 2008-02-28  Bruno Haible  <bruno@clisp.org>
95713         * modules/freadptr-tests: New file.
95714         * tests/test-freadptr.sh: New file.
95715         * tests/test-freadptr.c: New file.
95717         New module 'freadptr'.
95718         * modules/freadptr: New file.
95719         * lib/freadptr.h: New file.
95720         * lib/freadptr.c: New file.
95721         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
95723 2008-02-26  Karl Berry  <karl@freefriends.org>
95725         Sync from Libtool:
95726         * libltdl/argz.c (argz_add, argz_count): New functions.
95727         * libltdl/argz.in.h: Declare them.
95728         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
95730 2008-02-22  Bruno Haible  <bruno@clisp.org>
95732         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
95733         is a pointer type.  Needed for HP-UX 10.
95734         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
95735         * doc/posix-functions/gmtime_r.texi: Likewise.
95736         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
95738 2008-02-24  Bruno Haible  <bruno@clisp.org>
95740         * modules/environ-tests: New file.
95741         * tests/test-environ.c: New file.
95743         New module 'environ'.
95744         * modules/environ: New file.
95745         * lib/unistd.in.h (environ): New declaration.
95746         * m4/environ.m4: New file.
95747         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
95748         after use.
95749         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
95750         HAVE_DECL_ENVIRON.
95751         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
95752         HAVE_DECL_ENVIRON.
95753         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
95754         wrong claim that 'environ' is missing on some systems.
95755         * modules/execute (Depends-on): Add environ.
95756         * lib/execute.c (environ): Remove fallback declaration.
95757         * modules/pipe (Depends-on): Add environ.
95758         * lib/pipe.c (environ): Remove fallback declaration.
95759         * modules/setenv (Depends-on): Add environ.
95760         * lib/setenv.c (environ): Remove fallback declaration.
95761         * modules/unsetenv (Depends-on): Add environ.
95762         * lib/unsetenv.c (environ): Remove fallback declaration.
95763         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
95764         m4/environ.m4.
95765         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
95766         (gl_PREREQ_UNSETENV): Likewise.
95768 2008-02-24  Bruno Haible  <bruno@clisp.org>
95770         * doc/posix-functions/environ.texi: Document the MacOS X problem.
95772 2008-02-20  Bob Proulx  <bob@proulx.com>
95774         Enable use of older two part flavor 'git describe'.
95775         * build-aux/git-version-gen: If using the older two part flavor of
95776         git version then recreate the third part now present in the
95777         newer three part flavor of git describe.
95779 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
95781         * lib/fts.c (fts_build): Typo correction to comment.
95783 2008-02-17  Bruno Haible  <bruno@clisp.org>
95785         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
95786         generating no-op conflicts.
95788 2008-02-17  Bruno Haible  <bruno@clisp.org>
95790         Speed up by 10%.
95791         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
95792         result_entries, rather than an index-based loop.
95794 2008-02-17  Bruno Haible  <bruno@clisp.org>
95796         Speed up by 25%.
95797         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
95798         'hashcode_cached'.
95799         (entry_create): New function.
95800         (entry_hashcode): Use the cached hashcode if possible.
95801         (read_changelog_file, try_split_merged_entry): Use entry_create.
95803 2008-02-17  Bruno Haible  <bruno@clisp.org>
95805         Speed up from O(n^2) to O(n) for long ChangeLog files.
95806         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
95807         (read_changelog_file): Change implementation of entries_reversed list
95808         to rbtreehash.
95809         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
95811 2008-02-17  Bruno Haible  <bruno@clisp.org>
95813         New option --split-merged-entry.
95814         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
95815         (find_paragraph_end, try_split_merged_entry): New functions.
95816         (long_options): Add option --split-merged-entry.
95817         (usage): Document option --split-merged-entry.
95818         (main): Implement option --split-merged-entry.
95819         Reported by Eric Blake.
95821 2008-02-17  Bruno Haible  <bruno@clisp.org>
95823         * lib/git-merge-changelog.c: Include c-strstr.h.
95824         (main): Support the "git pull --rebase" situation.
95825         * modules/git-merge-changelog (Depends-on): Add c-strstr.
95826         Reported by Eric Blake.
95828 2008-02-16  Eric Blake  <ebb9@byu.net>
95830         Avoid doubling \ in common case of "c-maybe" quoting style.
95831         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
95832         eliding outer quotes.
95833         * lib/quotearg.h: Document this.
95834         * tests/test-quotearg.c (result_strings, inputs, results_g)
95835         (flag_results, locale_results): Test it by adding a new string to
95836         each test group.
95837         (compare_strings): Test new string.
95839 2008-02-13  Eric Blake  <ebb9@byu.net>
95841         Avoid trigraph quoting in default output.
95842         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
95843         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
95844         unless explicitly requested.
95845         * tests/test-quotearg.c (flag_results, main): Add additional tests.
95847 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
95849         Don't rely on signed integer overflowing to negative value.
95850         * lib/getugroups.c (getugroups): Include <limits.h>.
95851         Instead, compare against INT_MAX, and increment only if the test passes.
95853 2008-02-13  Jim Meyering  <meyering@redhat.com>
95854         and Eric Blake  <ebb9@byu.net>
95856         Avoid shadowing warning and compile errors on Linux.
95857         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
95858         forwarding macros on Linux.
95859         (dcgettext): Define a stub, for Linux.
95860         (results_g, main): Avoid warnings.
95862 2008-02-12  Eric Blake  <ebb9@byu.net>
95864         Silence warning in last patch.
95865         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
95867         Quotearg part 4: add tests, fix c-maybe colon quoting.
95868         * lib/quotearg.h: Improve documentation.
95869         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
95870         escapes when adding outer quotes.  When quoting trigraphs, use
95871         valid C notation.  When quoting NUL, omit extra characters if next
95872         character is not digit.  Alter prototype.
95873         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
95874         callers.
95875         * modules/quotearg-tests: New module.
95876         * tests/test-quotearg.c: New test.
95878 2008-02-07  Eric Blake  <ebb9@byu.net>
95880         Quotearg part 3: add flag to control outer quote elision.
95881         * lib/quotearg.h (c_maybe_quoting_style): New style.
95882         (enum quoting_flags): Better documentation of flags.
95883         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
95884         c-maybe style.
95885         (quotearg_buffer_restyled): Handle new flag to elide outer
95886         quotes.
95888         Quotearg part 2: add flag that can control NUL elision.
95889         * lib/quotearg.h (set_quoting_flags): New prototype.
95890         * lib/quotearg.c (struct quoting_options): Add flag field.
95891         (set_quoting_flags): New function.
95892         (quotearg_buffer_restyled): Add flags parameter.
95893         (quotearg_alloc_mem): Set the flag if length cannot be returned.
95894         (quotearg_n_options): Set the flag, since length cannot be
95895         returned.
95896         (quoting_options_from_style): Default flags correctly.
95898         Quotearg part 1: more wrappers, restore quotearg_char state.
95899         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
95900         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
95901         (quotearg_colon_mem): New wrappers.
95902         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
95903         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
95904         functions.
95905         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
95906         (quotearg_colon_mem): New functions.
95908 2008-02-11  Bruno Haible  <bruno@clisp.org>
95910         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
95911         library in the current directory: it does not work with parallel make.
95912         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95914 2008-02-11  Bruno Haible  <bruno@clisp.org>
95916         * .gitattributes: New file.
95918 2008-02-11  Jim Meyering  <meyering@redhat.com>
95920         useless-if-before-free: Fix reversed exit values.
95921         * build-aux/useless-if-before-free: Use correct values
95922         for EXIT_MATCH and EXIT_NO_MATCH.
95924         * build-aux/useless-if-before-free: Close stdout carefully.
95926 2008-02-10  Bruno Haible  <bruno@clisp.org>
95928         New module 'git-merge-changelog'.
95929         * modules/git-merge-changelog: New file.
95930         * lib/git-merge-changelog.c: New file.
95932 2008-02-10  Jim Meyering  <meyering@redhat.com>
95934         useless-if-before-free: New option: --list (-l).
95936         useless-if-before-free: Don't exit immediately upon open failure.
95937         * build-aux/useless-if-before-free: Exit 2 for errors.
95938         Upon failure to open a file, don't exit immediately.
95939         Rather, just warn and continue with any remaining files.
95941 2008-02-10  Bruno Haible  <bruno@clisp.org>
95943         New abstract list operation 'node_set_value'.
95944         * lib/gl_list.h (gl_list_node_set_value): New function.
95945         (struct gl_list_implementation): New field node_set_value.
95946         * lib/gl_list.c (gl_list_node_set_value): New function.
95947         * lib/gl_array_list.c (gl_array_node_set_value): New function.
95948         (gl_array_list_implementation): Update.
95949         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
95950         (gl_carray_list_implementation): Update.
95951         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
95952         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
95953         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
95954         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
95955         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
95956         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
95957         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
95958         Update.
95959         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
95960         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
95961         (gl_sublist_list_implementation): Update.
95963 2008-02-10  Bruno Haible  <bruno@clisp.org>
95965         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
95966         Needed when ELEMENT is #defined to 'some_type *'.
95968 2008-02-10  Jim Meyering  <meyering@redhat.com>
95970         New script and module: useless-if-before-free
95971         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
95972         * build-aux/useless-if-before-free: New file.
95973         * modules/useless-if-before-free: New file.
95975         * build-aux/gitlog-to-changelog: Use committer date, not author date.
95977         xstrtol_error: Fix typo.
95978         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
95979         s/exit_failure/exit_status/.
95981 2008-02-09  Jim Meyering  <meyering@redhat.com>
95983         New script and module: gitlog-to-changelog
95984         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
95985         * modules/gitlog-to-changelog: New file.
95986         * build-aux/gitlog-to-changelog: New file.
95988 2008-02-08  Jim Meyering  <meyering@redhat.com>
95990         Avoid two "parameter unused" warnings.
95991         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
95992         Mark "st" as used.
95994         Use "git COMMAND", not "git-COMMAND".
95995         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
95996         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
95997         * build-aux/git-version-gen: Use "git status", not "git-status".
95999 2008-02-07  Bruno Haible  <bruno@clisp.org>
96001         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
96002         Avoids a crash on Windows Vista.
96003         Reported by Adam Strzelecki <ono@java.pl> via
96004         Simon Josefsson <simon@josefsson.org>.
96006 2008-02-06  Bruno Haible  <bruno@clisp.org>
96008         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
96009         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
96010         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
96011         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
96012         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
96013         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
96014         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
96015         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
96016         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
96017         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
96018         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
96019         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
96020         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
96021         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
96022         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
96023         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
96024         left-adjust flag.
96025         * tests/test-snprintf-posix.h (test_function): Likewise.
96026         * tests/test-sprintf-posix.h (test_function): Likewise.
96027         * tests/test-vasprintf-posix.c (test_function): Likewise.
96028         * doc/posix-functions/fprintf.texi: Update.
96029         * doc/posix-functions/printf.texi: Update.
96030         * doc/posix-functions/snprintf.texi: Update.
96031         * doc/posix-functions/sprintf.texi: Update.
96032         * doc/posix-functions/vfprintf.texi: Update.
96033         * doc/posix-functions/vprintf.texi: Update.
96034         * doc/posix-functions/vsnprintf.texi: Update.
96035         * doc/posix-functions/vsprintf.texi: Update.
96036         Reported by Peter Fales <psfales@alcatel-lucent.com>.
96038 2008-02-06  Bruno Haible  <bruno@clisp.org>
96040         Fix bug introduced on 2008-01-26.
96041         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
96043 2008-02-06  Bruno Haible  <bruno@clisp.org>
96045         Fix bug introduced on 2007-06-10.
96046         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
96047         !NEED_PRINTF_FLAG_ZERO.
96049 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
96051         getloadavg: use libperfstat on AIX5
96052         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
96054 2008-02-03  Bruno Haible  <bruno@clisp.org>
96056         * lib/diffseq.h: Add comments about required #includes.
96057         Reported by Michael Biggs <gnulib@doubleplum.net>.
96059 2008-02-01  Bruno Haible  <bruno@clisp.org>
96061         * users.txt: Add gnuit.
96063 2008-01-31  Bruno Haible  <bruno@clisp.org>
96065         * lib/md4.c (set_uint32): Mark as inline.
96066         * lib/md5.c (set_uint32): Likewise.
96067         * lib/sha1.c (set_uint32): Likewise.
96068         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
96069         * m4/md5.m4 (gl_MD5): Likewise.
96070         * m4/sha1.m4 (gl_SHA1): Likewise.
96072 2008-01-31  Jim Meyering  <meyering@redhat.com>
96074         Use "sizeof VAR", rather than a literal "4".
96075         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
96076         * lib/md4.c (md4_read_ctx): Likewise.
96077         * lib/sha1.c (sha1_read_ctx): Likewise.
96079 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96081         * tests/test-sha1.c: New file, based on test-md5.c.
96083         * modules/crypto/sha1-tests: New file.
96085 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96087         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
96089 2008-01-31  Jim Meyering  <meyering@redhat.com>
96091         Prefer "sizeof v" over the equivalent "4".
96092         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
96093         * lib/md5.c (set_uint32): Likewise.
96094         * lib/sha1.c (set_uint32): Likewise.
96096 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96098         * lib/sha1.c (set_uint32): Mark function as static.
96100 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96102         md2: clarify comments to say that alignment is not required.
96103         * lib/md2.h: Remove warning about alignment in comment.
96104         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
96105         never been required.
96107 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96109         md4: adapt alignment constraint fix from sha1.
96110         * lib/md4.c (set_uint32): New function, from sha1.c
96111         (md4_read_ctx): Use it.
96112         (md4_finish_ctx): Doc fix.
96113         * lib/md4.h: Doc fix.
96115 2008-01-31  Simon Josefsson  <simon@josefsson.org>
96117         md5: adapt alignment constraint fix from sha1.
96118         * lib/md5.c (set_uint32): New function, from sha1.c
96119         (md5_read_ctx): Use it.
96120         (md5_finish_ctx): Doc fix.
96121         * lib/md5.h: Doc fix.
96123 2008-01-30  Peter Palfrader  <weasel@debian.org>
96125         sha1: remove the result buffer alignment constraint
96126         * lib/sha1.c (set_uint32): New function.
96127         (sha1_read_ctx): Rewrite to remove the result buffer alignment
96128         constraint.
96129         (sha1_finish_ctx): Remove comment warning about alignment constraint.
96130         * lib/sha1.h: Likewise.
96132 2008-01-30  Andreas Schwab  <schwab@suse.de>
96133             Bruno Haible  <bruno@clisp.org>
96135         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
96136         correct definition of LDBL_MIN_EXP.
96138 2008-01-30  Karl Berry  <karl@gnu.org>
96140         * config/srclist-update: try to preserve x bit on updates.
96141         * config/srclistvars.sh: update for karl.
96143 2008-01-29  Jim Meyering  <meyering@redhat.com>
96145         vasnprintf.c: Avoid warning about unused label
96146         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
96147         "overflow" label definition and associated code with the
96148         same cpp condition that guards the sole use of that label.
96150 2008-01-26  Bruno Haible  <bruno@clisp.org>
96152         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
96153         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
96154         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
96155         * lib/isnanl-nolibm.h (isnanl): Likewise.
96156         Reported by Paul Eggert <eggert@cs.ucla.edu>.
96158 2008-01-26  Bruno Haible  <bruno@clisp.org>
96160         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
96161         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
96163 2008-01-26  Bruno Haible  <bruno@clisp.org>
96165         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
96166         GCC >= 4.0 built-in.
96167         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
96169 2008-01-26  Bruno Haible  <bruno@clisp.org>
96171         Rename isnan, applicable to 'double' only, to isnand.
96172         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
96173         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
96174         (configure.ac): Update.
96175         (Include): Replace "isnan.h" with "isnand.h".
96176         * m4/isnand.m4: Renamed from m4/isnan.m4.
96177         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
96178         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
96179         instead of isnan.c.
96180         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
96181         instead of HAVE_ISNAN_IN_LIBC.
96182         (isnand): Renamed from isnan.
96183         * lib/isnand.c: New file.
96184         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
96185         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
96186         (Makefile.am): Update.
96187         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
96188         Include isnand.h instead of isnan.h.
96189         (main): Test isnand instead of isnan.
96190         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
96191         isnan-nolibm.
96192         * modules/frexp (Depends-on): Likewise.
96193         * modules/frexp-tests (Depends-on): Likewise.
96194         * modules/frexp-nolibm (Depends-on): Likewise.
96195         * modules/frexp-nolibm-tests (Depends-on): Likewise.
96196         * modules/isfinite (Depends-on): Likewise.
96197         * modules/round-tests (Depends-on): Likewise.
96198         * modules/signbit (Depends-on): Likewise.
96199         * modules/signbit-tests (Depends-on): Likewise.
96200         * modules/snprintf-posix (Depends-on): Likewise.
96201         * modules/sprintf-posix (Depends-on): Likewise.
96202         * modules/trunc-tests (Depends-on): Likewise.
96203         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
96204         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
96205         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
96206         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
96207         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
96208         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
96209         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
96210         * modules/vasnprintf-posix (Depends-on): Likewise.
96211         * modules/vasprintf-posix (Depends-on): Likewise.
96212         * modules/vfprintf-posix (Depends-on): Likewise.
96213         * modules/vsnprintf-posix (Depends-on): Likewise.
96214         * modules/vsprintf-posix (Depends-on): Likewise.
96215         * lib/frexp.c: Include isnand.h instead of isnan.h.
96216         (ISNAN): Set to isnand instead of isnan.
96217         * lib/isfinite.c: Include isnand.h instead of isnan.h.
96218         (gl_isfinited): Use isnand instead of isnan.
96219         * lib/signbitd.c: Include isnand.h instead of isnan.h.
96220         (gl_signbitd): Use isnand instead of isnan.
96221         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
96222         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
96223         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
96224         (main): Use isnand instead of isnan.
96225         * tests/test-round1.c: Include isnand.h.
96226         (main): Use isnand instead of isnan.
96227         * tests/test-round2.c: Include isnand.h instead of isnan.h.
96228         (ISNAN): Set to isnand instead of isnan.
96229         * tests/test-trunc1.c: Include isnand.h.
96230         (main): Use isnand instead of isnan.
96231         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
96232         (equal): Use isnand instead of isnan.
96233         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
96234         isnand-nolibm.
96235         * NEWS: Mention the change.
96237 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
96238             Bruno Haible  <bruno@clisp.org>
96240         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
96241         the GCC builtins for signbits are present and set
96242         REPLACE_SIGNBIT_USING_GCC if so.
96243         * lib/math.in.h (signbit): Define using GCC builtins if
96244         REPLACE_SIGNBIT_USING_GCC is set.
96245         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
96246         REPLACE_SIGNBIT_USING_GCC.
96247         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
96249 2008-01-25  Jim Meyering  <meyering@redhat.com>
96251         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
96252         * lib/poll.c: Include <config.h>, not "config.h".
96253         * tests/test-getaddrinfo.c: Likewise.
96255 2008-01-25  Simon Josefsson  <simon@josefsson.org>
96257         * modules/sockets-tests: New file.
96259 2008-01-24  Simon Josefsson  <simon@josefsson.org>
96261         * modules/sockets: New module, can be used to call WSA_Startup and
96262         WSA_Cleanup when needed.
96264         * lib/sockets.h, lib/sockets.c: New files.
96266         * m4/sockets.m4: New file.
96268         * tests/test-sockets.c: New file.
96270 2008-01-19  Bruno Haible  <bruno@clisp.org>
96272         * doc/posix-headers: Renamed from doc/headers.
96273         * doc/posix-functions: Renamed from doc/functions.
96274         * doc/gnulib.texi: Update.
96276 2008-01-19  Bruno Haible  <bruno@clisp.org>
96278         * doc/glibc-functions/strcasestr.texi: Include contents of
96279         doc/functions/strcasestr.texi, fixing the list of platforms.
96280         * doc/functions/strcasestr.texi: Remove file.
96282 2008-01-19  Bruno Haible  <bruno@clisp.org>
96284         * doc/glibc-functions/memmem.texi: Include contents of
96285         doc/functions/memmem.texi.
96286         * doc/functions/memmem.texi: Remove file.
96288 2008-01-18  Bruno Haible  <bruno@clisp.org>
96290         * doc/glibc-functions/*.texi: New files.
96291         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
96292         to use the new files.
96294 2008-01-17  Bruno Haible  <bruno@clisp.org>
96296         * tests/test-gethostname.c (main): Fix printf statement.
96298 2008-01-17  Simon Josefsson  <simon@josefsson.org>
96300         * modules/gethostname-tests: New file.
96302         * tests/test-gethostname.c: New file.
96304 2008-01-17  Simon Josefsson  <simon@josefsson.org>
96306         * lib/gethostname.c: Include string.h unconditionally, strncpy is
96307         used by the UNAME case.  Reported by Bruno Haible
96308         <bruno@clisp.org>.
96310 2008-01-17  Eric Blake  <ebb9@byu.net>
96312         Convert c-strcasestr to be more efficient.
96313         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
96314         (Depends-on): Add c-strcase, remove malloca, strnlen.
96315         * tests/test-c-strcasestr.c (main): Enhance test.
96316         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
96318 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
96320         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
96321         Use it in creating po/Makevars.
96323 2008-01-15  Simon Josefsson  <simon@josefsson.org>
96325         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
96326         Applications that requires it should initialize libgcrypt
96327         manually.
96329 2008-01-16  Simon Josefsson  <simon@josefsson.org>
96331         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
96333 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
96335         Fix problem with getdate on mingw32 reported by Simon Josefsson
96336         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
96337         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
96338         tzname", when deciding whether to declare tzname.
96339         * lib/strftime.c (tzname): Likewise.
96341 2008-01-15  Bruno Haible  <bruno@clisp.org>
96343         Work around a MacOS X 10.5 bug in frexpl().
96344         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
96345         * doc/functions/frexpl.texi: Document the bug.
96346         Reported by Elias Pipping <pipping@gentoo.org>.
96348 2008-01-14  Eric Blake  <ebb9@byu.net>
96350         Touch up previous patch.
96351         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
96352         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
96354         Convert strcasestr module to use Two-Way algorithm.
96355         * modules/strcasestr-simple: New module, based on the old
96356         strcasestr, but with Two-Way rather than KMP.
96357         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
96358         * lib/string.in.h (rpl_strcasestr): Declare.
96359         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
96360         performance.
96361         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
96362         * modules/string (Makefile.am): Support strcasestr.
96363         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
96364         * modules/strcasestr-tests (Depends-on): Check for alarm.
96365         * tests/test-strcasestr.c: Augment test.
96366         * lib/str-two-way.h: Clean up stray macro.
96367         * NEWS: Document new module.
96368         * MODULES.html.sh (string handling): Likewise.
96369         * doc/functions/strcasestr.texi: New file.
96370         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
96371         here, since it is not a POSIX function.
96373 2008-01-14  Colin Watson  <cjwatson@debian.org>
96374             Bruno Haible  <bruno@clisp.org>
96376         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
96377         works fine; if not, set REPLACE_STRSIGNAL.
96378         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
96379         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
96380         REPLACE_STRSIGNAL.
96381         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
96382         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
96383         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
96385 2008-01-14  Bruno Haible  <bruno@clisp.org>
96387         * modules/strsignal (Include): Change to <string.h>.
96389 2008-01-14  Colin Watson  <cjwatson@debian.org>
96391         * modules/argp (Notice): Add a notice recommending to change
96392         XGETTEXT_OPTIONS.
96393         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
96395 2008-01-13  Colin Watson  <cjwatson@debian.org>
96397         * modules/strsignal-tests: New file.
96398         * tests/test-strsignal.c: New file.
96400         * lib/strsignal.c: New file, from glibc with modifications.
96401         * lib/siglist.h: New file, from glibc with modifications.
96402         * lib/string.in.h (strsignal): New declaration.
96403         * m4/strsignal.m4: New file.
96404         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
96405         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
96406         * modules/strsignal: New file.
96407         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
96408         HAVE_DECL_STRSIGNAL.
96410 2008-01-13  Bruno Haible  <bruno@clisp.org>
96412         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
96413         locale encoding is not ASCII. Needed for OpenBSD 4.0.
96414         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
96415         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
96417 2008-01-13  Bruno Haible  <bruno@clisp.org>
96419         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
96420         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
96421         * lib/argp.h (__attribute__): Likewise.
96422         * lib/c-stack.c (__attribute__): Likewise.
96423         * lib/error.h (__attribute__): Likewise.
96424         * lib/fts.c (__attribute__): Likewise.
96425         * lib/openat.h (__attribute__): Likewise.
96426         * lib/stdio.in.h (__attribute__): Likewise.
96427         * lib/string.in.h (__attribute__): Likewise.
96428         * lib/utimens.c (__attribute__): Likewise.
96429         * lib/vasnprintf.h (__attribute__): Likewise.
96430         * lib/xalloc.h (__attribute__): Likewise.
96431         * lib/xprintf.h (__attribute__): Likewise.
96432         * lib/xstrtol.h (__attribute__): Likewise.
96433         * lib/xvasprintf.h (__attribute__): Likewise.
96435 2008-01-12  Bruno Haible  <bruno@clisp.org>
96437         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
96438         * doc/glibc-headers/a.out.texi: New file.
96439         * doc/glibc-headers/aliases.texi: New file.
96440         * doc/glibc-headers/alloca.texi: New file.
96441         * doc/glibc-headers/ar.texi: New file.
96442         * doc/glibc-headers/argp.texi: New file.
96443         * doc/glibc-headers/argz.texi: New file.
96444         * doc/glibc-headers/byteswap.texi: New file.
96445         * doc/glibc-headers/crypt.texi: New file.
96446         * doc/glibc-headers/endian.texi: New file.
96447         * doc/glibc-headers/envz.texi: New file.
96448         * doc/glibc-headers/err.texi: New file.
96449         * doc/glibc-headers/error.texi: New file.
96450         * doc/glibc-headers/execinfo.texi: New file.
96451         * doc/glibc-headers/fpu_control.texi: New file.
96452         * doc/glibc-headers/fstab.texi: New file.
96453         * doc/glibc-headers/fts.texi: New file.
96454         * doc/glibc-headers/getopt.texi: New file.
96455         * doc/glibc-headers/ieee754.texi: New file.
96456         * doc/glibc-headers/ifaddrs.texi: New file.
96457         * doc/glibc-headers/libintl.texi: New file.
96458         * doc/glibc-headers/mcheck.texi: New file.
96459         * doc/glibc-headers/mntent.texi: New file.
96460         * doc/glibc-headers/obstack.texi: New file.
96461         * doc/glibc-headers/paths.texi: New file.
96462         * doc/glibc-headers/printf.texi: New file.
96463         * doc/glibc-headers/pty.texi: New file.
96464         * doc/glibc-headers/resolv.texi: New file.
96465         * doc/glibc-headers/shadow.texi: New file.
96466         * doc/glibc-headers/sysexits.texi: New file.
96467         * doc/glibc-headers/ttyent.texi: New file.
96469 2008-01-12  Jim Meyering  <meyering@redhat.com>
96471         announce-gen: emit Gnulib's git-based version string.
96472         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
96473         New option --gnulib-version=V, where V is expected to be
96474         the output of running git describe in the gnulib directory.
96475         (get_tool_versions): Request feedback on xdelta.  I suspect it's
96476         not useful, and plan to stop publishing an xdelta file with each
96477         coreutils release.
96479         * build-aux/announce-gen: Also check for lzma-compressed files.
96481 2008-01-11  Bruno Haible  <bruno@clisp.org>
96483         * tests/test-memmem.c (main): Increase maximum allowed time.
96484         * tests/test-strstr.c (main): Likewise.
96486 2008-01-11  Bruno Haible  <bruno@clisp.org>
96488         * doc/functions/memmem.texi: Add more precisions about platforms.
96489         * doc/functions/strstr.texi: Likewise.
96491 2008-01-10  Eric Blake  <ebb9@byu.net>
96493         * m4/strstr.m4: Delete cruft from copy-n-paste.
96494         Reported by Bruno Haible.
96496 2008-01-10  Bruno Haible  <bruno@clisp.org>
96498         Make c-strstr rely on strstr.
96499         * lib/c-strstr.c: Don't include str-kmp.h.
96500         (c_strstr): Define in terms of strstr.
96501         * modules/c-strstr (Files): Remove lib/str-kmp.h.
96502         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
96504 2008-01-10  Bruno Haible  <bruno@clisp.org>
96506         * doc/gnulib.texi (String Functions in C Locale): New section.
96507         * doc/c-ctype.texi: New file.
96508         * doc/c-strcase.texi: New file.
96509         * doc/c-strcaseeq.texi: New file.
96510         * doc/c-strcasestr.texi: New file.
96511         * doc/c-strstr.texi: New file.
96512         * doc/c-strtod.texi: New file.
96513         * doc/c-strtold.texi: New file.
96515 2008-01-10  Eric Blake  <ebb9@byu.net>
96517         * lib/relocatable.h: Fix a comment.
96519 2008-01-10  Eric Blake  <ebb9@byu.net>
96521         Share two-way algorithm.
96522         * lib/str-two-way.h: New file, merged from...
96523         * lib/memmem.c: ...here...
96524         * lib/strstr.c: ...and here.
96525         * modules/memmem (Files): Use it.
96526         * modules/strstr (Files): Likewise.
96528         Avoid quadratic strstr implementations.
96529         * lib/strstr.c: New file.
96530         * m4/strstr.m4: Likewise.
96531         * modules/strstr: Likewise.
96532         * modules/strstr-tests: Likewise.
96533         * tests/test-strstr.c: Likewise.
96534         * lib/string.in.h (rpl_strstr): Declare.
96535         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
96536         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
96537         * modules/string (Makefile.am): Likewise.
96538         * MODULES.html.sh (string handling): Mention new module.
96539         * doc/functions/strstr.texi (strstr): Document the bug.
96541 2008-01-10  Bruno Haible  <bruno@clisp.org>
96543         * lib/relocatable.h (relocate): State whether result is freshly
96544         allocated or not.
96545         * lib/relocatable.c (relocate): Return a freshly allocated string
96546         instead of a pointer to a privately held string.
96547         Reported by Sylvain Beucler <beuc@gnu.org>.
96549 2008-01-10  Colin Watson  <cjwatson@debian.org>
96551         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
96552         s/S_ISNLK/S_ISLNK/.
96554 2008-01-09  Bruno Haible  <bruno@clisp.org>
96556         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
96557         and other files.
96558         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
96559         if it's only a guess.
96560         * modules/memmem: Simplify by depending on memmem-simple.
96562 2008-01-09  Bruno Haible  <bruno@clisp.org>
96564         Work around OpenBSD 4.0 tdelete() bug.
96565         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
96566         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
96567         macros and don't redefine the enum values.
96568         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
96569         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
96570         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
96572 2008-01-09  Bruno Haible  <bruno@clisp.org>
96574         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
96575         (main): Don't perform the tests if setlocale did not install a UTF-8
96576         locale. Needed on OpenBSD 4.0.
96577         * modules/wcwidth-tests (Depends-on): Add localcharset.
96579 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
96581         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
96582         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
96583         * NEWS: announce this.
96584         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
96586 2008-01-09  Simon Josefsson  <simon@josefsson.org>
96587         and Eric Blake  <ebb9@byu.net>
96589         Add memmem-simple module.
96590         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
96591         (gl_FUNC_MEMMEM): Separate performance from presence checks.
96592         * modules/memmem-simple: New file.
96593         * modules/memmem (Description): Tweak.
96594         * MODULES.html.sh (string handling): Mention new module.
96595         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
96596         addressed by memmem-simple.
96597         * NEWS: Document the difference.
96599 2008-01-09  Eric Blake  <ebb9@byu.net>
96601         Give gcc some memmem optimization hints.
96602         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
96603         (strcasestr): Declare as pure.
96604         * modules/memmem (Maintainer): Claim my implementation.
96606 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96608         Support AIX 6.1 and higher.
96609         * build-aux/config.libpath: Likewise.
96610         * build-aux/config.rpath: Likewise.
96612 2008-01-08  Jim Meyering  <meyering@redhat.com>
96613             Bruno Haible  <bruno@clisp.org>
96615         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
96616         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
96617         Reported by Peter Fales in
96618         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
96620 2008-01-08  Bruno Haible  <bruno@clisp.org>
96622         * modules/unictype/category-of (Depends-on): Add
96623         unictype/category-none.
96624         * modules/unictype/category-and-tests (Depends-on): Add
96625         unictype/category-{L,N,Lu,Nd}.
96626         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
96627         * modules/unictype/category-or-tests (Depends-on): Add
96628         unictype/category-{L,N}.
96629         * modules/unictype/category-name-tests (Depends-on): Add
96630         unictype/category-{Z,Nl}.
96631         Reported by Simon Josefsson.
96633 2008-01-08  Bruno Haible  <bruno@clisp.org>
96635         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
96636         convention better.
96637         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
96638         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
96639         Reported by Peter Miller <millerp@canb.auug.org.au>.
96641 2008-01-08  Eric Blake  <ebb9@byu.net>
96643         Rewrite memmem to guarantee linear complexity without malloc.
96644         * lib/memmem.c (memmem): Use Two-Way rather than
96645         Knuth-Morris-Pratt, to allow O(1) space usage.
96646         (critical_factorization, two_way_short_needle)
96647         (two_way_long_needle): New functions.
96648         (knuth_morris_pratt): Delete.
96649         * modules/memmem (Depends-on): No longer need malloca or stdbool.
96650         Add stdint.
96651         * tests/test-memmem.c (main): Add tests for periodic needle and
96652         sublinear performance.
96653         * doc/functions/memmem.texi (memmem): Document other deficiencies
96654         in cygwin and older glibc.
96656 2008-01-08  Bruno Haible  <bruno@clisp.org>
96658         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
96659         augmentation.
96661 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
96663         Add a configure time option: --disable-acl.
96664         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
96665         AC_ARG_ENABLE(acl).
96667 2008-01-06  Simon Josefsson  <simon@josefsson.org>
96669         * tests/test-localename.c: Don't include obsolete "setenv.h".
96671         * modules/localename-tests (Depends-on): Need unsetenv.
96673 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96675         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
96677 2008-01-06  Colin Watson  <cjwatson@debian.org>
96679         * users.txt: Add man-db.
96681 2008-01-07  Bruno Haible  <bruno@clisp.org>
96683         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
96684         previous section name.
96686 2008-01-07  Bruno Haible  <bruno@clisp.org>
96688         * lib/progname.c (set_program_name): Don't strip off a leading
96689         "lt-" prefix outside a .libs directory.
96690         Suggested by Paul Eggert.
96692 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
96693             Bruno Haible  <bruno@clisp.org>
96695         Improve memory cleanup in 'relocatable' module.
96696         * lib/relocatable.h (compute_curr_prefix): Change return type to
96697         'char *'.
96698         * lib/relocatable.c (compute_curr_prefix): Change return type to
96699         'char *'. Free curr_installdir after use.
96700         (relocate): Free curr_prefix_better after use.
96701         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
96703 2008-01-01  Bruno Haible  <bruno@clisp.org>
96705         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
96706         failure on older glibc systems.
96707         Reported by Peter Fales <psfales@alcatel-lucent.com>.
96709 2008-01-05  Eric Blake  <ebb9@byu.net>
96711         Avoid quadratic system memmem.
96712         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
96713         Reported by Ralf Wildenhues.
96715         Fix memmem test for mingw.
96716         * modules/memmem-tests (configure.ac): Check for alarm.
96717         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
96718         it.
96719         * doc/functions/memmem.texi: New file.
96720         * doc/gnulib.texi (Function Substitutes): Add memmem.
96721         Reported by Bruno Haible.
96723 2008-01-04  Bruno Haible  <bruno@clisp.org>
96725         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
96726         Require gl_HEADER_STRINGS_H_DEFAULTS, not
96727         gl_HEADER_STRING_H_DEFAULTS.
96729 2008-01-04  Eric Blake  <ebb9@byu.net>
96731         Shorten duration of memmem test.
96732         * tests/test-memmem.c (main): Use alarm to declare failure if test
96733         is taking too long.
96734         Reported by Ralf Wildenhues.
96736 2007-12-21  Simon Josefsson  <simon@josefsson.org>
96738         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
96739         string, needed by strerror.
96741 2008-01-03  Colin Watson  <cjwatson@debian.org>
96742             Bruno Haible  <bruno@clisp.org>
96744         * doc/gnulib-tool.texi (Localization): New section.
96746 2008-01-02  Bruno Haible  <bruno@clisp.org>
96748         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
96749         variables to 'unsigned char *' type.
96750         Reported by Paul Eggert.
96752 2008-01-02  Jim Meyering  <jim@meyering.net>
96754         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
96756 2007-12-31  Jim Meyering  <jim@meyering.net>
96758         Avoid use of private FTS type name.
96759         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
96761 2007-12-30  Karl Berry  <karl@gnu.org>
96763         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
96764         work around defect in Texinfo and/or the standalone Info browser.
96766 2007-12-30  Bruno Haible  <bruno@clisp.org>
96768         Unify 5 copies of the KMP code.
96769         * lib/str-kmp.h: New file.
96770         * lib/c-strcasestr.c: Include str-kmp.h.
96771         (knuth_morris_pratt): Remove function.
96772         (c_strcasestr): Update.
96773         * lib/c-strstr.c: Include str-kmp.h.
96774         (knuth_morris_pratt): Remove function.
96775         (c_strcasestr): Update.
96776         * lib/mbscasestr.c: Include str-kmp.h.
96777         (knuth_morris_pratt_unibyte): Remove function.
96778         * lib/mbsstr.c: Include str-kmp.h.
96779         (knuth_morris_pratt_unibyte): Remove function.
96780         * lib/strcasestr.c: Include str-kmp.h.
96781         (knuth_morris_pratt): Remove function.
96782         (strcasestr): Update.
96783         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
96784         * modules/c-strstr (Files): Likewise.
96785         * modules/mbscasestr (Files): Likewise.
96786         * modules/mbsstr (Files): Likewise.
96787         * modules/strcasestr (Files): Likewise.
96788         Suggested by Paul Eggert.
96790 2007-12-30  Bruno Haible  <bruno@clisp.org>
96792         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
96793         defined.
96795 2007-12-30  Bruno Haible  <bruno@clisp.org>
96797         * lib/xmalloca.h: Include xalloc.h.
96798         (xnmalloca): New macro.
96800 2007-12-30  Bruno Haible  <bruno@clisp.org>
96802         * lib/malloca.h (nmalloca): New macro.
96803         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
96804         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
96805         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
96806         knuth_morris_pratt_multibyte): Likewise.
96807         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
96808         knuth_morris_pratt_multibyte): Likewise.
96809         * lib/memmem.c (knuth_morris_pratt): Likewise.
96810         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
96812 2007-12-25  Bruno Haible  <bruno@clisp.org>
96814         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
96815         * lib/glob.c: Don't include openat.h.
96816         (link_exists2_p): Add back the code that deals with the
96817         !GLOB_ALTDIRFUNC case.
96818         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
96819         let it do the filename concatenation.
96820         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
96821         * modules/glob (Depends-on): Remove openat.
96823 2007-12-31  Bruno Haible  <bruno@clisp.org>
96825         * modules/dirfd (License): Change to LGPLv2+.
96826         Approved by Jim Meyering.
96828 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
96830         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
96831         when multiplying M by sizeof (size_t).
96833 2007-12-10  Martin Lambers  <marlam@marlam.de>
96835         Override getpagesize on mingw.
96836         * lib/getpagesize.c: New file.
96837         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
96838         * modules/getpagesize (Files): Add lib/getpagesize.c.
96839         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
96840         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
96841         REPLACE_GETPAGESIZE.
96842         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
96844 2007-12-25  Bruno Haible  <bruno@clisp.org>
96846         * modules/localcharset (Notice): New field.
96847         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
96848         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
96850 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
96851             Bruno Haible  <bruno@clisp.org>
96853         Avoid using the syntax symbol() in formatted documentation.
96854         * MODULES.html.sh (func_module): When replacing symbol() with a
96855         hyperlink, remove the parentheses. Show an error if some remain.
96856         Recognize and render the '...' syntax.
96857         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
96858         Rework. Add paragraph about GCC's inlining.
96859         * doc/alloca.texi: Likewise.
96860         * doc/error.texi: Remove parentheses from symbol reference.
96861         * doc/gnulib-intro.texi: Likewise.
96862         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
96863         * modules/fnmatch (Description): Reword to say "the ... function".
96864         * modules/full-read (Description): Likewise.
96865         * modules/full-write (Description): Likewise.
96866         * modules/safe-read (Description): Likewise.
96867         * modules/safe-write (Description): Likewise.
96868         * modules/strchrnul (Description): Likewise.
96869         * modules/trim (Description): Likewise.
96870         * modules/error (Description): Remove parentheses from symbol
96871         references.
96872         * modules/verror (Description): Likewise.
96873         Reported by Karl Berry.
96875 2007-12-25  Bruno Haible  <bruno@clisp.org>
96877         Fixup after 2007-10-16 commit.
96878         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
96880 2007-12-24  Bruno Haible  <bruno@clisp.org>
96882         Make --enable-relocatable work with DESTDIR.
96883         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
96884         to compute installdir from destprog.
96885         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
96886         also set the RELOC_DESTDIR variable.
96887         Reported by Левашев Иван <octagram@bluebottle.com>.
96889 2007-12-24  Bruno Haible  <bruno@clisp.org>
96891         Fix link error due to xalloc_die().
96892         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
96893         of xreadlink.
96894         * lib/relocwrapper.c: Update comments.
96895         * build-aux/install-reloc: Remove xreadlink.c from file list.
96896         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
96897         xreadlink.c.
96898         Reported by Левашев Иван <octagram@bluebottle.com>.
96900 2007-12-24  Bruno Haible  <bruno@clisp.org>
96902         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
96903         * lib/setenv.h: Remove file.
96904         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
96905         lib/setenv.h.
96906         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
96907         (Depends-on): Add stdlib.
96908         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
96909         gl_FUNC_UNSETENV.
96910         (Include): Replace setenv.h with <stdlib.h>.
96911         * modules/unsetenv: New file.
96912         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
96913         * lib/unsetenv.c: Include <stdlib.h> first.
96914         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
96915         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
96916         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
96917         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
96918         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
96919         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
96920         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
96921         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
96922         * doc/functions/unsetenv.texi: Update.
96923         * modules/xsetenv (Depends-on): Add unsetenv.
96924         * modules/getdate (Depends-on): Likewise.
96925         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
96926         * lib/xsetenv.c: Don't include setenv.h.
96927         * lib/getdate.y: Likewise.
96928         * lib/relocwrapper.c: Likewise.
96929         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
96930         (Depends-on): Add stdlib.
96931         * NEWS: Mention the changes.
96932         Reported by Левашев Иван <octagram@bluebottle.com>.
96934 2007-12-23  Bruno Haible  <bruno@clisp.org>
96936         * lib/memmem.c (memmem): Use lowercase variable names. Tab
96937         indentation.
96939 2007-12-23  Bruno Haible  <bruno@clisp.org>
96941         * lib/c-strcasestr.c: Add more comments.
96942         * lib/c-strstr.c: Likewise.
96943         * lib/mbscasestr.c: Likewise.
96944         * lib/mbsstr.c: Likewise.
96945         * lib/strcasestr.c: Likewise.
96946         * lib/memmem.c: Likewise.
96948 2007-12-23  Bruno Haible  <bruno@clisp.org>
96950         * tests/test-memmem.c: Include <string.h> first.
96952 2007-12-22  Bruno Haible  <bruno@clisp.org>
96954         * gnulib-tool (func_create_testdir): Change $auxdir while generating
96955         the contents of $testsbase.
96956         Reported by Ralf Wildenhues.
96958 2007-12-22  Bruno Haible  <bruno@clisp.org>
96960         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
96961         two variables local_ldadd_before, local_ldadd_last.
96963 2007-12-20  Eric Blake  <ebb9@byu.net>
96965         Work around circular library issue when cross-compiling.
96966         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
96967         that progname.o does not need to pull in rpl_memcmp.
96969 2007-12-19  Eric Blake  <ebb9@byu.net>
96971         Fix memmem to avoid O(n^2) worst-case complexity.
96972         * lib/memmem.c (knuth_morris_pratt): New function.
96973         (memmem): Use it if first few naive iterations fail.
96974         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
96975         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
96976         * modules/memchr (License): Likewise.
96977         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
96978         malloca.
96979         * tests/test-memmem.c: Rewrite, borrowing ideas from
96980         test-mbsstr1.c; the old version wouldn't even compile!
96981         * modules/memmem-tests: New file.
96982         * lib/string.in.h (rpl_memmem): Add declaration.
96983         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
96984         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
96985         REPLACE_MEMMEM.
96987 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
96989         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
96990         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
96991         before any system include files, and undef after them all.  This
96992         should fix a problem on VMS reported by John E. Malmberg in
96993         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
96995 2007-12-17  Eric Blake  <ebb9@byu.net>
96997         Revert addition of verify, for BSD/OS.
96998         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
96999         can't handle large files, for the sake of obsolete platforms.
97000         * modules/fseeko (Depends-on): Remove verify.
97001         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
97002         * doc/functions/ftello.texi (ftello): Likewise.
97003         * doc/functions/fgetpos.texi (fgetpos): Likewise.
97004         Reported by Larry Jones.
97006 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
97008         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
97009         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
97011 2007-12-17  Jim Meyering  <meyering@redhat.com>
97013         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
97014         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
97015         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
97016         * modules/getcwd (Depends-on): Add openat.
97017         Reported by Petr Salinger.
97019 2007-12-17  Bruno Haible  <bruno@clisp.org>
97021         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
97022         avoid a segmentation fault of the configure test on x86_64 systems.
97024 2007-12-15  Jim Meyering  <meyering@redhat.com>
97026         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
97028 2007-12-13  Eric Blake  <ebb9@byu.net>
97030         Another fseek test.
97031         * tests/test-fseek.c (main): Also test ungetc handling.
97032         * tests/test-fseeko.c (main): Likewise.
97033         * modules/fseeko (Depends-on): Add verify.
97034         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
97035         large.
97036         Reported by Larry Jones.
97038         Fix fseeko on mingw.
97039         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
97040         seek.
97042         Beef up fseek tests.
97043         * tests/test-fseek.c (main): Also test eof handling.
97044         * tests/test-fseeko.c (main): Likewise.
97045         Reported by Larry Jones.
97047 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
97049         Fix fseeko on BSD-based platforms.
97050         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
97051         successful seek.
97053 2007-12-12  Eric Blake  <ebb9@byu.net>
97055         Allow circular dependency of separate libtests.a
97056         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
97057         when use_libtests.
97059 2007-12-11  Eric Blake  <ebb9@byu.net>
97061         Fix bug with -0.0L in previous patch.
97062         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
97063         * tests/test-isnan.c (main): Also test on zeroes.
97064         * tests/test-isnanf.c (main): Likewise.
97065         * tests/test-isnanl.h (main): Likewise.
97067         Detect pseudo-denormals on x86 even when cross-compiling.
97068         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
97069         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
97070         invalid bit patterns that happen to satisfy ==.
97072         Avoid link failures with separate libtests.a.
97073         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
97074         last, to satisfy circular dependencies.
97076 2007-12-11  Eric Blake  <ebb9@byu.net>
97077         and Bruno Haible  <bruno@clisp.org>
97079         Fix OpenBSD 4.0 <float.h> handling of long double.
97080         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
97081         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
97082         * doc/headers/float.texi (float.h): Document OpenBSD bug.
97084 2007-12-11  Jim Meyering  <meyering@redhat.com>
97086         * users.txt: Add libvirt.
97088         Support versions of autoconf prior to 2.59c.
97089         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
97090         if it is not already defined.
97092 2007-12-09  Bruno Haible  <bruno@clisp.org>
97094         Let 'gnulib-tool --import' collect sources needed for the tests in
97095         tests/ rather than in lib/.
97096         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
97097         argument. If true, add rules to generate libtests.a, and put libtests.a
97098         into $(LDADD). Consider source files in subdirectories and set
97099         uses_subdirs.
97100         (func_emit_initmacro_start, func_emit_initmacro_end,
97101         func_emit_initmacro_done): Pass all arguments explicitly.
97102         (func_import): Determine two module lists main_modules,
97103         testsrelated_modules. Determine use_libtests. Determine two variables
97104         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
97105         instead of just sed_transform_lib_file. Determine two variables
97106         main_files and testsrelated_files. Compute 'files' as the union of
97107         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
97108         func_add_or_update. In the generated gnulib-comp.m4, collect the
97109         object files for tests/ in different variables than those for lib/.
97110         Substitute LIBTESTS_LIBDEPS.
97111         (func_create_testdir): Combine the uses_subdirs results from
97112         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
97114 2007-12-09  Bruno Haible  <bruno@clisp.org>
97116         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
97117         the build-aux directory.
97119 2007-12-09  Bruno Haible  <bruno@clisp.org>
97121         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
97122         introduced on 2006-09-09.
97124 2007-12-07  Jim Meyering  <meyering@redhat.com>
97126         Let these macros work also with autoconf-2.59.
97127         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
97128         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
97129         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
97131 2007-12-06  Jim Meyering  <meyering@redhat.com>
97133         Avoid a configure-time syntax error in gl_FUNC_ACL.
97134         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
97135         function in each branch, before testing the cache variable.
97137 2007-12-04  Eric Blake  <ebb9@byu.net>
97139         Make scripts executable.
97140         * build-aux/config.guess: Add execute permissions.
97141         * build-aux/config.sub: Likewise.
97142         * build-aux/gendocs.sh: Likewise.
97144         Fix frexp on mingw.
97145         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
97146         cross-compiling.
97147         * doc/functions/frexp.texi (frexp): Document the bug.
97149         Make cygwin fseeko check more reliable.
97150         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
97151         version numbers, rather than unrelated feature check.
97152         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
97153         * doc/functions/ftello.texi (ftello): Likewise.
97154         Reported by Bruno Haible.
97156         * m4/strerror.m4: Bump version number.
97158 2007-12-03  Bruno Haible  <bruno@clisp.org>
97160         * doc/functions/mprotect.texi: Mention the mingw problem.
97162 2007-12-03  Eric Blake  <ebb9@byu.net>
97164         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
97165         REPLACE_STRERROR is initialized before this macro.
97167 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
97169         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
97170         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
97171         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
97172         put -lsec in even for programs other than 'ls'.  This fixes a problem
97173         for gettext reported by Bruno Haible in
97174         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
97175         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
97176         Add support for Solaris 10.  This isn't efficient, but should get the
97177         job done for now.
97179 2007-12-03  James Youngman  <jay@gnu.org>
97181         * doc/regexprops-generic.texi: change "an close-group" to "a
97182         close-group" and "illegal" to "not allowed".
97184 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97186         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
97187         pr_byname.h. Needed for the rare case when the maintainer has done
97188         "make maintainer-clean" in the source directory and then attempts a
97189         build outside the source directory.
97190         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
97191         scripts_byname.h.
97193 2007-12-02  Martin Lambers  <marlam@marlam.de>
97194             Bruno Haible  <bruno@clisp.org>
97196         * lib/getpagesize.h: Remove file.
97197         * lib/unistd.in.h: Include declaration of getpagesize here.
97198         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
97199         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
97200         HAVE_SYS_PARAM_H.
97201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
97202         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
97203         * modules/getpagesize (Files): Remove lib/getpagesize.h.
97204         (Depends-on): Add unistd.
97205         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
97206         (Include): Use <unistd.h> instead of getpagesize.h.
97207         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
97208         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
97209         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
97210         gl_GETPAGESIZE invocation, already handled by module dependency.
97211         * lib/pagealign_alloc.c: Don't include getpagesize.h.
97213 2007-12-02  Bruno Haible  <bruno@clisp.org>
97215         * modules/strings-tests: New file.
97216         * tests/test-strings.c: New file.
97218         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
97219         * lib/strings.in.h: New file.
97220         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
97221         * m4/strings_h.m4: New file.
97222         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
97223         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
97224         * modules/strings: New file.
97225         * modules/string (Makefile.am): Update.
97226         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
97227         Reported by Karl Berry.
97229 2007-12-01  Eric Blake  <ebb9@byu.net>
97231         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
97232         accommodate fix in cygwin 1.5.25.
97234 2007-12-01  Jim Meyering  <meyering@redhat.com>
97236         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
97237         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
97238         that would inhibit utf8-optimization of a regexp containing line-
97239         or buffer-anchors, e.g., `^', `$'.
97241 2007-11-30  Bruno Haible  <bruno@clisp.org>
97243         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
97244         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
97245         glthread_recursive_lock_init.
97246         * lib/lock.c (glthread_recursive_lock_init)
97247         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
97248         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
97250 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
97252         New function qset_acl, like set_acl but with syscall semantics.
97253         * lib/acl.h (qset_acl): New decl.
97254         * lib/acl.c (qset_acl): New function.
97255         (set_acl): Use new function.  Use more-consistent diagnostics.
97257 2007-11-28  Jim Meyering  <meyering@redhat.com>
97259         * modules/physmem (License): Change from GPL to LGPLv2+.
97261 2007-11-26  Bruno Haible  <bruno@clisp.org>
97263         * lib/vasnprintf.c (decode_long_double): Don't abort if the
97264         'long double' type has excess precision.
97265         Reported by Jim Meyering in
97266         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
97268 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97270         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
97271         Sync from <http://gnu.org/licenses>.
97272         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
97273         with license text from same location.
97274         * doc/maintain.texi, doc/standards.texi:  Sync from
97275         <http://savannah.gnu.org/projects/gnustandards>.
97277 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
97278         and Jim Meyering  <meyering@redhat.com>
97280         Adjust getdate' grammar to accept a slightly more regular language.
97281         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
97282         Before, the former was rejected.
97283         * lib/getdate.y (digits_to_date_time): New function, factored
97284         out of ...
97285         (number): ...here.  Just call digits_to_date_time.
97286         (hybrid): New non-terminal to handle an <unsigned number,
97287         signed relative offset> sequence consistently.
97289 2007-11-18  Jim Meyering  <meyering@redhat.com>
97291         Pull my changes from coreutils:
97292         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
97293         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
97294         use of $gnulib_tool_option_extras, so that it's separated from the
97295         preceding argument.
97297         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
97298         * build-aux/bootstrap (cp_mark_as_generated): Create any required
97299         parent destination directories before copying a file into place.
97301 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
97303         bootstrap: work also with 4-argument variant of AC_INIT
97304         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
97306 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
97308         Port test-getaddrinfo to Solaris.
97309         Problem reported by Bruno Haible in
97310         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
97311         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
97312         explanation of setting 'hints'.
97313         Don't reject an implementation merely because it returns EAI_SERVICE.
97314         (EAI_SERVICE): Define to 0 if not defined.
97316 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
97318         The license of gnu-make and posix-shell is now "GPLed build tool".
97319         * modules/gnu-make (License): Likewise.
97320         * modules/posix-shell (License): Likewise.
97322         New module posix-shell, for determining a POSIX shell
97323         or perhaps something that is close enough to a POSIX shell.
97324         * m4/posix-shell.m4: New file.
97325         * modules/posix-shell: New file.
97327         * MODULES.html.sh: Mention new module.
97329         New module gnu-make, for determining whether we're using GNU Make.
97330         * m4/gnu-make.m4: New file.
97331         * modules/gnu-make: New file.
97332         * MODULES.html.sh: Mention new module.
97334 2007-11-14  Jim Meyering  <meyering@redhat.com>
97336         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
97337         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
97338         use this macro to create a function _definition_.
97339         Remove useless "#undef ARGMATCH_DIE".
97341 2007-11-14  Bruno Haible  <bruno@clisp.org>
97343         * lib/config.charset: Update for OpenBSD 4.1.
97344         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
97346 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
97348         Document 64-bit #if problems in stdint.texi.
97349         * doc/headers/stdint.texi (stdint.h): Mention problems with
97350         64-bit-#if, and how to work around them.
97352         Don't insist on 'long long int' support in the preprocessor.  It
97353         breaks too many things.  For example, PRIdMAX still uses a 'long
97354         long int' format with the latest Sun compiler, even though
97355         HAVE_LONG_LONG_INT isn't defined due to that compiler's
97356         preprocessor problem.  This causes the latest coreutils to dump
97357         core on Solaris 10 sparc with the Sun C compiler.
97358         Instead, fix the 2007-10-16 problem in a different way, by evaluating
97359         the troublesome expressions at configure-time, not at #if-time.
97360         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
97361         preprocessor.
97362         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
97363         compile-time C checks, done at 'configure'-time.
97364         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
97365         * modules/inttypes (Makefile): Substitute the new symbols that
97366         gl_INTTYPES_H now generates.
97367         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
97369 2007-11-12  Bruno Haible  <bruno@clisp.org>
97371         Tests for Unicode character classification functions.
97373         * modules/unictype/bidicategory-byname-tests: New file.
97374         * modules/unictype/bidicategory-name-tests: New file.
97375         * modules/unictype/bidicategory-of-tests: New file.
97376         * modules/unictype/bidicategory-test-tests: New file.
97377         * modules/unictype/block-list-tests: New file.
97378         * modules/unictype/block-of-tests: New file.
97379         * modules/unictype/block-test-tests: New file.
97380         * modules/unictype/category-C-tests: New file.
97381         * modules/unictype/category-Cc-tests: New file.
97382         * modules/unictype/category-Cf-tests: New file.
97383         * modules/unictype/category-Cn-tests: New file.
97384         * modules/unictype/category-Co-tests: New file.
97385         * modules/unictype/category-Cs-tests: New file.
97386         * modules/unictype/category-L-tests: New file.
97387         * modules/unictype/category-Ll-tests: New file.
97388         * modules/unictype/category-Lm-tests: New file.
97389         * modules/unictype/category-Lo-tests: New file.
97390         * modules/unictype/category-Lt-tests: New file.
97391         * modules/unictype/category-Lu-tests: New file.
97392         * modules/unictype/category-M-tests: New file.
97393         * modules/unictype/category-Mc-tests: New file.
97394         * modules/unictype/category-Me-tests: New file.
97395         * modules/unictype/category-Mn-tests: New file.
97396         * modules/unictype/category-N-tests: New file.
97397         * modules/unictype/category-Nd-tests: New file.
97398         * modules/unictype/category-Nl-tests: New file.
97399         * modules/unictype/category-No-tests: New file.
97400         * modules/unictype/category-P-tests: New file.
97401         * modules/unictype/category-Pc-tests: New file.
97402         * modules/unictype/category-Pd-tests: New file.
97403         * modules/unictype/category-Pe-tests: New file.
97404         * modules/unictype/category-Pf-tests: New file.
97405         * modules/unictype/category-Pi-tests: New file.
97406         * modules/unictype/category-Po-tests: New file.
97407         * modules/unictype/category-Ps-tests: New file.
97408         * modules/unictype/category-S-tests: New file.
97409         * modules/unictype/category-Sc-tests: New file.
97410         * modules/unictype/category-Sk-tests: New file.
97411         * modules/unictype/category-Sm-tests: New file.
97412         * modules/unictype/category-So-tests: New file.
97413         * modules/unictype/category-Z-tests: New file.
97414         * modules/unictype/category-Zl-tests: New file.
97415         * modules/unictype/category-Zp-tests: New file.
97416         * modules/unictype/category-Zs-tests: New file.
97417         * modules/unictype/category-and-not-tests: New file.
97418         * modules/unictype/category-and-tests: New file.
97419         * modules/unictype/category-byname-tests: New file.
97420         * modules/unictype/category-name-tests: New file.
97421         * modules/unictype/category-none-tests: New file.
97422         * modules/unictype/category-of-tests: New file.
97423         * modules/unictype/category-or-tests: New file.
97424         * modules/unictype/category-test-withtable-tests: New file.
97425         * modules/unictype/combining-class-tests: New file.
97426         * modules/unictype/ctype-alnum-tests: New file.
97427         * modules/unictype/ctype-alpha-tests: New file.
97428         * modules/unictype/ctype-blank-tests: New file.
97429         * modules/unictype/ctype-cntrl-tests: New file.
97430         * modules/unictype/ctype-digit-tests: New file.
97431         * modules/unictype/ctype-graph-tests: New file.
97432         * modules/unictype/ctype-lower-tests: New file.
97433         * modules/unictype/ctype-print-tests: New file.
97434         * modules/unictype/ctype-punct-tests: New file.
97435         * modules/unictype/ctype-space-tests: New file.
97436         * modules/unictype/ctype-upper-tests: New file.
97437         * modules/unictype/ctype-xdigit-tests: New file.
97438         * modules/unictype/decimal-digit-tests: New file.
97439         * modules/unictype/digit-tests: New file.
97440         * modules/unictype/mirror-tests: New file.
97441         * modules/unictype/numeric-tests: New file.
97442         * modules/unictype/property-alphabetic-tests: New file.
97443         * modules/unictype/property-ascii-hex-digit-tests: New file.
97444         * modules/unictype/property-bidi-arabic-digit-tests: New file.
97445         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
97446         * modules/unictype/property-bidi-block-separator-tests: New file.
97447         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
97448         * modules/unictype/property-bidi-common-separator-tests: New file.
97449         * modules/unictype/property-bidi-control-tests: New file.
97450         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
97451         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
97452         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
97453         * modules/unictype/property-bidi-european-digit-tests: New file.
97454         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
97455         * modules/unictype/property-bidi-left-to-right-tests: New file.
97456         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
97457         * modules/unictype/property-bidi-other-neutral-tests: New file.
97458         * modules/unictype/property-bidi-pdf-tests: New file.
97459         * modules/unictype/property-bidi-segment-separator-tests: New file.
97460         * modules/unictype/property-bidi-whitespace-tests: New file.
97461         * modules/unictype/property-byname-tests: New file.
97462         * modules/unictype/property-combining-tests: New file.
97463         * modules/unictype/property-composite-tests: New file.
97464         * modules/unictype/property-currency-symbol-tests: New file.
97465         * modules/unictype/property-dash-tests: New file.
97466         * modules/unictype/property-decimal-digit-tests: New file.
97467         * modules/unictype/property-default-ignorable-code-point-tests: New file.
97468         * modules/unictype/property-deprecated-tests: New file.
97469         * modules/unictype/property-diacritic-tests: New file.
97470         * modules/unictype/property-extender-tests: New file.
97471         * modules/unictype/property-format-control-tests: New file.
97472         * modules/unictype/property-grapheme-base-tests: New file.
97473         * modules/unictype/property-grapheme-extend-tests: New file.
97474         * modules/unictype/property-grapheme-link-tests: New file.
97475         * modules/unictype/property-hex-digit-tests: New file.
97476         * modules/unictype/property-hyphen-tests: New file.
97477         * modules/unictype/property-id-continue-tests: New file.
97478         * modules/unictype/property-id-start-tests: New file.
97479         * modules/unictype/property-ideographic-tests: New file.
97480         * modules/unictype/property-ids-binary-operator-tests: New file.
97481         * modules/unictype/property-ids-trinary-operator-tests: New file.
97482         * modules/unictype/property-ignorable-control-tests: New file.
97483         * modules/unictype/property-iso-control-tests: New file.
97484         * modules/unictype/property-join-control-tests: New file.
97485         * modules/unictype/property-left-of-pair-tests: New file.
97486         * modules/unictype/property-line-separator-tests: New file.
97487         * modules/unictype/property-logical-order-exception-tests: New file.
97488         * modules/unictype/property-lowercase-tests: New file.
97489         * modules/unictype/property-math-tests: New file.
97490         * modules/unictype/property-non-break-tests: New file.
97491         * modules/unictype/property-not-a-character-tests: New file.
97492         * modules/unictype/property-numeric-tests: New file.
97493         * modules/unictype/property-other-alphabetic-tests: New file.
97494         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
97495         * modules/unictype/property-other-grapheme-extend-tests: New file.
97496         * modules/unictype/property-other-id-continue-tests: New file.
97497         * modules/unictype/property-other-id-start-tests: New file.
97498         * modules/unictype/property-other-lowercase-tests: New file.
97499         * modules/unictype/property-other-math-tests: New file.
97500         * modules/unictype/property-other-uppercase-tests: New file.
97501         * modules/unictype/property-paired-punctuation-tests: New file.
97502         * modules/unictype/property-paragraph-separator-tests: New file.
97503         * modules/unictype/property-pattern-syntax-tests: New file.
97504         * modules/unictype/property-pattern-white-space-tests: New file.
97505         * modules/unictype/property-private-use-tests: New file.
97506         * modules/unictype/property-punctuation-tests: New file.
97507         * modules/unictype/property-quotation-mark-tests: New file.
97508         * modules/unictype/property-radical-tests: New file.
97509         * modules/unictype/property-sentence-terminal-tests: New file.
97510         * modules/unictype/property-soft-dotted-tests: New file.
97511         * modules/unictype/property-space-tests: New file.
97512         * modules/unictype/property-terminal-punctuation-tests: New file.
97513         * modules/unictype/property-test-tests: New file.
97514         * modules/unictype/property-titlecase-tests: New file.
97515         * modules/unictype/property-unassigned-code-value-tests: New file.
97516         * modules/unictype/property-unified-ideograph-tests: New file.
97517         * modules/unictype/property-uppercase-tests: New file.
97518         * modules/unictype/property-variation-selector-tests: New file.
97519         * modules/unictype/property-white-space-tests: New file.
97520         * modules/unictype/property-xid-continue-tests: New file.
97521         * modules/unictype/property-xid-start-tests: New file.
97522         * modules/unictype/property-zero-width-tests: New file.
97523         * modules/unictype/scripts-tests: New file.
97524         * modules/unictype/syntax-c-ident-tests: New file.
97525         * modules/unictype/syntax-c-whitespace-tests: New file.
97526         * modules/unictype/syntax-java-ident-tests: New file.
97527         * modules/unictype/syntax-java-whitespace-tests: New file.
97528         * tests/unictype/test-bidi_byname.c: New file.
97529         * tests/unictype/test-bidi_name.c: New file.
97530         * tests/unictype/test-bidi_of.c: New file.
97531         * tests/unictype/test-bidi_test.c: New file.
97532         * tests/unictype/test-block_list.c: New file.
97533         * tests/unictype/test-block_of.c: New file.
97534         * tests/unictype/test-block_test.c: New file.
97535         * tests/unictype/test-categ_and.c: New file.
97536         * tests/unictype/test-categ_and_not.c: New file.
97537         * tests/unictype/test-categ_byname.c: New file.
97538         * tests/unictype/test-categ_name.c: New file.
97539         * tests/unictype/test-categ_none.c: New file.
97540         * tests/unictype/test-categ_of.c: New file.
97541         * tests/unictype/test-categ_or.c: New file.
97542         * tests/unictype/test-categ_test_withtable.c: New file.
97543         * tests/unictype/test-combining.c: New file.
97544         * tests/unictype/test-decdigit.c: New file.
97545         * tests/unictype/test-digit.c: New file.
97546         * tests/unictype/test-mirror.c: New file.
97547         * tests/unictype/test-numeric.c: New file.
97548         * tests/unictype/test-pr_byname.c: New file.
97549         * tests/unictype/test-pr_test.c: New file.
97550         * tests/unictype/test-predicate-part1.h: New file.
97551         * tests/unictype/test-predicate-part2.h: New file.
97552         * tests/unictype/test-scripts.c: New file.
97553         * tests/unictype/test-sy_c_ident.c: New file.
97554         * tests/unictype/test-sy_java_ident.c: New file.
97556         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
97557         for Unicode 5.0.0.
97558         * tests/unictype/test-categ_Cc.c: Likewise.
97559         * tests/unictype/test-categ_Cf.c: Likewise.
97560         * tests/unictype/test-categ_Cn.c: Likewise.
97561         * tests/unictype/test-categ_Co.c: Likewise.
97562         * tests/unictype/test-categ_Cs.c: Likewise.
97563         * tests/unictype/test-categ_L.c: Likewise.
97564         * tests/unictype/test-categ_Ll.c: Likewise.
97565         * tests/unictype/test-categ_Lm.c: Likewise.
97566         * tests/unictype/test-categ_Lo.c: Likewise.
97567         * tests/unictype/test-categ_Lt.c: Likewise.
97568         * tests/unictype/test-categ_Lu.c: Likewise.
97569         * tests/unictype/test-categ_M.c: Likewise.
97570         * tests/unictype/test-categ_Mc.c: Likewise.
97571         * tests/unictype/test-categ_Me.c: Likewise.
97572         * tests/unictype/test-categ_Mn.c: Likewise.
97573         * tests/unictype/test-categ_N.c: Likewise.
97574         * tests/unictype/test-categ_Nd.c: Likewise.
97575         * tests/unictype/test-categ_Nl.c: Likewise.
97576         * tests/unictype/test-categ_No.c: Likewise.
97577         * tests/unictype/test-categ_P.c: Likewise.
97578         * tests/unictype/test-categ_Pc.c: Likewise.
97579         * tests/unictype/test-categ_Pd.c: Likewise.
97580         * tests/unictype/test-categ_Pe.c: Likewise.
97581         * tests/unictype/test-categ_Pf.c: Likewise.
97582         * tests/unictype/test-categ_Pi.c: Likewise.
97583         * tests/unictype/test-categ_Po.c: Likewise.
97584         * tests/unictype/test-categ_Ps.c: Likewise.
97585         * tests/unictype/test-categ_S.c: Likewise.
97586         * tests/unictype/test-categ_Sc.c: Likewise.
97587         * tests/unictype/test-categ_Sk.c: Likewise.
97588         * tests/unictype/test-categ_Sm.c: Likewise.
97589         * tests/unictype/test-categ_So.c: Likewise.
97590         * tests/unictype/test-categ_Z.c: Likewise.
97591         * tests/unictype/test-categ_Zl.c: Likewise.
97592         * tests/unictype/test-categ_Zp.c: Likewise.
97593         * tests/unictype/test-categ_Zs.c: Likewise.
97594         * tests/unictype/test-ctype_alnum.c: Likewise.
97595         * tests/unictype/test-ctype_alpha.c: Likewise.
97596         * tests/unictype/test-ctype_blank.c: Likewise.
97597         * tests/unictype/test-ctype_cntrl.c: Likewise.
97598         * tests/unictype/test-ctype_digit.c: Likewise.
97599         * tests/unictype/test-ctype_graph.c: Likewise.
97600         * tests/unictype/test-ctype_lower.c: Likewise.
97601         * tests/unictype/test-ctype_print.c: Likewise.
97602         * tests/unictype/test-ctype_punct.c: Likewise.
97603         * tests/unictype/test-ctype_space.c: Likewise.
97604         * tests/unictype/test-ctype_upper.c: Likewise.
97605         * tests/unictype/test-ctype_xdigit.c: Likewise.
97606         * tests/unictype/test-decdigit.h: Likewise.
97607         * tests/unictype/test-digit.h: Likewise.
97608         * tests/unictype/test-numeric.h: Likewise.
97609         * tests/unictype/test-pr_alphabetic.c: Likewise.
97610         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
97611         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
97612         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
97613         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
97614         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
97615         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
97616         * tests/unictype/test-pr_bidi_control.c: Likewise.
97617         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
97618         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
97619         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
97620         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
97621         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
97622         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
97623         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
97624         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
97625         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
97626         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
97627         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
97628         * tests/unictype/test-pr_combining.c: Likewise.
97629         * tests/unictype/test-pr_composite.c: Likewise.
97630         * tests/unictype/test-pr_currency_symbol.c: Likewise.
97631         * tests/unictype/test-pr_dash.c: Likewise.
97632         * tests/unictype/test-pr_decimal_digit.c: Likewise.
97633         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
97634         * tests/unictype/test-pr_deprecated.c: Likewise.
97635         * tests/unictype/test-pr_diacritic.c: Likewise.
97636         * tests/unictype/test-pr_extender.c: Likewise.
97637         * tests/unictype/test-pr_format_control.c: Likewise.
97638         * tests/unictype/test-pr_grapheme_base.c: Likewise.
97639         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
97640         * tests/unictype/test-pr_grapheme_link.c: Likewise.
97641         * tests/unictype/test-pr_hex_digit.c: Likewise.
97642         * tests/unictype/test-pr_hyphen.c: Likewise.
97643         * tests/unictype/test-pr_id_continue.c: Likewise.
97644         * tests/unictype/test-pr_id_start.c: Likewise.
97645         * tests/unictype/test-pr_ideographic.c: Likewise.
97646         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
97647         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
97648         * tests/unictype/test-pr_ignorable_control.c: Likewise.
97649         * tests/unictype/test-pr_iso_control.c: Likewise.
97650         * tests/unictype/test-pr_join_control.c: Likewise.
97651         * tests/unictype/test-pr_left_of_pair.c: Likewise.
97652         * tests/unictype/test-pr_line_separator.c: Likewise.
97653         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
97654         * tests/unictype/test-pr_lowercase.c: Likewise.
97655         * tests/unictype/test-pr_math.c: Likewise.
97656         * tests/unictype/test-pr_non_break.c: Likewise.
97657         * tests/unictype/test-pr_not_a_character.c: Likewise.
97658         * tests/unictype/test-pr_numeric.c: Likewise.
97659         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
97660         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
97661         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
97662         * tests/unictype/test-pr_other_id_continue.c: Likewise.
97663         * tests/unictype/test-pr_other_id_start.c: Likewise.
97664         * tests/unictype/test-pr_other_lowercase.c: Likewise.
97665         * tests/unictype/test-pr_other_math.c: Likewise.
97666         * tests/unictype/test-pr_other_uppercase.c: Likewise.
97667         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
97668         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
97669         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
97670         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
97671         * tests/unictype/test-pr_private_use.c: Likewise.
97672         * tests/unictype/test-pr_punctuation.c: Likewise.
97673         * tests/unictype/test-pr_quotation_mark.c: Likewise.
97674         * tests/unictype/test-pr_radical.c: Likewise.
97675         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
97676         * tests/unictype/test-pr_soft_dotted.c: Likewise.
97677         * tests/unictype/test-pr_space.c: Likewise.
97678         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
97679         * tests/unictype/test-pr_titlecase.c: Likewise.
97680         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
97681         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
97682         * tests/unictype/test-pr_uppercase.c: Likewise.
97683         * tests/unictype/test-pr_variation_selector.c: Likewise.
97684         * tests/unictype/test-pr_white_space.c: Likewise.
97685         * tests/unictype/test-pr_xid_continue.c: Likewise.
97686         * tests/unictype/test-pr_xid_start.c: Likewise.
97687         * tests/unictype/test-pr_zero_width.c: Likewise.
97688         * tests/unictype/test-sy_c_whitespace.c: Likewise.
97689         * tests/unictype/test-sy_java_whitespace.c: Likewise.
97691 2007-11-12  Bruno Haible  <bruno@clisp.org>
97693         Unicode character classification functions.
97694         * lib/unictype.h: New file.
97695         * modules/unictype/base: New file.
97696         * modules/unictype/category-L: New file.
97697         * modules/unictype/category-Lu: New file.
97698         * modules/unictype/category-Ll: New file.
97699         * modules/unictype/category-Lt: New file.
97700         * modules/unictype/category-Lm: New file.
97701         * modules/unictype/category-Lo: New file.
97702         * modules/unictype/category-M: New file.
97703         * modules/unictype/category-Mn: New file.
97704         * modules/unictype/category-Mc: New file.
97705         * modules/unictype/category-Me: New file.
97706         * modules/unictype/category-N: New file.
97707         * modules/unictype/category-Nd: New file.
97708         * modules/unictype/category-Nl: New file.
97709         * modules/unictype/category-No: New file.
97710         * modules/unictype/category-P: New file.
97711         * modules/unictype/category-Pc: New file.
97712         * modules/unictype/category-Pd: New file.
97713         * modules/unictype/category-Ps: New file.
97714         * modules/unictype/category-Pe: New file.
97715         * modules/unictype/category-Pi: New file.
97716         * modules/unictype/category-Pf: New file.
97717         * modules/unictype/category-Po: New file.
97718         * modules/unictype/category-S: New file.
97719         * modules/unictype/category-Sm: New file.
97720         * modules/unictype/category-Sc: New file.
97721         * modules/unictype/category-Sk: New file.
97722         * modules/unictype/category-So: New file.
97723         * modules/unictype/category-Z: New file.
97724         * modules/unictype/category-Zs: New file.
97725         * modules/unictype/category-Zl: New file.
97726         * modules/unictype/category-Zp: New file.
97727         * modules/unictype/category-C: New file.
97728         * modules/unictype/category-Cc: New file.
97729         * modules/unictype/category-Cf: New file.
97730         * modules/unictype/category-Cs: New file.
97731         * modules/unictype/category-Co: New file.
97732         * modules/unictype/category-Cn: New file.
97733         * modules/unictype/category-or: New file.
97734         * modules/unictype/category-of: New file.
97735         * modules/unictype/category-test: New file.
97736         * modules/unictype/category-test-withtable: New file.
97737         * modules/unictype/category-byname: New file.
97738         * modules/unictype/category-none: New file.
97739         * modules/unictype/category-and: New file.
97740         * modules/unictype/category-and-not: New file.
97741         * modules/unictype/category-name: New file.
97742         * modules/unictype/combining-class: New file.
97743         * modules/unictype/category-all: New file.
97744         * modules/unictype/bidicategory-all: New file.
97745         * modules/unictype/bidicategory-byname: New file.
97746         * modules/unictype/bidicategory-name: New file.
97747         * modules/unictype/bidicategory-of: New file.
97748         * modules/unictype/bidicategory-test: New file.
97749         * modules/unictype/decimal-digit: New file.
97750         * modules/unictype/digit: New file.
97751         * modules/unictype/numeric: New file.
97752         * modules/unictype/mirror: New file.
97753         * modules/unictype/property-white-space: New file.
97754         * modules/unictype/property-alphabetic: New file.
97755         * modules/unictype/property-other-alphabetic: New file.
97756         * modules/unictype/property-not-a-character: New file.
97757         * modules/unictype/property-default-ignorable-code-point: New file.
97758         * modules/unictype/property-other-default-ignorable-code-point: New
97759         file.
97760         * modules/unictype/property-deprecated: New file.
97761         * modules/unictype/property-logical-order-exception: New file.
97762         * modules/unictype/property-variation-selector: New file.
97763         * modules/unictype/property-private-use: New file.
97764         * modules/unictype/property-unassigned-code-value: New file.
97765         * modules/unictype/property-uppercase: New file.
97766         * modules/unictype/property-other-uppercase: New file.
97767         * modules/unictype/property-lowercase: New file.
97768         * modules/unictype/property-other-lowercase: New file.
97769         * modules/unictype/property-titlecase: New file.
97770         * modules/unictype/property-soft-dotted: New file.
97771         * modules/unictype/property-id-start: New file.
97772         * modules/unictype/property-other-id-start: New file.
97773         * modules/unictype/property-id-continue: New file.
97774         * modules/unictype/property-other-id-continue: New file.
97775         * modules/unictype/property-xid-start: New file.
97776         * modules/unictype/property-xid-continue: New file.
97777         * modules/unictype/property-pattern-white-space: New file.
97778         * modules/unictype/property-pattern-syntax: New file.
97779         * modules/unictype/property-join-control: New file.
97780         * modules/unictype/property-grapheme-base: New file.
97781         * modules/unictype/property-grapheme-extend: New file.
97782         * modules/unictype/property-other-grapheme-extend: New file.
97783         * modules/unictype/property-grapheme-link: New file.
97784         * modules/unictype/property-bidi-control: New file.
97785         * modules/unictype/property-bidi-left-to-right: New file.
97786         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
97787         * modules/unictype/property-bidi-arabic-right-to-left: New file.
97788         * modules/unictype/property-bidi-european-digit: New file.
97789         * modules/unictype/property-bidi-eur-num-separator: New file.
97790         * modules/unictype/property-bidi-eur-num-terminator: New file.
97791         * modules/unictype/property-bidi-arabic-digit: New file.
97792         * modules/unictype/property-bidi-common-separator: New file.
97793         * modules/unictype/property-bidi-block-separator: New file.
97794         * modules/unictype/property-bidi-segment-separator: New file.
97795         * modules/unictype/property-bidi-whitespace: New file.
97796         * modules/unictype/property-bidi-non-spacing-mark: New file.
97797         * modules/unictype/property-bidi-boundary-neutral: New file.
97798         * modules/unictype/property-bidi-pdf: New file.
97799         * modules/unictype/property-bidi-embedding-or-override: New file.
97800         * modules/unictype/property-bidi-other-neutral: New file.
97801         * modules/unictype/property-hex-digit: New file.
97802         * modules/unictype/property-ascii-hex-digit: New file.
97803         * modules/unictype/property-ideographic: New file.
97804         * modules/unictype/property-unified-ideograph: New file.
97805         * modules/unictype/property-radical: New file.
97806         * modules/unictype/property-ids-binary-operator: New file.
97807         * modules/unictype/property-ids-trinary-operator: New file.
97808         * modules/unictype/property-zero-width: New file.
97809         * modules/unictype/property-space: New file.
97810         * modules/unictype/property-non-break: New file.
97811         * modules/unictype/property-iso-control: New file.
97812         * modules/unictype/property-format-control: New file.
97813         * modules/unictype/property-dash: New file.
97814         * modules/unictype/property-hyphen: New file.
97815         * modules/unictype/property-punctuation: New file.
97816         * modules/unictype/property-line-separator: New file.
97817         * modules/unictype/property-paragraph-separator: New file.
97818         * modules/unictype/property-quotation-mark: New file.
97819         * modules/unictype/property-sentence-terminal: New file.
97820         * modules/unictype/property-terminal-punctuation: New file.
97821         * modules/unictype/property-currency-symbol: New file.
97822         * modules/unictype/property-math: New file.
97823         * modules/unictype/property-other-math: New file.
97824         * modules/unictype/property-paired-punctuation: New file.
97825         * modules/unictype/property-left-of-pair: New file.
97826         * modules/unictype/property-combining: New file.
97827         * modules/unictype/property-composite: New file.
97828         * modules/unictype/property-decimal-digit: New file.
97829         * modules/unictype/property-numeric: New file.
97830         * modules/unictype/property-diacritic: New file.
97831         * modules/unictype/property-extender: New file.
97832         * modules/unictype/property-ignorable-control: New file.
97833         * modules/unictype/property-test: New file.
97834         * modules/unictype/property-byname: New file.
97835         * modules/unictype/property-all: New file.
97836         * modules/unictype/scripts: New file.
97837         * modules/unictype/scripts-all: New file.
97838         * modules/unictype/block-of: New file.
97839         * modules/unictype/block-test: New file.
97840         * modules/unictype/block-list: New file.
97841         * modules/unictype/block-all: New file.
97842         * modules/unictype/syntax-c-whitespace: New file.
97843         * modules/unictype/syntax-java-whitespace: New file.
97844         * modules/unictype/syntax-c-ident: New file.
97845         * modules/unictype/syntax-java-ident: New file.
97846         * modules/unictype/ctype-alnum: New file.
97847         * modules/unictype/ctype-alpha: New file.
97848         * modules/unictype/ctype-cntrl: New file.
97849         * modules/unictype/ctype-digit: New file.
97850         * modules/unictype/ctype-graph: New file.
97851         * modules/unictype/ctype-lower: New file.
97852         * modules/unictype/ctype-print: New file.
97853         * modules/unictype/ctype-punct: New file.
97854         * modules/unictype/ctype-space: New file.
97855         * modules/unictype/ctype-upper: New file.
97856         * modules/unictype/ctype-xdigit: New file.
97857         * modules/unictype/ctype-blank: New file.
97858         * lib/unictype/bidi_byname.c: New file.
97859         * lib/unictype/bidi_name.c: New file.
97860         * lib/unictype/bidi_of.c: New file.
97861         * lib/unictype/bidi_test.c: New file.
97862         * lib/unictype/bitmap.h: New file.
97863         * lib/unictype/block_test.c: New file.
97864         * lib/unictype/blocks.c: New file.
97865         * lib/unictype/categ_C.c: New file.
97866         * lib/unictype/categ_Cc.c: New file.
97867         * lib/unictype/categ_Cf.c: New file.
97868         * lib/unictype/categ_Cn.c: New file.
97869         * lib/unictype/categ_Co.c: New file.
97870         * lib/unictype/categ_Cs.c: New file.
97871         * lib/unictype/categ_L.c: New file.
97872         * lib/unictype/categ_Ll.c: New file.
97873         * lib/unictype/categ_Lm.c: New file.
97874         * lib/unictype/categ_Lo.c: New file.
97875         * lib/unictype/categ_Lt.c: New file.
97876         * lib/unictype/categ_Lu.c: New file.
97877         * lib/unictype/categ_M.c: New file.
97878         * lib/unictype/categ_Mc.c: New file.
97879         * lib/unictype/categ_Me.c: New file.
97880         * lib/unictype/categ_Mn.c: New file.
97881         * lib/unictype/categ_N.c: New file.
97882         * lib/unictype/categ_Nd.c: New file.
97883         * lib/unictype/categ_Nl.c: New file.
97884         * lib/unictype/categ_No.c: New file.
97885         * lib/unictype/categ_P.c: New file.
97886         * lib/unictype/categ_Pc.c: New file.
97887         * lib/unictype/categ_Pd.c: New file.
97888         * lib/unictype/categ_Pe.c: New file.
97889         * lib/unictype/categ_Pf.c: New file.
97890         * lib/unictype/categ_Pi.c: New file.
97891         * lib/unictype/categ_Po.c: New file.
97892         * lib/unictype/categ_Ps.c: New file.
97893         * lib/unictype/categ_S.c: New file.
97894         * lib/unictype/categ_Sc.c: New file.
97895         * lib/unictype/categ_Sk.c: New file.
97896         * lib/unictype/categ_Sm.c: New file.
97897         * lib/unictype/categ_So.c: New file.
97898         * lib/unictype/categ_Z.c: New file.
97899         * lib/unictype/categ_Zl.c: New file.
97900         * lib/unictype/categ_Zp.c: New file.
97901         * lib/unictype/categ_Zs.c: New file.
97902         * lib/unictype/categ_and.c: New file.
97903         * lib/unictype/categ_and_not.c: New file.
97904         * lib/unictype/categ_byname.c: New file.
97905         * lib/unictype/categ_name.c: New file.
97906         * lib/unictype/categ_none.c: New file.
97907         * lib/unictype/categ_of.c: New file.
97908         * lib/unictype/categ_or.c: New file.
97909         * lib/unictype/categ_test.c: New file.
97910         * lib/unictype/combining.c: New file.
97911         * lib/unictype/ctype_alnum.c: New file.
97912         * lib/unictype/ctype_alpha.c: New file.
97913         * lib/unictype/ctype_blank.c: New file.
97914         * lib/unictype/ctype_cntrl.c: New file.
97915         * lib/unictype/ctype_digit.c: New file.
97916         * lib/unictype/ctype_graph.c: New file.
97917         * lib/unictype/ctype_lower.c: New file.
97918         * lib/unictype/ctype_print.c: New file.
97919         * lib/unictype/ctype_punct.c: New file.
97920         * lib/unictype/ctype_space.c: New file.
97921         * lib/unictype/ctype_upper.c: New file.
97922         * lib/unictype/ctype_xdigit.c: New file.
97923         * lib/unictype/decdigit.c: New file.
97924         * lib/unictype/digit.c: New file.
97925         * lib/unictype/identsyntaxmap.h: New file.
97926         * lib/unictype/mirror.c: New file.
97927         * lib/unictype/numeric.c: New file.
97928         * lib/unictype/pr_alphabetic.c: New file.
97929         * lib/unictype/pr_ascii_hex_digit.c: New file.
97930         * lib/unictype/pr_bidi_arabic_digit.c: New file.
97931         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
97932         * lib/unictype/pr_bidi_block_separator.c: New file.
97933         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
97934         * lib/unictype/pr_bidi_common_separator.c: New file.
97935         * lib/unictype/pr_bidi_control.c: New file.
97936         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
97937         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
97938         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
97939         * lib/unictype/pr_bidi_european_digit.c: New file.
97940         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
97941         * lib/unictype/pr_bidi_left_to_right.c: New file.
97942         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
97943         * lib/unictype/pr_bidi_other_neutral.c: New file.
97944         * lib/unictype/pr_bidi_pdf.c: New file.
97945         * lib/unictype/pr_bidi_segment_separator.c: New file.
97946         * lib/unictype/pr_bidi_whitespace.c: New file.
97947         * lib/unictype/pr_byname.c: New file.
97948         * lib/unictype/pr_byname.gperf: New file.
97949         * lib/unictype/pr_combining.c: New file.
97950         * lib/unictype/pr_composite.c: New file.
97951         * lib/unictype/pr_currency_symbol.c: New file.
97952         * lib/unictype/pr_dash.c: New file.
97953         * lib/unictype/pr_decimal_digit.c: New file.
97954         * lib/unictype/pr_default_ignorable_code_point.c: New file.
97955         * lib/unictype/pr_deprecated.c: New file.
97956         * lib/unictype/pr_diacritic.c: New file.
97957         * lib/unictype/pr_extender.c: New file.
97958         * lib/unictype/pr_format_control.c: New file.
97959         * lib/unictype/pr_grapheme_base.c: New file.
97960         * lib/unictype/pr_grapheme_extend.c: New file.
97961         * lib/unictype/pr_grapheme_link.c: New file.
97962         * lib/unictype/pr_hex_digit.c: New file.
97963         * lib/unictype/pr_hyphen.c: New file.
97964         * lib/unictype/pr_id_continue.c: New file.
97965         * lib/unictype/pr_id_start.c: New file.
97966         * lib/unictype/pr_ideographic.c: New file.
97967         * lib/unictype/pr_ids_binary_operator.c: New file.
97968         * lib/unictype/pr_ids_trinary_operator.c: New file.
97969         * lib/unictype/pr_ignorable_control.c: New file.
97970         * lib/unictype/pr_iso_control.c: New file.
97971         * lib/unictype/pr_join_control.c: New file.
97972         * lib/unictype/pr_left_of_pair.c: New file.
97973         * lib/unictype/pr_line_separator.c: New file.
97974         * lib/unictype/pr_logical_order_exception.c: New file.
97975         * lib/unictype/pr_lowercase.c: New file.
97976         * lib/unictype/pr_math.c: New file.
97977         * lib/unictype/pr_non_break.c: New file.
97978         * lib/unictype/pr_not_a_character.c: New file.
97979         * lib/unictype/pr_numeric.c: New file.
97980         * lib/unictype/pr_other_alphabetic.c: New file.
97981         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
97982         * lib/unictype/pr_other_grapheme_extend.c: New file.
97983         * lib/unictype/pr_other_id_continue.c: New file.
97984         * lib/unictype/pr_other_id_start.c: New file.
97985         * lib/unictype/pr_other_lowercase.c: New file.
97986         * lib/unictype/pr_other_math.c: New file.
97987         * lib/unictype/pr_other_uppercase.c: New file.
97988         * lib/unictype/pr_paired_punctuation.c: New file.
97989         * lib/unictype/pr_paragraph_separator.c: New file.
97990         * lib/unictype/pr_pattern_syntax.c: New file.
97991         * lib/unictype/pr_pattern_white_space.c: New file.
97992         * lib/unictype/pr_private_use.c: New file.
97993         * lib/unictype/pr_punctuation.c: New file.
97994         * lib/unictype/pr_quotation_mark.c: New file.
97995         * lib/unictype/pr_radical.c: New file.
97996         * lib/unictype/pr_sentence_terminal.c: New file.
97997         * lib/unictype/pr_soft_dotted.c: New file.
97998         * lib/unictype/pr_space.c: New file.
97999         * lib/unictype/pr_terminal_punctuation.c: New file.
98000         * lib/unictype/pr_test.c: New file.
98001         * lib/unictype/pr_titlecase.c: New file.
98002         * lib/unictype/pr_unassigned_code_value.c: New file.
98003         * lib/unictype/pr_unified_ideograph.c: New file.
98004         * lib/unictype/pr_uppercase.c: New file.
98005         * lib/unictype/pr_variation_selector.c: New file.
98006         * lib/unictype/pr_white_space.c: New file.
98007         * lib/unictype/pr_xid_continue.c: New file.
98008         * lib/unictype/pr_xid_start.c: New file.
98009         * lib/unictype/pr_zero_width.c: New file.
98010         * lib/unictype/scripts.c: New file.
98011         * lib/unictype/sy_c_ident.c: New file.
98012         * lib/unictype/sy_c_whitespace.c: New file.
98013         * lib/unictype/sy_java_ident.c: New file.
98014         * lib/unictype/sy_java_whitespace.c: New file.
98016         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
98017         Unicode 5.0.0.
98018         * lib/unictype/blocks.h: Likewise.
98019         * lib/unictype/categ_C.h: Likewise.
98020         * lib/unictype/categ_Cc.h: Likewise.
98021         * lib/unictype/categ_Cf.h: Likewise.
98022         * lib/unictype/categ_Cn.h: Likewise.
98023         * lib/unictype/categ_Co.h: Likewise.
98024         * lib/unictype/categ_Cs.h: Likewise.
98025         * lib/unictype/categ_L.h: Likewise.
98026         * lib/unictype/categ_Ll.h: Likewise.
98027         * lib/unictype/categ_Lm.h: Likewise.
98028         * lib/unictype/categ_Lo.h: Likewise.
98029         * lib/unictype/categ_Lt.h: Likewise.
98030         * lib/unictype/categ_Lu.h: Likewise.
98031         * lib/unictype/categ_M.h: Likewise.
98032         * lib/unictype/categ_Mc.h: Likewise.
98033         * lib/unictype/categ_Me.h: Likewise.
98034         * lib/unictype/categ_Mn.h: Likewise.
98035         * lib/unictype/categ_N.h: Likewise.
98036         * lib/unictype/categ_Nd.h: Likewise.
98037         * lib/unictype/categ_Nl.h: Likewise.
98038         * lib/unictype/categ_No.h: Likewise.
98039         * lib/unictype/categ_P.h: Likewise.
98040         * lib/unictype/categ_Pc.h: Likewise.
98041         * lib/unictype/categ_Pd.h: Likewise.
98042         * lib/unictype/categ_Pe.h: Likewise.
98043         * lib/unictype/categ_Pf.h: Likewise.
98044         * lib/unictype/categ_Pi.h: Likewise.
98045         * lib/unictype/categ_Po.h: Likewise.
98046         * lib/unictype/categ_Ps.h: Likewise.
98047         * lib/unictype/categ_S.h: Likewise.
98048         * lib/unictype/categ_Sc.h: Likewise.
98049         * lib/unictype/categ_Sk.h: Likewise.
98050         * lib/unictype/categ_Sm.h: Likewise.
98051         * lib/unictype/categ_So.h: Likewise.
98052         * lib/unictype/categ_Z.h: Likewise.
98053         * lib/unictype/categ_Zl.h: Likewise.
98054         * lib/unictype/categ_Zp.h: Likewise.
98055         * lib/unictype/categ_Zs.h: Likewise.
98056         * lib/unictype/categ_of.h: Likewise.
98057         * lib/unictype/combining.h: Likewise.
98058         * lib/unictype/ctype_alnum.h: Likewise.
98059         * lib/unictype/ctype_alpha.h: Likewise.
98060         * lib/unictype/ctype_blank.h: Likewise.
98061         * lib/unictype/ctype_cntrl.h: Likewise.
98062         * lib/unictype/ctype_digit.h: Likewise.
98063         * lib/unictype/ctype_graph.h: Likewise.
98064         * lib/unictype/ctype_lower.h: Likewise.
98065         * lib/unictype/ctype_print.h: Likewise.
98066         * lib/unictype/ctype_punct.h: Likewise.
98067         * lib/unictype/ctype_space.h: Likewise.
98068         * lib/unictype/ctype_upper.h: Likewise.
98069         * lib/unictype/ctype_xdigit.h: Likewise.
98070         * lib/unictype/decdigit.h: Likewise.
98071         * lib/unictype/digit.h: Likewise.
98072         * lib/unictype/mirror.h: Likewise.
98073         * lib/unictype/numeric.h: Likewise.
98074         * lib/unictype/pr_alphabetic.h: Likewise.
98075         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
98076         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
98077         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
98078         * lib/unictype/pr_bidi_block_separator.h: Likewise.
98079         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
98080         * lib/unictype/pr_bidi_common_separator.h: Likewise.
98081         * lib/unictype/pr_bidi_control.h: Likewise.
98082         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
98083         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
98084         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
98085         * lib/unictype/pr_bidi_european_digit.h: Likewise.
98086         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
98087         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
98088         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
98089         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
98090         * lib/unictype/pr_bidi_pdf.h: Likewise.
98091         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
98092         * lib/unictype/pr_bidi_whitespace.h: Likewise.
98093         * lib/unictype/pr_combining.h: Likewise.
98094         * lib/unictype/pr_composite.h: Likewise.
98095         * lib/unictype/pr_currency_symbol.h: Likewise.
98096         * lib/unictype/pr_dash.h: Likewise.
98097         * lib/unictype/pr_decimal_digit.h: Likewise.
98098         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
98099         * lib/unictype/pr_deprecated.h: Likewise.
98100         * lib/unictype/pr_diacritic.h: Likewise.
98101         * lib/unictype/pr_extender.h: Likewise.
98102         * lib/unictype/pr_format_control.h: Likewise.
98103         * lib/unictype/pr_grapheme_base.h: Likewise.
98104         * lib/unictype/pr_grapheme_extend.h: Likewise.
98105         * lib/unictype/pr_grapheme_link.h: Likewise.
98106         * lib/unictype/pr_hex_digit.h: Likewise.
98107         * lib/unictype/pr_hyphen.h: Likewise.
98108         * lib/unictype/pr_id_continue.h: Likewise.
98109         * lib/unictype/pr_id_start.h: Likewise.
98110         * lib/unictype/pr_ideographic.h: Likewise.
98111         * lib/unictype/pr_ids_binary_operator.h: Likewise.
98112         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
98113         * lib/unictype/pr_ignorable_control.h: Likewise.
98114         * lib/unictype/pr_iso_control.h: Likewise.
98115         * lib/unictype/pr_join_control.h: Likewise.
98116         * lib/unictype/pr_left_of_pair.h: Likewise.
98117         * lib/unictype/pr_line_separator.h: Likewise.
98118         * lib/unictype/pr_logical_order_exception.h: Likewise.
98119         * lib/unictype/pr_lowercase.h: Likewise.
98120         * lib/unictype/pr_math.h: Likewise.
98121         * lib/unictype/pr_non_break.h: Likewise.
98122         * lib/unictype/pr_not_a_character.h: Likewise.
98123         * lib/unictype/pr_numeric.h: Likewise.
98124         * lib/unictype/pr_other_alphabetic.h: Likewise.
98125         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
98126         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
98127         * lib/unictype/pr_other_id_continue.h: Likewise.
98128         * lib/unictype/pr_other_id_start.h: Likewise.
98129         * lib/unictype/pr_other_lowercase.h: Likewise.
98130         * lib/unictype/pr_other_math.h: Likewise.
98131         * lib/unictype/pr_other_uppercase.h: Likewise.
98132         * lib/unictype/pr_paired_punctuation.h: Likewise.
98133         * lib/unictype/pr_paragraph_separator.h: Likewise.
98134         * lib/unictype/pr_pattern_syntax.h: Likewise.
98135         * lib/unictype/pr_pattern_white_space.h: Likewise.
98136         * lib/unictype/pr_private_use.h: Likewise.
98137         * lib/unictype/pr_punctuation.h: Likewise.
98138         * lib/unictype/pr_quotation_mark.h: Likewise.
98139         * lib/unictype/pr_radical.h: Likewise.
98140         * lib/unictype/pr_sentence_terminal.h: Likewise.
98141         * lib/unictype/pr_soft_dotted.h: Likewise.
98142         * lib/unictype/pr_space.h: Likewise.
98143         * lib/unictype/pr_terminal_punctuation.h: Likewise.
98144         * lib/unictype/pr_titlecase.h: Likewise.
98145         * lib/unictype/pr_unassigned_code_value.h: Likewise.
98146         * lib/unictype/pr_unified_ideograph.h: Likewise.
98147         * lib/unictype/pr_uppercase.h: Likewise.
98148         * lib/unictype/pr_variation_selector.h: Likewise.
98149         * lib/unictype/pr_white_space.h: Likewise.
98150         * lib/unictype/pr_xid_continue.h: Likewise.
98151         * lib/unictype/pr_xid_start.h: Likewise.
98152         * lib/unictype/pr_zero_width.h: Likewise.
98153         * lib/unictype/scripts.h: Likewise.
98154         * lib/unictype/scripts_byname.gperf: Likewise.
98155         * lib/unictype/sy_c_ident.h: Likewise.
98156         * lib/unictype/sy_c_whitespace.h: Likewise.
98157         * lib/unictype/sy_java_ident.h: Likewise.
98158         * lib/unictype/sy_java_whitespace.h: Likewise.
98160         * lib/unictype/Makefile: New file.
98161         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
98162         glibc.
98163         * lib/unictype/3level.h: New file, copied from glibc.
98164         * lib/unictype/3levelbit.h: New file.
98166 2007-11-11  Bruno Haible  <bruno@clisp.org>
98168         * modules/gperf: New file.
98169         * modules/iconv_open (Depends-on): Add it.
98170         (Makefile.am): Remove the GPERF definition.
98172 2007-11-11  Bruno Haible  <bruno@clisp.org>
98174         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
98175         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
98177 2007-11-11  Bruno Haible  <bruno@clisp.org>
98179         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
98180         (usage): Remove function.
98182 2007-11-11  Bruno Haible  <bruno@clisp.org>
98184         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
98185         gl_FUNC_CEILF_LIBS.
98186         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
98187         gl_FUNC_CEIL_LIBS.
98188         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
98189         gl_FUNC_CEILL_LIBS.
98190         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
98191         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
98192         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
98194 2007-11-11  Bruno Haible  <bruno@clisp.org>
98196         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
98197         roundf were declared but do not exist on functions.
98198         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
98199         roundl were declared but do not exist on functions.
98200         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
98201         HAVE_FLOORL_AND_CEILL, respectively.
98202         Needed for Sun C on Solaris 10.
98204 2007-11-11  Bruno Haible  <bruno@clisp.org>
98206         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
98207         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
98208         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
98209         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
98210         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
98211         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
98212         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
98213         HAVE_DECL_ROUNDF.
98214         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
98215         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
98216         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
98217         of HAVE_DECL_ROUND*.
98218         * modules/math (Makefile.am): Update.
98220 2007-11-10  Bruno Haible  <bruno@clisp.org>
98222         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
98223         ptrdiff_t as m4/intl.m4.
98225 2007-11-10  Jim Meyering  <meyering@redhat.com>
98227         Avoid link failure for the argmatch test.
98228         * tests/test-argmatch.c (usage): Define function to avoid a link
98229         failure: argmatch_die requires a usage function.
98231 2007-11-09  Bruno Haible  <bruno@clisp.org>
98233         * doc/functions/snprintf.texi: Mention BeOS deficiency.
98234         * doc/functions/vsnprintf.texi: Likewise.
98235         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
98236         with a size argument < 2.
98238 2007-11-09  Bruno Haible  <bruno@clisp.org>
98240         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
98241         buffer. Fixes an inefficiency introduced on 2007-11-03.
98243 2007-11-09  Bruno Haible  <bruno@clisp.org>
98245         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
98246         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
98248 2007-11-08  Jim Meyering  <meyering@redhat.com>
98250         Change cache variable name prefix "jm_" to "gl_" everywhere.
98251         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
98252         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
98253         * m4/uptime.m4: s/gl_/jm_/
98255 2007-11-07  Bruno Haible  <bruno@clisp.org>
98257         Update to GNU gettext 0.17.
98258         * m4/intl.m4: Update to GNU gettext 0.17.
98259         * m4/po.m4: Likewise.
98260         * modules/gettext (Files): Remove m4/ulonglong.m4.
98261         (configure.ac): Require gettext infrastructure from version 0.17.
98263 2007-11-06  Bruno Haible  <bruno@clisp.org>
98265         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
98266         symbolic values are not defined in a public header.
98267         * lib/freadable.c (freadable) [QNX]: Likewise.
98268         * lib/freadahead.c (freadahead) [QNX]: Likewise.
98269         * lib/freading.c (freading) [QNX]: Likewise.
98270         * lib/fseterr.c (fseterr) [QNX]: Likewise.
98271         * lib/fwritable.c (fwritable) [QNX]: Likewise.
98272         * lib/fwriting.c (fwriting) [QNX]: Likewise.
98273         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
98274         Reported by Alain Magloire.
98276         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
98278 2007-11-05  Bruno Haible  <bruno@clisp.org>
98280         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
98281         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
98282         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
98283         Reported by Eric Blake.
98285 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98286             Bruno Haible  <bruno@clisp.org>
98288         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
98289         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
98290         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
98291         (malloc): Undefine also before including <stdlib.h>.
98292         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
98293         Needed on OSF/1 4.0.
98295 2007-11-05  Jim Meyering  <meyering@redhat.com>
98297         git-version-gen: sync from coreutils.
98298         * build-aux/git-version-gen: Add comments.
98299         Change the first '-' to '.' in the snapshot version string,
98300         e.g., 6.9-377-08144 -> 6.9.377-08144
98301         Remove first parameter.
98302         Don't declare a version "-dirty" merely because a time
98303         stamp has changed.
98305 2007-11-04  Bruno Haible  <bruno@clisp.org>
98307         * lib/lock.h: Protect all macro definitions containing an 'if'
98308         statement through a "do { ... } while (0)".
98309         * lib/tls.h: Likewise.
98311 2007-11-04  Bruno Haible  <bruno@clisp.org>
98313         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
98315 2007-11-04  Bruno Haible  <bruno@clisp.org>
98317         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
98318         * modules/fprintf-posix (Depends-on): Add nocrash.
98319         * modules/snprintf-posix (Depends-on): Likewise.
98320         * modules/sprintf-posix (Depends-on): Likewise.
98321         * modules/vasnprintf-posix (Depends-on): Likewise.
98322         * modules/vasprintf-posix (Depends-on): Likewise.
98323         * modules/vfprintf-posix (Depends-on): Likewise.
98324         * modules/vsnprintf-posix (Depends-on): Likewise.
98325         * modules/vsprintf-posix (Depends-on): Likewise.
98326         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
98327         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
98328         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
98329         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
98330         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
98331         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
98332         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
98334 2007-11-04  Bruno Haible  <bruno@clisp.org>
98336         * modules/nocrash: New file.
98337         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
98338         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
98340 2007-11-04  Bruno Haible  <bruno@clisp.org>
98342         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
98343         precision handling.
98344         * tests/test-vasprintf-posix.c (test_function): Likewise.
98345         * tests/test-snprintf-posix.h (test_function): Likewise.
98346         * tests/test-sprintf-posix.h (test_function): Likewise.
98348         Fix *printf behaviour for large precisions on mingw and BeOS.
98349         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
98350         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
98351         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
98352         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
98353         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
98354         gl_PRINTF_PRECISION and test its result. Invoke
98355         gl_PREREQ_VASNPRINTF_PRECISION.
98356         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
98357         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
98358         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
98359         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
98360         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
98361         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
98362         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
98363         * doc/functions/fprintf.texi: Update.
98364         * doc/functions/printf.texi: Update.
98365         * doc/functions/snprintf.texi: Update.
98366         * doc/functions/sprintf.texi: Update.
98367         * doc/functions/vfprintf.texi: Update.
98368         * doc/functions/vprintf.texi: Update.
98369         * doc/functions/vsnprintf.texi: Update.
98370         * doc/functions/vsprintf.texi: Update.
98372 2007-11-04  Bruno Haible  <bruno@clisp.org>
98374         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
98376 2007-11-04  Bruno Haible  <bruno@clisp.org>
98378         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
98379         Reported by Sylvain Beucler <beuc@gnu.org>.
98381 2007-11-03  Bruno Haible  <bruno@clisp.org>
98383         * tests/test-fprintf-posix2.sh: New file.
98384         * tests/test-fprintf-posix2.c: New file.
98385         * modules/fprintf-posix-tests (Files): Add them.
98386         (TESTS): Add test-fprintf-posix2.sh.
98387         (configure.ac): Check for getrlimit and setrlimit.
98388         (check_PROGRAMS): Add test-fprintf-posix2.
98390         * tests/test-printf-posix2.sh: New file.
98391         * tests/test-printf-posix2.c: New file.
98392         * modules/printf-posix-tests (Files): Add them.
98393         (TESTS): Add test-printf-posix2.sh.
98394         (configure.ac): Check for getrlimit and setrlimit.
98395         (check_PROGRAMS): Add test-printf-posix2.
98397         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
98398         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
98399         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
98400         (decode_double): New function, copied from decode_long_double.
98401         (scale10_round_decimal_decoded): New function, extracted from
98402         scale10_round_decimal_long_double.
98403         (scale10_round_decimal_long_double): Use it.
98404         (scale10_round_decimal_double): New function.
98405         (floorlog10): New function.
98406         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
98407         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
98408         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
98409         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
98410         gl_PRINTF_ENOMEM and test its result. Invoke
98411         gl_PREREQ_VASNPRINTF_ENOMEM.
98412         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
98413         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
98414         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
98415         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
98416         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
98417         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
98418         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
98419         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
98420         * modules/snprintf-posix (Depends-on): Likewise.
98421         * modules/sprintf-posix (Depends-on): Likewise.
98422         * modules/vasnprintf-posix (Depends-on): Likewise.
98423         * modules/vasprintf-posix (Depends-on): Likewise.
98424         * modules/vfprintf-posix (Depends-on): Likewise.
98425         * modules/vsnprintf-posix (Depends-on): Likewise.
98426         * modules/vsprintf-posix (Depends-on): Likewise.
98427         * doc/functions/fprintf.texi: Update.
98428         * doc/functions/printf.texi: Update.
98429         * doc/functions/snprintf.texi: Update.
98430         * doc/functions/sprintf.texi: Update.
98431         * doc/functions/vfprintf.texi: Update.
98432         * doc/functions/vprintf.texi: Update.
98433         * doc/functions/vsnprintf.texi: Update.
98434         * doc/functions/vsprintf.texi: Update.
98436 2007-11-03  Bruno Haible  <bruno@clisp.org>
98438         * modules/frexp-nolibm-tests: New file.
98440         * modules/frexp-nolibm: New file.
98441         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
98443 2007-11-03  Bruno Haible  <bruno@clisp.org>
98445         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
98446         value is C99 compliant.
98447         Needed for OSF/1 5.1.
98449 2007-11-03  Bruno Haible  <bruno@clisp.org>
98451         Fix out-of-memory handling of vasnprintf.
98452         * lib/printf-parse.c: Include <errno.h>.
98453         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
98454         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
98455         is already set.
98457 2007-11-02  Eric Blake  <ebb9@byu.net>
98459         Fix tests on cygwin.
98460         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
98462 2007-11-01  Bruno Haible  <bruno@clisp.org>
98464         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
98465         warning.
98466         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
98467         needed for POSIX compatibility.
98469 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
98471         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
98472         for compatibility with GNU.
98474 2007-11-01  Bruno Haible  <bruno@clisp.org>
98476         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
98477         (putenv): Renamed from rpl_putenv. Change argument type from
98478         'const char *' to 'char *'.
98479         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
98480         of defining putenv in config.h, just set REPLACE_PUTENV.
98481         * modules/putenv (Depends-on): Add stdlib.
98482         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
98483         (Include): Use <stdlib.h>.
98484         * lib/stdlib.in.h (putenv): New declaration.
98485         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
98486         REPLACE_PUTENV.
98487         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
98488         REPLACE_PUTENV.
98489         Needed for MacOS X 10.5.0.
98490         Reported by Peter O'Gorman <peter@pogma.com>.
98492 2007-11-01  Jim Meyering  <meyering@redhat.com>
98494         Treat an empty date string exactly like "0".
98495         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
98496         if the remaining date string (to be parsed) is empty, use "0".
98497         Reported by Mischa Molhoek and discussed in this thread:
98498         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
98500 2007-10-31  Bruno Haible  <bruno@clisp.org>
98502         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
98503         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
98504         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
98505         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
98506         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
98507         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
98509 2007-10-31  Bruno Haible  <bruno@clisp.org>
98511         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
98512         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
98513         (AC_TYPE_LONG_LONG_INT): Use it.
98514         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
98515         it as well.
98516         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
98517         to m4/longlong.m4.
98518         * modules/stdint (Files): Remove m4/ulonglong.m4.
98519         * modules/strtoull (Files): Use m4/longlong.m4 instead of
98520         m4/ulonglong.m4.
98521         * modules/strtoumax (Files): Likewise.
98523 2007-10-30  Bruno Haible  <bruno@clisp.org>
98525         * modules/xvasprintf-posix: New file.
98526         Suggested by Eric Blake.
98528 2007-10-30  Bruno Haible  <bruno@clisp.org>
98530         * modules/xprintf-posix-tests: New file.
98531         * tests/test-xprintf-posix.sh: New file.
98532         * tests/test-xprintf-posix.c: New file.
98533         * tests/test-xfprintf-posix.c: New file.
98535         * modules/xprintf-posix: New file.
98537 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98539         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
98540         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
98541         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
98543 2007-10-29  Bruno Haible  <bruno@clisp.org>
98545         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
98546         contain the special marker '_cv_'.
98547         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
98548         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
98549         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
98550         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
98551         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
98552         Reported by Ralf Wildenhues.
98554 2007-10-29  Bruno Haible  <bruno@clisp.org>
98556         * gnulib-tool (func_import): When --lgpl is not specified, set
98557         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
98558         GPLv3.
98559         Reported by Simon Josefsson.
98561 2007-10-28  Bruno Haible  <bruno@clisp.org>
98563         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
98564         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
98565         HAVE_DECL_ISFINITE.
98566         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
98567         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
98568         HAVE_DECL_ISFINITE.
98570 2007-10-28  Bruno Haible  <bruno@clisp.org>
98572         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
98573         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
98575 2007-10-28  Bruno Haible  <bruno@clisp.org>
98577         Fix link errors with Sun C 5.0 on Solaris 10.
98578         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
98579         function is declared but not present in the compiler's libm.
98580         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
98581         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
98582         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
98583         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
98584         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
98585         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
98586         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
98587         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
98588         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
98589         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
98590         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
98591         HAVE_DECL_FLOORL.
98593 2007-10-28  Bruno Haible  <bruno@clisp.org>
98595         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
98596         gl_FUNC_FLOORL. Cache the result.
98597         (gl_FUNC_FLOORL): Use it.
98598         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
98599         gl_FUNC_CEILL. Cache the result.
98600         (gl_FUNC_CEILL): Use it.
98602         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
98603         gl_FUNC_FLOOR. Cache the result.
98604         (gl_FUNC_FLOOR): Use it.
98605         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
98606         gl_FUNC_CEIL. Cache the result.
98607         (gl_FUNC_CEIL): Use it.
98609         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
98610         gl_FUNC_FLOORF. Cache the result.
98611         (gl_FUNC_FLOORF): Use it.
98612         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
98613         gl_FUNC_CEILF. Cache the result.
98614         (gl_FUNC_CEILF): Use it.
98616 2007-10-28  Bruno Haible  <bruno@clisp.org>
98618         * gnulib-tool: Allow specifying the LGPL version number through
98619         --lgpl=2 or --lgpl=3.
98620         (func_usage): Document --lgpl with argument.
98621         Handle --lgpl=... arguments.
98622         (func_import): Recognize also gl_LGPL calls with an argument. When
98623         --lgpl=2 is used and the module's license is just LGPL, report an
98624         error. Set sed_transform_lib_file according to the lgpl variable. In
98625         the generated files, use --lgpl or gl_LGPL invocations with argument,
98626         if necessary.
98627         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
98628         an LGPv2+ license.
98629         * doc/gnulib-tool.texi (Modified imports): Update explanation of
98630         gl_LGPL macro.
98632 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98633             Bruno Haible  <bruno@clisp.org>
98635         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
98636         (u16_uctomb_aux): Likewise.
98637         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
98638         !HAVE_INLINE.
98639         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
98641 2007-10-28  Bruno Haible  <bruno@clisp.org>
98643         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
98644         Invoke AM_GETTEXT_OPTION if it exists.
98645         * modules/vasprintf: Likewise.
98646         * modules/verror: Likewise.
98647         * modules/xprintf: Likewise.
98648         * modules/xvasprintf: Likewise.
98650 2007-10-27  Ben Pfaff  <blp@gnu.org>
98652         * lib/math.in.h: Define isfinite macro and prototypes for
98653         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
98654         implementations.
98655         * m4/math_h.m4: New substitutions for isfinite module.
98656         * lib/isfinite.c: New file.
98657         * m4/isfinite.m4: New file.
98658         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
98659         * modules/isfinite: New file.
98660         * modules/isfinite-tests: New file.
98661         * tests/tests-isfinite.c: New file.
98662         * doc/functions/isfinite.texi: Mention isfinite module.
98663         * MODULES.html.sh: Mention new module.
98665 2007-10-27  Ben Pfaff  <blp@gnu.org>
98667         Ralf Wildenhues reported that Tru64 4.0D declares the round
98668         functions but does not have definitions.
98669         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
98670         cannot be found in any library, set the output variable to
98671         "missing" instead of "".
98672         * m4/round.m4: Also use our substitute if we cannot find round in
98673         any library, even if it is declared.
98674         * m4/roundf.m4: Likewise for roundf.
98675         * m4/roundl.m4: Likewise for roundl.
98676         * lib/math.in.h: Undefine roundf, round, roundl before defining
98677         their replacements, to allow for hypothetical systems where these
98678         may be defined as macros but not available in libraries.
98680 2007-10-27  Bruno Haible  <bruno@clisp.org>
98682         * doc/gnulib.texi: Invoke @firstparagraphindent.
98683         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
98684         changes in gnulib.
98685         (Source changes): New section.
98687 2007-10-26  Bruno Haible  <bruno@clisp.org>
98689         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
98690         borrowed from autoconf.
98692 2007-10-26  Bruno Haible  <bruno@clisp.org>
98694         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
98695         strerror returned the empty string. Needed on HP-UX 11.00.
98697 2007-10-24  Micah Cowan  <micah@cowan.name>
98699         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
98700         * build-aux/bootstrap: Remove support for now-unnecessary option,
98701         --cvs-user, and envvars CVS_USER, CVS_RSH.
98703 2007-10-24  Jim Meyering  <meyering@redhat.com>
98705         Avoid diagnostics from sha1sum when there is no cached checksum.
98706         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
98707         if the po.s1 file hasn't been created yet.
98709         * build-aux/bootstrap: Sync from coreutils:
98710         2007-10-24  Jim Meyering  <meyering@redhat.com>
98711         Get gnulib from the git repository, not from an obsolete cvs one.
98712         * build-aux/bootstrap: Suggestion from Micah Cowan.
98713         2007-10-04  Jim Meyering  <jim@meyering.net>
98714         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
98715         (update_po_files): Work also when there are no .po files in po/.
98717 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
98719         * README: Append ".git" to git and cg examples.
98720         Problem reported by Benoit Sigoure.
98722 2007-10-23  Micah Cowan  <micah@cowan.name>
98724         * users.txt: Add wget.
98726 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98728         Fix linking of some unistdio tests on FreeBSD.
98729         * modules/unistdio/u16-vsnprintf-tests
98730         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
98731         * modules/unistdio/u16-vsprintf-tests
98732         (test_u16_vsnprintf1_LDADD): Likewise.
98733         * modules/unistdio/u32-vsnprintf-tests
98734         (test_u32_vsnprintf1_LDADD): Likewise.
98735         * modules/unistdio/u32-vsprintf-tests
98736         (test_u32_vsprintf1_LDADD): Likewise.
98737         * modules/unistdio/u8-vsnprintf-tests
98738         (test_u8_vsnprintf1_LDADD): Likewise.
98739         * modules/unistdio/u8-vsprintf-tests
98740         (test_u8_vsprintf1_LDADD): Likewise.
98741         * modules/unistdio/ulc-vsnprintf-tests
98742         (test_ulc_vsnprintf1_LDADD): Likewise.
98743         * modules/unistdio/ulc-vsprintf-tests
98744         (test_ulc_vsprintf1_LDADD): Likewise.
98746         Fix linking of some uniconv tests on FreeBSD.
98747         * modules/uniconv/u16-conv-from-enc-tests
98748         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
98749         * modules/uniconv/u16-conv-to-enc-tests
98750         (test_u16_conv_to_enc_LDADD): Likewise.
98751         * modules/uniconv/u16-strconv-from-enc-tests
98752         (test_u16_strconv_from_enc_LDADD): Likewise.
98753         * modules/uniconv/u16-strconv-to-enc-tests
98754         (test_u16_strconv_to_enc_LDADD): Likewise.
98755         * modules/uniconv/u32-conv-from-enc-tests
98756         (test_u32_conv_from_enc_LDADD): Likewise.
98757         * modules/uniconv/u32-conv-to-enc-tests
98758         (test_u32_conv_to_enc_LDADD): Likewise.
98759         * modules/uniconv/u32-strconv-from-enc-tests
98760         (test_u32_strconv_from_enc_LDADD): Likewise.
98761         * modules/uniconv/u32-strconv-to-enc-tests
98762         (test_u32_strconv_to_enc_LDADD): Likewise.
98763         * modules/uniconv/u8-conv-from-enc-tests
98764         (test_u8_conv_from_enc_LDADD): Likewise.
98765         * modules/uniconv/u8-conv-to-enc-tests
98766         (test_u8_conv_to_enc_LDADD): Likewise.
98767         * modules/uniconv/u8-strconv-from-enc-tests
98768         (test_u8_strconv_from_enc_LDADD): Likewise.
98769         * modules/uniconv/u8-strconv-to-enc-tests
98770         (test_u8_strconv_to_enc_LDADD): Likewise.
98772 2007-10-22  Bruno Haible  <bruno@clisp.org>
98774         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
98775         size.
98777 2007-10-22  Eric Blake  <ebb9@byu.net>
98779         Tweak x*printf documentation.
98780         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
98781         variable name and comments.
98782         Suggested by Bruno Haible.
98784 2007-10-22  Bruno Haible  <bruno@clisp.org>
98786         * lib/acl.c (copy_acl): Fix file name in comment.
98788 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
98790         Fix Tru64 problem with stdbool.h.
98791         * lib/stdbool.in.h (false, true):
98792         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
98793         Don't declare as an enum in this situation; it runs afoul of Tru64.
98794         Problem reported by Steven M. Schweda in
98795         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
98797 2007-10-22  Eric Blake  <ebb9@byu.net>
98799         Also wrap vf?printf.
98800         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
98801         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
98802         (xvprintf, xvfprintf): New functions.
98804 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98806         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
98807         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
98809         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
98810         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
98812 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
98814         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
98815         by Bruno Haible.
98817 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98819         * lib/getloadavg.c
98820         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
98821         Undef `sys' after including sys/table.h, for Tru64 4.0D.
98823         * tests/test-i-ring.c: Work for C89.
98825 2007-10-22  Bruno Haible  <bruno@clisp.org>
98827         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
98828         -1u, in preprocessor expression, so that we don't test for the bug
98829         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
98830         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
98832 2007-10-22  Eric Blake  <ebb9@byu.net>
98834         * tests/test-yesno.sh: Silence stderr during test.
98836 2007-10-22  Simon Josefsson  <simon@josefsson.org>
98838         * modules/crypto/gc-camellia: New file.
98840         * m4/gc-camellia.m4: New file.
98842         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
98844         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
98846 2007-10-22  Simon Josefsson  <simon@josefsson.org>
98848         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
98849         --help to stdout.  Reported by sms@antinode.org (Steven
98850         M. Schweda).
98852 2007-10-22  Simon Josefsson  <simon@josefsson.org>
98854         * users.txt: Fix link to libksba.
98856 2007-10-21  Ben Pfaff  <blp@gnu.org>
98858         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
98859         round.c roundf implementation that depends on floorf and ceilf to
98860         be tested unconditionally.
98862 2007-10-21  Ben Pfaff  <blp@gnu.org>
98864         * m4/check-libm-func.m4: Removed.
98865         * m4/check-math-lib.m4: New file.
98866         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
98867         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
98868         definition and lack of AC_LIBOBJ([roundf]).
98869         * m4/roundl.m4: Ditto, and similarly for roundl.
98870         * modules/round: Reference new m4 file.
98871         * modules/roundf: Ditto.
98872         * modules/roundl: Ditto.
98873         * tests/test-round2.c (main): Use ROUND instead of round.
98874         Bug report from Bruno Haible.
98876 2007-10-21  Bruno Haible  <bruno@clisp.org>
98878         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
98879         context.
98881 2007-10-21  Bruno Haible  <bruno@clisp.org>
98883         * tests/test-wcwidth.c (main): Allow negative result for some control
98884         characters.
98886         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
98887         Needed on OSF/1 5.1.
98889 2007-10-21  Bruno Haible  <bruno@clisp.org>
98891         * tests/test-floorf1.c: Include isnanf.h.
98892         (main): Use isnanf() instead of isnan().
98893         * tests/test-ceilf1.c: Include isnanf.h.
98894         (main): Use isnanf() instead of isnan().
98895         * tests/test-truncf1.c: Include isnanf.h.
98896         (main): Use isnanf() instead of isnan().
98897         * tests/test-roundf1.c: Include isnanf.h.
98898         (main): Use isnanf() instead of isnan().
98900 2007-10-21  Eric Blake  <ebb9@byu.net>
98902         * users.txt: Update URL for m4.
98904 2007-10-21  Bruno Haible  <bruno@clisp.org>
98906         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
98908 2007-10-21  Bruno Haible  <bruno@clisp.org>
98910         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
98911         Git's management files if the CVS files are not present.
98913 2007-10-20  Bruno Haible  <bruno@clisp.org>
98915         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
98916         gcc-3.4.x.
98918 2007-10-20  Ben Pfaff  <blp@gnu.org>
98920         * lib/math.in.h: Declare round, roundf, roundl if we are providing
98921         implementations.
98922         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
98923         * lib/round.c: New file.
98924         * lib/roundf.c: New file.
98925         * lib/roundl.c: New file.
98926         * m4/round.m4: New file.
98927         * m4/roundf.m4: New file.
98928         * m4/roundl.m4: New file.
98929         * m4/check-libm-func-m4: New file.
98930         * modules/math: Replace round, roundf, roundl related @VARS@ in
98931         math.in.h.
98932         * modules/round: New file.
98933         * modules/round-tests: New file.
98934         * modules/roundf: New file.
98935         * modules/roundf-tests: New file.
98936         * modules/roundl: New file.
98937         * modules/roundl-tests: New file.
98938         * tests/test-round1.c: New file.
98939         * tests/test-round2.c: New file.
98940         * tests/test-roundf1.c: New file.
98941         * tests/test-roundf2.c: New file.
98942         * tests/test-roundl.c: New file.
98943         * doc/functions/round.texi: Mention round module.
98944         * doc/functions/roundf.texi: Mention roundf module.
98945         * doc/functions/roundl.texi: Mention roundl module.
98946         * MODULES.html.sh: Mention new modules.
98947         Thanks to Bruno Haible for suggestions.
98949 2007-10-20  Jim Meyering  <meyering@redhat.com>
98951         * lib/xprintf.c: Include <config.h> unconditionally.
98953         Change xprintf's license to GPL.
98954         * modules/xprintf (License): s/LGPL/GPL/, since this module
98955         depends on modules (exit and exitfail) which are GPL.
98956         Suggestion from Bruno Haible.
98958         xprintf fixes.
98959         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
98960         Use a clearer diagnostic.
98961         Patch from Bruno Haible.
98963 2007-10-20  Bruno Haible  <bruno@clisp.org>
98965         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
98966         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
98967         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98969 2007-10-20  Bruno Haible  <bruno@clisp.org>
98971         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
98972         precision in the comparison result > x - 1 or similar.
98973         * tests/test-ceilf2.c (correct_result_p): Likewise.
98974         * tests/test-truncf2.c (correct_result_p): Likewise.
98975         * tests/test-trunc2.c (correct_result_p): Likewise.
98976         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98978 2007-10-20  Bruno Haible  <bruno@clisp.org>
98980         * modules/ceil: New file.
98981         * m4/ceil.m4: New file.
98982         * doc/functions/ceil.texi: Mention the 'ceil' module.
98984 2007-10-20  Bruno Haible  <bruno@clisp.org>
98986         * modules/floor: New file.
98987         * m4/floor.m4: New file.
98988         * doc/functions/floor.texi: Mention the 'floor' module.
98990 2007-10-20  Bruno Haible  <bruno@clisp.org>
98992         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
98993         of %a.
98994         * modules/floorf-tests (Depends-on): Likewise.
98995         * modules/truncf-tests (Depends-on): Likewise.
98996         * modules/trunc-tests (Depends-on): Likewise.
98997         Reported by Ben Pfaff.
98999 2007-10-19  Jim Meyering  <meyering@redhat.com>
99001         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
99002         Don't bother testing specific errno values.  Just test ferror.
99004         New module: xprintf
99005         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
99007 2007-10-19  Bruno Haible  <bruno@clisp.org>
99009         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
99010         syntax.
99011         * modules/javaexec (Makefile.am): Likewise.
99012         * modules/relocatable-prog (Makefile.am): Likewise.
99013         Suggested by Jim Meyering.
99015 2007-10-18  Bruno Haible  <bruno@clisp.org>
99017         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
99018         Reported by Jim Meyering.
99020 2007-10-18  Eric Blake  <ebb9@byu.net>
99022         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
99024 2007-10-18  Bruno Haible  <bruno@clisp.org>
99026         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
99027         the format string into writable memory. Needed in Fortify conditions.
99029 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
99030             Bruno Haible  <bruno@clisp.org>
99032         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
99033         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
99034         * modules/trim (Depends-on): Add mbchar.
99035         (configure.ac): Add gl_FUNC_MBRTOWC.
99036         (Makefile.am): Augment lib_SOURCES.
99038 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
99040         Modify glob.c to use fstatat and dirfd, to simplify it.
99041         Suggested by Eric Blake.
99042         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
99043         Don't include <stdbool.h>; not used.
99044         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
99045         (link_exists_p): Simplify implementation, since we can now assume
99046         dirfd and fstatat.
99047         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
99049 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99051         * gnulib-tool (func_get_dependencies): Fix sed script to
99052         match only tests.
99054 2007-10-17  Bruno Haible  <bruno@clisp.org>
99056         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
99057         allow locale names without encoding suffix.
99058         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
99059         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
99061 2007-10-16  Bruno Haible  <bruno@clisp.org>
99063         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
99064         * lib/getgroups.c (getgroups): Likewise.
99065         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
99067 2007-10-16  Bruno Haible  <bruno@clisp.org>
99069         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
99070         * modules/malloc-posix (License): Likewise.
99071         * modules/realloc-posix (License): Likewise.
99072         * modules/calloc-posix (License): Likewise.
99073         * modules/intprops (License): Change from GPL to LGPL, with
99074         Paul Eggert's approval.
99076 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
99078         Merge glibc changes into lib/glob.c.
99080         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
99081         2007-10-15 04:59:03 UTC.  Here are the changes:
99083         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
99085         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
99087         * lib/glob.c: Add some branch prediction throughout.
99089         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
99091         [BZ #5103]
99092         * lib/glob.c (glob): Recognize patterns starting \/.
99094         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
99096         [BZ #3996]
99097         * lib/glob.c (attribute_hidden): Define if not defined.
99098         (glob): Unescape dirname, filename or username when needed and not
99099         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
99100         is NULL.  Handle unescaped [ in pattern without closing ].
99101         Don't pass GLOB_CHECK down to recursive glob for directories.
99102         (__glob_pattern_type): New function.
99103         (__glob_pattern_p): Implement using __glob_pattern_type.
99104         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
99105         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
99106         Remove unreachable code.
99108         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
99110         * lib/glob.c (glob_in_dir): Add some comments and asserts to
99111         explain why there are no leaks.
99113         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
99115         [BZ #3253]
99116         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
99117         time, rather allocate increasingly bigger arrays of pointers, if
99118         possible with alloca, if too large with malloc.
99120 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
99122         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
99123         Problem reported by H.Merijn Brand in
99124         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
99125         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
99126         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
99128 2007-10-15  Bruno Haible  <bruno@clisp.org>
99130         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
99131         with explicit rpl_ prefix.
99132         * lib/fopen.c (fopen): Likewise.
99133         * lib/freopen.c (freopen): Likewise.
99134         * lib/iconv.c (iconv): Likewise.
99135         * lib/iconv_close.c (iconv_close): Likewise.
99137 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99139         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
99141 2007-10-15  Bruno Haible  <bruno@clisp.org>
99143         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
99144         <stddef.h> instead of <stdlib.h> since we only need NULL.
99145         Reported by Ben Pfaff <blp@cs.stanford.edu>.
99147 2007-10-15  Bruno Haible  <bruno@clisp.org>
99149         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
99150         Replace paragraph talking about LIBOBJS.
99151         Reported by Colin Watson <cjwatson@debian.org>.
99153 2007-10-15  Bruno Haible  <bruno@clisp.org>
99155         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
99156         <stdlib.h> before using NULL.
99158 2007-10-15  Simon Josefsson  <simon@josefsson.org>
99160         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
99161         Reported by Albert Chin <china@thewrittenword.com>.
99163 2007-10-14  Bruno Haible  <bruno@clisp.org>
99165         * modules/iconv_open-utf-tests: New file.
99166         * tests/test-iconv-utf.c: New file.
99168         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
99169         * modules/iconv_open-utf: New file.
99170         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
99171         (iconv, iconv_close): New declarations.
99172         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
99173         be defined.
99174         (iconv_open): Add special handling of conversion between UTF-8 and
99175         UTF-{16,32}{BE,LE}.
99176         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
99177         * lib/iconv_close.c: New file.
99178         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
99179         gl_FUNC_ICONV_OPEN.
99180         (gl_FUNC_ICONV_OPEN): Use it.
99181         (gl_FUNC_ICONV_OPEN_UTF): New macro.
99182         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
99183         and REPLACE_ICONV_UTF.
99184         * modules/iconv_open (Depends-on): Add c-strcase.
99185         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
99186         ICONV_CONST.
99187         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
99189 2007-10-13  Albert Chin  <china@thewrittenword.com>
99190             Bruno Haible  <bruno@clisp.org>
99192         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
99193         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
99195 2007-10-13  Bruno Haible  <bruno@clisp.org>
99197         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
99198         defined, use the ISO C99 inline semantics.
99199         * lib/argp.h (ARGP_EI): Likewise.
99201 2007-10-13  Bruno Haible  <bruno@clisp.org>
99203         Handle 'inline' change in gcc 4.3.0.
99204         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
99205         argp_fmtstream_write, argp_fmtstream_set_lmargin,
99206         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
99207         argp_fmtstream_point): Disable 'extern' declaration if the function
99208         definition is going to be provided inline.
99209         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
99210         semantics, not the ISO C99 inline semantics.
99211         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
99212         'extern' declaration if the function definition is going to be provided
99213         inline.
99214         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
99215         the GNU C inline semantics, not the ISO C99 inline semantics. With
99216         GCC 4.2, avoid a warning.
99218 2007-10-13  Bruno Haible  <bruno@clisp.org>
99220         * lib/freading.h (freading): Enable the use of __freading for
99221         glibc >= 2.7.
99222         * lib/freading.c (freading): Likewise.
99224 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
99226         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
99227         "warning: C99 inline functions are not supported; using GNU89".
99229 2007-10-12  Bruno Haible  <bruno@clisp.org>
99231         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
99232         of 2.
99233         * tests/test-ceilf2.c: New file.
99234         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
99236         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
99237         * modules/ceilf-tests: Update.
99239 2007-10-12  Bruno Haible  <bruno@clisp.org>
99241         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
99242         of 2.
99243         * tests/test-floorf2.c: New file.
99244         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
99246         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
99247         * modules/floorf-tests: Update.
99249 2007-10-12  Bruno Haible  <bruno@clisp.org>
99251         * tests/test-trunc2.c: New file.
99252         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
99254         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
99255         * modules/trunc-tests: Update.
99257 2007-10-12  Bruno Haible  <bruno@clisp.org>
99259         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
99260         of 2.
99261         * tests/test-truncf2.c: New file.
99262         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
99264         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
99265         * modules/truncf-tests: Update.
99267 2007-10-11  Eric Blake  <ebb9@byu.net>
99269         Don't claim strerror is broken on Interix.
99270         * doc/functions/strerror.texi (strerror): Known broken systems are
99271         now Solaris 8, and not Interix.
99272         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
99273         Interix on cross-compile.
99274         Reported by Martin Koeppe in
99275         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
99277 2007-10-11  Bruno Haible  <bruno@clisp.org>
99279         * modules/i-ring-tests: New file.
99280         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
99281         instead of assert.
99283 2007-10-11  Bruno Haible  <bruno@clisp.org>
99285         * modules/filenamecat-tests: New file.
99286         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
99287         * lib/filenamecat.c: Remove test code.
99289 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
99291         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
99293         * lib/strerror.c: Include <string.h> always, to test interface,
99294         and to remove the need for the dummy.
99295         Include intprops.h to compute width instead of doing it ourselves
99296         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
99297         (strerror): Define it to return NULL if there's no system strerror.
99298         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
99299         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
99300         ancient pre-strerror Unix systems well any more.  Saying "unknown
99301         system error" is enough.
99302         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
99303         simpler strerror.c implementation.
99304         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
99305         Simplify the tests to reflect the simpler strerror implementation.
99306         * modules/strerror (Depends-on): Add intprops.
99308 2007-10-09  Eric Blake  <ebb9@byu.net>
99310         Silence test-fpending.
99311         * modules/fpending-tests (Files): Add wrapper script.
99312         * tests/test-fpending.sh: New file.
99314 2007-10-09  Bruno Haible  <bruno@clisp.org>
99316         * MODULES.html.sh (func_module): Don't create a hyperlink for
99317         function names like 'printf_frexp'.
99318         (Misc): Add crc, memxor.
99319         (Characteristics of floating types): New section.
99320         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
99321         isnanf-nolibm, signbit, trunc, truncf, truncl.
99322         (Enhancements for ISO C 99 functions): New subsection Input/output.
99323         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
99324         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
99325         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
99326         (Compatibility checks for POSIX:2001 functions): Add clock-time.
99327         (Enhancements for POSIX:2001 functions): Add chdir-long.
99328         (File system functions): Add areadlink, chdir-safer, read-file.
99329         Remove cycle-check.
99330         (File system as inode set): New section.
99331         (Date and time): Add gethrxtime.
99332         (Multithreading): Add openmp.
99333         (Internationalization functions): Add localename.
99334         (Unicode string functions): Add unistr/u*-mbsnlen.
99335         (Support for maintaining and releasing projects): Add git-version-gen.
99336         (Lone files): Remove directories.
99338 2007-10-08  Ben Pfaff  <blp@gnu.org>
99340         * lib/xmalloca.h: Fix typo in comment.
99342 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
99344         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
99345         when avoiding problems with integer overflow.  Use a portable test
99346         instead.
99348 2007-10-08  Simon Josefsson  <simon@josefsson.org>
99350         * modules/dummy (License): Change to LGPLv2+.
99351         * modules/float (License): Likewise
99352         * modules/realloc (License): Likewise
99353         * modules/stdlib (License): Likewise
99355 2007-10-07  Bruno Haible  <bruno@clisp.org>
99357         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
99358         * floor.c (TWO_MANT_DIG): Likewise.
99359         * ceil.c (TWO_MANT_DIG): Likewise.
99360         Reported by Ben Pfaff.
99362 2007-10-07  Bruno Haible  <bruno@clisp.org>
99364         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
99365         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
99366         * lib/frexp.c (FUNC): Likewise.
99367         * lib/printf-frexp.h (printf_frexp): Likewise.
99368         * lib/printf-frexpl.h (printf_frexpl): Likewise.
99369         * lib/printf-frexp.c (FUNC): Likewise.
99370         Suggested by Jim Meyering.
99372 2007-10-07  Jim Meyering  <meyering@redhat.com>
99374         Make xnanosleep's integer overflow test more robust.
99375         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
99376         so that gcc-4.3.0 doesn't optimize away this test for overflow.
99378 2007-10-07  Bruno Haible  <bruno@clisp.org>
99380         * NEWS: Mention the license change.
99382         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
99383         abbreviations in the modules files.
99385         Change copyright notice from GPLv2+ to GPLv3+.
99386         * README: Change copyright notice.
99387         * MODULES.html.sh: Likewise.
99388         * build-aux/bootstrap.conf: Likewise.
99389         * build-aux/config.libpath: Likewise.
99390         * build-aux/csharpcomp.sh.in: Likewise.
99391         * build-aux/csharpexec.sh.in: Likewise.
99392         * build-aux/install-reloc: Likewise.
99393         * build-aux/javacomp.sh.in: Likewise.
99394         * build-aux/javaexec.sh.in: Likewise.
99395         * build-aux/ldd.sh.in: Likewise.
99396         * build-aux/reloc-ldflags: Likewise.
99397         * build-aux/relocatable.sh.in: Likewise.
99398         * build-aux/x-to-1.in: Likewise.
99399         * check-module: Likewise.
99400         * config/srclistvars.sh: Likewise.
99401         * gnulib-tool: Likewise.
99402         * lib/acl-internal.h: Likewise.
99403         * lib/acl.c: Likewise.
99404         * lib/acl.h: Likewise.
99405         * lib/acl_entries.c: Likewise.
99406         * lib/areadlink-with-size.c: Likewise.
99407         * lib/areadlink.c: Likewise.
99408         * lib/areadlink.h: Likewise.
99409         * lib/argmatch.c: Likewise.
99410         * lib/argmatch.h: Likewise.
99411         * lib/argp-ba.c: Likewise.
99412         * lib/argp-eexst.c: Likewise.
99413         * lib/argp-fmtstream.c: Likewise.
99414         * lib/argp-fmtstream.h: Likewise.
99415         * lib/argp-fs-xinl.c: Likewise.
99416         * lib/argp-help.c: Likewise.
99417         * lib/argp-namefrob.h: Likewise.
99418         * lib/argp-parse.c: Likewise.
99419         * lib/argp-pin.c: Likewise.
99420         * lib/argp-pv.c: Likewise.
99421         * lib/argp-pvh.c: Likewise.
99422         * lib/argp-xinl.c: Likewise.
99423         * lib/argp.h: Likewise.
99424         * lib/at-func.c: Likewise.
99425         * lib/atanl.c: Likewise.
99426         * lib/backupfile.c: Likewise.
99427         * lib/backupfile.h: Likewise.
99428         * lib/basename.c: Likewise.
99429         * lib/binary-io.h: Likewise.
99430         * lib/byteswap.in.h: Likewise.
99431         * lib/c-stack.c: Likewise.
99432         * lib/c-stack.h: Likewise.
99433         * lib/c-strcasestr.c: Likewise.
99434         * lib/c-strcasestr.h: Likewise.
99435         * lib/c-strstr.c: Likewise.
99436         * lib/c-strstr.h: Likewise.
99437         * lib/c-strtod.c: Likewise.
99438         * lib/calloc.c: Likewise.
99439         * lib/canon-host.c: Likewise.
99440         * lib/canon-host.h: Likewise.
99441         * lib/canonicalize-lgpl.c: Likewise.
99442         * lib/canonicalize.c: Likewise.
99443         * lib/canonicalize.h: Likewise.
99444         * lib/ceil.c: Likewise.
99445         * lib/ceilf.c: Likewise.
99446         * lib/ceill.c: Likewise.
99447         * lib/chdir-long.c: Likewise.
99448         * lib/chdir-long.h: Likewise.
99449         * lib/chdir-safer.c: Likewise.
99450         * lib/chdir-safer.h: Likewise.
99451         * lib/chown.c: Likewise.
99452         * lib/classpath.c: Likewise.
99453         * lib/classpath.h: Likewise.
99454         * lib/clean-temp.c: Likewise.
99455         * lib/clean-temp.h: Likewise.
99456         * lib/cloexec.c: Likewise.
99457         * lib/close-stream.c: Likewise.
99458         * lib/closein.c: Likewise.
99459         * lib/closein.h: Likewise.
99460         * lib/closeout.c: Likewise.
99461         * lib/closeout.h: Likewise.
99462         * lib/concat-filename.c: Likewise.
99463         * lib/copy-file.c: Likewise.
99464         * lib/copy-file.h: Likewise.
99465         * lib/count-one-bits.h: Likewise.
99466         * lib/crc.c: Likewise.
99467         * lib/crc.h: Likewise.
99468         * lib/creat-safer.c: Likewise.
99469         * lib/csharpcomp.c: Likewise.
99470         * lib/csharpcomp.h: Likewise.
99471         * lib/csharpexec.c: Likewise.
99472         * lib/csharpexec.h: Likewise.
99473         * lib/cycle-check.c: Likewise.
99474         * lib/cycle-check.h: Likewise.
99475         * lib/diacrit.c: Likewise.
99476         * lib/diacrit.h: Likewise.
99477         * lib/diffseq.h: Likewise.
99478         * lib/dirchownmod.c: Likewise.
99479         * lib/dirent.in.h: Likewise.
99480         * lib/dirfd.c: Likewise.
99481         * lib/dirfd.h: Likewise.
99482         * lib/dirname.c: Likewise.
99483         * lib/dirname.h: Likewise.
99484         * lib/dummy.c: Likewise.
99485         * lib/dup-safer.c: Likewise.
99486         * lib/dup2.c: Likewise.
99487         * lib/eealloc.h: Likewise.
99488         * lib/error.c: Likewise.
99489         * lib/error.h: Likewise.
99490         * lib/euidaccess.c: Likewise.
99491         * lib/exclude.c: Likewise.
99492         * lib/exclude.h: Likewise.
99493         * lib/execute.c: Likewise.
99494         * lib/execute.h: Likewise.
99495         * lib/exitfail.c: Likewise.
99496         * lib/exitfail.h: Likewise.
99497         * lib/expl.c: Likewise.
99498         * lib/fatal-signal.c: Likewise.
99499         * lib/fatal-signal.h: Likewise.
99500         * lib/fbufmode.c: Likewise.
99501         * lib/fbufmode.h: Likewise.
99502         * lib/fchdir.c: Likewise.
99503         * lib/fchmodat.c: Likewise.
99504         * lib/fchownat.c: Likewise.
99505         * lib/fcntl--.h: Likewise.
99506         * lib/fcntl-safer.h: Likewise.
99507         * lib/fcntl.in.h: Likewise.
99508         * lib/fd-safer.c: Likewise.
99509         * lib/fflush.c: Likewise.
99510         * lib/file-has-acl.c: Likewise.
99511         * lib/file-set.c: Likewise.
99512         * lib/file-type.c: Likewise.
99513         * lib/file-type.h: Likewise.
99514         * lib/fileblocks.c: Likewise.
99515         * lib/filemode.c: Likewise.
99516         * lib/filemode.h: Likewise.
99517         * lib/filename.h: Likewise.
99518         * lib/filenamecat.c: Likewise.
99519         * lib/filenamecat.h: Likewise.
99520         * lib/findprog.c: Likewise.
99521         * lib/findprog.h: Likewise.
99522         * lib/float.in.h: Likewise.
99523         * lib/floor.c: Likewise.
99524         * lib/floorf.c: Likewise.
99525         * lib/floorl.c: Likewise.
99526         * lib/fopen-safer.c: Likewise.
99527         * lib/fopen.c: Likewise.
99528         * lib/fpending.c: Likewise.
99529         * lib/fpending.h: Likewise.
99530         * lib/fprintf.c: Likewise.
99531         * lib/fprintftime.h: Likewise.
99532         * lib/fpucw.h: Likewise.
99533         * lib/fpurge.c: Likewise.
99534         * lib/fpurge.h: Likewise.
99535         * lib/freadable.c: Likewise.
99536         * lib/freadable.h: Likewise.
99537         * lib/freadahead.c: Likewise.
99538         * lib/freadahead.h: Likewise.
99539         * lib/freading.c: Likewise.
99540         * lib/freading.h: Likewise.
99541         * lib/free.c: Likewise.
99542         * lib/freopen.c: Likewise.
99543         * lib/frexp.c: Likewise.
99544         * lib/frexpl.c: Likewise.
99545         * lib/fseek.c: Likewise.
99546         * lib/fseterr.c: Likewise.
99547         * lib/fseterr.h: Likewise.
99548         * lib/fstatat.c: Likewise.
99549         * lib/fstrcmp.c: Likewise.
99550         * lib/fstrcmp.h: Likewise.
99551         * lib/fsusage.c: Likewise.
99552         * lib/fsusage.h: Likewise.
99553         * lib/ftell.c: Likewise.
99554         * lib/ftello.c: Likewise.
99555         * lib/fts-cycle.c: Likewise.
99556         * lib/fts.c: Likewise.
99557         * lib/fts_.h: Likewise.
99558         * lib/full-read.c: Likewise.
99559         * lib/full-read.h: Likewise.
99560         * lib/full-write.c: Likewise.
99561         * lib/full-write.h: Likewise.
99562         * lib/fwritable.c: Likewise.
99563         * lib/fwritable.h: Likewise.
99564         * lib/fwriteerror.c: Likewise.
99565         * lib/fwriteerror.h: Likewise.
99566         * lib/fwriting.c: Likewise.
99567         * lib/fwriting.h: Likewise.
99568         * lib/gcd.c: Likewise.
99569         * lib/gcd.h: Likewise.
99570         * lib/getcwd.c: Likewise.
99571         * lib/getdate.h: Likewise.
99572         * lib/getdate.y: Likewise.
99573         * lib/getdomainname.c: Likewise.
99574         * lib/getdomainname.h: Likewise.
99575         * lib/getgroups.c: Likewise.
99576         * lib/gethostname.c: Likewise.
99577         * lib/gethrxtime.c: Likewise.
99578         * lib/gethrxtime.h: Likewise.
99579         * lib/getloadavg.c: Likewise.
99580         * lib/getndelim2.c: Likewise.
99581         * lib/getndelim2.h: Likewise.
99582         * lib/getnline.c: Likewise.
99583         * lib/getnline.h: Likewise.
99584         * lib/getopt.c: Likewise.
99585         * lib/getopt.in.h: Likewise.
99586         * lib/getopt1.c: Likewise.
99587         * lib/getopt_int.h: Likewise.
99588         * lib/getpagesize.h: Likewise.
99589         * lib/getsubopt.c: Likewise.
99590         * lib/gettime.c: Likewise.
99591         * lib/getugroups.c: Likewise.
99592         * lib/getugroups.h: Likewise.
99593         * lib/getusershell.c: Likewise.
99594         * lib/gl_anyavltree_list1.h: Likewise.
99595         * lib/gl_anyavltree_list2.h: Likewise.
99596         * lib/gl_anyhash_list1.h: Likewise.
99597         * lib/gl_anyhash_list2.h: Likewise.
99598         * lib/gl_anylinked_list1.h: Likewise.
99599         * lib/gl_anylinked_list2.h: Likewise.
99600         * lib/gl_anyrbtree_list1.h: Likewise.
99601         * lib/gl_anyrbtree_list2.h: Likewise.
99602         * lib/gl_anytree_list1.h: Likewise.
99603         * lib/gl_anytree_list2.h: Likewise.
99604         * lib/gl_anytree_oset.h: Likewise.
99605         * lib/gl_anytreehash_list1.h: Likewise.
99606         * lib/gl_anytreehash_list2.h: Likewise.
99607         * lib/gl_array_list.c: Likewise.
99608         * lib/gl_array_list.h: Likewise.
99609         * lib/gl_array_oset.c: Likewise.
99610         * lib/gl_array_oset.h: Likewise.
99611         * lib/gl_avltree_list.c: Likewise.
99612         * lib/gl_avltree_list.h: Likewise.
99613         * lib/gl_avltree_oset.c: Likewise.
99614         * lib/gl_avltree_oset.h: Likewise.
99615         * lib/gl_avltreehash_list.c: Likewise.
99616         * lib/gl_avltreehash_list.h: Likewise.
99617         * lib/gl_carray_list.c: Likewise.
99618         * lib/gl_carray_list.h: Likewise.
99619         * lib/gl_linked_list.c: Likewise.
99620         * lib/gl_linked_list.h: Likewise.
99621         * lib/gl_linkedhash_list.c: Likewise.
99622         * lib/gl_linkedhash_list.h: Likewise.
99623         * lib/gl_list.c: Likewise.
99624         * lib/gl_list.h: Likewise.
99625         * lib/gl_oset.c: Likewise.
99626         * lib/gl_oset.h: Likewise.
99627         * lib/gl_rbtree_list.c: Likewise.
99628         * lib/gl_rbtree_list.h: Likewise.
99629         * lib/gl_rbtree_oset.c: Likewise.
99630         * lib/gl_rbtree_oset.h: Likewise.
99631         * lib/gl_rbtreehash_list.c: Likewise.
99632         * lib/gl_rbtreehash_list.h: Likewise.
99633         * lib/gl_sublist.c: Likewise.
99634         * lib/gl_sublist.h: Likewise.
99635         * lib/group-member.c: Likewise.
99636         * lib/group-member.h: Likewise.
99637         * lib/hard-locale.c: Likewise.
99638         * lib/hard-locale.h: Likewise.
99639         * lib/hash-pjw.c: Likewise.
99640         * lib/hash-pjw.h: Likewise.
99641         * lib/hash-triple.c: Likewise.
99642         * lib/hash.c: Likewise.
99643         * lib/hash.h: Likewise.
99644         * lib/human.c: Likewise.
99645         * lib/human.h: Likewise.
99646         * lib/i-ring.c: Likewise.
99647         * lib/i-ring.h: Likewise.
99648         * lib/idcache.c: Likewise.
99649         * lib/imaxabs.c: Likewise.
99650         * lib/imaxdiv.c: Likewise.
99651         * lib/inet_pton.c: Likewise.
99652         * lib/inet_pton.h: Likewise.
99653         * lib/intprops.h: Likewise.
99654         * lib/inttostr.c: Likewise.
99655         * lib/inttostr.h: Likewise.
99656         * lib/inttypes.in.h: Likewise.
99657         * lib/isapipe.c: Likewise.
99658         * lib/isdir.c: Likewise.
99659         * lib/isnan.c: Likewise.
99660         * lib/isnan.h: Likewise.
99661         * lib/isnanf.c: Likewise.
99662         * lib/isnanf.h: Likewise.
99663         * lib/isnanl-nolibm.h: Likewise.
99664         * lib/isnanl.c: Likewise.
99665         * lib/isnanl.h: Likewise.
99666         * lib/javacomp.c: Likewise.
99667         * lib/javacomp.h: Likewise.
99668         * lib/javaexec.c: Likewise.
99669         * lib/javaexec.h: Likewise.
99670         * lib/javaversion.c: Likewise.
99671         * lib/javaversion.h: Likewise.
99672         * lib/javaversion.java: Likewise.
99673         * lib/lbrkprop.h: Likewise.
99674         * lib/lchmod.h: Likewise.
99675         * lib/lchown.c: Likewise.
99676         * lib/ldexpl.c: Likewise.
99677         * lib/linebreak.c: Likewise.
99678         * lib/linebreak.h: Likewise.
99679         * lib/linebuffer.c: Likewise.
99680         * lib/linebuffer.h: Likewise.
99681         * lib/locale.in.h: Likewise.
99682         * lib/logl.c: Likewise.
99683         * lib/long-options.c: Likewise.
99684         * lib/long-options.h: Likewise.
99685         * lib/lstat.c: Likewise.
99686         * lib/lstat.h: Likewise.
99687         * lib/math.in.h: Likewise.
99688         * lib/mbchar.c: Likewise.
99689         * lib/mbchar.h: Likewise.
99690         * lib/mbfile.h: Likewise.
99691         * lib/mbiter.h: Likewise.
99692         * lib/mbscasecmp.c: Likewise.
99693         * lib/mbscasestr.c: Likewise.
99694         * lib/mbschr.c: Likewise.
99695         * lib/mbscspn.c: Likewise.
99696         * lib/mbslen.c: Likewise.
99697         * lib/mbsncasecmp.c: Likewise.
99698         * lib/mbsnlen.c: Likewise.
99699         * lib/mbspbrk.c: Likewise.
99700         * lib/mbspcasecmp.c: Likewise.
99701         * lib/mbsrchr.c: Likewise.
99702         * lib/mbssep.c: Likewise.
99703         * lib/mbsspn.c: Likewise.
99704         * lib/mbsstr.c: Likewise.
99705         * lib/mbstok_r.c: Likewise.
99706         * lib/mbswidth.c: Likewise.
99707         * lib/mbswidth.h: Likewise.
99708         * lib/mbuiter.h: Likewise.
99709         * lib/memcasecmp.c: Likewise.
99710         * lib/memcasecmp.h: Likewise.
99711         * lib/memchr.c: Likewise.
99712         * lib/memcmp.c: Likewise.
99713         * lib/memcoll.c: Likewise.
99714         * lib/memcoll.h: Likewise.
99715         * lib/memcpy.c: Likewise.
99716         * lib/memrchr.c: Likewise.
99717         * lib/mkancesdirs.c: Likewise.
99718         * lib/mkdir-p.c: Likewise.
99719         * lib/mkdir-p.h: Likewise.
99720         * lib/mkdir.c: Likewise.
99721         * lib/mkdirat.c: Likewise.
99722         * lib/mkdtemp.c: Likewise.
99723         * lib/mkstemp-safer.c: Likewise.
99724         * lib/mkstemp.c: Likewise.
99725         * lib/modechange.c: Likewise.
99726         * lib/modechange.h: Likewise.
99727         * lib/mountlist.c: Likewise.
99728         * lib/mountlist.h: Likewise.
99729         * lib/mpsort.c: Likewise.
99730         * lib/nanosleep.c: Likewise.
99731         * lib/obstack.c: Likewise.
99732         * lib/obstack.h: Likewise.
99733         * lib/open-safer.c: Likewise.
99734         * lib/open.c: Likewise.
99735         * lib/openat-die.c: Likewise.
99736         * lib/openat-priv.h: Likewise.
99737         * lib/openat-proc.c: Likewise.
99738         * lib/openat.c: Likewise.
99739         * lib/openat.h: Likewise.
99740         * lib/pagealign_alloc.c: Likewise.
99741         * lib/pagealign_alloc.h: Likewise.
99742         * lib/physmem.c: Likewise.
99743         * lib/physmem.h: Likewise.
99744         * lib/pipe-safer.c: Likewise.
99745         * lib/pipe.c: Likewise.
99746         * lib/pipe.h: Likewise.
99747         * lib/posixtm.c: Likewise.
99748         * lib/posixtm.h: Likewise.
99749         * lib/posixver.c: Likewise.
99750         * lib/printf-frexp.c: Likewise.
99751         * lib/printf-frexp.h: Likewise.
99752         * lib/printf-frexpl.c: Likewise.
99753         * lib/printf-frexpl.h: Likewise.
99754         * lib/printf.c: Likewise.
99755         * lib/progname.c: Likewise.
99756         * lib/progname.h: Likewise.
99757         * lib/progreloc.c: Likewise.
99758         * lib/putenv.c: Likewise.
99759         * lib/quote.c: Likewise.
99760         * lib/quote.h: Likewise.
99761         * lib/quotearg.c: Likewise.
99762         * lib/quotearg.h: Likewise.
99763         * lib/raise.c: Likewise.
99764         * lib/readline.c: Likewise.
99765         * lib/readline.h: Likewise.
99766         * lib/readlink.c: Likewise.
99767         * lib/readtokens.c: Likewise.
99768         * lib/readtokens.h: Likewise.
99769         * lib/readtokens0.c: Likewise.
99770         * lib/readtokens0.h: Likewise.
99771         * lib/readutmp.c: Likewise.
99772         * lib/readutmp.h: Likewise.
99773         * lib/realloc.c: Likewise.
99774         * lib/relocwrapper.c: Likewise.
99775         * lib/rename-dest-slash.c: Likewise.
99776         * lib/rename.c: Likewise.
99777         * lib/rmdir.c: Likewise.
99778         * lib/rpmatch.c: Likewise.
99779         * lib/safe-read.c: Likewise.
99780         * lib/safe-read.h: Likewise.
99781         * lib/safe-write.c: Likewise.
99782         * lib/safe-write.h: Likewise.
99783         * lib/same-inode.h: Likewise.
99784         * lib/same.c: Likewise.
99785         * lib/same.h: Likewise.
99786         * lib/save-cwd.c: Likewise.
99787         * lib/save-cwd.h: Likewise.
99788         * lib/savedir.c: Likewise.
99789         * lib/savedir.h: Likewise.
99790         * lib/savewd.c: Likewise.
99791         * lib/savewd.h: Likewise.
99792         * lib/search.in.h: Likewise.
99793         * lib/setenv.c: Likewise.
99794         * lib/setenv.h: Likewise.
99795         * lib/settime.c: Likewise.
99796         * lib/sh-quote.c: Likewise.
99797         * lib/sh-quote.h: Likewise.
99798         * lib/sig2str.c: Likewise.
99799         * lib/sig2str.h: Likewise.
99800         * lib/signal.in.h: Likewise.
99801         * lib/signbitd.c: Likewise.
99802         * lib/signbitf.c: Likewise.
99803         * lib/signbitl.c: Likewise.
99804         * lib/sigprocmask.c: Likewise.
99805         * lib/sincosl.c: Likewise.
99806         * lib/sleep.c: Likewise.
99807         * lib/sprintf.c: Likewise.
99808         * lib/sqrtl.c: Likewise.
99809         * lib/stat-time.h: Likewise.
99810         * lib/stdio--.h: Likewise.
99811         * lib/stdio-safer.h: Likewise.
99812         * lib/stdlib--.h: Likewise.
99813         * lib/stdlib-safer.h: Likewise.
99814         * lib/stdlib.in.h: Likewise.
99815         * lib/stpcpy.c: Likewise.
99816         * lib/stpncpy.c: Likewise.
99817         * lib/strchrnul.c: Likewise.
99818         * lib/strcspn.c: Likewise.
99819         * lib/strerror.c: Likewise.
99820         * lib/strftime.c: Likewise.
99821         * lib/strftime.h: Likewise.
99822         * lib/striconveh.c: Likewise.
99823         * lib/striconveh.h: Likewise.
99824         * lib/striconveha.c: Likewise.
99825         * lib/striconveha.h: Likewise.
99826         * lib/stripslash.c: Likewise.
99827         * lib/strnlen1.c: Likewise.
99828         * lib/strnlen1.h: Likewise.
99829         * lib/strtod.c: Likewise.
99830         * lib/strtoimax.c: Likewise.
99831         * lib/strtok_r.c: Likewise.
99832         * lib/strtol.c: Likewise.
99833         * lib/strtoll.c: Likewise.
99834         * lib/strtoul.c: Likewise.
99835         * lib/strtoull.c: Likewise.
99836         * lib/sysexits.in.h: Likewise.
99837         * lib/tempname.c: Likewise.
99838         * lib/tempname.h: Likewise.
99839         * lib/timespec.h: Likewise.
99840         * lib/tls.c: Likewise.
99841         * lib/tls.h: Likewise.
99842         * lib/tmpdir.c: Likewise.
99843         * lib/tmpdir.h: Likewise.
99844         * lib/tmpfile-safer.c: Likewise.
99845         * lib/tmpfile.c: Likewise.
99846         * lib/trigl.c: Likewise.
99847         * lib/trigl.h: Likewise.
99848         * lib/trim.c: Likewise.
99849         * lib/trim.h: Likewise.
99850         * lib/trunc.c: Likewise.
99851         * lib/truncf.c: Likewise.
99852         * lib/truncl.c: Likewise.
99853         * lib/tsearch.c: Likewise.
99854         * lib/unicodeio.c: Likewise.
99855         * lib/unicodeio.h: Likewise.
99856         * lib/unistd--.h: Likewise.
99857         * lib/unistd-safer.h: Likewise.
99858         * lib/unistdio/ulc-fprintf.c: Likewise.
99859         * lib/unistdio/ulc-vfprintf.c: Likewise.
99860         * lib/unlinkdir.c: Likewise.
99861         * lib/unlinkdir.h: Likewise.
99862         * lib/unlocked-io.h: Likewise.
99863         * lib/unsetenv.c: Likewise.
99864         * lib/userspec.c: Likewise.
99865         * lib/utime.c: Likewise.
99866         * lib/utimecmp.c: Likewise.
99867         * lib/utimecmp.h: Likewise.
99868         * lib/utimens.c: Likewise.
99869         * lib/verify.h: Likewise.
99870         * lib/verror.c: Likewise.
99871         * lib/verror.h: Likewise.
99872         * lib/version-etc-fsf.c: Likewise.
99873         * lib/version-etc.c: Likewise.
99874         * lib/version-etc.h: Likewise.
99875         * lib/vfprintf.c: Likewise.
99876         * lib/vprintf.c: Likewise.
99877         * lib/vsprintf.c: Likewise.
99878         * lib/w32spawn.h: Likewise.
99879         * lib/wait-process.c: Likewise.
99880         * lib/wait-process.h: Likewise.
99881         * lib/wcwidth.c: Likewise.
99882         * lib/write-any-file.c: Likewise.
99883         * lib/xalloc-die.c: Likewise.
99884         * lib/xalloc.h: Likewise.
99885         * lib/xasprintf.c: Likewise.
99886         * lib/xgetcwd.c: Likewise.
99887         * lib/xgetcwd.h: Likewise.
99888         * lib/xgetdomainname.c: Likewise.
99889         * lib/xgetdomainname.h: Likewise.
99890         * lib/xgethostname.c: Likewise.
99891         * lib/xmalloc.c: Likewise.
99892         * lib/xmalloca.c: Likewise.
99893         * lib/xmalloca.h: Likewise.
99894         * lib/xmemcoll.c: Likewise.
99895         * lib/xnanosleep.c: Likewise.
99896         * lib/xreadlink.c: Likewise.
99897         * lib/xreadlink.h: Likewise.
99898         * lib/xsetenv.c: Likewise.
99899         * lib/xsetenv.h: Likewise.
99900         * lib/xstriconv.c: Likewise.
99901         * lib/xstriconv.h: Likewise.
99902         * lib/xstrndup.c: Likewise.
99903         * lib/xstrndup.h: Likewise.
99904         * lib/xstrtod.c: Likewise.
99905         * lib/xstrtod.h: Likewise.
99906         * lib/xstrtol-error.c: Likewise.
99907         * lib/xstrtol.c: Likewise.
99908         * lib/xstrtol.h: Likewise.
99909         * lib/xtime.h: Likewise.
99910         * lib/xvasprintf.c: Likewise.
99911         * lib/xvasprintf.h: Likewise.
99912         * lib/yesno.c: Likewise.
99913         * lib/yesno.h: Likewise.
99914         * posix-modules: Likewise.
99915         * tests/test-alloca-opt.c: Likewise.
99916         * tests/test-arcfour.c: Likewise.
99917         * tests/test-arctwo.c: Likewise.
99918         * tests/test-argmatch.c: Likewise.
99919         * tests/test-argp-2.sh: Likewise.
99920         * tests/test-argp.c: Likewise.
99921         * tests/test-arpa_inet.c: Likewise.
99922         * tests/test-array_list.c: Likewise.
99923         * tests/test-array_oset.c: Likewise.
99924         * tests/test-atexit.c: Likewise.
99925         * tests/test-avltree_list.c: Likewise.
99926         * tests/test-avltree_oset.c: Likewise.
99927         * tests/test-avltreehash_list.c: Likewise.
99928         * tests/test-base64.c: Likewise.
99929         * tests/test-binary-io.c: Likewise.
99930         * tests/test-byteswap.c: Likewise.
99931         * tests/test-c-ctype.c: Likewise.
99932         * tests/test-c-strcasecmp.c: Likewise.
99933         * tests/test-c-strcasestr.c: Likewise.
99934         * tests/test-c-strncasecmp.c: Likewise.
99935         * tests/test-c-strstr.c: Likewise.
99936         * tests/test-canonicalize-lgpl.c: Likewise.
99937         * tests/test-canonicalize.c: Likewise.
99938         * tests/test-carray_list.c: Likewise.
99939         * tests/test-ceilf.c: Likewise.
99940         * tests/test-ceill.c: Likewise.
99941         * tests/test-count-one-bits.c: Likewise.
99942         * tests/test-crc.c: Likewise.
99943         * tests/test-dirname.c: Likewise.
99944         * tests/test-fbufmode.c: Likewise.
99945         * tests/test-fcntl.c: Likewise.
99946         * tests/test-fflush.c: Likewise.
99947         * tests/test-floorf.c: Likewise.
99948         * tests/test-floorl.c: Likewise.
99949         * tests/test-fopen.c: Likewise.
99950         * tests/test-fprintf-posix.c: Likewise.
99951         * tests/test-fprintf-posix.h: Likewise.
99952         * tests/test-fpurge.c: Likewise.
99953         * tests/test-freadable.c: Likewise.
99954         * tests/test-freadahead.c: Likewise.
99955         * tests/test-freading.c: Likewise.
99956         * tests/test-freopen.c: Likewise.
99957         * tests/test-frexp.c: Likewise.
99958         * tests/test-frexpl.c: Likewise.
99959         * tests/test-fseek.c: Likewise.
99960         * tests/test-fseeko.c: Likewise.
99961         * tests/test-fseterr.c: Likewise.
99962         * tests/test-fstrcmp.c: Likewise.
99963         * tests/test-ftell.c: Likewise.
99964         * tests/test-ftello.c: Likewise.
99965         * tests/test-fwritable.c: Likewise.
99966         * tests/test-fwriting.c: Likewise.
99967         * tests/test-getaddrinfo.c: Likewise.
99968         * tests/test-getpass.c: Likewise.
99969         * tests/test-gettimeofday.c: Likewise.
99970         * tests/test-hmac-md5.c: Likewise.
99971         * tests/test-hmac-sha1.c: Likewise.
99972         * tests/test-iconv.c: Likewise.
99973         * tests/test-iconvme.c: Likewise.
99974         * tests/test-inttypes.c: Likewise.
99975         * tests/test-isnan.c: Likewise.
99976         * tests/test-isnanf.c: Likewise.
99977         * tests/test-isnanl-nolibm.c: Likewise.
99978         * tests/test-isnanl.c: Likewise.
99979         * tests/test-isnanl.h: Likewise.
99980         * tests/test-ldexpl.c: Likewise.
99981         * tests/test-linked_list.c: Likewise.
99982         * tests/test-linkedhash_list.c: Likewise.
99983         * tests/test-locale.c: Likewise.
99984         * tests/test-localename.c: Likewise.
99985         * tests/test-lock.c: Likewise.
99986         * tests/test-lseek.c: Likewise.
99987         * tests/test-malloca.c: Likewise.
99988         * tests/test-math.c: Likewise.
99989         * tests/test-mbscasecmp.c: Likewise.
99990         * tests/test-mbscasestr1.c: Likewise.
99991         * tests/test-mbscasestr2.c: Likewise.
99992         * tests/test-mbscasestr3.c: Likewise.
99993         * tests/test-mbscasestr4.c: Likewise.
99994         * tests/test-mbschr.c: Likewise.
99995         * tests/test-mbscspn.c: Likewise.
99996         * tests/test-mbsncasecmp.c: Likewise.
99997         * tests/test-mbspbrk.c: Likewise.
99998         * tests/test-mbspcasecmp.c: Likewise.
99999         * tests/test-mbsrchr.c: Likewise.
100000         * tests/test-mbsspn.c: Likewise.
100001         * tests/test-mbsstr1.c: Likewise.
100002         * tests/test-mbsstr2.c: Likewise.
100003         * tests/test-mbsstr3.c: Likewise.
100004         * tests/test-md5.c: Likewise.
100005         * tests/test-memmem.c: Likewise.
100006         * tests/test-netinet_in.c: Likewise.
100007         * tests/test-open.c: Likewise.
100008         * tests/test-printf-frexp.c: Likewise.
100009         * tests/test-printf-frexpl.c: Likewise.
100010         * tests/test-printf-posix.c: Likewise.
100011         * tests/test-printf-posix.h: Likewise.
100012         * tests/test-rbtree_list.c: Likewise.
100013         * tests/test-rbtree_oset.c: Likewise.
100014         * tests/test-rbtreehash_list.c: Likewise.
100015         * tests/test-read-file.c: Likewise.
100016         * tests/test-rijndael.c: Likewise.
100017         * tests/test-search.c: Likewise.
100018         * tests/test-signbit.c: Likewise.
100019         * tests/test-sleep.c: Likewise.
100020         * tests/test-snprintf-posix.c: Likewise.
100021         * tests/test-snprintf-posix.h: Likewise.
100022         * tests/test-snprintf.c: Likewise.
100023         * tests/test-sprintf-posix.c: Likewise.
100024         * tests/test-sprintf-posix.h: Likewise.
100025         * tests/test-stat-time.c: Likewise.
100026         * tests/test-stdbool.c: Likewise.
100027         * tests/test-stdint.c: Likewise.
100028         * tests/test-stdio.c: Likewise.
100029         * tests/test-stdlib.c: Likewise.
100030         * tests/test-stpncpy.c: Likewise.
100031         * tests/test-strcasestr.c: Likewise.
100032         * tests/test-striconv.c: Likewise.
100033         * tests/test-striconveh.c: Likewise.
100034         * tests/test-striconveha.c: Likewise.
100035         * tests/test-string.c: Likewise.
100036         * tests/test-sys_select.c: Likewise.
100037         * tests/test-sys_socket.c: Likewise.
100038         * tests/test-sys_stat.c: Likewise.
100039         * tests/test-sys_time.c: Likewise.
100040         * tests/test-sysexits.c: Likewise.
100041         * tests/test-time.c: Likewise.
100042         * tests/test-tls.c: Likewise.
100043         * tests/test-trunc.c: Likewise.
100044         * tests/test-truncf.c: Likewise.
100045         * tests/test-truncl.c: Likewise.
100046         * tests/test-unistd.c: Likewise.
100047         * tests/test-vasnprintf-posix.c: Likewise.
100048         * tests/test-vasnprintf-posix2.c: Likewise.
100049         * tests/test-vasnprintf.c: Likewise.
100050         * tests/test-vasprintf-posix.c: Likewise.
100051         * tests/test-vasprintf.c: Likewise.
100052         * tests/test-verify.c: Likewise.
100053         * tests/test-vfprintf-posix.c: Likewise.
100054         * tests/test-vprintf-posix.c: Likewise.
100055         * tests/test-vsnprintf-posix.c: Likewise.
100056         * tests/test-vsnprintf.c: Likewise.
100057         * tests/test-vsprintf-posix.c: Likewise.
100058         * tests/test-wchar.c: Likewise.
100059         * tests/test-wctype.c: Likewise.
100060         * tests/test-wcwidth.c: Likewise.
100061         * tests/test-xstrtol.c: Likewise.
100062         * tests/test-xvasprintf.c: Likewise.
100063         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
100064         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
100065         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
100066         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
100067         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
100068         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
100069         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
100070         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
100071         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
100072         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
100073         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
100074         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
100075         * tests/uniname/test-uninames.c: Likewise.
100076         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
100077         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
100078         * tests/unistdio/test-u16-printf1.h: Likewise.
100079         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
100080         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
100081         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
100082         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
100083         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
100084         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
100085         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
100086         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
100087         * tests/unistdio/test-u32-printf1.h: Likewise.
100088         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
100089         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
100090         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
100091         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
100092         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
100093         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
100094         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
100095         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
100096         * tests/unistdio/test-u8-printf1.h: Likewise.
100097         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
100098         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
100099         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
100100         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
100101         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
100102         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
100103         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
100104         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
100105         * tests/unistdio/test-ulc-printf1.h: Likewise.
100106         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
100107         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
100108         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
100109         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
100110         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
100111         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
100112         * tests/uniwidth/test-u16-strwidth.c: Likewise.
100113         * tests/uniwidth/test-u16-width.c: Likewise.
100114         * tests/uniwidth/test-u32-strwidth.c: Likewise.
100115         * tests/uniwidth/test-u32-width.c: Likewise.
100116         * tests/uniwidth/test-u8-strwidth.c: Likewise.
100117         * tests/uniwidth/test-u8-width.c: Likewise.
100118         * tests/uniwidth/test-uc_width.c: Likewise.
100119         * config/srclist-update: Likewise.
100120         (fixlicense): Update to GPLv3+.
100122         Change copyright notice from LGPLv2.1+ to LGPLv3+.
100123         * tests/test-tsearch.c: Change copyright notice.
100125         Change copyright notice from LGPLv2.0+ to LGPLv3+.
100126         * lib/c-strcaseeq.h: Change copyright notice.
100127         * lib/streq.h: Likewise.
100128         * lib/uniconv.h: Likewise.
100129         * lib/uniconv/u-conv-from-enc.h: Likewise.
100130         * lib/uniconv/u-conv-to-enc.h: Likewise.
100131         * lib/uniconv/u-strconv-from-enc.h: Likewise.
100132         * lib/uniconv/u-strconv-to-enc.h: Likewise.
100133         * lib/uniconv/u16-conv-from-enc.c: Likewise.
100134         * lib/uniconv/u16-conv-to-enc.c: Likewise.
100135         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
100136         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
100137         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
100138         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
100139         * lib/uniconv/u32-conv-from-enc.c: Likewise.
100140         * lib/uniconv/u32-conv-to-enc.c: Likewise.
100141         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
100142         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
100143         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
100144         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
100145         * lib/uniconv/u8-conv-from-enc.c: Likewise.
100146         * lib/uniconv/u8-conv-to-enc.c: Likewise.
100147         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
100148         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
100149         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
100150         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
100151         * lib/uniname.h: Likewise.
100152         * lib/uniname/uniname.c: Likewise.
100153         * lib/unistdio.h: Likewise.
100154         * lib/unistdio/u-asnprintf.h: Likewise.
100155         * lib/unistdio/u-asprintf.h: Likewise.
100156         * lib/unistdio/u-printf-args.c: Likewise.
100157         * lib/unistdio/u-printf-args.h: Likewise.
100158         * lib/unistdio/u-printf-parse.h: Likewise.
100159         * lib/unistdio/u-snprintf.h: Likewise.
100160         * lib/unistdio/u-sprintf.h: Likewise.
100161         * lib/unistdio/u-vasprintf.h: Likewise.
100162         * lib/unistdio/u-vsnprintf.h: Likewise.
100163         * lib/unistdio/u-vsprintf.h: Likewise.
100164         * lib/unistdio/u16-asnprintf.c: Likewise.
100165         * lib/unistdio/u16-asprintf.c: Likewise.
100166         * lib/unistdio/u16-printf-parse.c: Likewise.
100167         * lib/unistdio/u16-snprintf.c: Likewise.
100168         * lib/unistdio/u16-sprintf.c: Likewise.
100169         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
100170         * lib/unistdio/u16-u16-asprintf.c: Likewise.
100171         * lib/unistdio/u16-u16-snprintf.c: Likewise.
100172         * lib/unistdio/u16-u16-sprintf.c: Likewise.
100173         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
100174         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
100175         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
100176         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
100177         * lib/unistdio/u16-vasnprintf.c: Likewise.
100178         * lib/unistdio/u16-vasprintf.c: Likewise.
100179         * lib/unistdio/u16-vsnprintf.c: Likewise.
100180         * lib/unistdio/u16-vsprintf.c: Likewise.
100181         * lib/unistdio/u32-asnprintf.c: Likewise.
100182         * lib/unistdio/u32-asprintf.c: Likewise.
100183         * lib/unistdio/u32-printf-parse.c: Likewise.
100184         * lib/unistdio/u32-snprintf.c: Likewise.
100185         * lib/unistdio/u32-sprintf.c: Likewise.
100186         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
100187         * lib/unistdio/u32-u32-asprintf.c: Likewise.
100188         * lib/unistdio/u32-u32-snprintf.c: Likewise.
100189         * lib/unistdio/u32-u32-sprintf.c: Likewise.
100190         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
100191         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
100192         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
100193         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
100194         * lib/unistdio/u32-vasnprintf.c: Likewise.
100195         * lib/unistdio/u32-vasprintf.c: Likewise.
100196         * lib/unistdio/u32-vsnprintf.c: Likewise.
100197         * lib/unistdio/u32-vsprintf.c: Likewise.
100198         * lib/unistdio/u8-asnprintf.c: Likewise.
100199         * lib/unistdio/u8-asprintf.c: Likewise.
100200         * lib/unistdio/u8-printf-parse.c: Likewise.
100201         * lib/unistdio/u8-snprintf.c: Likewise.
100202         * lib/unistdio/u8-sprintf.c: Likewise.
100203         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
100204         * lib/unistdio/u8-u8-asprintf.c: Likewise.
100205         * lib/unistdio/u8-u8-snprintf.c: Likewise.
100206         * lib/unistdio/u8-u8-sprintf.c: Likewise.
100207         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
100208         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
100209         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
100210         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
100211         * lib/unistdio/u8-vasnprintf.c: Likewise.
100212         * lib/unistdio/u8-vasprintf.c: Likewise.
100213         * lib/unistdio/u8-vsnprintf.c: Likewise.
100214         * lib/unistdio/u8-vsprintf.c: Likewise.
100215         * lib/unistdio/ulc-asnprintf.c: Likewise.
100216         * lib/unistdio/ulc-asprintf.c: Likewise.
100217         * lib/unistdio/ulc-printf-parse.c: Likewise.
100218         * lib/unistdio/ulc-snprintf.c: Likewise.
100219         * lib/unistdio/ulc-sprintf.c: Likewise.
100220         * lib/unistdio/ulc-vasnprintf.c: Likewise.
100221         * lib/unistdio/ulc-vasprintf.c: Likewise.
100222         * lib/unistdio/ulc-vsnprintf.c: Likewise.
100223         * lib/unistdio/ulc-vsprintf.c: Likewise.
100224         * lib/unistr.h: Likewise.
100225         * lib/unistr/u-cpy-alloc.h: Likewise.
100226         * lib/unistr/u-cpy.h: Likewise.
100227         * lib/unistr/u-endswith.h: Likewise.
100228         * lib/unistr/u-move.h: Likewise.
100229         * lib/unistr/u-set.h: Likewise.
100230         * lib/unistr/u-startswith.h: Likewise.
100231         * lib/unistr/u-stpcpy.h: Likewise.
100232         * lib/unistr/u-stpncpy.h: Likewise.
100233         * lib/unistr/u-strcat.h: Likewise.
100234         * lib/unistr/u-strcpy.h: Likewise.
100235         * lib/unistr/u-strcspn.h: Likewise.
100236         * lib/unistr/u-strdup.h: Likewise.
100237         * lib/unistr/u-strlen.h: Likewise.
100238         * lib/unistr/u-strncat.h: Likewise.
100239         * lib/unistr/u-strncpy.h: Likewise.
100240         * lib/unistr/u-strnlen.h: Likewise.
100241         * lib/unistr/u-strpbrk.h: Likewise.
100242         * lib/unistr/u-strspn.h: Likewise.
100243         * lib/unistr/u-strstr.h: Likewise.
100244         * lib/unistr/u-strtok.h: Likewise.
100245         * lib/unistr/u16-check.c: Likewise.
100246         * lib/unistr/u16-chr.c: Likewise.
100247         * lib/unistr/u16-cmp.c: Likewise.
100248         * lib/unistr/u16-cpy-alloc.c: Likewise.
100249         * lib/unistr/u16-cpy.c: Likewise.
100250         * lib/unistr/u16-endswith.c: Likewise.
100251         * lib/unistr/u16-mblen.c: Likewise.
100252         * lib/unistr/u16-mbsnlen.c: Likewise.
100253         * lib/unistr/u16-mbtouc-aux.c: Likewise.
100254         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
100255         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
100256         * lib/unistr/u16-mbtouc.c: Likewise.
100257         * lib/unistr/u16-mbtoucr.c: Likewise.
100258         * lib/unistr/u16-move.c: Likewise.
100259         * lib/unistr/u16-next.c: Likewise.
100260         * lib/unistr/u16-prev.c: Likewise.
100261         * lib/unistr/u16-set.c: Likewise.
100262         * lib/unistr/u16-startswith.c: Likewise.
100263         * lib/unistr/u16-stpcpy.c: Likewise.
100264         * lib/unistr/u16-stpncpy.c: Likewise.
100265         * lib/unistr/u16-strcat.c: Likewise.
100266         * lib/unistr/u16-strchr.c: Likewise.
100267         * lib/unistr/u16-strcmp.c: Likewise.
100268         * lib/unistr/u16-strcpy.c: Likewise.
100269         * lib/unistr/u16-strcspn.c: Likewise.
100270         * lib/unistr/u16-strdup.c: Likewise.
100271         * lib/unistr/u16-strlen.c: Likewise.
100272         * lib/unistr/u16-strmblen.c: Likewise.
100273         * lib/unistr/u16-strmbtouc.c: Likewise.
100274         * lib/unistr/u16-strncat.c: Likewise.
100275         * lib/unistr/u16-strncmp.c: Likewise.
100276         * lib/unistr/u16-strncpy.c: Likewise.
100277         * lib/unistr/u16-strnlen.c: Likewise.
100278         * lib/unistr/u16-strpbrk.c: Likewise.
100279         * lib/unistr/u16-strrchr.c: Likewise.
100280         * lib/unistr/u16-strspn.c: Likewise.
100281         * lib/unistr/u16-strstr.c: Likewise.
100282         * lib/unistr/u16-strtok.c: Likewise.
100283         * lib/unistr/u16-to-u32.c: Likewise.
100284         * lib/unistr/u16-to-u8.c: Likewise.
100285         * lib/unistr/u16-uctomb-aux.c: Likewise.
100286         * lib/unistr/u16-uctomb.c: Likewise.
100287         * lib/unistr/u32-check.c: Likewise.
100288         * lib/unistr/u32-chr.c: Likewise.
100289         * lib/unistr/u32-cmp.c: Likewise.
100290         * lib/unistr/u32-cpy-alloc.c: Likewise.
100291         * lib/unistr/u32-cpy.c: Likewise.
100292         * lib/unistr/u32-endswith.c: Likewise.
100293         * lib/unistr/u32-mblen.c: Likewise.
100294         * lib/unistr/u32-mbsnlen.c: Likewise.
100295         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
100296         * lib/unistr/u32-mbtouc.c: Likewise.
100297         * lib/unistr/u32-mbtoucr.c: Likewise.
100298         * lib/unistr/u32-move.c: Likewise.
100299         * lib/unistr/u32-next.c: Likewise.
100300         * lib/unistr/u32-prev.c: Likewise.
100301         * lib/unistr/u32-set.c: Likewise.
100302         * lib/unistr/u32-startswith.c: Likewise.
100303         * lib/unistr/u32-stpcpy.c: Likewise.
100304         * lib/unistr/u32-stpncpy.c: Likewise.
100305         * lib/unistr/u32-strcat.c: Likewise.
100306         * lib/unistr/u32-strchr.c: Likewise.
100307         * lib/unistr/u32-strcmp.c: Likewise.
100308         * lib/unistr/u32-strcpy.c: Likewise.
100309         * lib/unistr/u32-strcspn.c: Likewise.
100310         * lib/unistr/u32-strdup.c: Likewise.
100311         * lib/unistr/u32-strlen.c: Likewise.
100312         * lib/unistr/u32-strmblen.c: Likewise.
100313         * lib/unistr/u32-strmbtouc.c: Likewise.
100314         * lib/unistr/u32-strncat.c: Likewise.
100315         * lib/unistr/u32-strncmp.c: Likewise.
100316         * lib/unistr/u32-strncpy.c: Likewise.
100317         * lib/unistr/u32-strnlen.c: Likewise.
100318         * lib/unistr/u32-strpbrk.c: Likewise.
100319         * lib/unistr/u32-strrchr.c: Likewise.
100320         * lib/unistr/u32-strspn.c: Likewise.
100321         * lib/unistr/u32-strstr.c: Likewise.
100322         * lib/unistr/u32-strtok.c: Likewise.
100323         * lib/unistr/u32-to-u16.c: Likewise.
100324         * lib/unistr/u32-to-u8.c: Likewise.
100325         * lib/unistr/u32-uctomb.c: Likewise.
100326         * lib/unistr/u8-check.c: Likewise.
100327         * lib/unistr/u8-chr.c: Likewise.
100328         * lib/unistr/u8-cmp.c: Likewise.
100329         * lib/unistr/u8-cpy-alloc.c: Likewise.
100330         * lib/unistr/u8-cpy.c: Likewise.
100331         * lib/unistr/u8-endswith.c: Likewise.
100332         * lib/unistr/u8-mblen.c: Likewise.
100333         * lib/unistr/u8-mbsnlen.c: Likewise.
100334         * lib/unistr/u8-mbtouc-aux.c: Likewise.
100335         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
100336         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
100337         * lib/unistr/u8-mbtouc.c: Likewise.
100338         * lib/unistr/u8-mbtoucr.c: Likewise.
100339         * lib/unistr/u8-move.c: Likewise.
100340         * lib/unistr/u8-next.c: Likewise.
100341         * lib/unistr/u8-prev.c: Likewise.
100342         * lib/unistr/u8-set.c: Likewise.
100343         * lib/unistr/u8-startswith.c: Likewise.
100344         * lib/unistr/u8-stpcpy.c: Likewise.
100345         * lib/unistr/u8-stpncpy.c: Likewise.
100346         * lib/unistr/u8-strcat.c: Likewise.
100347         * lib/unistr/u8-strchr.c: Likewise.
100348         * lib/unistr/u8-strcmp.c: Likewise.
100349         * lib/unistr/u8-strcpy.c: Likewise.
100350         * lib/unistr/u8-strcspn.c: Likewise.
100351         * lib/unistr/u8-strdup.c: Likewise.
100352         * lib/unistr/u8-strlen.c: Likewise.
100353         * lib/unistr/u8-strmblen.c: Likewise.
100354         * lib/unistr/u8-strmbtouc.c: Likewise.
100355         * lib/unistr/u8-strncat.c: Likewise.
100356         * lib/unistr/u8-strncmp.c: Likewise.
100357         * lib/unistr/u8-strncpy.c: Likewise.
100358         * lib/unistr/u8-strnlen.c: Likewise.
100359         * lib/unistr/u8-strpbrk.c: Likewise.
100360         * lib/unistr/u8-strrchr.c: Likewise.
100361         * lib/unistr/u8-strspn.c: Likewise.
100362         * lib/unistr/u8-strstr.c: Likewise.
100363         * lib/unistr/u8-strtok.c: Likewise.
100364         * lib/unistr/u8-to-u16.c: Likewise.
100365         * lib/unistr/u8-to-u32.c: Likewise.
100366         * lib/unistr/u8-uctomb-aux.c: Likewise.
100367         * lib/unistr/u8-uctomb.c: Likewise.
100368         * lib/unitypes.h: Likewise.
100369         * lib/uniwidth.h: Likewise.
100370         * lib/uniwidth/cjk.h: Likewise.
100371         * lib/uniwidth/u16-strwidth.c: Likewise.
100372         * lib/uniwidth/u16-width.c: Likewise.
100373         * lib/uniwidth/u32-strwidth.c: Likewise.
100374         * lib/uniwidth/u32-width.c: Likewise.
100375         * lib/uniwidth/u8-strwidth.c: Likewise.
100376         * lib/uniwidth/u8-width.c: Likewise.
100377         * lib/uniwidth/width.c: Likewise.
100379 2007-10-07  Bruno Haible  <bruno@clisp.org>
100381         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
100382         The file is still under LGPL (see modules/inttypes).
100384 2007-10-06  Bruno Haible  <bruno@clisp.org>
100386         * modules/trunc (Dependencies): Add 'extensions'.
100387         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
100388         Reported by Ben Pfaff <blp@gnu.org>.
100390 2007-10-06  Bruno Haible  <bruno@clisp.org>
100392         * modules/freopen-tests: New file.
100393         * tests/test-freopen.c: New file.
100395         * modules/fopen-tests: New file.
100396         * tests/test-fopen.c: New file.
100398         * modules/fopen: New file.
100399         * lib/fopen.c: New file.
100400         * m4/fopen.m4: New file.
100401         * modules/freopen: New file.
100402         * lib/freopen.c: New file.
100403         * m4/freopen.m4: New file.
100404         * lib/stdio.in.h (fopen, freopen): New declarations.
100405         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
100406         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
100407         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
100408         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
100409         * doc/functions/fopen.texi: Mention the 'fopen' module.
100410         * doc/functions/freopen.texi: Mention the 'freopen' module.
100412 2007-10-06  Bruno Haible  <bruno@clisp.org>
100414         * modules/open-tests: New file.
100415         * tests/test-open.c: New file.
100417         * modules/open: New file.
100418         * lib/open.c: New file.
100419         * m4/open.m4: New file.
100420         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
100421         lib/open.c does.
100422         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
100423         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
100424         macros.
100425         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
100426         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
100427         REPLACE_OPEN.
100428         * doc/functions/open.texi: Mention the 'open' module.
100430 2007-10-04  Bruno Haible  <bruno@clisp.org>
100432         * modules/ceill-tests: New file.
100433         * tests/test-ceill.c: New file.
100435         * modules/ceill: New file.
100436         * lib/ceill.c: Replace entire file.
100437         * m4/ceill.m4: New file.
100438         * lib/math.in.h (ceill): Replace declaration.
100439         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
100440         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
100441         * doc/functions/ceill.texi: Mention the 'ceill' module.
100442         * modules/mathl (Files): Remove lib/ceill.c.
100443         (Depends-on): Add ceill.
100445 2007-10-04  Bruno Haible  <bruno@clisp.org>
100447         * modules/ceilf-tests: New file.
100448         * tests/test-ceilf.c: New file.
100450         * modules/ceilf: New file.
100451         * lib/ceil.c: New file.
100452         * lib/ceilf.c: New file.
100453         * m4/ceilf.m4: New file.
100454         * lib/math.in.h (ceilf): New declaration.
100455         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
100456         HAVE_DECL_CEILF.
100457         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
100458         HAVE_DECL_CEILF.
100459         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
100461 2007-10-04  Bruno Haible  <bruno@clisp.org>
100463         * modules/floorl-tests: New file.
100464         * tests/test-floorl.c: New file.
100466         * modules/floorl: New file.
100467         * lib/floorl.c: Replace entire file.
100468         * m4/floorl.m4: New file.
100469         * lib/math.in.h (floorl): Replace declaration.
100470         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
100471         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
100472         * doc/functions/floorl.texi: Mention the 'floorl' module.
100473         * modules/mathl (Files): Remove lib/floorl.c.
100474         (Depends-on): Add floorl.
100476 2007-10-04  Bruno Haible  <bruno@clisp.org>
100478         * modules/floorf-tests: New file.
100479         * tests/test-floorf.c: New file.
100481         * modules/floorf: New file.
100482         * lib/floor.c: New file.
100483         * lib/floorf.c: New file.
100484         * m4/floorf.m4: New file.
100485         * lib/math.in.h (floorf): New declaration.
100486         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
100487         HAVE_DECL_FLOORF.
100488         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
100489         HAVE_DECL_FLOORF.
100490         * doc/functions/floorf.texi: Mention the 'floorf' module.
100492 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
100493             Bruno Haible  <bruno@clisp.org>
100495         Advertise for the Git server instead of the CVS server.
100496         * doc/gnulib-intro.texi (Steady Development): Mention the Git
100497         repository instead of the CVS one.
100498         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
100499         about all VCS systems generically.
100500         * doc/gnulib.texi (Introduction): Capitalize `Git'.
100502 2007-10-04  Bruno Haible  <bruno@clisp.org>
100504         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
100505         means.
100506         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
100508 2007-10-04  Bruno Haible  <bruno@clisp.org>
100510         * modules/truncl-tests: New file.
100511         * tests/test-truncl.c: New file.
100513         * modules/truncl: New file.
100514         * lib/truncl.c: New file.
100515         * m4/truncl.m4: New file.
100516         * lib/math.in.h (truncl): New declaration.
100517         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
100518         HAVE_DECL_TRUNCL.
100519         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
100520         HAVE_DECL_TRUNCL.
100521         * doc/functions/truncl.texi: Mention the 'truncl' module.
100523 2007-10-04  Bruno Haible  <bruno@clisp.org>
100525         * modules/truncf-tests: New file.
100526         * tests/test-truncf.c: New file.
100528         * modules/truncf: New file.
100529         * lib/trunc.c: Make paramerizable through USE_* macros.
100530         * lib/truncf.c: New file.
100531         * m4/truncf.m4: New file.
100532         * lib/math.in.h (truncf): New declaration.
100533         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
100534         HAVE_DECL_TRUNCF.
100535         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
100536         HAVE_DECL_TRUNCF.
100537         * doc/functions/truncf.texi: Mention the 'truncf' module.
100539 2007-10-03  Bruno Haible  <bruno@clisp.org>
100541         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
100542         augmentation also for tests modules.
100543         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
100544         * modules/atexit-tests (Makefile.am): Likewise.
100545         * modules/binary-io-tests (Makefile.am): Likewise.
100546         * modules/c-strcase-tests (Makefile.am): Likewise.
100547         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
100548         * modules/canonicalize-tests (Makefile.am): Likewise.
100549         * modules/closein-tests (Makefile.am): Likewise.
100550         * modules/fprintf-posix-tests (Makefile.am): Likewise.
100551         * modules/freadahead-tests (Makefile.am): Likewise.
100552         * modules/fseek-tests (Makefile.am): Likewise.
100553         * modules/fseeko-tests (Makefile.am): Likewise.
100554         * modules/ftell-tests (Makefile.am): Likewise.
100555         * modules/ftello-tests (Makefile.am): Likewise.
100556         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
100557         * modules/isnanl-tests (Makefile.am): Likewise.
100558         * modules/lseek-tests (Makefile.am): Likewise.
100559         * modules/mbscasecmp-tests (Makefile.am): Likewise.
100560         * modules/mbscasestr-tests (Makefile.am): Likewise.
100561         * modules/mbschr-tests (Makefile.am): Likewise.
100562         * modules/mbscspn-tests (Makefile.am): Likewise.
100563         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
100564         * modules/mbspbrk-tests (Makefile.am): Likewise.
100565         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
100566         * modules/mbsrchr-tests (Makefile.am): Likewise.
100567         * modules/mbsspn-tests (Makefile.am): Likewise.
100568         * modules/mbsstr-tests (Makefile.am): Likewise.
100569         * modules/printf-posix-tests (Makefile.am): Likewise.
100570         * modules/snprintf-posix-tests (Makefile.am): Likewise.
100571         * modules/sprintf-posix-tests (Makefile.am): Likewise.
100572         * modules/tsearch-tests (Makefile.am): Likewise.
100573         * modules/uniname/uniname-tests (Makefile.am): Likewise.
100574         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
100575         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
100576         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
100577         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
100578         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
100579         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
100580         * modules/vprintf-posix-tests (Makefile.am): Likewise.
100581         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
100582         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
100583         * modules/xstrtoimax-tests (Makefile.am): Likewise.
100584         * modules/xstrtol-tests (Makefile.am): Likewise.
100585         * modules/xstrtoumax-tests (Makefile.am): Likewise.
100586         * modules/yesno-tests (Makefile.am): Likewise.
100588 2007-10-03  Bruno Haible  <bruno@clisp.org>
100590         * modules/trunc-tests: New file.
100591         * tests/test-trunc.c: New file.
100593         * modules/trunc: New file.
100594         * lib/trunc.c: New file.
100595         * m4/trunc.m4: New file.
100596         * lib/math.in.h (trunc): New declaration.
100597         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
100598         HAVE_DECL_TRUNC.
100599         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
100600         HAVE_DECL_TRUNC.
100601         * doc/functions/trunc.texi: Mention the 'trunc' module.
100603 2007-10-03  Bruno Haible  <bruno@clisp.org>
100605         * tests/test-fpending.c: New file, mostly copied
100606         from coreutils/lib/t-fpending.c.
100607         * modules/fpending-tests: New file.
100609 2007-10-03  Bruno Haible  <bruno@clisp.org>
100611         Port the stdio extensions to QNX (untested).
100612         * lib/fseterr.c (fseterr): Add support for QNX.
100613         * lib/fbufmode.c (fbufmode): Likewise.
100614         * lib/freadable.c (freadable): Likewise.
100615         * lib/fwritable.c (fwritable): Likewise.
100616         * lib/freading.c (freading): Likewise.
100617         * lib/fwriting.c (fwriting): Likewise.
100618         * lib/freadahead.c (freadahed): Likewise.
100619         * lib/fpurge.c (fpurge): Likewise.
100620         * lib/fseeko.c (rpl_fseeko): Likewise.
100622 2007-10-03  Bruno Haible  <bruno@clisp.org>
100623             Jim Meyering  <jim@meyering.net>
100624             Eric Blake  <ebb9@byu.net>
100626         * doc/relocatable.texi: Use @command instead of @program.
100628 2007-10-02  Jim Meyering  <jim@meyering.net>
100630         Perform one more "_.h" -> ".in.h" substitution.
100631         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
100632         instead of unistd_.h here, too.
100634 2007-10-01  Bruno Haible  <bruno@clisp.org>
100636         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
100637         Needed for the alloca-opt module.
100639 2007-09-30  Bruno Haible  <bruno@clisp.org>
100641         * lib/alloca.in.h: Renamed from lib/alloca_.h.
100642         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
100643         alloca_.h.
100644         * lib/argz.in.h: Renamed from lib/argz_.h.
100645         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
100646         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
100647         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
100648         byteswap_.h.
100649         * lib/dirent.in.h: Renamed from lib/dirent_.h.
100650         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
100651         dirent_.h.
100652         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
100653         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
100654         fcntl_.h.
100655         * lib/float.in.h: Renamed from lib/float_.h.
100656         * modules/float (Files, Makefile.am): Use float.in.h instead of
100657         float_.h.
100658         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
100659         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
100660         fnmatch_.h.
100661         * lib/getopt.in.h: Renamed from lib/getopt_.h.
100662         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
100663         getopt_.h.
100664         * lib/glob.in.h: Renamed from lib/glob_.h.
100665         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
100666         * lib/iconv.in.h: Renamed from lib/iconv_.h.
100667         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
100668         iconv_.h.
100669         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
100670         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
100671         inttypes_.h.
100672         * lib/locale.in.h: Renamed from lib/locale_.h.
100673         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
100674         locale_.h.
100675         * lib/math.in.h: Renamed from lib/math_.h.
100676         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
100677         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
100678         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
100679         of netinet_in_.h. Add dependency.
100680         * lib/poll.in.h: Renamed from lib/poll_.h.
100681         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
100682         * lib/search.in.h: Renamed from lib/search_.h.
100683         * modules/search (Files, Makefile.am): Use search.in.h instead of
100684         search_.h.
100685         * lib/signal.in.h: Renamed from lib/signal_.h.
100686         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
100687         _signal.h.
100688         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
100689         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
100690         stdbool_.h.
100691         * lib/stdint.in.h: Renamed from lib/stdint_.h.
100692         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
100693         stdint_.h.
100694         * lib/stdio.in.h: Renamed from lib/stdio_.h.
100695         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
100696         stdio_.h.
100697         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
100698         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
100699         stdlib_.h.
100700         * lib/string.in.h: Renamed from lib/string_.h.
100701         * modules/string (Files, Makefile.am): Use string.in.h instead of
100702         string_.h.
100703         * doc/gnulib-tool.texi (Initial import): Update.
100704         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
100705         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
100706         of sys_select_.h. Add dependency.
100707         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
100708         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
100709         of sys_socket_.h.
100710         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
100711         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
100712         sys_stat_.h.
100713         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
100714         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
100715         sys_time_.h.
100716         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
100717         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
100718         sysexits_.h.
100719         * lib/time.in.h: Renamed from lib/time_.h.
100720         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
100721         * lib/unistd.in.h: Renamed from lib/unistd_.h.
100722         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
100723         unistd_.h.
100724         * lib/wchar.in.h: Renamed from lib/wchar_.h.
100725         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
100726         wchar_.h.
100727         * lib/wctype.in.h: Renamed from lib/wctype_.h.
100728         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
100729         wctype_.h.
100730         * build-aux/bootstrap (slurp): Update.
100731         * lib/.cppi-disable: Update.
100733 2007-09-30  Bruno Haible  <bruno@clisp.org>
100735         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
100736         Needed on BeOS.
100738 2007-09-30  Bruno Haible  <bruno@clisp.org>
100740         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
100742 2007-09-29  Bruno Haible  <bruno@clisp.org>
100744         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
100746 2007-09-29  Bruno Haible  <bruno@clisp.org>
100748         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
100749         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
100750         * build-aux/install-reloc: Compile also areadlink.c.
100751         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
100753 2007-09-29  Bruno Haible  <bruno@clisp.org>
100755         * gnulib-tool (func_emit_initmacro_done): Indentation.
100757 2007-09-29  Bruno Haible  <bruno@clisp.org>
100759         * README: Add CVS checkout update instructions.
100760         Info from Bob Proulx <bob@proulx.com>.
100762 2007-09-28  Eric Blake  <ebb9@byu.net>
100764         Provide move-if-change.
100765         * build-aux/move-if-change: New file, based on best practice
100766         rather than any canonical upstream location.
100768 2007-09-28  Jim Meyering  <jim@meyering.net>
100770         Fix canonicalize loop-detection corner case.
100771         Do not attempt to stat the symlink values stored via seen_triple.
100772         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
100773         on linux-2.6.18, (but not 2.6.22).
100774         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
100775         triple_compare.  The former compares dev,ino,filename, while the latter
100776         would actually stat dirname(filename) when dev and ino were equal.
100777         * lib/hash-triple.c: Install <string.h>.
100778         (STREQ): Define.
100779         (triple_compare_ino_str): New function.
100780         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
100782 2007-09-28  Eric Blake  <ebb9@byu.net>
100784         Enforce that AC_REPLACE_FUNCS files exist.
100785         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
100786         override check for typos.
100788         Fix test-closein on Solaris 10.
100789         * tests/test-closein.c (main): Don't assume stdin can be inherited
100790         closed on all systems.
100791         * tests/test-closein.sh: Likewise.
100792         Reported by Piotr Tarnowski.
100794 2007-09-28  Jim Meyering  <jim@meyering.net>
100796         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
100798 2007-09-27  Jim Meyering  <jim@meyering.net>
100800         canonicalize: Avoid a false-positive cycle failure.
100801         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
100802         Sort.  Remove cycle-check.
100803         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
100804         not cycle-check.h.
100805         (seen_triple): New function.
100806         (canonicalize_filename_mode): Use it instead of cycle-check.
100807         * tests/test-canonicalize.c: Add a test for this bug.
100808         * tests/test-canonicalize.sh: Set up and run the test.
100810         New module, file-set, from coreutils.
100811         * modules/file-set: Define it.
100812         * lib/file-set.c, lib/file-set.h: Implement.
100814         New module, hash-triple, from coreutils.
100815         * modules/hash-triple: Define it.
100816         * lib/hash-triple.c, lib/hash-triple.h: Implement.
100818 2007-09-25  Eric Blake  <ebb9@byu.net>
100820         Fix strerror on Interix.
100821         * lib/string_.h (strerror): Declare replacement.
100822         * doc/functions/strerror.texi (strerror): Document the Interix
100823         shortcoming.
100824         * modules/string (Makefile.am): Support new hooks.
100825         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
100826         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
100827         gl_FUNC_STRERROR_SEPARATE.
100828         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
100829         * lib/strerror.c (rpl_strerror): Provide replacement.
100830         * modules/strerror (Depends-on): Add string.
100831         (configure.ac): Detect use of module.
100832         * tests/test-strerror.c: New file.
100833         * modules/strerror-tests: New test module.
100834         * modules/argp (Depends-on): Add strerror.
100835         * modules/error (Depends-on): Likewise.
100836         Reported by Martin Koeppe.
100838 2007-09-24  Bruno Haible  <bruno@clisp.org>
100840         * README: Update git instructions.
100842 2007-09-24  Eric Blake  <ebb9@byu.net>
100844         Revert fpending breakage from 2007-09-08.
100845         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
100846         __fpending.c.
100848 2007-09-24  Jim Meyering  <jim@meyering.net>
100850         filenamecat.c: Add a test.
100851         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
100852         showing how the function works when DIR is the empty string.
100854 2007-09-21  Simon Josefsson  <simon@josefsson.org>
100856         * tests/test-canonicalize.sh: Turn on executable bit.
100858 2007-09-19  Eric Blake  <ebb9@byu.net>
100860         * README: Update CVS instructions.
100862 2007-09-18  Bruno Haible  <bruno@clisp.org>
100864         * modules/areadlink: New file.
100865         * lib/areadlink.h (areadlink): New declaration.
100866         * lib/areadlink.c: New file, based on lib/xreadlink.c.
100868 2007-09-17  Jim Meyering  <jim@meyering.net>
100870         * lib/savewd.c (ESTALE) [!defined]: Define.
100871         Reported to be required on Interix by Martin Koeppe.
100873 2007-09-17  Bruno Haible  <bruno@clisp.org>
100875         * gnulib-tool (func_version): Use $version.
100877 2007-09-16  Bruno Haible  <bruno@clisp.org>
100879         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
100880         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
100881         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
100882         Reported by Greg Schafer <gschafer@zip.com.au>.
100884 2007-09-15  Bruno Haible  <bruno@clisp.org>
100886         * gnulib-tool (sed): Try a little harder to make bash understand the
100887         alias.
100888         Reported by Bruce Korb <bruce.korb@gmail.com>.
100890 2007-09-13  Eric Blake  <ebb9@byu.net>
100892         * ChangeLog: Remove conflict markers.
100894 2007-09-13  Simon Josefsson  <simon@josefsson.org>
100896         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
100897         Reported by Bruno Haible <bruno@clisp.org>.
100899 2007-09-12  Bruno Haible  <bruno@clisp.org>
100901         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
100902         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
100903         is not defined.
100905 2007-09-12  Eric Blake  <ebb9@byu.net>
100907         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
100908         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
100909         Autoconf definition.
100910         * modules/euidaccess (Depends-on): Add extensions, for
100911         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
100912         * modules/fnmatch (Depends-on): Likewise.
100913         * modules/getaddrinfo (Depends-on): Likewise.
100914         * modules/getdelim (Depends-on): Likewise.
100915         * modules/getline (Depends-on): Likewise.
100916         * modules/getsubopt (Depends-on): Likewise.
100917         * modules/gettext (Depends-on): Likewise.
100918         * modules/group-member (Depends-on): Likewise.
100919         * modules/mbchar (Depends-on): Likewise.
100920         * modules/memmem (Depends-on): Likewise.
100921         * modules/mempcpy (Depends-on): Likewise.
100922         * modules/memrchr (Depends-on): Likewise.
100923         * modules/pagealign_alloc (Depends-on): Likewise.
100924         * modules/readutmp (Depends-on): Likewise.
100925         * modules/stpcpy (Depends-on): Likewise.
100926         * modules/stpncpy (Depends-on): Likewise.
100927         * modules/strchrnul (Depends-on): Likewise.
100928         * modules/strndup (Depends-on): Likewise.
100929         * modules/strsep (Depends-on): Likewise.
100930         * modules/strverscmp (Depends-on): Likewise.
100931         * modules/vasprintf (Depends-on): Likewise.
100932         * modules/wcwidth (Depends-on): Likewise.
100933         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
100934         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
100935         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
100936         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
100937         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
100938         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
100939         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
100940         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
100941         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
100942         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
100943         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
100944         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
100945         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
100946         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
100947         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
100948         * m4/readutmp.m4 (gl_READUTMP): Likewise.
100949         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
100950         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
100951         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
100952         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
100953         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
100954         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
100955         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
100956         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
100957         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
100958         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
100959         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
100960         so that lock.m4 can be used in gettext without extensions module.
100962 2007-09-11  Bruno Haible  <bruno@clisp.org>
100964         * m4/isc-posix.m4: Remove file.
100965         Suggested by Eric Blake.
100967 2007-09-11  Eric Blake  <ebb9@byu.net>
100969         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
100971 2007-09-10  Bruno Haible  <bruno@clisp.org>
100973         * posix-modules: Fix typo in error message.
100974         Reported by Matt <mkraai@beckman.com>.
100976 2007-09-09  Bruno Haible  <bruno@clisp.org>
100978         * doc/functions/getdelim.texi: Update list of platforms lacking the
100979         function.
100980         * doc/functions/getline.texi: Likewise.
100982 2007-09-09  Jim Meyering  <jim@meyering.net>
100984         * lib/hash.c (hash_initialize): Detect calloc failure.
100985         Reported by Bruno Haible.
100987 2007-09-09  Bruno Haible  <bruno@clisp.org>
100989         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
100990         malloc or realloc fails.
100992 2007-09-09  Bruno Haible  <bruno@clisp.org>
100994         * modules/getcwd (Depends-on): Add malloc-posix.
100995         * modules/glob (Depends-on): Likewise.
100996         * modules/putenv (Depends-on): Likewise.
100997         * modules/strdup (Depends-on): Likewise.
100998         * modules/getdelim (Depends-on): Add realloc-posix.
100999         * modules/read-file (Depends-on): Likewise.
101001 2007-09-09  Bruno Haible  <bruno@clisp.org>
101003         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
101004         (gl_FUNC_MALLOC_POSIX): Require it.
101005         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
101006         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
101007         * modules/realloc (Files): Add m4/malloc.m4.
101008         * modules/calloc (Files): Likewise.
101010 2007-09-09  Bruno Haible  <bruno@clisp.org>
101012         * modules/malloc-posix: New file.
101013         * modules/malloc (Depends-on): Add malloc-posix.
101014         * lib/malloc.c: Include errno.h.
101015         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
101016         and a POSIX-compatible malloc into a single function. Set ENOMEM
101017         when returning NULL.
101018         * m4/malloc.m4: New file.
101019         * doc/functions/malloc.texi: Mention the malloc-posix module.
101020         * lib/stdlib_.h (malloc): New declaration.
101021         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
101022         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
101023         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
101024         and HAVE_MALLOC_POSIX.
101026 2007-09-09  Bruno Haible  <bruno@clisp.org>
101028         * modules/realloc-posix: New file.
101029         * modules/realloc (Depends-on): Add realloc-posix.
101030         * lib/realloc.c: Include errno.h.
101031         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
101032         and a POSIX-compatible realloc into a single function. Set ENOMEM
101033         when returning NULL.
101034         * m4/realloc.m4: New file.
101035         * doc/functions/realloc.texi: Mention the realloc-posix module.
101036         * lib/stdlib_.h (realloc): New declaration.
101037         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
101038         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
101039         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
101040         and HAVE_REALLOC_POSIX.
101042 2007-09-09  Bruno Haible  <bruno@clisp.org>
101044         * modules/calloc-posix: New file.
101045         * modules/calloc (Depends-on): Add calloc-posix.
101046         * lib/calloc.c: Include errno.h.
101047         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
101048         and a POSIX-compatible calloc into a single function. Set ENOMEM
101049         when returning NULL.
101050         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
101051         * doc/functions/calloc.texi: Mention the calloc-posix module.
101052         * lib/stdlib_.h (calloc): New declaration.
101053         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
101054         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
101055         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
101056         and HAVE_CALLOC_POSIX.
101058 2007-09-09  Bruno Haible  <bruno@clisp.org>
101060         Allow for modules to show an arbitrary notice.
101061         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
101062         * gnulib-tool: New option --extract-notice.
101063         (func_usage): Document it.
101064         (sed_extract_prog): Update.
101065         (func_get_notice): New function.
101066         (func_modules_notice): New function.
101067         (func_import, func_create_testdir): Invoke it.
101068         Suggested by Jim Meyering.
101070 2007-09-09  Bruno Haible  <bruno@clisp.org>
101072         * gnulib-tool: New options --verbose, --quiet.
101073         (func_usage): Document them.
101074         (verbose): New variable.
101075         (func_execute_command): New function.
101076         (func_import): Don't show the module list and the file list if
101077         $verbose < 0.
101078         (func_create_testdir): Likewise. Use func_execute_command.
101079         (func_create_megatestdir): Use func_execute_command.
101081 2007-09-08  Bruno Haible  <bruno@clisp.org>
101083         * gnulib-tool (func_import): Prefer rsync over wget when available,
101084         for fetching the PO files.
101086 2007-09-08  Bruno Haible  <bruno@clisp.org>
101088         * posix-modules: New file. Portions copied from gnulib-tool.
101089         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
101091 2007-09-08  Jim Meyering  <jim@meyering.net>
101093         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
101094         * lib/fpending.h: Rename from __fpending.h.
101095         * lib/fpending.c: Rename from __fpending.c.
101096         Include "fpending.h", not "__fpending.h".
101097         * lib/__fpending.h, lib/__fpending.c: Remove files.
101098         * modules/fpending (Files): Reflect new file names.
101099         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
101101 2007-09-08  Bruno Haible  <bruno@clisp.org>
101103         * m4/inttypes-h.m4: Remove stub file.
101105 2007-09-07  Simon Josefsson  <simon@josefsson.org>
101107         * doc/headers/stdint.texi: Discuss #include_next issue.
101109 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
101111         * build-aux/bootstrap: Remove obsolete comment about wget --help.
101113 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
101115         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
101116         in variable name.
101118 2007-09-03  Jim Meyering  <jim@meyering.net>
101120         New module: git-version-gen.
101121         * modules/git-version-gen: New file.
101123         Import changes from coreutils for bootstrap script.
101125         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
101127         bootstrap: uses rsync to download the .po files
101128         * build-aux/bootstrap (po_download_command_format): New global.
101129         (download_po_files): Use rsync.
101130         (update_po_files): Don't remove .po files after download,
101131         so future rsync runs can take advantage of the copies.
101133         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
101135         Solve the unnecessary-.po-file-regeneration problem once and for all.
101136         * build-aux/bootstrap (download_po_files): New function, renamed from
101137         get_translations.  Now, downloads, but doesn't update LINGUAS.
101138         (update_po_files): New function.
101140         bootstrap: Ignore more.
101141         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
101142         uniwidth to e.g., lib/.gitignore.
101143         (slurp): Handle the sys_stat_.h -> sys mapping, too.
101145         * build-aux/bootstrap: New setting: vc_ignore.
101146         (insert_sorted_if_absent): Create $file if absent.
101147         Adapt to new, possibly empty, list: $vc_ignore.
101149         bootstrap: generate more ignorable names
101150         * build-aux/bootstrap (slurp): When generating ignorable names,
101151         also map .sin to .sed, .gperf to .c, and .y to .c.
101153 2007-09-03  Jim Meyering  <jim@meyering.net>
101155         * build-aux/git-version-gen: New file, from coreutils.  For details, see
101156         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
101158 2007-09-02  Bruno Haible  <bruno@clisp.org>
101160         Fix mis-recognition of 'mcs' on QNX 6.
101161         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
101162         output contains the string "Mono".
101163         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
101164         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
101166 2007-09-01  Bruno Haible  <bruno@clisp.org>
101168         Fix collision between uniwidth/* and linebreak modules.
101169         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
101170         u32_width): Remove declarations.
101171         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
101172         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
101173         streq3, streq2, streq1, streq0): Remove functions.
101174         (STREQ): Remove macro.
101175         (is_cjk_encoding): Remove function.
101176         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
101177         (uc_width, u8_width, u16_width, u32_width): Remove functions.
101178         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
101179         * NEWS: Document the change.
101181 2007-09-01  Bruno Haible  <bruno@clisp.org>
101183         * lib/streq.h: Add double-inclusion guard.
101185 2007-09-01  Karl Berry  <karl@gnu.org>
101187         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
101189 2007-08-28  Jim Meyering  <jim@meyering.net>
101191         Rename mreadlink_with_size to areadlink_with_size.
101192         * NEWS: Document the change.
101193         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
101194         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
101195         * lib/mreadlink.h: Rename this to...
101196         * lib/areadlink.h: ...this.
101197         * modules/mreadlink-with-size: Rename this to...
101198         * modules/areadlink-with-size: ...this.
101199         * lib/canonicalize.c: Reflect the renaming.
101200         * modules/canonicalize: Likewise.
101202 2007-08-26  Bruno Haible  <bruno@clisp.org>
101204         * gnulib-tool (func_import): When deciding which files to remove,
101205         consider also dangling symbolic links.
101206         Reported by Eric Blake.
101208 2007-08-26  Bruno Haible  <bruno@clisp.org>
101210         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
101212 2007-08-23  Simon Josefsson  <simon@josefsson.org>
101214         * lib/readline.c: Don't include getline.h, the prototype is now
101215         found in stdio.h.
101217 2007-08-23  Jim Meyering  <jim@meyering.net>
101219         Getdelim touchup.
101220         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
101221         around the funlockfile call, since funlockfile never sets errno.
101222         Don't set errno upon failed realloc.
101224 2007-08-22  Eric Blake  <ebb9@byu.net>
101226         Getline touchups.
101227         * lib/getdelim.c (getdelim): Revert regression that required *n to
101228         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
101229         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
101230         getdelim, rather than whether implementation is missing.
101231         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
101232         * lib/stdio_.h (getline): Also declare if replacement is
101233         required.
101234         * doc/functions/getdelim.texi: New file.
101235         * doc/functions/getline.texi: Likewise.
101236         * doc/gnulib.texi (Function Substitutes): Add new files.
101237         Reported by Bruno Haible.
101239 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
101241         * users.txt: Add Guile.
101243 2007-08-22  Eric Blake  <ebb9@byu.net>
101245         * tests/test-getdelim.c (main): Use remove, not unlink.
101246         * tests/test-getline.c (main): Likewise.
101248         Move getline and getdelim into stdio.h, per POSIX 200x.
101249         * modules/getline (Files): Remove getline.h.
101250         (Depends-on): Add stdio.
101251         (configure.ac): Add module indicator.
101252         * modules/getdelim (Files): Remove getdelim.h.
101253         (Depends-on): Add stdio.
101254         (configure.ac): Add module indicator.
101255         * modules/stdio (Makefile.am): Work with new indicators.
101256         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
101257         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
101258         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
101259         * lib/getdelim.h: Delete.
101260         * lib/getline.h: Delete.
101261         * lib/stdio_.h (getdelim, getline): Declare.
101262         * modules/getdelim-tests: New module.
101263         * modules/getline-tests: Likewise.
101264         * tests/test-getdelim.c: New file.
101265         * tests/test-getline.c: Likewise.
101266         * NEWS: Document the change.
101267         * lib/getline.c: Update choice of header.
101268         * lib/csharpcomp.c: Likewise.
101269         * lib/getpass.c: Likewise.
101270         * lib/javacomp.c: Likewise.
101271         * lib/javaversion.c: Likewise.
101272         * lib/yesno.c: Likewise.
101273         * lib/getdelim.c: Likewise.
101274         (getdelim): Set errno on failure, and avoid memory leak.
101276 2007-08-19  Bruno Haible  <bruno@clisp.org>
101278         * modules/closein (Depends-on): Add freadahead.
101279         * lib/closein.c: Include freadahead.h.
101280         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
101281         is zero.
101283 2007-08-19  Bruno Haible  <bruno@clisp.org>
101285         * modules/freadahead-tests: New file.
101286         * tests/test-freadahead.sh: New file.
101287         * tests/test-freadahead.c: New file.
101289         * modules/freadahead: New file.
101290         * lib/freadahead.h: New file.
101291         * lib/freadahead.c: New file.
101292         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
101293         fbufmode, fpurge, freadable, fwritable.
101295 2007-08-19  Eric Blake  <ebb9@byu.net>
101297         Test yesno in combination with closein.
101298         * lib/yesno.c (yesno): Document use of stdin.
101299         * modules/yesno-tests (Files): New module.
101300         * tests/test-yesno.c (main): New file.
101301         * tests/test-yesno.sh: Likewise.
101303 2007-08-19  Bruno Haible  <bruno@clisp.org>
101305         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
101306         * lib/fseeko.c (rpl_fseeko): Likewise.
101307         * lib/fseterr.c (fseterr): Likewise.
101309 2007-08-19  Bruno Haible  <bruno@clisp.org>
101311         * tests/test-lseek.c (main): Disable a test for BeOS.
101312         * doc/functions/lseek.texi: Document the BeOS bug.
101314 2007-08-19  Bruno Haible  <bruno@clisp.org>
101315             Eric Blake  <ebb9@byu.net>
101317         * lib/lseek.c: Include <sys/stat.h>.
101318         (rpl_lseek): Add workaround code also for Unix platforms.
101319         Needed for BeOS.
101320         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
101321         * doc/functions/lseek.texi: Document BeOS definiency.
101323 2007-08-18  Bruno Haible  <bruno@clisp.org>
101325         * modules/fstrcmp-tests: New file.
101326         * tests/test-fstrcmp.c: New file.
101328 2007-08-18  Bruno Haible  <bruno@clisp.org>
101330         * modules/fstrcmp: New file, from GNU gettext with modifications.
101331         * lib/fstrcmp.h: New file, from GNU gettext.
101332         * lib/fstrcmp.c: New file, from GNU gettext.
101333         * MODULES.html.sh (String handling): Add fstrcmp.
101335 2007-08-18  Bruno Haible  <bruno@clisp.org>
101337         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
101338         'bool'.
101339         (diag, compareseq): Remove const from the ctxt argument.
101340         (USE_HEURISTIC): Undefine at the end.
101342 2007-08-18  Jim Meyering  <jim@meyering.net>
101344         New file: lib/idcache.h
101345         * NEWS: Mention the addition.
101346         * modules/idcache (Files): Add lib/idcache.h
101347         * lib/idcache.c: Include "idcache.h".
101348         Don't include <sys/types.h>.
101349         Add a FIXME comment.
101350         Move file-scoped "static" declarations to the top.
101351         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
101353 2007-08-17  Bruno Haible  <bruno@clisp.org>
101354         and Paul Eggert  <eggert@cs.ucla.edu>
101356         * MODULES.html.sh: Add diffseq.
101357         * modules/diffseq: New file.
101358         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
101359         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
101361 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
101363         Import changes from coreutils for bootstrap script.
101365         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
101367         * build-aux/bootstrap (slurp): Work even in environments where
101368         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
101369         current code does not slurp files whose names start with ".", and
101370         this looks like it might be a troublesome area.
101372         2007-07-11  Jim Meyering  <jim@meyering.net>
101374         If there's a GPL vN copyright comment, require that N == 3.
101376         2007-07-08  Jim Meyering  <jim@meyering.net>
101378         Run the coreutils-specific code only if tests/Makefile.am.in exists.
101379         * build-aux/bootstrap (mam_template): Move definition out of loop.
101381         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
101383         * build-aux/bootstrap (symlink_to_dir): Rename function from
101384         symlink_to_gnulib.  Add a directory parameter.  Update all
101385         callers.
101386         (cp_mark_as_generated): Also check for -- and link to -- files in
101387         gl/.
101389         2007-07-08  Jim Meyering  <jim@meyering.net>
101391         Adapt to deeper hierarchy in gnulib.
101392         * build-aux/bootstrap (symlink_to_dir): If the destination
101393         directory doesn't exist, create it. This is required at least for
101394         "lib/uniwidth/cjk.h".
101396         2007-05-15  Jim Meyering  <jim@meyering.net>
101398         * build-aux/bootstrap: Now that generated Makefile.am files
101399         are no longer under version control, they must be created at
101400         bootstrap time.
101402 2007-08-14  Ben Pfaff  <blp@gnu.org>
101404         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
101406 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
101408         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
101409         given the changes below.
101410         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
101411         even on hosts that have padding bits beyond the supported 64.
101413 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
101415         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
101416         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
101417         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
101418         depends on it.
101419         (xstrtol_error): Remove.
101420         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
101421         but with a different signature.
101422         (ATTRIBUTE_NORETURN, __attribute__): New macros.
101423         * lib/xstrtol-error.c: Include exitfail.h.
101424         (xstrtol_fatal): New function, with a different signature from the
101425         old xstrtol_error, so that the caller need not worry about passing
101426         in an exit status, or about storage management of the option argument.
101427         (xstrtol_error): Now a static function.  Redo signature to
101428         implement xstrtol_fatal.  Output the correct number of hyphens in
101429         front of the option so that the caller need not worry about
101430         storage management.
101431         (N_): New macro.
101432         (_): Remove; not used now.
101433         * modules/xstrtol: Depend on getopt.
101434         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
101435         of old STRTOL_FATAL_ERROR macro.
101436         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
101437         of test program.
101438         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
101439         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
101441 2007-08-08  Eric Blake  <ebb9@byu.net>
101443         * lib/xstrtol-error.c: Add missing include.
101445         Move xstrtol messages into gnulib domain, when --pobase is used.
101446         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
101447         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
101448         * modules/xstrtol (Files): Distribute new file.
101449         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
101450         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
101451         * tests/test-xstrtol.c: ...into new file.
101452         * tests/test-xstrtoul.c: Also test xstrtoul.
101453         * tests/test-xstrtoimax.c: Also test xstrtoimax.
101454         * tests/test-xstrtoumax.c: Also test xstrtoumax.
101455         * tests/test-xstrtol.sh: Drive the tests.
101456         * tests/test-xstrtoimax.sh: Likewise.
101457         * tests/test-xstrtoumax.sh: Likewise.
101458         * modules/xstrtol-tests: New module.
101459         * modules/xstrtoimax-tests: Likewise.
101460         * modules/xstrtoumax-tests: Likewise.
101462 2007-08-08  Jim Meyering  <jim@meyering.net>
101464         New function: mfile_name_concat.
101465         * lib/filenamecat.c (mfile_name_concat): New function, just like
101466         file_name_concat, but return NULL upon failure rather than exiting
101467         with a diagnostic.
101468         * lib/filenamecat.h: Declare it.
101470 2007-08-07  Bruno Haible  <bruno@clisp.org>
101472         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
101473         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
101474         warning from gcc.
101475         Reported by Eric Blake.
101477 2007-08-07  Simon Josefsson  <simon@josefsson.org>
101479         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
101480         * modules/crypto/arcfour (License): Likewise.
101481         * modules/crypto/des-tests (License): Likewise.
101482         * modules/crypto/gc-arctwo-tests (License): Likewise.
101483         * modules/crypto/gc-des-tests (License): Likewise.
101484         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
101485         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
101486         * modules/crypto/gc-md2-tests (License): Likewise.
101487         * modules/crypto/gc-md4-tests (License): Likewise.
101488         * modules/crypto/gc-md5-tests (License): Likewise.
101489         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
101490         * modules/crypto/gc-rijndael-tests (License): Likewise.
101491         * modules/crypto/gc-sha1-tests (License): Likewise.
101492         * modules/crypto/gc-tests (License): Likewise.
101493         * modules/crypto/hmac-md5 (License): Likewise.
101494         * modules/crypto/hmac-sha1 (License): Likewise.
101495         * modules/crypto/md2-tests (License): Likewise.
101496         * modules/crypto/md4-tests (License): Likewise.
101497         * modules/crypto/md5 (License): Likewise.
101498         * modules/crypto/rijndael (License): Likewise.
101499         * modules/crypto/sha1 (License): Likewise.
101500         * modules/memxor (License): Likewise.
101502 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
101503         and Bruno Haible  <bruno@clisp.org>
101505         * NEWS: Describe interface changes to human, xstrtol.
101506         * lib/human.h: Include <xstrtol.h>.
101507         (human_options): Return enum strtol_error, not int.  Remove
101508         bool arg; take int * instead.
101509         * lib/human.c: Don't include "gettext.h".
101510         (_): Remove; no longer used.
101511         Don't include <xstrtol.h>, since human.h does it.
101512         (human_options): Adjust to abovementioned interface changes.
101513         Do not report error to stderr; that's now the caller's
101514         responsibility.
101515         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
101516         interface change.
101517         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
101518         Str, Argument_type_string.  All uses changed.  Put " argument"
101519         in diagnostics to make them clearer.  Change wording of suffix
101520         message for clarity.
101521         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
101522         Argument_type_string.
101523         (STRTOL_FATAL_WARN): Remove; no longer used.
101524         * modules/human (Depends-on): Remove gettext-h.
101526 2007-08-06  Simon Josefsson  <simon@josefsson.org>
101528         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
101530 2007-07-31  Bruno Haible  <bruno@clisp.org>
101532         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
101533         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
101534         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
101536 2007-07-31  Bruno Haible  <bruno@clisp.org>
101538         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
101539         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
101541 2007-07-30  Bruno Haible  <bruno@clisp.org>
101543         * modules/base64 (License): Use the synonymous term "LGPLv2+".
101544         * modules/c-ctype (License): Likewise.
101545         * modules/c-strcase (License): Likewise.
101546         * modules/check-version (License): Likewise.
101547         * modules/iconv (License): Likewise.
101548         * modules/iconv_open (License): Likewise.
101549         * modules/read-file (License): Likewise.
101550         * modules/striconv (License): Likewise.
101551         * modules/strverscmp (License): Likewise.
101552         * modules/vasprintf (License): Likewise.
101553         * modules/crypto/des (License): Likewise.
101554         * modules/crypto/gc (License): Likewise.
101555         * modules/crypto/gc-arcfour (License): Likewise.
101556         * modules/crypto/gc-arctwo (License): Likewise.
101557         * modules/crypto/gc-des (License): Likewise.
101558         * modules/crypto/gc-hmac-md5 (License): Likewise.
101559         * modules/crypto/gc-hmac-sha1 (License): Likewise.
101560         * modules/crypto/gc-md2 (License): Likewise.
101561         * modules/crypto/gc-md4 (License): Likewise.
101562         * modules/crypto/gc-md5 (License): Likewise.
101563         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
101564         * modules/crypto/gc-random (License): Likewise.
101565         * modules/crypto/gc-rijndael (License): Likewise.
101566         * modules/crypto/gc-sha1 (License): Likewise.
101567         * modules/crypto/md2 (License): Likewise.
101568         * modules/crypto/md4 (License): Likewise.
101570 2007-07-30  Jim Meyering  <jim@meyering.net>
101572         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
101573         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
101574         it has valid stat data.  This bug would cause du not to count the
101575         sizes of inaccessible directories.
101576         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
101577         in <http://bugzilla.redhat.com/250077>.
101579 2007-07-25  Peter O'Gorman  <peter@pogma.com>
101580             Bruno Haible  <bruno@clisp.org>
101582         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
101583         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
101584         #include_next, gives a diagnostic about it, but reports no error in
101585         the exit code.
101586         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
101588 2007-07-24  Ben Pfaff  <blp@gnu.org>
101590         Improve name: "count-one-bits" is better than "popcount".
101591         * MODULES.html.sh: Update name.
101592         * lib/popcount.h: Renamed lib/count-one-bits.h.
101593         (popcount): Renamed count_one_bits.
101594         (popcountl): Renamed count_one_bits_l.
101595         (popcountll): Renamed count_one_bits_ll.
101596         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
101597         * modules/popcount: Renamed module/count-one-bits.
101598         * modules/popcount-tests: Renamed module/count-one-bits-tests.
101599         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
101601 2007-07-23  Ben Pfaff  <blp@gnu.org>
101603         * lib/popcount.h (popcount32): Reduce size of constants, to allow
101604         better code generation, and add U to large constants to avoid
101605         warnings, in non-GCC case.
101606         Suggested by Bruno Haible.
101608 2007-07-23  Ben Pfaff  <blp@gnu.org>
101610         * lib/popcount.h: Use verify_true instead of if...abort.
101611         * modules/popcount: Depend on verify module.
101612         Suggested by Jim Meyering.
101614 2007-07-23  Bruno Haible  <bruno@clisp.org>
101616         * gnulib-tool (func_import): Create a .cvsignore file also when the
101617         directory is not yet in CVS but the toplevel directory is. When
101618         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
101619         Reported by Karl Berry.
101621 2007-07-22  Ben Pfaff  <blp@gnu.org>
101623         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
101624         case.
101625         Suggested by Eric Blake.
101627 2007-07-22  Ben Pfaff  <blp@gnu.org>
101629         New module: popcount.
101630         * MODULES.html.sh: Add popcount.
101631         * modules/popcount: New file.
101632         * modules/popcount-tests: New file.
101633         * tests/test-popcount.c: New file.
101634         * lib/popcount.h: New file.
101635         * m4/popcount.m4: New file.
101637 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
101639         * build-aux/announce-gen: Update to GPLv3.
101641         * build-aux/config.guess: Update from config.
101643 2007-07-21  Bruno Haible  <bruno@clisp.org>
101645         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
101646         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
101648 2007-07-20  Jim Meyering  <jim@meyering.net>
101650         * check-module: Diagnose a self-dependency.
101652 2007-07-19  Bruno Haible  <bruno@clisp.org>
101654         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
101655         empty.
101656         Reported by Eric Blake.
101658 2007-07-18  Bruno Haible  <bruno@clisp.org>
101660         * gnulib-tool: New options --po-base, --po-domain.
101661         (func_usage): Document them.
101662         (pobase, po_domain): New variables.
101663         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
101664         DEFAULT_TEXT_DOMAIN.
101665         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
101666         (func_import): Consider pobase and po_domain. Create a po/ directory.
101667         (func_create_testdir): Set pobase and po_domain to empty.
101668         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
101669         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
101671 2007-07-18  Bruno Haible  <bruno@clisp.org>
101673         * gnulib-tool (func_get_automake_snippet): Synthesize also an
101674         EXTRA_DIST augmentation for files in build-aux/.
101676 2007-07-16  Bruno Haible  <bruno@clisp.org>
101678         * modules/lseek (License): Use the synonymous term "LGPLv2+".
101679         * modules/getdelim (License): Likewise.
101681 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
101683         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
101684         * modules/d-type (License): Likewise.
101685         * modules/extensions (License): Likewise.
101686         * modules/fnmatch (License): Likewise.
101687         * modules/fseeko (License): Likewise.
101688         * modules/getaddrinfo (License): Likewise.
101689         * modules/getline (License): Likewise.
101690         * modules/getlogin_r (License): Likewise.
101691         * modules/getpass (License): Likewise.
101692         * modules/gettimeofday (License): Likewise.
101693         * modules/glob (License): Likewise.
101694         * modules/inet_ntop (License): Likewise.
101695         * modules/malloc (License): Likewise.
101696         * modules/malloca (License): Likewise.
101697         * modules/memmem (License): Likewise.
101698         * modules/mempcpy (License): Likewise.
101699         * modules/memset (License): Likewise.
101700         * modules/minmax (License): Likewise.
101701         * modules/mktime (License): Likewise.
101702         * modules/netinet_in (License): Likewise.
101703         * modules/pathmax (License): Likewise.
101704         * modules/poll (License): Likewise.
101705         * modules/regex (License): Likewise.
101706         * modules/snprintf (License): Likewise.
101707         * modules/stdbool (License): Likewise.
101708         * modules/stdint (License): Likewise.
101709         * modules/stdio (License): Likewise.
101710         * modules/strcase (License): Likewise.
101711         * modules/strcasestr (License): Likewise.
101712         * modules/strdup (License): Likewise.
101713         * modules/string (License): Likewise.
101714         * modules/strndup (License): Likewise.
101715         * modules/strnlen (License): Likewise.
101716         * modules/strpbrk (License): Likewise.
101717         * modules/strptime (License): Likewise.
101718         * modules/strsep (License): Likewise.
101719         * modules/sys_select (License): Likewise.
101720         * modules/sys_socket (License): Likewise.
101721         * modules/sys_stat (License): Likewise.
101722         * modules/sys_time (License): Likewise.
101723         * modules/time (License): Likewise.
101724         * modules/time_r (License): Likewise.
101725         * modules/timegm (License): Likewise.
101726         * modules/unistd (License): Likewise.
101727         * modules/vsnprintf (License): Likewise.
101728         * modules/wctype (License): Likewise.
101730 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101732         * modules/argz (License): LGPLv2+.
101734 2007-07-15  Karl Berry  <karl@gnu.org>
101736         * doc/gnulib.texi: revise node structure per new fdl.texi.
101738 2007-07-14  Bruno Haible  <bruno@clisp.org>
101740         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
101741         the output file.
101742         * lib/uniname/uninames.h: Regenerated.
101744 2007-07-14  Karl Berry  <karl@gnu.org>
101746         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
101747         omitting sectioning and index commands.
101749 2007-07-13  Bruno Haible  <bruno@clisp.org>
101751         New gnulib-tool option --more-symlinks.
101752         * gnulib-tool (func_usage): Document --more-symlinks.
101753         (do_copyrights): New variable.
101754         Recognize option --more-symlinks.
101755         (func_import): Don't add a copyright notice transform to
101756         sed_transform_lib_file if do_copyrights is empty.
101758 2007-07-13  Bruno Haible  <bruno@clisp.org>
101760         * lib/vasnprintf.c (decimal_point_char): Define also if
101761         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
101762         && !NEED_PRINTF_DIRECTIVE_A.
101763         Reported by Clemens Koller <clemens.koller@anagramm.de> via
101764         Gary V. Vaughan <gary@gnu.org>.
101766 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
101768         * lib/inttypes_.h: Undo previous change, since it was fixed
101769         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
101771 2007-07-13  Bruno Haible  <bruno@clisp.org>
101773         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
101774         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
101776 2007-07-13  Jim Meyering  <jim@meyering.net>
101778         df: Don't fail for Tru64's "file-on-file mount".
101779         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
101780         so we fall through and use statfs instead.  Details here:
101781         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
101782         Reported by Albert Chin.
101784 2007-07-13  Bruno Haible  <bruno@clisp.org>
101786         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
101787         * modules/configmake (License): Likewise.
101788         * modules/gettext (License): Likewise.
101789         * modules/gettext-h (License): Likewise.
101790         * modules/include_next (License): Likewise.
101791         * modules/link-warning (License): Likewise.
101792         * modules/localcharset (License): Likewise.
101793         * modules/localename (License): Likewise.
101794         * modules/lock (License): Likewise.
101795         * modules/relocatable-lib-lgpl (License): Likewise.
101796         * modules/size_max (License): Likewise.
101797         * modules/vasnprintf (License): Likewise.
101798         * modules/wchar (License): Likewise.
101799         * modules/xsize (License): Likewise.
101801 2007-07-13  Bruno Haible  <bruno@clisp.org>
101803         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
101804         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
101806 2007-07-12  Bruno Haible  <bruno@clisp.org>
101808         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
101809         in the modules files.
101811 2007-07-11  Karl Berry  <karl@gnu.org>
101813         * MODULES.html.sh (func_module): use
101814          sed -e '\|^'"${includefile}"'$|d'
101815          instead of /.../d, to avoid errors on $includefile's containing /.
101817 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
101819         * gnulib-tool (func_import): Avoid duplication of --avoid
101820         statements
101821         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
101822         names to `_' in variable names.
101824 2007-07-10  Eric Blake  <ebb9@byu.net>
101826         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
101827         * NEWS: Document this change.
101829 2007-07-08  Bruno Haible  <bruno@clisp.org>
101831         Update to Unicode 5.0.
101832         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
101833         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
101834         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
101835         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
101836         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
101837         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
101838         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
101839         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
101840         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
101841         U+10A3F, U+1D242..U+1D244.
101842         (nonspacing_table_ind): Update.
101843         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
101844         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
101846 2007-07-08  Bruno Haible  <bruno@clisp.org>
101848         Update to Unicode 5.0.
101849         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
101850         code transform. Extend the name index field of unicode_name_to_code and
101851         unicode_code_to_name from 16 to 24 bits.
101852         * lib/uniname/uniname.c (unicode_character_name,
101853         unicode_name_character): Add the range 0x12xxx to the code transform.
101854         * lib/uniname/uninames.h: Regenerated.
101855         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
101857 2007-07-07  Bruno Haible  <bruno@clisp.org>
101859         * modules/wcwidth-tests: New file.
101860         * tests/test-wcwidth.c: New file.
101862         Work around MacOS X wcwidth() bug.
101863         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
101864         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
101865         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
101866         original wcwidth in non-UTF-8 locales.
101867         * modules/wcwidth (Depends-on): Add localcharset, streq,
101868         uniwidth/width.
101869         * doc/functions/wcwidth.texi: Update.
101871 2007-07-07  Bruno Haible  <bruno@clisp.org>
101873         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
101874         (wcwidth): New declaration.
101875         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
101876         macros.
101877         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
101878         here. Prepare for creating <wchar.h> unconditionally.
101879         * modules/wchar (Depends-on): Add link-warning.
101880         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
101881         REPLACE_WCWIDTH, and GL_LINK_WARNING.
101882         * lib/wcwidth.h: Remove file.
101883         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
101884         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
101885         * modules/wcwidth (Files): Remove lib/wcwidth.h.
101886         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
101887         (Include): Replace wcwidth.h with <wchar.h>.
101888         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
101889         * lib/mbchar.h: Don't include wcwidth.h.
101890         * lib/mbswidth.c: Likewise.
101891         * NEWS: Mention the change.
101893 2007-07-07  Bruno Haible  <bruno@clisp.org>
101895         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
101896         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
101897         definition with an external declaration.
101898         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
101899         defined as a function. Remove AC_C_INLINE requirement.
101900         * modules/wcwidth (Files): Add lib/wcwidth.c.
101901         (Makefile.am): Remove redundant statement.
101903 2007-07-07  Bruno Haible  <bruno@clisp.org>
101905         * MODULES.html.sh (Unicode string functions): Add the new modules.
101907         * tests/uniwidth/test-u32-strwidth.c: New file.
101908         * modules/uniwidth/u32-strwidth-tests: New file.
101910         * lib/uniwidth/u32-strwidth.c: New file.
101911         * modules/uniwidth/u32-strwidth: New file.
101913         * tests/uniwidth/test-u16-strwidth.c: New file.
101914         * modules/uniwidth/u16-strwidth-tests: New file.
101916         * lib/uniwidth/u16-strwidth.c: New file.
101917         * modules/uniwidth/u16-strwidth: New file.
101919         * tests/uniwidth/test-u8-strwidth.c: New file.
101920         * modules/uniwidth/u8-strwidth-tests: New file.
101922         * lib/uniwidth/u8-strwidth.c: New file.
101923         * modules/uniwidth/u8-strwidth: New file.
101925         * tests/uniwidth/test-u32-width.c: New file.
101926         * modules/uniwidth/u32-width-tests: New file.
101928         * lib/uniwidth/u32-width.c: New file.
101929         * modules/uniwidth/u32-width: New file.
101931         * tests/uniwidth/test-u16-width.c: New file.
101932         * modules/uniwidth/u16-width-tests: New file.
101934         * lib/uniwidth/u16-width.c: New file.
101935         * modules/uniwidth/u16-width: New file.
101937         * tests/uniwidth/test-u8-width.c: New file.
101938         * modules/uniwidth/u8-width-tests: New file.
101940         * lib/uniwidth/u8-width.c: New file.
101941         * modules/uniwidth/u8-width: New file.
101943         * tests/uniwidth/test-uc_width.c: New file.
101944         * modules/uniwidth/width-tests: New file.
101946         * lib/uniwidth/width.c: New file, from GNU libiconv.
101947         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
101948         * modules/uniwidth/width: New file.
101950         * lib/uniwidth.h: New file, from GNU libiconv.
101951         * modules/uniwidth/base: New file.
101953 2007-07-07  Bruno Haible  <bruno@clisp.org>
101955         * lib/uniname.h: New file, from GNU gettext.
101956         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
101957         * lib/uniname/uninames.h: New file, from GNU gettext.
101958         * lib/uniname/uniname.c: New file, from GNU gettext.
101959         * tests/uniname/test-uninames.sh: New file.
101960         * tests/uniname/test-uninames.c: New file, from GNU gettext.
101961         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
101962         * modules/uniname/base: New file.
101963         * modules/uniname/uniname: New file.
101964         * modules/uniname/uniname-tests: New file.
101965         * MODULES.html.sh (Unicode string functions): Add the new modules.
101967 2007-07-06  Bruno Haible  <bruno@clisp.org>
101969         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
101971 2007-07-06  Bruno Haible  <bruno@clisp.org>
101973         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
101974         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
101975         includes <cygwin/sys_time.h> which includes <sys/select.h> which
101976         include <sys/time.h>.
101977         Reported by Eric Blake.
101979 2007-07-06  Eric Blake  <ebb9@byu.net>
101981         Fix testing canonicalize on cygwin.
101982         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
101983         Revert patch from 2007-06-19.
101984         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
101985         canonicalize module is also in use.
101986         * tests/test-canonicalize.c: New file.
101987         * tests/test-canonicalize.sh: Likewise.
101988         * modules/canonicalize-tests: Likewise.
101990 2007-07-06  Jim Meyering  <jim@meyering.net>
101992         * lib/getugroups.c (getugroups): Detect getgrent failure.
101993         Adjust comment to reflect reality: this function may return -1.
101995 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
101997         * build-aux/bootstrap (TP_URL,get_translations): Update to use
101998         the new TP address.
101999         (usage): Fix typo
102000         (gnulib_mk): New variable.
102002 2007-07-05  Jim Meyering  <jim@meyering.net>
102004         Don't let endgrent clobber errno, no matter how improbable.
102005         * lib/getugroups.c (getugroups): Save and restore errno around
102006         endgrent call.
102008         Close the group DB even when failing with 2^31 or more members.
102009         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
102011 2007-07-04  Jim Meyering  <jim@meyering.net>
102013         * lib/getugroups.h: New file.
102014         * lib/getugroups.c: Include "getugroups.h".
102015         Remove uses of "register" keyword.
102016         Move local variable, "cp", down into scope where used.
102017         Give "username" parameter the "const" attribute.
102018         * modules/getugroups (Files): Add lib/getugroups.h
102020 2007-07-04  Karl Berry  <karl@gnu.org>
102022         * MODULES.html.sh (func_all_modules): Complete rename of
102023         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
102025 2007-07-02  Bruno Haible  <bruno@clisp.org>
102027         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
102028         mode, when inttypes.h comes from gnulib.
102029         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
102031 2007-07-02  Simon Josefsson  <simon@josefsson.org>
102033         * NEWS: Mention lgpl module name change.
102035         * modules/lgpl-2.1: Renamed from lgpl.
102037         * NEWS: Mention gpl module name change.
102039         * modules/gpl-3.0: New file, based on gpl-2.0.
102041         * modules/gpl-2.0: Renamed from gpl.
102043         * modules/gpl: Fix filename, doc/gpl.texi is now found at
102044         doc/gpl-2.0.texi.
102046 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
102048         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
102049         #define __STDC_LIMIT_MACROS temporarily while including
102050         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
102051         Problem reported by Joel E. Denny in
102052         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
102054 2007-07-01  Bruno Haible  <bruno@clisp.org>
102056         * lib/unistdio.h: New file.
102057         * lib/unistdio/u-asnprintf.h: New file.
102058         * lib/unistdio/u-asprintf.h: New file.
102059         * lib/unistdio/u-printf-args.c: New file.
102060         * lib/unistdio/u-printf-args.h: New file.
102061         * lib/unistdio/u-printf-parse.h: New file.
102062         * lib/unistdio/u-snprintf.h: New file.
102063         * lib/unistdio/u-sprintf.h: New file.
102064         * lib/unistdio/u-vasprintf.h: New file.
102065         * lib/unistdio/u-vsnprintf.h: New file.
102066         * lib/unistdio/u-vsprintf.h: New file.
102067         * lib/unistdio/ulc-asnprintf.c: New file.
102068         * lib/unistdio/ulc-asprintf.c: New file.
102069         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
102070         * lib/unistdio/ulc-printf-parse.c: New file.
102071         * lib/unistdio/ulc-snprintf.c: New file.
102072         * lib/unistdio/ulc-sprintf.c: New file.
102073         * lib/unistdio/ulc-vasnprintf.c: New file.
102074         * lib/unistdio/ulc-vasprintf.c: New file.
102075         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
102076         * lib/unistdio/ulc-vsnprintf.c: New file.
102077         * lib/unistdio/ulc-vsprintf.c: New file.
102078         * lib/unistdio/u8-asnprintf.c: New file.
102079         * lib/unistdio/u8-asprintf.c: New file.
102080         * lib/unistdio/u8-printf-parse.c: New file.
102081         * lib/unistdio/u8-snprintf.c: New file.
102082         * lib/unistdio/u8-sprintf.c: New file.
102083         * lib/unistdio/u8-vasnprintf.c: New file.
102084         * lib/unistdio/u8-vasprintf.c: New file.
102085         * lib/unistdio/u8-vsnprintf.c: New file.
102086         * lib/unistdio/u8-vsprintf.c: New file.
102087         * lib/unistdio/u8-u8-asnprintf.c: New file.
102088         * lib/unistdio/u8-u8-asprintf.c: New file.
102089         * lib/unistdio/u8-u8-snprintf.c: New file.
102090         * lib/unistdio/u8-u8-sprintf.c: New file.
102091         * lib/unistdio/u8-u8-vasnprintf.c: New file.
102092         * lib/unistdio/u8-u8-vasprintf.c: New file.
102093         * lib/unistdio/u8-u8-vsnprintf.c: New file.
102094         * lib/unistdio/u8-u8-vsprintf.c: New file.
102095         * lib/unistdio/u16-asnprintf.c: New file.
102096         * lib/unistdio/u16-asprintf.c: New file.
102097         * lib/unistdio/u16-printf-parse.c: New file.
102098         * lib/unistdio/u16-snprintf.c: New file.
102099         * lib/unistdio/u16-sprintf.c: New file.
102100         * lib/unistdio/u16-vasnprintf.c: New file.
102101         * lib/unistdio/u16-vasprintf.c: New file.
102102         * lib/unistdio/u16-vsnprintf.c: New file.
102103         * lib/unistdio/u16-vsprintf.c: New file.
102104         * lib/unistdio/u16-u16-asnprintf.c: New file.
102105         * lib/unistdio/u16-u16-asprintf.c: New file.
102106         * lib/unistdio/u16-u16-snprintf.c: New file.
102107         * lib/unistdio/u16-u16-sprintf.c: New file.
102108         * lib/unistdio/u16-u16-vasnprintf.c: New file.
102109         * lib/unistdio/u16-u16-vasprintf.c: New file.
102110         * lib/unistdio/u16-u16-vsnprintf.c: New file.
102111         * lib/unistdio/u16-u16-vsprintf.c: New file.
102112         * lib/unistdio/u32-asnprintf.c: New file.
102113         * lib/unistdio/u32-asprintf.c: New file.
102114         * lib/unistdio/u32-printf-parse.c: New file.
102115         * lib/unistdio/u32-snprintf.c: New file.
102116         * lib/unistdio/u32-sprintf.c: New file.
102117         * lib/unistdio/u32-vasnprintf.c: New file.
102118         * lib/unistdio/u32-vasprintf.c: New file.
102119         * lib/unistdio/u32-vsnprintf.c: New file.
102120         * lib/unistdio/u32-vsprintf.c: New file.
102121         * lib/unistdio/u32-u32-asnprintf.c: New file.
102122         * lib/unistdio/u32-u32-asprintf.c: New file.
102123         * lib/unistdio/u32-u32-snprintf.c: New file.
102124         * lib/unistdio/u32-u32-sprintf.c: New file.
102125         * lib/unistdio/u32-u32-vasnprintf.c: New file.
102126         * lib/unistdio/u32-u32-vasprintf.c: New file.
102127         * lib/unistdio/u32-u32-vsnprintf.c: New file.
102128         * lib/unistdio/u32-u32-vsprintf.c: New file.
102129         * tests/unistdio/test-ulc-asnprintf1.c: New file.
102130         * tests/unistdio/test-ulc-asnprintf1.h: New file.
102131         * tests/unistdio/test-ulc-printf1.h: New file.
102132         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
102133         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
102134         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
102135         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
102136         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
102137         * tests/unistdio/test-ulc-vasprintf1.c: New file.
102138         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
102139         * tests/unistdio/test-ulc-vsprintf1.c: New file.
102140         * tests/unistdio/test-u8-asnprintf1.c: New file.
102141         * tests/unistdio/test-u8-asnprintf1.h: New file.
102142         * tests/unistdio/test-u8-printf1.h: New file.
102143         * tests/unistdio/test-u8-vasnprintf1.c: New file.
102144         * tests/unistdio/test-u8-vasnprintf2.c: New file.
102145         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
102146         * tests/unistdio/test-u8-vasnprintf3.c: New file.
102147         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
102148         * tests/unistdio/test-u8-vasprintf1.c: New file.
102149         * tests/unistdio/test-u8-vsnprintf1.c: New file.
102150         * tests/unistdio/test-u8-vsprintf1.c: New file.
102151         * tests/unistdio/test-u16-asnprintf1.c: New file.
102152         * tests/unistdio/test-u16-asnprintf1.h: New file.
102153         * tests/unistdio/test-u16-printf1.h: New file.
102154         * tests/unistdio/test-u16-vasnprintf1.c: New file.
102155         * tests/unistdio/test-u16-vasnprintf2.c: New file.
102156         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
102157         * tests/unistdio/test-u16-vasnprintf3.c: New file.
102158         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
102159         * tests/unistdio/test-u16-vasprintf1.c: New file.
102160         * tests/unistdio/test-u16-vsnprintf1.c: New file.
102161         * tests/unistdio/test-u16-vsprintf1.c: New file.
102162         * tests/unistdio/test-u32-asnprintf1.c: New file.
102163         * tests/unistdio/test-u32-asnprintf1.h: New file.
102164         * tests/unistdio/test-u32-printf1.h: New file.
102165         * tests/unistdio/test-u32-vasnprintf1.c: New file.
102166         * tests/unistdio/test-u32-vasnprintf2.c: New file.
102167         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
102168         * tests/unistdio/test-u32-vasnprintf3.c: New file.
102169         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
102170         * tests/unistdio/test-u32-vasprintf1.c: New file.
102171         * tests/unistdio/test-u32-vsnprintf1.c: New file.
102172         * tests/unistdio/test-u32-vsprintf1.c: New file.
102173         * modules/unistdio/base: New file.
102174         * modules/unistdio/u-printf-args: New file.
102175         * modules/unistdio/ulc-asnprintf: New file.
102176         * modules/unistdio/ulc-asprintf: New file.
102177         * modules/unistdio/ulc-fprintf: New file.
102178         * modules/unistdio/ulc-printf-parse: New file.
102179         * modules/unistdio/ulc-snprintf: New file.
102180         * modules/unistdio/ulc-sprintf: New file.
102181         * modules/unistdio/ulc-vasnprintf: New file.
102182         * modules/unistdio/ulc-vasprintf: New file.
102183         * modules/unistdio/ulc-vfprintf: New file.
102184         * modules/unistdio/ulc-vsnprintf: New file.
102185         * modules/unistdio/ulc-vsprintf: New file.
102186         * modules/unistdio/u8-asnprintf: New file.
102187         * modules/unistdio/u8-asprintf: New file.
102188         * modules/unistdio/u8-printf-parse: New file.
102189         * modules/unistdio/u8-snprintf: New file.
102190         * modules/unistdio/u8-sprintf: New file.
102191         * modules/unistdio/u8-vasnprintf: New file.
102192         * modules/unistdio/u8-vasprintf: New file.
102193         * modules/unistdio/u8-vsnprintf: New file.
102194         * modules/unistdio/u8-vsprintf: New file.
102195         * modules/unistdio/u8-u8-asnprintf: New file.
102196         * modules/unistdio/u8-u8-asprintf: New file.
102197         * modules/unistdio/u8-u8-snprintf: New file.
102198         * modules/unistdio/u8-u8-sprintf: New file.
102199         * modules/unistdio/u8-u8-vasnprintf: New file.
102200         * modules/unistdio/u8-u8-vasprintf: New file.
102201         * modules/unistdio/u8-u8-vsnprintf: New file.
102202         * modules/unistdio/u8-u8-vsprintf: New file.
102203         * modules/unistdio/u16-asnprintf: New file.
102204         * modules/unistdio/u16-asprintf: New file.
102205         * modules/unistdio/u16-printf-parse: New file.
102206         * modules/unistdio/u16-snprintf: New file.
102207         * modules/unistdio/u16-sprintf: New file.
102208         * modules/unistdio/u16-vasnprintf: New file.
102209         * modules/unistdio/u16-vasprintf: New file.
102210         * modules/unistdio/u16-vsnprintf: New file.
102211         * modules/unistdio/u16-vsprintf: New file.
102212         * modules/unistdio/u16-u16-asnprintf: New file.
102213         * modules/unistdio/u16-u16-asprintf: New file.
102214         * modules/unistdio/u16-u16-snprintf: New file.
102215         * modules/unistdio/u16-u16-sprintf: New file.
102216         * modules/unistdio/u16-u16-vasnprintf: New file.
102217         * modules/unistdio/u16-u16-vasprintf: New file.
102218         * modules/unistdio/u16-u16-vsnprintf: New file.
102219         * modules/unistdio/u16-u16-vsprintf: New file.
102220         * modules/unistdio/u32-asnprintf: New file.
102221         * modules/unistdio/u32-asprintf: New file.
102222         * modules/unistdio/u32-printf-parse: New file.
102223         * modules/unistdio/u32-snprintf: New file.
102224         * modules/unistdio/u32-sprintf: New file.
102225         * modules/unistdio/u32-vasnprintf: New file.
102226         * modules/unistdio/u32-vasprintf: New file.
102227         * modules/unistdio/u32-vsnprintf: New file.
102228         * modules/unistdio/u32-vsprintf: New file.
102229         * modules/unistdio/u32-u32-asnprintf: New file.
102230         * modules/unistdio/u32-u32-asprintf: New file.
102231         * modules/unistdio/u32-u32-snprintf: New file.
102232         * modules/unistdio/u32-u32-sprintf: New file.
102233         * modules/unistdio/u32-u32-vasnprintf: New file.
102234         * modules/unistdio/u32-u32-vasprintf: New file.
102235         * modules/unistdio/u32-u32-vsnprintf: New file.
102236         * modules/unistdio/u32-u32-vsprintf: New file.
102237         * modules/unistdio/ulc-asnprintf-tests: New file.
102238         * modules/unistdio/ulc-vasnprintf-tests: New file.
102239         * modules/unistdio/ulc-vasprintf-tests: New file.
102240         * modules/unistdio/ulc-vsnprintf-tests: New file.
102241         * modules/unistdio/ulc-vsprintf-tests: New file.
102242         * modules/unistdio/u8-asnprintf-tests: New file.
102243         * modules/unistdio/u8-vasnprintf-tests: New file.
102244         * modules/unistdio/u8-vasprintf-tests: New file.
102245         * modules/unistdio/u8-vsnprintf-tests: New file.
102246         * modules/unistdio/u8-vsprintf-tests: New file.
102247         * modules/unistdio/u16-asnprintf-tests: New file.
102248         * modules/unistdio/u16-vasnprintf-tests: New file.
102249         * modules/unistdio/u16-vasprintf-tests: New file.
102250         * modules/unistdio/u16-vsnprintf-tests: New file.
102251         * modules/unistdio/u16-vsprintf-tests: New file.
102252         * modules/unistdio/u32-asnprintf-tests: New file.
102253         * modules/unistdio/u32-vasnprintf-tests: New file.
102254         * modules/unistdio/u32-vasprintf-tests: New file.
102255         * modules/unistdio/u32-vsnprintf-tests: New file.
102256         * modules/unistdio/u32-vsprintf-tests: New file.
102257         * MODULES.html.sh (Unicode string functions): Add the new modules.
102259 2007-07-01  Bruno Haible  <bruno@clisp.org>
102261         * lib/sprintf.c (sprintf): Limit the available length estimation,
102262         to avoid address wraparound.
102263         * lib/vsprintf.c (vsprintf): Likewise.
102264         * modules/sprintf-posix (Dependencies): Add stdint.
102265         * modules/vsprintf-posix (Dependencies): Likewise.
102267 2007-07-01  Bruno Haible  <bruno@clisp.org>
102269         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
102270         Windows PATH as well. Conservative double-quoting. Comments.
102272 2007-07-01  Bruno Haible  <bruno@clisp.org>
102273             Eric Blake  <ebb9@byu.net>
102274             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102276         * gnulib-tool (self_abspathname): Fix algorithm to cope with
102277         empty components in $PATH, denoting '.'.
102279 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102281         * gnulib-tool: Fix indentation.
102282         (func_create_megatestdir): Likewise.
102283         Report by Bruno Haible.
102285 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102287         Sync from Automake.
102288         * build-aux/gnupload: Fix shell portability issues with for loops.
102289         Report by Karl Berry.
102291 2007-06-29  Simon Josefsson  <simon@josefsson.org>
102293         * build-aux/maint.mk (POURL): Use translationproject.org.
102295 2007-06-27  Simon Josefsson  <simon@josefsson.org>
102296             Bruno Haible  <bruno@clisp.org>
102298         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
102299         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
102300         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
102301         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
102302         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
102304 2007-06-27  Bruno Haible  <bruno@clisp.org>
102306         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
102307         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
102309 2007-06-26  Karl Berry  <karl@gnu.org>
102311         * MODULES.html.sh: remove xreadlink-with-size.
102313 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
102315         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
102316         method that I hope also handles the double-include problem noted
102317         by Bruno Haible in
102318         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
102320 2007-06-23  Bruno Haible  <bruno@clisp.org>
102322         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
102323         Don't let the 'mostlyclean' target fail if the last subdirectory could
102324         not be removed.
102325         Reported by Karl Berry.
102327 2007-06-23  Bruno Haible  <bruno@clisp.org>
102329         * gnulib-tool (echo): Add a speedier workaround for ksh.
102330         * tests/test-echo.sh: Likewise.
102332 2007-06-23  Bruno Haible  <bruno@clisp.org>
102334         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
102335         * tests/test-echo.sh: Likewise.
102337 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102339         * gnulib-tool (IFS): Initialize early, so we don't set it to
102340         empty later.
102341         (self_abspathname): Rewrite algorithm to set it, reindent.
102342         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
102343         (func_create_megatestdir): Merge some sed scripts.
102345 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
102347         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
102348         exposed by Sun Studio 11 cc on Solaris 8.
102350 2007-06-22  Bruno Haible  <bruno@clisp.org>
102352         * gnulib-tool (echo): Ensure the echo primitive does not interpret
102353         backslashes.
102354         * tests/test-echo.sh: New file.
102356 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102358         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
102359         simplify `sed_replace_build_aux' scripts, they are portable but
102360         echoing them with `echo' is not.
102361         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
102363 2007-06-21  Karl Berry  <karl@gnu.org>
102365         * config/srclist.txt: guess we can't handle the licenses via
102366         srclist at the moment.
102368 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
102370         * MODULES.html.sh: Add include_next.
102371         * modules/include_next: New file.
102373 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
102375         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
102376         INCLUDE_NEXT.
102377         (gl_CHECK_NEXT_HEADERS): New macro.
102378         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
102379         the obsolescent gl_ABSOLUTE_HEADER.
102380         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
102381         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
102382         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
102383         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
102384         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
102385         * m4/math_h.m4 (gl_MATH_H): Likewise.
102386         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
102387         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
102388         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
102389         * m4/stdint.m4 (gl_STDINT_H): Likewise.
102390         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
102391         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
102392         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
102393         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
102394         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
102395         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
102396         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
102397         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
102398         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
102399         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
102400         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
102401         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
102402         * m4/inttypes.m4 (gl_INTTYPES_H): Define
102403         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
102404         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
102405         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
102406         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
102407         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
102408         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
102409         * lib/float_.h: Likewise.
102410         * lib/inttypes_.h: Likewise.
102411         * lib/math_.h: Likewise.
102412         * lib/search_.h: Likewise.
102413         * lib/signal_.h: Likewise.
102414         * lib/stdint_.h: Likewise.
102415         * lib/stdio_.h: Likewise.
102416         * lib/stdlib_.h: Likewise.
102417         * lib/string_.h: Likewise.
102418         * lib/sys_stat_.h: Likewise.
102419         * lib/sys_time_.h: Likewise.
102420         * lib/time_.h: Likewise.
102421         * lib/unistd_.h: Likewise.
102422         * lib/wchar_.h: Likewise.
102423         * lib/wctype_.h: Likewise.
102424         * lib/dirent_.h: Likewise.
102425         * lib/iconv_.h: Likewise.
102426         * lib/locale_.h: Likewise.
102427         * lib/netinet_in_.h: Likewise.
102428         * lib/sys_select_.h: Likewise.
102429         * lib/sys_socket_.h: Likewise.
102430         * lib/sysexits_.h: Likewise.
102431         * modules/fcntl (Depends-on): Depend on include_next, not
102432         absolute_header.
102433         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
102434         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
102435         * modules/fchdir: Likewise.
102436         * modules/float: Likewise.
102437         * modules/iconv_open: Likewise.
102438         * modules/inttypes: Likewise.
102439         * modules/locale: Likewise.
102440         * modules/math: Likewise.
102441         * modules/netinet_in: Likewise.
102442         * modules/search: Likewise.
102443         * modules/signal: Likewise.
102444         * modules/stdint: Likewise.
102445         * modules/stdio: Likewise.
102446         * modules/stdlib: Likewise.
102447         * modules/string: Likewise.
102448         * modules/sys_select: Likewise.
102449         * modules/sys_socket: Likewise.
102450         * modules/sys_stat: Likewise.
102451         * modules/sys_time: Likewise.
102452         * modules/sysexits: Likewise.
102453         * modules/time: Likewise.
102454         * modules/unistd: Likewise.
102455         * modules/wchar: Likewise.
102456         * modules/wctype: Likewise.
102457         * modules/sys_stat: Change maintainer to "all".
102458         * modules/unistd: Likewise.
102460 2007-06-20  Karl Berry  <karl@gnu.org>
102462         * config/srclist.txt: track www changes in license files.
102464 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
102466         * build-aux/bootstrap: Remove stray dot.
102467         Make sure build_aux settings are honored when linking
102468         gnulib_extra_files.
102470 2007-06-19  Eric Blake  <ebb9@byu.net>
102472         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
102473         Allow compilation on cygwin.
102475 2007-06-19  Jim Meyering  <jim@meyering.net>
102477         xreadlink-with-size: Remove module.  No longer used.
102478         Ex-callers now use xreadlink or mreadlink-with-size.
102479         * modules/xreadlink-with-size: Remove module.
102480         * lib/xreadlink-with-size.c: Remove file.
102481         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
102482         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
102483         just before the function definition *is* accurate.
102485         Eliminate one way canonicalize_filename_mode could exit.
102486         * lib/canonicalize.c (canonicalize_filename_mode):
102487         Use mreadlink_with_size, not xreadlink_with_size.
102489 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
102491         Detect porting problems to FreeBSD/arm, which has time_t wider than
102492         long int.  Original problem reported for GNU diff by Xin Li in
102493         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
102494         * modules/getdate (Depends-on): Add intprops, verify.
102495         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
102496         is an integer type no wider than long int.
102498 2007-06-18  Jim Meyering  <jim@meyering.net>
102500         New module: mreadlink-with-size.
102501         * MODULES.html.sh: Add mreadlink-with-size.
102502         * modules/mreadlink-with-size: New module
102503         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
102504         not xreadlink-with-size.
102505         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
102507 2007-06-16  Bruno Haible  <bruno@clisp.org>
102509         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
102510         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
102511         Reported by Gary V. Vaughan <gary@gnu.org>.
102513 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
102515         Revamp lchown so that it lives in unistd.h where it belongs.
102516         * lib/lchown.h: Remove.
102517         * lib/dirchownmod.c: Don't include lib/lchown.h.
102518         * lib/fchownat.c: Likewise.
102519         * lib/openat.c: Likewise.
102520         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
102521         does not follow symlinks.
102522         (EOPNOTSUPP): Define if not defined.
102523         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
102524         is defined to 0.
102525         (lchown): New decl.
102526         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
102527         Do not check for lchown decl.
102528         Set REPLACE_LCHOWN.
102529         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
102530         REPLACE_LCHOWN.
102531         * modules/chown: Make it clear it follows symlinks.
102532         * modules/lchown: Make it clear it doesn't follow symlinks.
102533         (Files): Remove lib/lchown.h
102534         (Depends-on): Add unistd.
102535         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
102536         (Include): Include <unistd.h>, not "lchown.h".
102537         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
102538         REPLACE_LCHOWN.
102540 2007-06-15  Jim Meyering  <jim@meyering.net>
102542         Change license (GPL to LGPL) of fsusage and dependents.
102543         * modules/fsusage (License): Change to LGPL.
102544         * modules/full-read (License): Likewise.
102545         * modules/full-write (License): Likewise.
102546         * modules/safe-read (License): Likewise.
102547         * modules/safe-write (License): Likewise.
102549 2007-06-14  Ben Pfaff  <blp@gnu.org>
102551         Missing part of allocsa -> malloca transition.
102552         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
102553         gl_MALLOCA.
102555 2007-06-12  Bruno Haible  <bruno@clisp.org>
102557         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
102558         to ia64, x86_64, i386.
102559         Reported by Eric Blake.
102561 2007-06-12  Bruno Haible  <bruno@clisp.org>
102563         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
102564         cross-compiling to x86_64.
102566 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
102568         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
102569         glitch reported by Ralf Wildenhues in
102570         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
102572         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
102573         Vin Shelton.
102575 2007-06-11  Bruno Haible  <bruno@clisp.org>
102577         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
102578         replacement string.
102579         Reported by Eric Blake.
102581 2007-06-10  Bruno Haible  <bruno@clisp.org>
102583         Prepare vasnprintf code for use with Unicode strings.
102584         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
102585         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
102586         TYPE_U32_STRING.
102587         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
102588         a_u32_string variants.
102589         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
102590         * lib/printf-args.c: Don't include config.h and the specification
102591         header if PRINTF_FETCHARGS is already defined.
102592         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
102593         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
102594         TYPE_U16_STRING, TYPE_U32_STRING.
102595         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
102596         u16_directive, u16_directives, u32_directive, u32_directives): New
102597         types.
102598         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
102599         New declarations.
102600         * lib/printf-parse.c: Don't include config.h and the specification
102601         header if PRINTF_PARSE is already defined. Eliminate the set of
102602         parameters for WIDE_CHAR_VERSION; the user of this file must provide
102603         them now. Include c-ctype.h.
102604         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
102605         directive and CHAR_T_ONLY_ASCII.
102606         * lib/vasnprintf.c: Don't include config.h and the specification header
102607         if VASNPRINTF is already defined.
102608         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
102609         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
102610         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
102611         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
102612         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
102613         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
102614         code accordingly.
102615         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
102616         pad_ourselves also in this case, with the 'c' and 's' directives, and
102617         with a different notion of "width".
102618         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
102620 2007-06-10  Bruno Haible  <bruno@clisp.org>
102622         * modules/unistr/u32-mbsnlen: New file.
102623         * lib/unistr/u32-mbsnlen.c: New file.
102625         * modules/unistr/u16-mbsnlen: New file.
102626         * lib/unistr/u16-mbsnlen.c: New file.
102628         * modules/unistr/u8-mbsnlen: New file.
102629         * lib/unistr/u8-mbsnlen.c: New file.
102631         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
102632         declarations.
102634 2007-06-10  Bruno Haible  <bruno@clisp.org>
102636         * lib/string_.h (mbsnlen): New declaration.
102637         * lib/mbsnlen.c: New file.
102638         * m4/mbsnlen.m4: New file.
102639         * modules/mbsnlen: New file.
102640         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
102641         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
102642         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
102644 2007-06-10  Bruno Haible  <bruno@clisp.org>
102646         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
102648 2007-06-10  Bruno Haible  <bruno@clisp.org>
102650         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
102651         * lib/mbuiter.h: Likewise.
102653 2007-06-10  Bruno Haible  <bruno@clisp.org>
102655         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
102656         declaration.
102658 2007-06-10  Karl Berry  <karl@gnu.org>
102660         * config/srclist.txt: remove gettext entries, Bruno prefers
102661         to update individually.
102663 2007-06-10  Bruno Haible  <bruno@clisp.org>
102665         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
102666         'maxlen'. Ensure only length + width bytes are allocated, not
102667         length + 1 + width.
102669 2007-06-09  Bruno Haible  <bruno@clisp.org>
102671         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
102672         (CHAR_T): Remove macro.
102673         (VASNPRINTF): Update.
102675 2007-06-09  Bruno Haible  <bruno@clisp.org>
102677         * MODULES.html.sh (Unicode string functions): Add the new modules.
102679         * modules/uniconv/u32-conv-to-enc: New file.
102680         * lib/uniconv/u32-conv-to-enc.c: New file.
102681         * modules/uniconv/u32-conv-to-enc-tests: New file.
102682         * tests/uniconv/test-u32-conv-to-enc.c: New file.
102684         * modules/uniconv/u16-conv-to-enc: New file.
102685         * lib/uniconv/u16-conv-to-enc.c: New file.
102686         * lib/uniconv/u-conv-to-enc.h: New file.
102687         * modules/uniconv/u16-conv-to-enc-tests: New file.
102688         * tests/uniconv/test-u16-conv-to-enc.c: New file.
102690         * modules/uniconv/u8-conv-to-enc: New file.
102691         * lib/uniconv/u8-conv-to-enc.c: New file.
102692         * modules/uniconv/u8-conv-to-enc-tests: New file.
102693         * tests/uniconv/test-u8-conv-to-enc.c: New file.
102695         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
102696         u32_conv_to_encoding): New declarations.
102698 2007-06-09  Bruno Haible  <bruno@clisp.org>
102700         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
102702 2007-06-09  Bruno Haible  <bruno@clisp.org>
102704         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
102705         * modules/malloca: Renamed from modules/allocsa, updated.
102706         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
102707         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
102708         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
102709         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
102710         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
102711         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
102712         * modules/xmalloca: Renamed from modules/xallocsa, updated.
102713         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
102714         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
102715         * modules/c-strcasestr (Depends-on): Update.
102716         * lib/c-strcasestr.c: Update.
102717         * modules/c-strstr (Depends-on): Update.
102718         * lib/c-strstr.c: Update.
102719         * modules/canonicalize-lgpl (Depends-on): Update.
102720         * lib/canonicalize-lgpl.c: Update.
102721         * modules/clean-temp (Depends-on): Update.
102722         * lib/clean-temp.c: Update.
102723         * modules/csharpcomp (Depends-on): Update.
102724         * lib/csharpcomp.c: Update.
102725         * modules/csharpexec (Depends-on): Update.
102726         * lib/csharpexec.c: Update.
102727         * modules/javacomp (Depends-on): Update.
102728         * lib/javacomp.c: Update.
102729         * modules/javaexec (Depends-on): Update.
102730         * lib/javaexec.c: Update.
102731         * modules/mbscasestr (Depends-on): Update.
102732         * lib/mbscasestr.c: Update.
102733         * modules/mbsstr (Depends-on): Update.
102734         * lib/mbsstr.c: Update.
102735         * modules/setenv (Depends-on): Update.
102736         * lib/setenv.c: Update.
102737         * modules/strcasestr (Depends-on): Update.
102738         * lib/strcasestr.c: Update.
102739         * modules/striconveha (Depends-on): Update.
102740         * lib/striconveha.c: Update.
102741         * modules/relocatable-prog-wrapper (Files): Update.
102742         * lib/relocwrapper.c: Update.
102743         * build-aux/install-reloc: Update.
102744         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
102746 2007-06-08  Bruno Haible  <bruno@clisp.org>
102748         Port to uClibc.
102749         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
102750         * lib/fpurge.c (fpurge): Likewise.
102751         * lib/freading.c (freading): Likewise.
102752         * lib/fseeko.c (rpl_fseeko): Likewise.
102753         * lib/fseterr.c (fseterr): Likewise.
102754         * lib/fwriting.c (fwriting): Likewise.
102755         * tests/test-fflush.c (main): Avoid a failure on uClibc.
102757 2007-06-08  Bruno Haible  <bruno@clisp.org>
102759         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
102760         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
102761         * modules/gettext (Files): Add m4/intlmacosx.m4.
102763 2007-06-07  Bruno Haible  <bruno@clisp.org>
102765         * modules/localename-tests: New file.
102766         * tests/test-localename.c: New file.
102768         New module 'localename'.
102769         * lib/localename.h: New file.
102770         * lib/localename.c: New file, from GNU gettext.
102771         * m4/localename.m4: New file.
102772         * modules/localename: New file.
102774 2007-06-07  Bruno Haible  <bruno@clisp.org>
102776         Work around the lack of <wchar.h> on some builds of uClibc.
102777         * doc/headers/wchar.texi: Update.
102778         * lib/wchar_.h: Include <wchar.h> only if it exists.
102779         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
102780         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
102781         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
102782         doesn't exist.
102783         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
102784         * modules/mbfile (Depends-on): Add wchar.
102785         * modules/mbiter (Depends-on): Likewise.
102786         * modules/mbuiter (Depends-on): Likewise.
102787         Reported by Simon Josefsson.
102789 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
102791         Work around problem reported by Steven M. Schweda in
102792         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
102793         Tru64 5.1B with the Compaq compiler environment installed declares
102794         an 'isblank' function but does not define it in the C library.
102795         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
102796         * lib/regex_internal.h (isblank): Likewise.
102797         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
102798         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
102800 2007-06-05  Bruno Haible  <bruno@clisp.org>
102802         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
102803         ia64.
102804         * modules/printf-safe: New file.
102805         * modules/fprintf-posix (Depends-on): Add printf-safe.
102806         * modules/printf-posix (Depends-on): Likewise.
102807         * modules/snprintf-posix (Depends-on): Likewise.
102808         * modules/sprintf-posix (Depends-on): Likewise.
102809         * modules/vasnprintf-posix (Depends-on): Likewise.
102810         * modules/vasprintf-posix (Depends-on): Likewise.
102811         * modules/vfprintf-posix (Depends-on): Likewise.
102812         * modules/vprintf-posix (Depends-on): Likewise.
102813         * modules/vsnprintf-posix (Depends-on): Likewise.
102814         * modules/vsprintf-posix (Depends-on): Likewise.
102815         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
102816         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
102817         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
102818         "no" on i386, x86_64, ia64.
102819         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
102820         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
102821         on i386, x86_64, ia64.
102822         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
102823         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
102824         on i386, x86_64, ia64.
102825         * tests/test-vasnprintf-posix.c: Include float.h.
102826         (LDBL80_WORDS): New macro.
102827         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
102828         on i386, x86_64, ia64.
102829         * tests/test-vasprintf-posix.c: Include float.h.
102830         (LDBL80_WORDS): New macro.
102831         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
102832         on i386, x86_64, ia64.
102833         * tests/test-snprintf-posix.c: Include float.h.
102834         * tests/test-sprintf-posix.c: Likewise.
102835         * tests/test-vsnprintf-posix.c: Likewise.
102836         * tests/test-vsprintf-posix.c: Likewise.
102838 2007-06-05  Bruno Haible  <bruno@clisp.org>
102840         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
102841         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
102842         non-IEEE numbers on i386, x86_64, ia64.
102843         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
102844         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
102845         * tests/test-isnanl.h: Include float.h.
102846         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
102848 2007-06-05  Bruno Haible  <bruno@clisp.org>
102850         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
102851         also the %a / %A. Handle the %a / %A code before this extra handling.
102853 2007-06-05  Bruno Haible  <bruno@clisp.org>
102855         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
102856         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
102858 2007-06-05  Bruno Haible  <bruno@clisp.org>
102860         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
102861         typo in variable name.
102863 2007-06-05  Eric Blake  <ebb9@byu.net>
102865         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
102866         Reported by Simon Josefsson.
102868 2007-06-04  Bruno Haible  <bruno@clisp.org>
102870         Avoid test failures on some PowerPC platforms.
102871         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
102872         Define differently for PowerPC.
102873         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
102874         Reported by Gary V. Vaughan <gary@gnu.org>.
102876 2007-06-02  Bruno Haible  <bruno@clisp.org>
102878         Fix test-stdint failure on FreeBSD/ia64.
102879         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
102880         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
102881         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
102882         * doc/headers/stdint.texi: Update.
102884 2007-06-01  Bruno Haible  <bruno@clisp.org>
102886         * tests/test-binary-io.c (main): Pass a third argument to open().
102887         Reported by Gary V. Vaughan <gary@gnu.org>.
102889 2007-06-01  Bruno Haible  <bruno@clisp.org>
102891         * doc/functions/frexpl.texi: Update for mingw.
102893 2007-06-01  Bruno Haible  <bruno@clisp.org>
102895         * tests/test-lseek.c (main): Disable test of errno for invalid third
102896         argument.
102897         * doc/functions/lseek.texi: Update.
102898         Reported by Gary V. Vaughan <gary@gnu.org>.
102900 2007-05-28  Bruno Haible  <bruno@clisp.org>
102902         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
102904 2007-05-31  Eric Blake  <ebb9@byu.net>
102906         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
102907         cross compiling.
102909 2007-05-30  Eric Blake  <ebb9@byu.net>
102910         and Bruno Haible  <bruno@clisp.org>
102912         Work around mingw test failures exposed by m4-1.4.9b.
102913         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
102914         * tests/test-unistd.c: Disable uid_t and git_t tests for the
102915         moment.
102917 2007-05-30  Bruno Haible  <bruno@clisp.org>
102919         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
102920         assuming that they are closed. Needed on HP-UX 11.
102922 2007-05-29  Bruno Haible  <bruno@clisp.org>
102924         Fix a problem with #include_next.
102925         * lib/dirent_.h: Split the double-inclusion guard.
102926         * lib/fcntl_.h: Likewise.
102927         * lib/float_.h: Likewise.
102928         * lib/iconv_.h: Likewise.
102929         * lib/inttypes_.h: Likewise.
102930         * lib/locale_.h: Likewise.
102931         * lib/math_.h: Likewise.
102932         * lib/netinet_in_.h: Likewise.
102933         * lib/search_.h: Likewise.
102934         * lib/signal_.h: Likewise.
102935         * lib/stdint_.h: Likewise.
102936         * lib/stdio_.h: Likewise.
102937         * lib/stdlib_.h: Likewise.
102938         * lib/string_.h: Likewise.
102939         * lib/sys_select_.h: Likewise.
102940         * lib/sys_socket_.h: Likewise.
102941         * lib/sys_stat_.h: Likewise.
102942         * lib/sys_time_.h: Likewise.
102943         * lib/sysexits_.h: Likewise.
102944         * lib/time_.h: Likewise.
102945         * lib/unistd_.h: Likewise.
102946         * lib/wchar_.h: Likewise.
102947         * lib/wctype_.h: Likewise.
102949 2007-05-29  Bruno Haible  <bruno@clisp.org>
102951         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
102952         for the moment.
102954 2007-05-29  Bruno Haible  <bruno@clisp.org>
102956         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
102957         invocation.
102958         Reported by Eric Blake.
102960 2007-05-29  Bruno Haible  <bruno@clisp.org>
102962         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
102963         compiling case.
102965 2007-05-29  Eric Blake  <ebb9@byu.net>
102966             Bruno Haible  <bruno@clisp.org>
102968         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
102969         cross compiles.
102971 2007-05-28  Eric Blake  <ebb9@byu.net>
102973         * modules/closein-tests (test_closein_LDADD): Support test on
102974         cygwin with libtool.
102976 2007-05-28  Bruno Haible  <bruno@clisp.org>
102978         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
102979         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
102980         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
102981         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
102982         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
102983         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
102984         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
102985         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
102986         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
102988 2007-05-28  Eric Blake  <ebb9@byu.net>
102990         Unconditionally include <config.h> in unit tests.
102991         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
102992         * tests/test-allocsa.c, tests/test-arcfour.c,
102993         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
102994         tests/test-array_list.c, tests/test-array_oset.c,
102995         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
102996         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
102997         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
102998         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
102999         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
103000         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
103001         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
103002         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
103003         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
103004         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
103005         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
103006         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
103007         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
103008         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
103009         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
103010         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
103011         test-md5.c, test-memmem.c, test-printf-posix.c,
103012         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
103013         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
103014         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
103015         test-strcasestr.c, test-striconv.c, test-striconveh.c,
103016         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
103017         test-vasnprintf-posix2.c, test-vasnprintf.c,
103018         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
103019         test-vfprintf-posix.c, test-vprintf-posix.c,
103020         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
103021         test-xvasprintf.c: Likewise.
103023 2007-05-28  Bruno Haible  <bruno@clisp.org>
103025         * gnulib-tool (func_import): Remember the --with-tests command-line
103026         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
103027         Reported by Eric Blake.
103029 2007-05-28  Bruno Haible  <bruno@clisp.org>
103031         * modules/ftell-tests: New file.
103032         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
103033         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
103035         * lib/ftell.c: New file.
103036         * modules/ftell: New file.
103037         * m4/ftell.m4: New file.
103038         * doc/functions/ftell.texi: Update.
103039         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
103040         REPLACE_FTELL.
103041         * lib/stdio_.h (rpl_ftell): New declaration.
103042         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
103043         REPLACE_FTELL.
103045 2007-05-28  Eric Blake  <ebb9@byu.net>
103047         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
103049 2007-05-28  Bruno Haible  <bruno@clisp.org>
103051         * modules/fseek-tests: New file.
103052         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
103053         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
103055         * lib/fseek.c: New file.
103056         * modules/fseek: New file.
103057         * m4/fseek.m4: New file.
103058         * doc/functions/fseek.texi: Update.
103059         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
103060         REPLACE_FSEEK.
103061         * lib/stdio_.h (rpl_fseek): New declaration.
103062         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
103063         REPLACE_FSEEK.
103065 2007-05-28  Bruno Haible  <bruno@clisp.org>
103067         * lib/stdio_.h (fflush): More comments.
103069 2007-05-28  Bruno Haible  <bruno@clisp.org>
103071         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
103072         runtime test.
103074 2007-05-28  Eric Blake  <ebb9@byu.net>
103076         Improve lseek module.
103077         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
103078         * lib/unistd_.h (lseek): Scale back link warning message.
103079         * tests/test-lseek.c: Beef up test.
103080         * tests/test-lseek.sh: Exercise more facets of lseek.
103081         Reported by Bruno Haible.
103083 2007-05-28  Bruno Haible  <bruno@clisp.org>
103085         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
103086         to define.
103088 2007-05-27  Bruno Haible  <bruno@clisp.org>
103090         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
103092 2007-05-27  Bruno Haible  <bruno@clisp.org>
103094         * modules/openmp: New file.
103095         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
103096         Noah Misch.
103098 2007-05-26  Bruno Haible  <bruno@clisp.org>
103100         * modules/chdir-long (Depends-on): Add fchdir.
103101         * modules/chdir-safer (Depends-on): Likewise.
103102         * modules/fts (Depends-on): Likewise.
103103         * modules/fts-lgpl (Depends-on): Likewise.
103104         * modules/openat (Depends-on): Likewise.
103105         * modules/savewd (Depends-on): Likewise.
103107 2007-05-24  Eric Blake  <ebb9@byu.net>
103109         Fix lseek on mingw.
103110         * modules/lseek: New module.
103111         * m4/lseek.m4: New file.
103112         * lib/lseek.c: New file.
103113         * modules/lseek-tests: New file.
103114         * tests/test-lseek.c: New file.
103115         * tests/test-lseek.sh: New file.
103116         * MODULES.html.sh: Document lseek module.
103117         * modules/fflush (Depends-on): Add lseek, fseeko.
103118         * modules/fseeko (Depends-on): Likewise.
103119         * modules/ftello (Depends-on): Likewise.
103120         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
103121         broken.
103122         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
103123         broken.
103124         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
103125         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
103126         * lib/ftello.c (rpl_ftello): Likewise.
103127         * tests/test-fseeko.c (main): Test this.
103128         * tests/test-fseeko.sh: Likewise.
103129         * tests/test-ftello.c (main): Likewise.
103130         * tests/test-ftello.sh: Likewise.
103131         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
103132         implies replacing fseek.
103133         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
103134         HAVE_FTELLO.
103135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
103136         * modules/unistd (Makefile.am): Likewise.
103137         * lib/unistd_.h (lseek): Declare a replacement.
103138         * doc/functions/lseek.texi (lseek): Document this fix.
103139         * doc/functions/fseek.texi (fseek): Likewise.
103140         * doc/functions/ftell.texi (ftell): Likewise.
103142 2007-05-24  Bruno Haible  <bruno@clisp.org>
103144         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
103145         in the printed representation of a NaN.
103146         * tests/test-vasprintf-posix.c (test_function): Likewise.
103147         * tests/test-snprintf-posix.h (test_function): Likewise.
103148         * tests/test-sprintf-posix.h (test_function): Likewise.
103149         Reported by Eric Blake.
103151 2007-05-23  Eric Blake  <ebb9@byu.net>
103153         Fix fseeko/ftello on cygwin 1.5.24.
103154         * doc/functions/fseeko.texi (fseeko): Document the fix.
103155         * doc/functions/ftello.texi (ftello): Document the fix.
103156         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
103157         * doc/functions/stdout.text (stdout): New file.
103158         * doc/functions/stderr.text (stderr): New file.
103159         * doc/gnulib.texi (Function Substitutes): Use new files.
103160         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
103161         prior to 1.7.0.
103162         * tests/test-ftello.c (main): Likewise for ftello.
103163         * tests/test-fseeko.sh: New file.
103164         * tests/test-ftello.sh: New file.
103165         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
103166         with seekable stdin.
103167         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
103168         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
103169         (gl_REPLACE_FSEEKO): New macro.
103170         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
103171         * modules/fseeko (Files): Distribute fseeko.c.
103172         * modules/ftello (Files): Distribute ftello.c.
103173         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
103174         mode.
103175         * lib/ftello.c (rpl_ftello): New file.
103176         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
103177         fseeko, ftello.
103178         (gl_STDIN_LARGE_OFFSET): New macro.
103179         * modules/stdio (Makefile.am): Perform the replacement.
103180         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
103182 2007-05-23  Bruno Haible  <bruno@clisp.org>
103184         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
103185         GNULIB_POSIXCHECK is defined.
103187 2007-05-21  Bruno Haible  <bruno@clisp.org>
103189         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
103190         Check also the output for NaN arguments. When cross-compiling, guess
103191         no on IRIX.
103192         * lib/vasnprintf.c: Update comments.
103193         * tests/test-vasnprintf-posix.c (strisnan): New function.
103194         (test_function): Use it.
103195         * tests/test-vasprintf-posix.c (strisnan): New function.
103196         (test_function): Use it.
103197         * tests/test-snprintf-posix.h (strisnan): New function.
103198         (test_function): Use it.
103199         * tests/test-sprintf-posix.h (strisnan): New function.
103200         (test_function): Use it.
103201         Reported by Eric Blake.
103203 2007-05-20  Bruno Haible  <bruno@clisp.org>
103205         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
103206         numbers that fails on BeOS.
103207         * doc/functions/frexpl.texi: Update.
103209 2007-05-20  Jim Meyering  <jim@meyering.net>
103211         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
103212         forced upon us by glibc-2.6.
103214 2007-05-20  Bruno Haible  <bruno@clisp.org>
103216         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
103217         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
103218         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
103219         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
103220         NEED_PRINTF_INFINITE.
103221         (is_infinitel): New function.
103222         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
103223         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
103224         gl_PREREQ_VASNPRINTF_INFINITE.
103225         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
103226         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
103227         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
103228         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
103229         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
103230         gl_PREREQ_VASNPRINTF_INFINITE.
103231         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
103232         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103233         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103234         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103235         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103236         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103237         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103238         * doc/functions/fprintf.texi: Update.
103239         * doc/functions/printf.texi: Update.
103240         * doc/functions/snprintf.texi: Update.
103241         * doc/functions/sprintf.texi: Update.
103242         * doc/functions/vfprintf.texi: Update.
103243         * doc/functions/vprintf.texi: Update.
103244         * doc/functions/vsnprintf.texi: Update.
103245         * doc/functions/vsprintf.texi: Update.
103247 2007-05-20  Bruno Haible  <bruno@clisp.org>
103249         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
103250         was not found in libc.
103251         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
103253 2007-05-20  Bruno Haible  <bruno@clisp.org>
103255         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
103256         printed as "-nan" instead of "nan".
103257         * tests/test-vasprintf-posix.c (test_function): Likewise.
103258         * tests/test-snprintf-posix.h (test_function): Likewise.
103259         * tests/test-sprintf-posix.h (test_function): Likewise.
103260         Needed for HP-UX 11.
103262 2007-05-20  Jim Meyering  <jim@meyering.net>
103264         Fix buggy test for the fchownat-deref bug.
103265         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
103266         symlink required for the run-test.  Without it, this test would
103267         always declare that fchownat doesn't work, and client code would
103268         unnecessarily use the replacement function with fixed libc.
103269         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
103270         Reported by Greg Schafer.
103272 2007-05-19  Bruno Haible  <bruno@clisp.org>
103274         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
103275         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
103276         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
103277         Needed for IRIX 6.5 and Solaris 2.5.1.
103279 2007-05-19  Bruno Haible  <bruno@clisp.org>
103281         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
103282         (test_function): Skip tests involving -0.0 on platforms where
103283         -0.0 = 0.0.
103284         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
103285         (test_function): Skip tests involving -0.0 on platforms where
103286         -0.0 = 0.0.
103287         * tests/test-snprintf-posix.h (have_minus_zero): New function.
103288         (test_function): Skip tests involving -0.0 on platforms where
103289         -0.0 = 0.0.
103290         * tests/test-sprintf-posix.h (have_minus_zero): New function.
103291         (test_function): Skip tests involving -0.0 on platforms where
103292         -0.0 = 0.0.
103293         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
103294         tests.
103295         * tests/test-printf-posix.h (test_function): Likewise.
103296         * tests/test-printf-posix.output: Remove all -0.0 related results.
103297         Needed for IRIX 6.5.
103299 2007-05-19  Bruno Haible  <bruno@clisp.org>
103301         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
103302         printed as "nan0x7fffffff" instead of "nan".
103303         * tests/test-vasprintf-posix.c (test_function): Likewise.
103304         * tests/test-snprintf-posix.h (test_function): Likewise.
103305         * tests/test-sprintf-posix.h (test_function): Likewise.
103306         * tests/test-fprintf-posix.h (NaN): Remove macro.
103307         (test_function): Remove all NaN related tests.
103308         * tests/test-printf-posix.h (NaN): Remove macro.
103309         (test_function): Remove all NaN related tests.
103310         * tests/test-printf-posix.output: Remove all NaN related results.
103311         Needed for IRIX 6.5.
103313 2007-05-19  Bruno Haible  <bruno@clisp.org>
103315         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
103316         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
103318 2007-05-19  Bruno Haible  <bruno@clisp.org>
103320         * lib/float_.h: New file.
103321         * m4/float_h.m4: New file.
103322         * modules/float: New file.
103323         * modules/isnanl (Dependencies): Add float.
103324         * modules/isnanl-nolibm (Dependencies): Likewise.
103325         * modules/mathl (Dependencies): Likewise.
103326         * modules/printf-frexpl (Dependencies): Likewise.
103327         * modules/signbit (Dependencies): Likewise.
103328         * modules/vasnprintf (Dependencies): Likewise.
103329         * doc/headers/float.texi: Update.
103331 2007-05-19  Jim Meyering  <jim@meyering.net>
103333         * lib/utimens.c (gl_futimens): Rename from futimens,
103334         now that glibc-2.6 declares futimens.
103335         * lib/utimens.h: Likewise.
103337 2007-05-19  Bruno Haible  <bruno@clisp.org>
103339         Avoid test failures on mingw.
103340         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
103341         * tests/test-printf-posix.sh: Likewise.
103342         * tests/test-vfprintf-posix.sh: Likewise.
103343         * tests/test-vprintf-posix.sh: Likewise.
103345 2007-05-19  Bruno Haible  <bruno@clisp.org>
103347         Fix *printf result for NaN, Inf, -0.0 on mingw.
103348         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
103349         * lib/vasnprintf.c: Include math.h and isnan.h.
103350         (is_infinite_or_zero): New function.
103351         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
103352         values in the %f, %F, %e, %E, %g, %G directives.
103353         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
103354         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
103355         gl_PRINTF_INFINITE and test its result. Invoke
103356         gl_PREREQ_VASNPRINTF_INFINITE.
103357         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
103358         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103359         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103360         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103361         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103362         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103363         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103364         * doc/functions/fprintf.texi: Update.
103365         * doc/functions/printf.texi: Update.
103366         * doc/functions/snprintf.texi: Update.
103367         * doc/functions/sprintf.texi: Update.
103368         * doc/functions/vfprintf.texi: Update.
103369         * doc/functions/vprintf.texi: Update.
103370         * doc/functions/vsnprintf.texi: Update.
103371         * doc/functions/vsprintf.texi: Update.
103373 2007-05-19  Bruno Haible  <bruno@clisp.org>
103375         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
103376         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
103377         Instead of multiplying with 10^k, set extra_zeroes to k.
103378         (scale10_round_long_double): Remove function.
103380 2007-05-18  Bruno Haible  <bruno@clisp.org>
103382         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
103383         introduced on 2007-05-06.
103385 2007-05-18  Bruno Haible  <bruno@clisp.org>
103387         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
103388         %g directives.
103389         * tests/test-vasprintf-posix.c (test_function): Likewise.
103390         * tests/test-snprintf-posix.h (test_function): Likewise.
103391         * tests/test-sprintf-posix.h (test_function): Likewise.
103393 2007-05-18  Bruno Haible  <bruno@clisp.org>
103395         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
103396         (strmatch): New function.
103397         (test_function): Test the %f directive on numbers of various exponents.
103398         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
103399         (strmatch): New function.
103400         (test_function): Test the %f directive on numbers of various exponents.
103401         * tests/test-snprintf-posix.h (strmatch): New function.
103402         (test_function): Test the %f directive on numbers of various exponents.
103403         * tests/test-sprintf-posix.h (strmatch): New function.
103404         (test_function): Test the %f directive on numbers of various exponents.
103405         * tests/test-snprintf-posix.c (SIZEOF): New macro.
103406         * tests/test-sprintf-posix.c (SIZEOF): New macro.
103407         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
103408         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
103410 2007-05-18  Bruno Haible  <bruno@clisp.org>
103412         Add support for 'long double' number output.
103413         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
103414         * lib/vasnprintf.c: Include math.h and float+.h.
103415         (mp_limb_t): New type.
103416         (GMP_LIMB_BITS): New macro.
103417         (mp_twolimb_t): New type.
103418         (GMP_TWOLIMB_BITS): New macro.
103419         (mpn_t): New type.
103420         (multiply, divide, convert_to_decimal, decode_long_double,
103421         scale10_round_long_double, scale10_round_decimal_long_double,
103422         floorlog10l): New functions.
103423         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
103424         for the %f, %F, %e, %E, %g, %G directives.
103425         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
103426         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
103427         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
103428         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
103429         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
103430         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103431         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103432         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103433         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103434         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103435         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103436         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
103437         * modules/snprintf-posix (Depends-on): Likewise.
103438         * modules/sprintf-posix (Depends-on): Likewise.
103439         * modules/vasnprintf-posix (Depends-on): Likewise.
103440         * modules/vasprintf-posix (Depends-on): Likewise.
103441         * modules/vfprintf-posix (Depends-on): Likewise.
103442         * modules/vsnprintf-posix (Depends-on): Likewise.
103443         * modules/vsprintf-posix (Depends-on): Likewise.
103444         * modules/vasnprintf (Files): Add lib/float+.h.
103445         * doc/functions/fprintf.texi: Update.
103446         * doc/functions/printf.texi: Update.
103447         * doc/functions/snprintf.texi: Update.
103448         * doc/functions/sprintf.texi: Update.
103449         * doc/functions/vfprintf.texi: Update.
103450         * doc/functions/vprintf.texi: Update.
103451         * doc/functions/vsnprintf.texi: Update.
103452         * doc/functions/vsprintf.texi: Update.
103454 2007-05-18  Bruno Haible  <bruno@clisp.org>
103456         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
103458 2007-05-18  Bruno Haible  <bruno@clisp.org>
103460         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
103461         for printing 64-bit integers. Needed for mingw.
103463 2007-05-18  Bruno Haible  <bruno@clisp.org>
103465         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
103466         gl_FUNC_FREXPL_WORKS.
103467         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
103469 2007-05-18  Bruno Haible  <bruno@clisp.org>
103471         * modules/frexpl-nolibm-tests: New file.
103473         * modules/frexpl-nolibm: New file.
103474         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
103476 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
103478         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
103479         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
103480         GCC 4.2, which otherwise issues a lot of warnings.
103481         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
103482         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
103483         Likewise.
103484         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
103485         * modules/iconv_open (iconv.h): Likewise.
103486         * modules/locale (locale.h): Likewise.
103487         * modules/netinet_in (netinet/in.h): Likewise.
103488         * modules/sys_select (sys_select.h): Likewise.
103489         * modules/sys_socket (sys/socket.h): Likewise.
103490         * modules/sys_stat (sys/stat.h): Likewise.
103491         * modules/sysexits (sysexits.h): Likewise.
103492         * modules/unistd (unistd.h): Likewise.
103494 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103496         * modules/closein-tests (Makefile.am): Distribute
103497         `test-closein.sh'.
103499 2007-05-17  Bruno Haible  <bruno@clisp.org>
103501         * tests/test-printf-posix.output: Renamed from
103502         tests/test-fprintf-posix.out.
103503         * modules/fprintf-posix-tests: Update.
103504         * modules/printf-posix-tests: Update.
103505         * modules/vfprintf-posix-tests: Update.
103506         * modules/vprintf-posix-tests: Update.
103507         * tests/test-fprintf-posix.sh: Update.
103508         * tests/test-printf-posix.sh: Update.
103509         * tests/test-vfprintf-posix.sh: Update.
103510         * tests/test-vprintf-posix.sh: Update.
103511         Reported by Ralf Wildenhues.
103513 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
103515         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
103516         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
103517         GCC 4.2, which otherwise issues a lot of warnings.
103518         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
103519         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
103520         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
103521         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
103522         it should no longer be needed.
103523         * lib/string_.h: Likewise.
103524         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
103525         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
103526         * modules/inttypes (inttypes.h): Likewise.
103527         * modules/math (math.h): Likewise.
103528         * modules/search (search.h): Likewise.
103529         * modules/signal (signal.h): Likewise.
103530         * modules/stdint (stdint.h): Likewise.
103531         * modules/stdio (stdio.h): Likewise.
103532         * modules/stdlib (stdlib.h): Likewise.
103533         * modules/string (string.h): Likewise.
103534         * modules/sys_time (sys/time.h): Likewise.
103535         * modules/time (time.h): Likewise.
103536         * modules/wchar (wchar.h): Likewise.
103537         * modules/wctype (wtype.h): Likewise.
103539 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
103541         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
103543 2007-05-13  Bruno Haible  <bruno@clisp.org>
103545         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
103546         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
103547         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
103548         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
103549         (gl_PREREQ_STRTOK_R): Don't require it here.
103551 2007-05-13  Bruno Haible  <bruno@clisp.org>
103553         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
103554         when used in C++ mode.
103556 2007-05-12  Bruno Haible  <bruno@clisp.org>
103558         * lib/linebuffer.h: Tweak doc.
103559         * lib/linebuffer.c: Likewise.
103561 2007-05-12  James Youngman  <jay@gnu.org>
103563         * lib/linebuffer.c (readlinebuffer_delim): New function,
103564         like readlinebuffer, but use a caller-specified delimiter.
103565         (readlinebuffer): Just call readlinebuffer_delim with '\n'
103566         as the delimiter.
103567         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
103569 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
103571         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
103572         * modules/openat (Files): Remove openat-die.c.
103573         (Depends-on): Add openat-die.
103574         * modules/openat-die: New module.
103576 2007-05-06  Bruno Haible  <bruno@clisp.org>
103578         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
103579         Update with info about Cygwin.
103580         * doc/functions/fprintf.texi: Update.
103581         * doc/functions/printf.texi: Update.
103582         * doc/functions/snprintf.texi: Update.
103583         * doc/functions/sprintf.texi: Update.
103584         * doc/functions/vfprintf.texi: Update.
103585         * doc/functions/vprintf.texi: Update.
103586         * doc/functions/vsnprintf.texi: Update.
103587         * doc/functions/vsprintf.texi: Update.
103588         Reported by Eric Blake.
103590 2007-05-06  Bruno Haible  <bruno@clisp.org>
103592         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
103593         padding ourselves for the floating-point directives.
103594         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
103595         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
103596         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
103597         gl_PRINTF_FLAG_ZERO and test its result. Invoke
103598         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
103599         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103600         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
103601         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103602         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103603         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103604         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103605         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103606         * tests/test-snprintf-posix.h (test_function): Also check the width
103607         and some flags in the %f directive.
103608         * tests/test-sprintf-posix.h (test_function): Likewise.
103609         * tests/test-vasnprintf-posix.c (test_function): Likewise.
103610         * tests/test-vasprintf-posix.c (test_function): Likewise.
103611         * doc/functions/fprintf.texi: Update.
103612         * doc/functions/printf.texi: Update.
103613         * doc/functions/snprintf.texi: Update.
103614         * doc/functions/sprintf.texi: Update.
103615         * doc/functions/vfprintf.texi: Update.
103616         * doc/functions/vprintf.texi: Update.
103617         * doc/functions/vsnprintf.texi: Update.
103618         * doc/functions/vsprintf.texi: Update.
103620 2007-05-06  Bruno Haible  <bruno@clisp.org>
103622         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
103623         pass the ' flag character to sprintf or snprintf.
103624         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
103625         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
103626         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
103627         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
103628         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
103629         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
103630         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
103631         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
103632         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
103633         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
103634         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103635         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
103636         * tests/test-snprintf-posix.h (test_function): Also check the grouping
103637         flag.
103638         * tests/test-sprintf-posix.h (test_function): Likewise.
103639         * tests/test-vasnprintf-posix.c (test_function): Likewise.
103640         * tests/test-vasprintf-posix.c (test_function): Likewise.
103641         * doc/functions/fprintf.texi: Update.
103642         * doc/functions/printf.texi: Update.
103643         * doc/functions/snprintf.texi: Update.
103644         * doc/functions/sprintf.texi: Update.
103645         * doc/functions/vfprintf.texi: Update.
103646         * doc/functions/vprintf.texi: Update.
103647         * doc/functions/vsnprintf.texi: Update.
103648         * doc/functions/vsprintf.texi: Update.
103650 2007-05-01  Bruno Haible  <bruno@clisp.org>
103652         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
103654 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
103656         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
103657         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
103659 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
103661         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
103662         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
103663         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
103665 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
103667         * lib/argp-help.c (struct hol_entry): New member `ord'.
103668         (HOL_ENTRY_PTRCMP): Use ord for comparison
103669         (hol_sort): Initialize ord.
103671 2007-05-01  Bruno Haible  <bruno@clisp.org>
103673         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
103674         Reported by Eric Blake.
103675         * doc/gnulib.texi (Function Substitutes): Update.
103677 2007-05-01  Bruno Haible  <bruno@clisp.org>
103679         * doc/functions.texi: Remove file, now redundant through
103680         doc/functions/*.texi.
103682 2007-05-01  Bruno Haible  <bruno@clisp.org>
103684         * modules/argp (Depends-on): Add sleep.
103686 2007-05-01  Bruno Haible  <bruno@clisp.org>
103688         * modules/sleep-tests: New file.
103689         * tests/test-sleep.c: New file.
103691         * modules/sleep: New file.
103692         * lib/sleep.c: New file.
103693         * m4/sleep.m4: New file.
103694         * lib/unistd_.h (sleep): New declaration.
103695         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
103696         HAVE_SLEEP.
103697         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
103698         * doc/functions/sleep.texi: Document the sleep module.
103700 2007-05-01  Bruno Haible  <bruno@clisp.org>
103702         * lib/sigprocmask.h: Remove file.
103703         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
103704         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
103705         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
103706         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
103707         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
103708         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
103709         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
103710         HAVE_SIGSET_T as a shell variable.
103711         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
103712         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
103713         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
103714         (Depends-on): Add signal. Remove verify.
103715         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
103716         (Include): Mention <signal.h> instead of sigprocmask.h.
103717         * NEWS: Mention the change.
103718         * lib/fatal-signal.c: Don't include sigprocmask.h.
103720 2007-05-01  Bruno Haible  <bruno@clisp.org>
103722         * modules/signal: New file.
103723         * lib/signal_.h: New file.
103724         * m4/signal_h.m4: New file.
103726 2007-05-01  Bruno Haible  <bruno@clisp.org>
103728         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
103729         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
103730         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
103731         HAVE_WCTYPE_CTMP_BUG into wctype.h.
103733 2007-05-01  Bruno Haible  <bruno@clisp.org>
103735         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
103736         configure time.
103737         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
103738         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
103739         * modules/sys_stat (Makefile.am): Substitute their values into
103740         sys/stat.h.
103742 2007-05-01  Bruno Haible  <bruno@clisp.org>
103744         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
103745         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
103746         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
103748 2007-05-01  Bruno Haible  <bruno@clisp.org>
103750         * doc/header/assert.texi: Undo last change: don't mention the gnulib
103751         'assert' module here.
103753 2007-05-01  Bruno Haible  <bruno@clisp.org>
103755         * doc/functions/*.texi: New files.
103756         * doc/functions/google-ranking.txt: New file.
103757         * doc/gnulib.texi (Function Substitutes): New chapter.
103758         (ctime, inet_ntoa): Remove sections.
103759         * doc/ctime.texi: Remove file.
103760         * doc/inet_ntoa.texi: Remove file.
103761         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
103762         dependencies.
103763         (%.info): New rule, specifying a --reference-limit.
103765 2007-05-01  Bruno Haible  <bruno@clisp.org>
103767         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
103769 2007-05-01  Bruno Haible  <bruno@clisp.org>
103771         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
103772         the portability of 'mkdir' to mingw systems.
103774 2007-05-01  Bruno Haible  <bruno@clisp.org>
103776         * doc/headers/google-ranking.txt: New file.
103778 2007-04-30  Eric Blake  <ebb9@byu.net>
103780         Prefer fseeko to fseek.
103781         * modules/getpass (Depends-on): Add fseeko.
103782         * lib/getpass.c (getpass): Use fseeko, not fseek.
103784 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
103786         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
103787         assumes the sorting is stable, while most qsort implementations
103788         are not.  Use argument addresses to ensure they never compare as
103789         equal.
103791         * tests/test-argp-2.sh (usage-indent test): Fix output
103792         (func_compare): Restore diff options
103793         * tests/test-argp.c: Restore #include "progname.h"
103795 2007-04-29  Bruno Haible  <bruno@clisp.org>
103797         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
103798         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
103799         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
103800         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
103801         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
103802         (configure.ac): Define CHECK_SNPRINTF_POSIX.
103803         (TESTS, check_PROGRAMS): Add test-snprintf.
103804         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
103805         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
103806         (TESTS, check_PROGRAMS): Add test-vsnprintf.
103807         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
103808         assertions that fail on HP-UX, OSF/1, or IRIX.
103809         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
103811 2007-04-29  Bruno Haible  <bruno@clisp.org>
103813         * MODULES.html.sh (posix_functions): Remove 'contents'.
103815 2007-04-29  Karl Berry  <karl@gnu.org>
103817         * config/srclist.txt (gendocs_template_min): new entry.
103819 2007-04-29  Bruno Haible  <bruno@clisp.org>
103821         Work around fpurge bug on BSD systems.
103822         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
103823         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
103824         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
103825         fpurge to rpl_fpurge if the system already has this function.
103826         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
103827         the case where the system already has this function. Correct invariants
103828         on BSD systems.
103829         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
103830         BSD systems.
103832 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
103834         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
103835         proposed by Sven Verdoolaege.
103837         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
103838         options.
103839         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
103840         (usage and help tests): Update
103842 2007-04-29  Bruno Haible  <bruno@clisp.org>
103844         * tests/test-fflush.c (main): Use a file of size 17, not 10.
103845         Print more information in case of failure. Disable a test on BeOS.
103847 2007-04-29  Bruno Haible  <bruno@clisp.org>
103849         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
103850         This helps debugging on systems on which no gdb is available.
103852 2007-04-29  Bruno Haible  <bruno@clisp.org>
103854         * lib/freading.h: Improve comments.
103855         * lib/fwriting.h: Likewise.
103856         * tests/test-freading.c (main): Don't check freading immediately after
103857         repositioning. Needed for glibc.
103859 2007-04-29  Bruno Haible  <bruno@clisp.org>
103861         * lib/freading.c (freading): Trivial simplification.
103863 2007-04-28  Bruno Haible  <bruno@clisp.org>
103865         * tests/test-fwriting.c (main): Also test the interaction between
103866         fflush and fwriting.
103867         * modules/fwriting-tests (Depends-on): Add fflush.
103869         * tests/test-freading.c (main): Also test the interaction between
103870         fflush and freading.
103871         * modules/freading-tests (Depends-on): Add fflush.
103873 2007-04-28  Bruno Haible  <bruno@clisp.org>
103875         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
103876         fseeko and ftello.
103877         Suggested by Eric Blake.
103879 2007-04-28  Jim Meyering  <jim@meyering.net>
103881         Avoid false-negative in gl_STDINT_H's C99 conformance test.
103882         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
103883         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
103885 2007-04-27  Eric Blake  <ebb9@byu.net>
103887         * doc/headers/assert.texi (assert.h): Document assert module use.
103889 2007-04-27  Bruno Haible  <bruno@clisp.org>
103891         * doc/headers/*.texi: New files.
103892         * doc/gnulib.texi (Header File Substitutes): New chapter.
103893         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
103894         dependencies.
103895         (standards.info ,standards.html, standards.dvi): Update dependencies.
103896         (mostlyclean, clean): New targets.
103898 2007-04-27  Bruno Haible  <bruno@clisp.org>
103900         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
103901         * modules/sysexits (Files, Makefile.am): Update.
103903         * lib/sys_socket_.h: Renamed from lib/socket_.h.
103904         * modules/sys_socket (Files, Makefile.am): Update.
103906         * lib/sys_stat_.h: Renamed from lib/stat_.h.
103907         * modules/sys_stat (Files, Makefile.am): Update.
103909 2007-04-27  Eric Blake  <ebb9@byu.net>
103911         * lib/freading.h: Improve comments.
103912         * lib/fwriting.h: Likewise.
103913         * lib/fflush.c: Likewise.
103915         Fix closein for mingw.
103916         * modules/closein-tests: Add tests for closein.
103917         * tests/test-closein.c: New file.
103918         * tests/test-closein.sh: Likewise.
103919         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
103920         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
103922 2007-04-27  Bruno Haible  <bruno@clisp.org>
103924         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
103925         version is < 6.
103926         * lib/math_.h [__DECC]: Likewise.
103927         * lib/stdio_.h [__DECC]: Likewise.
103928         * lib/stdlib_.h [__DECC]: Likewise.
103929         * lib/string_.h [__DECC]: Likewise.
103930         * lib/time_.h [__DECC]: Likewise.
103931         * lib/wchar_.h [__DECC]: Likewise.
103932         * lib/wctype_.h [__DECC]: Likewise.
103934 2007-04-27  Bruno Haible  <bruno@clisp.org>
103936         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
103938 2007-04-27  Bruno Haible  <bruno@clisp.org>
103940         * lib/fflush.c: Add comments.
103941         * modules/fpurge-tests (Depends-on): Add fflush.
103942         * modules/freadable-tests (Depends-on): Likewise.
103943         * modules/fwritable-tests (Depends-on): Likewise.
103945 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
103947         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
103948         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
103949         Report by Bruno Haible <bruno@clisp.org>.
103951 2007-04-26  Eric Blake  <ebb9@byu.net>
103953         Fix fflush on mingw.
103954         * modules/fflush (Depends-on): Add freading.
103955         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
103956         but unread data.
103958 2007-04-26  Eric Blake  <ebb9@byu.net>
103959         and Bruno Haible  <bruno@clisp.org>
103961         Implement freading and fwriting.
103962         * lib/freading.c: New file.
103963         * lib/freading.h: Likewise.
103964         * m4/freading.m4: Likewise.
103965         * modules/freading: Likewise.
103966         * modules/freading-tests: Likewise.
103967         * tests/test-freading.c: Likewise.
103968         * lib/fwriting.c: New file.
103969         * lib/fwriting.h: Likewise.
103970         * m4/fwriting.m4: Likewise.
103971         * modules/fwriting: Likewise.
103972         * modules/fwriting-tests: Likewise.
103973         * tests/test-fwriting.c: Likewise.
103974         * MODULES.html.sh (File stream based Input/Output): Mention them.
103976 2007-04-26  Bruno Haible  <bruno@clisp.org>
103978         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
103979         'long' when we assume it.
103980         Suggested by Eric Blake.
103982 2007-04-26  Bruno Haible  <bruno@clisp.org>
103984         Ensure fseeko, ftello are declared on glibc systems.
103985         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
103986         * modules/fseeko (configure.ac-early): Likewise.
103987         * modules/ftello (configure.ac-early): Likewise.
103988         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
103989         AC_FUNC_FSEEKO for this.
103990         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
103991         (gl_CHECK_FSEEKO): Remove macro.
103993 2007-04-26  Bruno Haible  <bruno@clisp.org>
103995         * tests/test-fflush.c (main): Also check the ftell result after
103996         fflush and fseek/fseeko.
103997         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
103998         file descriptor position cache in the stream.
103999         * lib/fseeko.c (rpl_fseeko): Likewise.
104001 2007-04-26  Bruno Haible  <bruno@clisp.org>
104003         * modules/fflush-tests (Depends-on): Add fseeko.
104005 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
104006             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104008         * lib/argz_.h: ensure error_t definition is obtained in same
104009         mechanism system argz.h would have.
104010         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
104011         argz facilities are known bad.  Err on the side of caution if
104012         cross-compiling.
104014 2007-04-25  Eric Blake  <ebb9@byu.net>
104016         * lib/fpurge.c (includes): Use stdlib.h for free.
104017         * tests/test-fflush.c (main): Also test fflush-fseeko.
104019 2007-04-25  Bruno Haible  <bruno@clisp.org>
104021         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
104022         * lib/fseeko.c: New file.
104023         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
104024         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
104025         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
104026         gl_FUNC_FSEEKO.
104027         (gl_FUNC_FSEEKO): Invoke it.
104028         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
104029         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
104030         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
104032 2007-04-25  Bruno Haible  <bruno@clisp.org>
104034         * modules/fflush (Depends-on): Add ftello.
104036 2007-04-25  Bruno Haible  <bruno@clisp.org>
104038         * modules/ftello-tests: New file.
104039         * tests/test-ftello.c: New file.
104041         * modules/ftello: New file.
104042         * m4/ftello.m4: New file.
104043         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
104044         HAVE_FTELLO.
104045         * lib/stdio_.h (ftello): New declaration.
104046         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
104047         HAVE_FTELLO.
104049 2007-04-25  Bruno Haible  <bruno@clisp.org>
104051         * modules/fseeko-tests: New file.
104052         * tests/test-fseeko.c: New file.
104054         * modules/fseeko: New file.
104055         * m4/fseeko.m4: New file.
104056         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
104057         HAVE_FSEEKO.
104058         * lib/stdio_.h (fseeko): New declaration.
104059         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
104060         HAVE_FSEEKO.
104062 2007-04-25  Bruno Haible  <bruno@clisp.org>
104064         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
104066 2007-04-25  Bruno Haible  <bruno@clisp.org>
104068         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
104069         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
104070         * tests/test-unistd.c: Likewise.
104071         * tests/test-fcntl.c: Likewise.
104073 2007-04-23  Eric Blake  <ebb9@byu.net>
104075         * lib/fflush.c: Fix missing include.
104076         Reported by Bruno Haible.
104078 2007-04-23  Bruno Haible  <bruno@clisp.org>
104080         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
104081         Reported by Eric Blake.
104083 2007-04-23  Bruno Haible  <bruno@clisp.org>
104085         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
104087 2007-04-23  Bruno Haible  <bruno@clisp.org>
104089         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
104091 2007-04-23  Bruno Haible  <bruno@clisp.org>
104093         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
104094         Needed on HP-UX 11.
104096 2007-04-16  Eric Blake  <ebb9@byu.net>
104098         Make fflush rely on fpurge.
104099         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
104100         open coding all variants.
104101         * modules/fflush (Depends-on): Add fpurge and unistd.
104102         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
104103         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
104105         Fix --with-tests compilation on cygwin.
104106         * modules/argmatch-tests (Makefile.am): List gnulib library first
104107         in LDADD.
104108         * modules/argp-tests (Makefile.am): Likewise.
104109         * modules/array-list-tests (Makefile.am): Likewise.
104110         * modules/array-oset-tests (Makefile.am): Likewise.
104111         * modules/avltree-list-tests (Makefile.am): Likewise.
104112         * modules/avltree-oset-tests (Makefile.am): Likewise.
104113         * modules/avltreehash-list-tests (Makefile.am): Likewise.
104114         * modules/carray-list-tests (Makefile.am): Likewise.
104115         * modules/dirname-tests (Makefile.am): Likewise.
104116         * modules/frexp-tests (Makefile.am): Likewise.
104117         * modules/isnanl-tests (Makefile.am): Likewise.
104118         * modules/linked-list-tests (Makefile.am): Likewise.
104119         * modules/linkedhash-list-tests (Makefile.am): Likewise.
104120         * modules/lock-tests (Makefile.am): Likewise.
104121         * modules/rbtree-list-tests (Makefile.am): Likewise.
104122         * modules/rbtree-oset-tests (Makefile.am): Likewise.
104123         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
104124         * modules/tls-tests (Makefile.am): Likewise.
104125         * modules/tsearch-tests (Makefile.am): Likewise.
104126         * modules/xvasprintf-tests (Makefile.am): Likewise.
104128         Fix fpurge for cygwin.
104129         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
104130         value.
104131         * modules/fpurge-tests (Depends-on): Clean up trash.
104133 2007-04-16  Simon Josefsson  <simon@josefsson.org>
104135         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
104137         * m4/autobuild.m4: Re-indent.
104139 2007-04-13  Bruno Haible  <bruno@clisp.org>
104141         * modules/fpurge-tests: New file.
104142         * tests/test-fpurge.c: New file.
104144         * modules/fpurge: New file.
104145         * lib/fpurge.h: New file.
104146         * lib/fpurge.c: New file.
104147         * m4/fpurge.m4: New file.
104149 2007-04-13  Bruno Haible  <bruno@clisp.org>
104151         * modules/fbufmode-tests: New file.
104152         * tests/test-fbufmode.c: New file.
104154         * modules/fbufmode: New file.
104155         * lib/fbufmode.h: New file.
104156         * lib/fbufmode.c: New file.
104157         * m4/fbufmode.m4: New file.
104159 2007-04-13  Bruno Haible  <bruno@clisp.org>
104161         * modules/fwritable-tests: New file.
104162         * tests/test-fwritable.c: New file.
104164         * modules/fwritable: New file.
104165         * lib/fwritable.h: New file.
104166         * lib/fwritable.c: New file.
104167         * m4/fwritable.m4: New file.
104169 2007-04-13  Bruno Haible  <bruno@clisp.org>
104171         * modules/freadable-tests: New file.
104172         * tests/test-freadable.c: New file.
104174         * modules/freadable: New file.
104175         * lib/freadable.h: New file.
104176         * lib/freadable.c: New file.
104177         * m4/freadable.m4: New file.
104179 2007-04-13  Bruno Haible  <bruno@clisp.org>
104181         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
104182         MOSTLYCLEANFILES.
104184 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
104186         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
104187         gzip bootstrap.conf to avoid dragging in i18n machinery.
104188         (gnulib_tool_option): Use it.
104190 2007-04-13  Bruno Haible  <bruno@clisp.org>
104192         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
104193         %F directives.
104194         * tests/test-vasprintf-posix.c (test_function): Likewise.
104195         * tests/test-snprintf-posix.h (test_function): Likewise.
104196         * tests/test-sprintf-posix.h (test_function): Likewise.
104197         * tests/test-fprintf-posix.h (test_function): Likewise.
104198         * tests/test-printf-posix.h (test_function): Likewise.
104199         * tests/test-fprintf-posix.out: Likewise.
104201 2007-04-13  Bruno Haible  <bruno@clisp.org>
104203         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
104204         * modules/tls-tests (configure.ac): Likewise.
104205         Reported by Arto C. Nirkko <anirkko@insel.ch>.
104207 2007-04-13  Bruno Haible  <bruno@clisp.org>
104209         * lib/tls.c (glthread_tls_get): Fix return type.
104210         Patch by Arto C. Nirkko <anirkko@insel.ch>.
104212 2007-04-12  Eric Blake  <ebb9@byu.net>
104214         * modules/gettime (Depends-on): Remove gettime.
104215         Reported by Dmitry V. Levin.
104217 2007-04-12  Bruno Haible  <bruno@clisp.org>
104219         * modules/fflush (Include): Mention <stdio.h>.
104220         * modules/strtoimax (Include): Mention <inttypes.h>.
104221         * modules/strtoumax (Include): Likewise.
104223 2007-04-12  Eric Blake  <ebb9@byu.net>
104225         * .cvsignore: New file.
104226         * .gitignore: Likewise.
104228 2007-04-12  Bruno Haible  <bruno@clisp.org>
104230         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
104231         not before, since $(LDADD) often contains libgnu.a.
104232         * modules/striconv-tests (test_striconv_LDADD): Likewise.
104233         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
104234         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
104235         Needed on Cygwin.
104237 2007-04-12  Eric Blake  <ebb9@byu.net>
104239         Work around glibc's failure to flush stdin on fclose.
104240         * lib/closein.c (close_stdin): Flush stdin before closing.
104242         Work around glibc's failure to reset seekable stdin on exit.
104243         * modules/closein: New module.
104244         * lib/closein.c: New file.
104245         * lib/closein.h: Likewise.
104246         * m4/closein.m4: Likewise.
104247         * MODULES.html.sh (File stream based Input/Output): Document it.
104249 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104251         * gnulib-tool: Rename generated 'autobuild' script to
104252         'do-autobuild' in --create-megatestdir output.
104254         * doc/gnulib.texi (Build robot for gnulib): Fix.
104256 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104258         * modules/sysexits (Depends-on): Add absolute-header.
104260 2007-04-12  Eric Blake  <ebb9@byu.net>
104262         No need to preserve errno on success.
104263         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
104264         Reported by Bruno Haible.
104266 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104268         * MODULES.html.sh (Support for maintaining and releasing
104269         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
104271 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104273         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
104275 2007-04-12  Simon Josefsson  <simon@josefsson.org>
104277         * modules/autobuild: New module.
104279         * m4/autobuild.m4: New file.
104281 2007-04-11  Bruno Haible  <bruno@clisp.org>
104283         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
104284         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
104285         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
104286         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
104287         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
104288         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104289         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104290         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
104291         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104292         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104293         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
104294         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104295         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104296         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
104297         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104298         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104299         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
104300         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104301         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104302         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
104303         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104304         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104305         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
104306         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104307         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104308         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
104309         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
104310         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
104311         Reported by Eric Blake.
104313 2007-04-11  Bruno Haible  <bruno@clisp.org>
104315         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
104317 2007-04-10  Bruno Haible  <bruno@clisp.org>
104319         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
104320         for NaN and Infinity. Needed on FreeBSD 6.1.
104321         * tests/test-vasnprintf-posix.c (test_function): Undo last change
104322         regarding results for "%010a" of Infinity and NaN.
104323         * tests/test-vasprintf-posix.c (test_function): Likewise.
104324         * tests/test-snprintf-posix.h (test_function): Likewise.
104325         * tests/test-sprintf-posix.h (test_function): Likewise.
104326         * tests/test-fprintf-posix.h (test_function): Likewise.
104327         * tests/test-printf-posix.h (test_function): Likewise.
104328         * tests/test-fprintf-posix.out: Likewise.
104330 2007-04-10  Bruno Haible  <bruno@clisp.org>
104332         * modules/locale-tests: New file.
104333         * tests/test-locale.c: New file.
104335         * modules/locale: New file.
104336         * lib/locale_.h: New file.
104337         * m4/locale_h.m4: New file.
104339 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
104340             Bruno Haible  <bruno@clisp.org>
104342         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
104343         be determined, test for availability of the copysignf, copysign,
104344         copysignl functions.
104345         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
104346         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
104347         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
104349 2007-04-09  Eric Blake  <ebb9@byu.net>
104351         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
104352         * modules/stdio (Makefile.am): Support fflush.
104353         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
104354         * modules/fflush: New file.
104355         * lib/fflush.c: Likewise.
104356         * m4/fflush.m4: Likewise.
104357         * modules/fflush-tests: New test.
104358         * tests/test-fflush.c: Likewise.
104359         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
104361 2007-04-06  Bruno Haible  <bruno@clisp.org>
104363         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
104364         (VASNPRINTF): Use signbit for faster determination whether to print a
104365         minus sign.
104366         * modules/vasnprintf (Files): Remove lib/float+.h.
104367         * modules/fprintf-posix (Depends-on): Add signbit.
104368         * modules/snprintf-posix (Depends-on): Likewise.
104369         * modules/sprintf-posix (Depends-on): Likewise.
104370         * modules/vasnprintf-posix (Depends-on): Likewise.
104371         * modules/vasprintf-posix (Depends-on): Likewise.
104372         * modules/vfprintf-posix (Depends-on): Likewise.
104373         * modules/vsnprintf-posix (Depends-on): Likewise.
104374         * modules/vsprintf-posix (Depends-on): Likewise.
104376 2007-04-06  Bruno Haible  <bruno@clisp.org>
104378         * tests/test-frexp.c (main): Test also the sign bit of zero results.
104379         * tests/test-frexpl.c (main): Likewise.
104380         * tests/test-ldexpl.c (main): Likewise.
104381         * modules/frexp-tests (Depends-on): Add signbit.
104382         * modules/frexpl-tests (Depdends-on): Likewise.
104383         * modules/ldexpl-tests (Depdends-on): Likewise.
104385 2007-04-06  Bruno Haible  <bruno@clisp.org>
104387         * modules/signbit-tests: New file.
104388         * tests/test-signbit.c: New file.
104390         * modules/signbit: New file.
104391         * lib/signbitf.c: New file.
104392         * lib/signbitd.c: New file.
104393         * lib/signbitl.c: New file.
104394         * m4/signbit.m4: New file.
104395         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
104396         (signbit): New macro.
104397         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
104398         REPLACE_SIGNBIT.
104399         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
104400         REPLACE_FREXPL into math.h.
104402 2007-04-06  Bruno Haible  <bruno@clisp.org>
104404         * modules/isnanf-nolibm-tests: New file.
104405         * tests/test-isnanf.c: New file.
104407         * modules/isnanf-nolibm: New file.
104408         * lib/isnanf.h: New file.
104409         * lib/isnanf.c: New file.
104410         * lib/isnan.c: Consider the USE_FLOAT macro.
104411         * m4/isnanf.m4: New file.
104413 2007-04-06  Bruno Haible  <bruno@clisp.org>
104415         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
104416         (Link): New section.
104418         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
104420 2007-04-06  Bruno Haible  <bruno@clisp.org>
104422         Assume the 'long double' type.
104423         * m4/longdouble.m4: Remove file.
104424         * config/srclist.txt: Don't mention longdouble.m4.
104425         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
104426         * lib/float+.h: Likewise.
104427         * lib/frexp.c: Likewise.
104428         * lib/printf-args.h: Likewise.
104429         * lib/printf-args.c: Likewise.
104430         * lib/printf-frexp.c: Likewise.
104431         * lib/printf-parse.c: Likewise.
104432         * lib/vasnprintf.c: Likewise.
104433         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
104434         * m4/intl.m4: Likewise.
104435         * m4/isnanl.m4: Likewise.
104436         * m4/printf.m4: Likewise.
104437         * m4/printf-frexpl.m4: Likewise.
104438         * m4/vasnprintf.m4: Likewise.
104439         * modules/allocsa (Files): Remove m4/longdouble.m4.
104440         * modules/gettext (Files): Likewise.
104441         * modules/relocatable-prog-wrapper (Files): Likewise.
104442         * modules/vasnprintf (Files): Likewise.
104443         * modules/isnanl (Files): Likewise.
104444         (Include): Simplify.
104445         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
104446         (Include): Simplify.
104447         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
104448         (Include): Simplify.
104449         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
104450         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104451         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
104452         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104453         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
104454         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104455         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
104456         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104457         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
104458         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104459         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
104460         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
104461         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
104462         * tests/test-isnanl.c: Likewise.
104463         * tests/test-snprintf-posix.h: Likewise.
104464         * tests/test-sprintf-posix.h: Likewise.
104465         * tests/test-vasnprintf-posix.c: Likewise.
104466         * tests/test-vasnprintf-posix2.c: Likewise.
104467         * tests/test-vasprintf-posix.c: Likewise.
104469 2007-04-06  Bruno Haible  <bruno@clisp.org>
104471         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
104472         * lib/math_.h [__DECC]: Include the overridden include file through
104473         #include_next, outside the double-inclusion guard.
104474         * lib/stdio_.h [__DECC]: Likewise.
104475         * lib/stdlib_.h [__DECC]: Likewise.
104476         * lib/string_.h [__DECC]: Likewise.
104477         * lib/time_.h [__DECC]: Likewise.
104478         * lib/wchar_.h [__DECC]: Likewise.
104479         * lib/wctype_.h [__DECC]: Likewise.
104480         * lib/inttypes_.h [__DECC]: Likewise.
104481         Reported by Albert Chin <china@thewrittenword.com> in
104482         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
104484 2007-04-04  Eric Blake  <ebb9@byu.net>
104486         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
104487         1.5.x.
104489 2007-04-04  Bruno Haible  <bruno@clisp.org>
104491         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
104492         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
104494 2007-04-04  Bruno Haible  <bruno@clisp.org>
104496         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
104497         results for "%010a" of Infinity and NaN.
104498         * tests/test-vasprintf-posix.c (test_function): Likewise.
104499         * tests/test-snprintf-posix.h (test_function): Likewise.
104500         * tests/test-sprintf-posix.h (test_function): Likewise.
104501         * tests/test-fprintf-posix.h (test_function): Remove these tests.
104502         * tests/test-printf-posix.h (test_function): Likewise.
104503         * tests/test-fprintf-posix.out: Update.
104504         Needed for FreeBSD 6.1.
104506 2007-04-04  Bruno Haible  <bruno@clisp.org>
104508         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
104509         directly used by the gnulib modules nor by gnulib-tool.
104511 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
104513         * DEPENDENCIES: Give overall description of version dependency
104514         desirability.  Use more-typical names for apps.
104515         Add shell, coreutils, diffutils, grep, tar, gzip.
104517 2007-04-04  Simon Josefsson  <simon@josefsson.org>
104519         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
104521 2007-04-04  Karl Berry  <karl@gnu.org>
104523         * MODULES.html.sh (func_module): missing '.
104525 2007-04-03  Bruno Haible  <bruno@clisp.org>
104527         * modules/argmatch-tests (Makefile.am): New variable
104528         test_argmatch_LDADD.
104529         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
104530         * modules/array-list-tests (Makefile.am): New variable
104531         test_array_list_LDADD.
104532         * modules/array-oset-tests (Makefile.am): New variable
104533         test_array_oset_LDADD.
104534         * modules/avltree-list-tests (Makefile.am): New variable
104535         test_avltree_list_LDADD.
104536         * modules/avltree-oset-tests (Makefile.am): New variable
104537         test_avltree_oset_LDADD.
104538         * modules/avltreehash-list-tests (Makefile.am): New variable
104539         test_avltreehash_list_LDADD.
104540         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
104541         test_canonicalize_lgpl_LDADD.
104542         * modules/carray-list-tests (Makefile.am): New variable
104543         test_carray_list_LDADD.
104544         * modules/dirname-tests (Makefile.am): New variable
104545         test_dirname_LDADD.
104546         * modules/linked-list-tests (Makefile.am): New variable
104547         test_linked_list_LDADD.
104548         * modules/linkedhash-list-tests (Makefile.am): New variable
104549         test_linkedhash_list_LDADD.
104550         * modules/rbtree-list-tests (Makefile.am): New variable
104551         test_rbtree_list_LDADD.
104552         * modules/rbtree-oset-tests (Makefile.am): New variable
104553         test_rbtree_oset_LDADD.
104554         * modules/rbtreehash-list-tests (Makefile.am): New variable
104555         test_rbtreehash_list_LDADD.
104556         * modules/xvasprintf-tests (Makefile.am): New variable
104557         test_xvasprintf_LDADD.
104558         Reported by Eric Blake.
104560 2007-04-03  Eric Blake  <ebb9@byu.net>
104562         * DEPENDENCIES: Weaken m4 requirements.
104564 2007-04-03  Bruno Haible  <bruno@clisp.org>
104566         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
104567         * modules/isnanl-tests (configure.ac): Likewise.
104569 2007-04-03  Ben Pfaff  <blp@gnu.org>
104571         * modules/iconv_open: Add $(srcdir)/ to source directory
104572         references in Makefile fragments that call gperf, to fix VPATH
104573         builds.
104575 2007-04-03  Bruno Haible  <bruno@clisp.org>
104577         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
104578         * lib/ldexpl.c: Undo last change.
104580 2007-04-03  Bruno Haible  <bruno@clisp.org>
104582         * modules/printf-frexpl (Depends-on): Undo last change.
104583         (Files): Add m4/ldexpl.m4.
104585 2007-04-03  Bruno Haible  <bruno@clisp.org>
104587         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
104588         * modules/isnanl (Link): New section.
104590         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
104591         * modules/frexp (Link): New section.
104593         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
104594         * modules/frexpl (Link): New section.
104596         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
104597         * modules/ldexpl (Link): New section.
104599 2007-04-03  Bruno Haible  <bruno@clisp.org>
104601         * modules/TEMPLATE-EXTENDED: New file.
104602         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
104604 2007-04-03  Bruno Haible  <bruno@clisp.org>
104606         * DEPENDENCIES: New file.
104607         Suggested by Simon Josefsson.
104609 2007-04-03  Bruno Haible  <bruno@clisp.org>
104611         * doc/gnulib.texi: Escape @.
104613 2007-04-03  James Youngman  <jay@gnu.org>
104614         and Paul Eggert  <eggert@cs.ucla.edu>
104616         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
104617         birthtime on all systems that have birthtime, not just those which
104618         use st_birthtimensec rather than st_birthtim.  Putting zero in
104619         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
104620         that the birth time is not available for files on an NFS mount.
104622 2007-04-03  Simon Josefsson  <simon@josefsson.org>
104624         * modules/memxor: Move back from crypto/, suggested by Bruno.
104625         * modules/crypto/hmac-sha1: Fix memxor dependency.
104627         * modules/crypto/gc: Moved from ../.
104629 2007-04-02  Eric Blake  <ebb9@byu.net>
104631         * lib/ldexpl.c (includes): Avoid libm.
104633         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
104635 2007-04-02  Bruno Haible  <bruno@clisp.org>
104637         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
104638         on IRIX.
104640 2007-04-02  Bruno Haible  <bruno@clisp.org>
104642         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
104643         x86 or x86_64 platforms running MacOS X.
104644         Reported by Ryan Schmidt <@ryandesign.com>.
104646 2007-04-02  Bruno Haible  <bruno@clisp.org>
104648         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
104649         i386.
104651 2007-04-01  Simon Josefsson  <simon@josefsson.org>
104653         * modules/crypto/arcfour: Moved from ../.
104654         * modules/crypto/arcfour-tests: Moved from ../.
104655         * modules/crypto/arctwo: Moved from ../.
104656         * modules/crypto/arctwo-tests: Moved from ../.
104657         * modules/crypto/des: Moved from ../.
104658         * modules/crypto/des-tests: Moved from ../.
104659         * modules/crypto/gc-arcfour: Moved from ../.
104660         * modules/crypto/gc-arcfour-tests: Moved from ../.
104661         * modules/crypto/gc-arctwo: Moved from ../.
104662         * modules/crypto/gc-arctwo-tests: Moved from ../.
104663         * modules/crypto/gc-des: Moved from ../.
104664         * modules/crypto/gc-des-tests: Moved from ../.
104665         * modules/crypto/gc-hmac-md5: Moved from ../.
104666         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
104667         * modules/crypto/gc-hmac-sha1: Moved from ../.
104668         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
104669         * modules/crypto/gc-md2: Moved from ../.
104670         * modules/crypto/gc-md2-tests: Moved from ../.
104671         * modules/crypto/gc-md4: Moved from ../.
104672         * modules/crypto/gc-md4-tests: Moved from ../.
104673         * modules/crypto/gc-md5: Moved from ../.
104674         * modules/crypto/gc-md5-tests: Moved from ../.
104675         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
104676         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
104677         * modules/crypto/gc-random: Moved from ../.
104678         * modules/crypto/gc-rijndael: Moved from ../.
104679         * modules/crypto/gc-rijndael-tests: Moved from ../.
104680         * modules/crypto/gc-sha1: Moved from ../.
104681         * modules/crypto/gc-sha1-tests: Moved from ../.
104682         * modules/crypto/gc-tests: Moved from ../.
104683         * modules/crypto/hmac-md5: Moved from ../.
104684         * modules/crypto/hmac-md5-tests: Moved from ../.
104685         * modules/crypto/hmac-sha1: Moved from ../.
104686         * modules/crypto/hmac-sha1-tests: Moved from ../.
104687         * modules/crypto/md2: Moved from ../.
104688         * modules/crypto/md2-tests: Moved from ../.
104689         * modules/crypto/md4: Moved from ../.
104690         * modules/crypto/md4-tests: Moved from ../.
104691         * modules/crypto/md5: Moved from ../.
104692         * modules/crypto/md5-tests: Moved from ../.
104693         * modules/crypto/memxor: Moved from ../.
104694         * modules/crypto/rijndael: Moved from ../.
104695         * modules/crypto/rijndael-tests: Moved from ../.
104696         * modules/crypto/sha1: Moved from ../.
104698 2007-03-30  James Youngman  <jay@gnu.org>
104700         * tests/test-stat-time.c (prepare_test): use chmod() rather than
104701         rename() to change the ctime of a file (because ctime is unaffected
104702         by rename on jfs2 on AIX 5.1).
104703         (main): Start by doing cleanup, in case a previous run failed leaving
104704         test files behind.
104706 2007-03-31  Bruno Haible  <bruno@clisp.org>
104708         Support old proprietary implementations of iconv.
104709         * modules/iconv_open: New file.
104710         * lib/iconv_.h: New file.
104711         * m4/iconv_h.m4: New file.
104712         * lib/iconv_open.c: New file.
104713         * lib/iconv_open-aix.gperf: New file.
104714         * lib/iconv_open-hpux.gperf: New file.
104715         * lib/iconv_open-irix.gperf: New file.
104716         * lib/iconv_open-osf.gperf: New file.
104717         * m4/iconv_open.m4: New file.
104718         * modules/linebreak (Depends-on): Add iconv_open.
104719         * modules/striconv (Depends-on): Likewise.
104720         * modules/striconveh (Depends-on): Likewise.
104721         * modules/unicodeio (Depends-on): Likewise.
104722         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
104723         (iconv_t)(-1).
104724         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
104725         conversion if cd is (iconv_t)(-1).
104726         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
104727         is not possible.
104729 2007-03-31  Bruno Haible  <bruno@clisp.org>
104731         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
104732         work on Solaris either. Protect also second use of "autodetect_jp".
104734 2007-03-31  Bruno Haible  <bruno@clisp.org>
104736         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
104737         the function is not present.
104739 2007-03-31  Bruno Haible  <bruno@clisp.org>
104741         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
104742         the function is not present.
104744 2007-03-31  Bruno Haible  <bruno@clisp.org>
104746         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
104747         a bug in HP-UX iconv_open().
104749 2007-03-31  Bruno Haible  <bruno@clisp.org>
104751         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
104752         (Mathematics <math.h>): New section, add fpieee.
104753         (Input/output <stdio.h>): Add fseterr.
104754         (Mathematics <math.h>): New section, add printf-frexp.
104755         (Container data structures): Add sublist.
104756         (Core language properties): Add fpucw, inline.
104757         (Functions for greatest-width integer types <inttypes.h>): Add
104758         imaxabs, imaxdiv, inttypes.
104759         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
104760         isnanl-nolibm, ldexp.
104761         (Mathematics <math.h>): New section, add printf-frexpl.
104762         (Support for systems lacking POSIX:2001): Add fprintf-posix,
104763         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
104764         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
104765         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
104766         (Unicode string functions): Add unistr/u*-mbtoucr.
104767         (Java): Add javacomp-script, javaexec-script.
104768         (C#): Add csharpcomp-script, csharpexec-script.
104769         (Support for building libraries and executables): Add havelib,
104770         relocatable-*.
104771         (Support for maintaining and releasing projects): Renamed from
104772         'Support for maintaining and release projects'. Add announce-gen.
104774 2007-03-31  Bruno Haible  <bruno@clisp.org>
104776         * README: Talk primarily about git.
104777         (git and CVS): Renamed from CVS.
104778         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
104779         gnulib is available through git.
104780         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
104782 2007-03-30  Bruno Haible  <bruno@clisp.org>
104784         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
104785         * lib/poll_.h: Likewise.
104786         * lib/stat_.h: Likewise.
104787         * lib/sys_time_.h: Likewise.
104788         * lib/sysexit_.h: Likewise.
104789         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
104790         * lib/stdbool_.h: Likewise.
104791         * lib/byteswap_.h: Add double-inclusion guard.
104793 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
104795         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
104797 2007-03-30  Karl Berry  <karl@gnu.org>
104799         * config/srclist-update: double space after USA in the license
104800         substitution, since that's how it's usually (?) written.
104802 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
104804         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
104805         reported by Bruno Haible.
104807 2007-03-29  Bruno Haible  <bruno@clisp.org>
104809         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
104810         a bug in AIX iconv().
104812 2007-03-29  Bruno Haible  <bruno@clisp.org>
104814         * modules/ldexpl-tests: New file.
104815         * tests/test-ldexpl.c: New file.
104817 2007-03-29  Bruno Haible  <bruno@clisp.org>
104819         * lib/ldexpl.c: Include fpucw.h.
104820         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
104821         multiplication.
104822         * modules/ldexpl (Depends-on): Add fpucw.
104824 2007-03-29  Bruno Haible  <bruno@clisp.org>
104826         * modules/ldexpl: New file.
104827         * m4/ldexpl.m4: New file.
104828         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
104829         set.
104830         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
104831         REPLACE_LDEXPL.
104832         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
104833         REPLACE_LDEXPL.
104834         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
104835         gl_FUNC_LDEXPL_WORKS.
104836         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
104837         * modules/mathl (Files): Remove lib/ldexpl.c.
104838         (Depends-on): Add ldexpl.
104840 2007-03-29  Bruno Haible  <bruno@clisp.org>
104842         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
104844 2007-03-29  Bruno Haible  <bruno@clisp.org>
104846         * tests/test-striconveh.c (main): Don't assume that a direct conversion
104847         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
104848         and possibly also HP-UX.
104849         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
104850         work on AIX, IRIX, HP-UX, OSF/1.
104851         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
104852         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
104853         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
104854         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
104855         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
104856         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
104858 2007-03-29  Bruno Haible  <bruno@clisp.org>
104860         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
104862 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
104864         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
104865         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
104867 2007-03-29  Eric Blake  <ebb9@byu.net>
104869         * lib/acl-internal.h: Remove redundant include.
104870         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
104871         Cygwin when a file is locked.
104873 2007-03-29  Bruno Haible  <bruno@clisp.org>
104875         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
104876         file.
104877         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
104879 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
104881         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
104882         try to remove a parent directory if the child couldn't be removed
104883         (except for the first rmdir, which could fail because the child
104884         doesn't exist).  Problem reported by Jeff Blaine in
104885         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
104887 2007-03-28  Bruno Haible  <bruno@clisp.org>
104889         * lib/striconveh.c (utf8conv_carefully): New function.
104890         (mem_cd_iconveh_internal): Invoke it.
104892 2007-03-28  Bruno Haible  <bruno@clisp.org>
104894         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
104895         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
104896         input.
104897         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
104898         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
104899         unistr/u8-uctomb.
104901 2007-03-28  Bruno Haible  <bruno@clisp.org>
104903         * modules/unistr/u8-mbtoucr: New file.
104904         * lib/unistr/u8-mbtoucr.c: New file.
104905         * modules/unistr/u16-mbtoucr: New file.
104906         * lib/unistr/u16-mbtoucr.c: New file.
104907         * modules/unistr/u16-mbtoucr: New file.
104908         * lib/unistr/u16-mbtoucr.c: New file.
104909         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
104911 2007-03-27  Simon Josefsson  <simon@josefsson.org>
104912             Bruno Haible  <bruno@clisp.org>
104914         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
104915         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
104916         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
104918         * m4/stdio_h.m4: Add stubs for vasprintf too.
104920         * modules/stdio: Support vasprintf in sed command.
104922         * modules/vasprintf: Depend on stdio for prototypes.  Remove
104923         vasprintf.h.  Add stdio module indicator.
104925         * lib/stdio_.h: Declare asprintf and vasprintf, based on
104926         vasprintf.h.
104928         * lib/vasprintf.h: File removed.
104930         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
104931         * lib/vasprintf.c: Ditto.
104932         * lib/xvasprintf.c: Ditto.
104933         * tests/test-vasprintf-posix.c: Ditto.
104934         * tests/test-vasprintf.c: Ditto.
104936 2007-03-27  Bruno Haible  <bruno@clisp.org>
104938         Make vasnprintf multithread-safe.
104939         * lib/vasnprintf.c (decimal_point_char): New function.
104940         (VASNPRINTF): Use it.
104941         Suggested by Simon Josefsson.
104943 2007-03-27  Eric Blake  <ebb9@byu.net>
104945         Support sub-second birthtime on cygwin.
104946         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
104947         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
104948         (get_stat_birthtime): Also work with st_birthtim.
104950 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
104952         * lib/stat-time.h (USE_BIRTHTIME): Remove.
104953         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
104954         (get_stat_birthtime_ns): Do not try to use "spare" fields.
104955         (get_stat_birthtime_ns): Simplify compile-time tests.
104956         (get_stat_birthtime): Change the API to look like
104957         get_stat_mtime etc., except return a negative tv_nsec on error.
104958         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
104959         Don't check for "spare" fields.
104960         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
104961         or for struct stat.st_birthtime, as these tests aren't used.
104962         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
104964 2007-03-27  Bruno Haible  <bruno@clisp.org>
104966         * lib/stat-time.h: Include <sys/stat.h>.
104968 2007-03-27  James Youngman  <jay@gnu.org>
104970         * lib/stat-time.h (get_stat_birthtime): New function for
104971           retrieving st_birthtime as provided by UFS2 (hence *BSD).
104972         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
104973           and its variants.
104974         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
104975         * modules/stat-time-test: New file.
104976         * tests/test-stat-time.c: New test, devised by Bruno Haible.
104978 2007-03-26  Bruno Haible  <bruno@clisp.org>
104980         Better support of signalling NaNs.
104981         * lib/atanl.c: Include isnanl.h.
104982         (atanl): Perform test for NaN at the beginning of the function and
104983         through a call to isnanl.
104984         * lib/cosl.c: Include isnanl.h.
104985         (cosl): Perform test for NaN at the beginning of the function and
104986         through a call to isnanl.
104987         * lib/ldexpl.c: Include isnanl.h.
104988         (ldexpl): Perform test for NaN through a call to isnanl.
104989         * lib/logl.c: Include isnanl.h.
104990         (logl): Perform test for NaN at the beginning of the function and
104991         through a call to isnanl.
104992         * lib/sinl.c: Include isnanl.h.
104993         (sinl): Perform test for NaN at the beginning of the function and
104994         through a call to isnanl.
104995         * lib/sqrtl.c: Include isnanl.h.
104996         (sqrtl): Perform test for NaN at the beginning of the function and
104997         through a call to isnanl.
104998         * lib/tanl.c: Include isnanl.h.
104999         (tanl): Perform test for NaN at the beginning of the function and
105000         through a call to isnanl.
105001         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
105002         * modules/mathl (Depends-on): Add isnanl.
105004 2007-03-26  Eric Blake  <ebb9@byu.net>
105006         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
105007         regression in logic sense of previous patch.
105009 2007-03-26  Bruno Haible  <bruno@clisp.org>
105011         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
105012         unportable shell command "if ! ...".
105013         Reported by Ralf Wildenhues.
105015 2007-03-25  Bruno Haible  <bruno@clisp.org>
105017         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
105018         <sysexits.h> file, and only add EX_CONFIG.
105019         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
105020         absolute file name and whether it is sufficient. Substitute also
105021         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
105022         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
105023         ABSOLUTE_SYSEXITS_H into sysexits.h.
105025 2007-03-25  Bruno Haible  <bruno@clisp.org>
105027         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
105028         hints is NULL.
105030 2007-03-25  Bruno Haible  <bruno@clisp.org>
105032         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
105033         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
105035 2007-03-25  Bruno Haible  <bruno@clisp.org>
105037         * lib/vasnprintf.c: Include langinfo.h.
105038         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
105039         multithread-safe.
105040         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
105041         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
105042         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
105043         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
105044         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
105045         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
105046         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
105047         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
105048         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
105049         Reported by Simon Josefsson.
105051 2007-03-25  Bruno Haible  <bruno@clisp.org>
105053         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
105054         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
105055         * modules/vasnprintf (Depends-on): Add stdint.
105057 2007-03-25  Bruno Haible  <bruno@clisp.org>
105059         * modules/fpieee: New file.
105060         * m4/fpieee.m4: New file.
105061         * modules/isnan-nolibm (Depends-on): Add fpieee.
105062         * modules/isnanl-nolibm (Depends-on): Add fpieee.
105063         * modules/isnanl (Depends-on): Add fpieee.
105065 2007-03-25  Bruno Haible  <bruno@clisp.org>
105067         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
105069 2007-03-25  Bruno Haible  <bruno@clisp.org>
105071         Avoid test failures on IRIX 6.5.
105072         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
105073         (main): Use it.
105074         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
105075         macros.
105076         (main): Use them.
105078 2007-03-25  Bruno Haible  <bruno@clisp.org>
105080         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
105081         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
105082         exists but doesn't work.
105083         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
105084         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
105085         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
105086         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
105087         math.h.
105089 2007-03-25  Bruno Haible  <bruno@clisp.org>
105091         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
105092         returns inf. Needed on IRIX 6.5.
105094 2007-03-25  Bruno Haible  <bruno@clisp.org>
105096         * tests/test-frexpl.c: Include isnanl-nolibm.h.
105097         (main): Use isnanl instead of x != x idiom.
105098         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
105100         * tests/test-frexp.c: Include isnan.h.
105101         (main): Use isnan instead of x != x idiom.
105102         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
105104 2007-03-25  Bruno Haible  <bruno@clisp.org>
105106         * tests/test-frexp.c (NaN): New function/macro.
105107         (main): Use it instead of 0.0 / 0.0.
105108         * tests/test-isnan.c (NaN): New function/macro.
105109         (main): Use it instead of 0.0 / 0.0.
105110         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
105111         (test_function): Use it instead of 0.0 / 0.0.
105112         * tests/test-vasprintf-posix.c (NaN): New function/macro.
105113         (test_function): Use it instead of 0.0 / 0.0.
105114         * tests/test-snprintf-posix.h (NaN): New function/macro.
105115         (test_function): Use it instead of 0.0 / 0.0.
105116         * tests/test-sprintf-posix.h (NaN): New function/macro.
105117         (test_function): Use it instead of 0.0 / 0.0.
105118         * tests/test-fprintf-posix.h (NaN): New function/macro.
105119         (test_function): Use it instead of 0.0 / 0.0.
105120         * tests/test-printf-posix.h (NaN): New function/macro.
105121         (test_function): Use it instead of 0.0 / 0.0.
105123         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
105125 2007-03-25  Bruno Haible  <bruno@clisp.org>
105127         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
105129 2007-03-25  Bruno Haible  <bruno@clisp.org>
105131         * lib/regexec.c (merge_state_with_log): Make static.
105133 2007-03-25  Bruno Haible  <bruno@clisp.org>
105135         * lib/trigl.c (kernel_rem_pio2): Make static.
105137 2007-03-25  Bruno Haible  <bruno@clisp.org>
105139         * lib/sincosl.c (sincosl_table): Make static.
105141 2007-03-25  Bruno Haible  <bruno@clisp.org>
105143         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
105144         if the compiler does not support C99.
105146 2007-03-25  Bruno Haible  <bruno@clisp.org>
105148         * modules/time (Makefile.am): Ensure all rule action lines start with a
105149         tab.
105151 2007-03-24  Bruno Haible  <bruno@clisp.org>
105153         * modules/tsearch-tests: New file.
105154         * tests/test-tsearch.sh: New file.
105155         * tests/test-tsearch.c: New file, mostly copied from glibc.
105157         * modules/search-tests: New file.
105158         * tests/test-search.c: New file.
105160         * modules/search: New file.
105161         * lib/search_.h: New file, incorporating lib/tsearch.h.
105162         * m4/search_h.m4: New file.
105163         * lib/tsearch.h: Remove file.
105164         * lib/tsearch.c: Include search.h instead of tsearch.h.
105165         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
105166         HAVE_TSEARCH.
105167         * modules/tsearch (Files): Remove lib/tsearch.h.
105168         (Depends-on): Add search.
105169         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
105170         (Include): Change tsearch.h into search.h.
105172 2007-03-24  Bruno Haible  <bruno@clisp.org>
105174         * modules/fpucw: New file.
105175         * lib/fpucw.h: New file.
105176         * lib/frexp.c: Include fpucw.h.
105177         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
105178         (FUNC): Use them.
105179         * lib/printf-frexp.c: Include fpucw.h.
105180         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
105181         (FUNC): Use them.
105182         * lib/vasnprintf.c: Include fpucw.h.
105183         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
105184         'long double' calculations.
105185         * tests/test-frexpl.c: Include fpucw.h.
105186         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
105187         * tests/test-printf-frexpl.c: Include fpucw.h.
105188         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
105189         * modules/frexpl (Depends-on): Add fpucw.
105190         * modules/printf-frexpl (Depends-on): Likewise.
105191         * modules/fprintf-posix (Depends-on): Likewise.
105192         * modules/snprintf-posix (Depends-on): Likewise.
105193         * modules/sprintf-posix (Depends-on): Likewise.
105194         * modules/vasnprintf-posix (Depends-on): Likewise.
105195         * modules/vasprintf-posix (Depends-on): Likewise.
105196         * modules/vfprintf-posix (Depends-on): Likewise.
105197         * modules/vsnprintf-posix (Depends-on): Likewise.
105198         * modules/vsprintf-posix (Depends-on): Likewise.
105199         * modules/frexpl-tests (Depends-on): Likewise.
105200         * modules/printf-frexpl-tests (Depends-on): Likewise.
105202 2007-03-24  Bruno Haible  <bruno@clisp.org>
105204         * lib/float+.h: New file.
105205         * lib/isnan.c: Include float+.h.
105206         (SIZE): New macro.
105207         (FUNC): Compare only SIZE bytes of the value.
105208         * lib/vasnprintf.c: Include float+.h.
105209         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
105210         SIZEOF_LDBL or SIZEOF_DBL bytes.
105211         * modules/isnan-nolibm (Files): Add lib/float+.h.
105212         * modules/isnanl-nolibm (Files): Add lib/float+.h.
105213         * modules/isnanl (Files): Add lib/float+.h.
105214         * modules/vasnprintf (Files): Add lib/float+.h.
105216 2007-03-24  Bruno Haible  <bruno@clisp.org>
105218         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
105219         include isnanl-nolibm.h.
105221 2007-03-24  Bruno Haible  <bruno@clisp.org>
105223         * tests/test-read-file.c (main): Don't produce spurious output for
105224         expected situations. Make the test fail if it encountered unexpected
105225         results.
105227 2007-03-24  Bruno Haible  <bruno@clisp.org>
105229         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
105230         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
105232 2007-03-24  Bruno Haible  <bruno@clisp.org>
105234         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
105236 2007-03-24  Bruno Haible  <bruno@clisp.org>
105238         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
105239         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
105241         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
105242         * modules/utf8-ucs4: Turn into a symbolic link to module
105243         unistr/u8-mbtouc.
105245         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
105246         utf8-ucs4-unsafe.
105247         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
105248         unistr/u8-mbtouc-unsafe.
105250         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
105251         * modules/utf16-ucs4: Turn into a symbolic link to module
105252         unistr/u16-mbtouc.
105254         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
105255         utf16-ucs4-unsafe.
105256         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
105257         unistr/u16-mbtouc-unsafe.
105259         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
105260         * modules/ucs4-utf8: Turn into a symbolic link to module
105261         unistr/u8-ubtomb.
105263         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
105264         * modules/ucs4-utf16: Turn into a symbolic link to module
105265         unistr/u16-ubtomb.
105267 2007-03-24  Bruno Haible  <bruno@clisp.org>
105269         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
105270         Enable the function only if HAVE_INLINE.
105271         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
105272         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
105273         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
105274         Enable the function only if HAVE_INLINE.
105275         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
105276         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
105277         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
105278         Enable the function only if HAVE_INLINE.
105279         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
105280         Enable the function only if HAVE_INLINE.
105281         * modules/utf8-ucs4: Update.
105282         * modules/utf8-ucs4-unsafe: Update.
105283         * modules/utf16-ucs4: Update.
105284         * modules/utf16-ucs4-unsafe: Update.
105285         * modules/ucs4-utf8: Update.
105286         * modules/ucs4-utf16: Update.
105288 2007-03-24  Bruno Haible  <bruno@clisp.org>
105290         * lib/utf8-ucs4.h: Remove file.
105291         * lib/utf8-ucs4-unsafe.h: Remove file.
105292         * lib/utf16-ucs4.h: Remove file.
105293         * lib/utf16-ucs4-unsafe.h: Remove file.
105294         * lib/ucs4-utf8.h: Remove file.
105295         * lib/ucs4-utf16.h: Remove file.
105296         * lib/unistr.h: Include their previous contents.
105297         * m4/utf-ucs4.m4: Remove file.
105298         * m4/ucs4-utf.m4: Remove file.
105299         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
105300         (Depends-on): Add unistr/base.
105301         (configure.ac): Remove gl_UTF_UCS4.
105302         (Makefile.am): Update.
105303         (Include): Change to unistr.h.
105304         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
105305         (Depends-on): Add unistr/base.
105306         (configure.ac): Remove gl_UTF_UCS4.
105307         (Makefile.am): Update.
105308         (Include): Change to unistr.h.
105309         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
105310         (Depends-on): Add unistr/base.
105311         (configure.ac): Remove gl_UTF_UCS4.
105312         (Makefile.am): Update.
105313         (Include): Change to unistr.h.
105314         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
105315         (Depends-on): Add unistr/base.
105316         (configure.ac): Remove gl_UTF_UCS4.
105317         (Makefile.am): Update.
105318         (Include): Change to unistr.h.
105319         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
105320         (Depends-on): Add unistr/base.
105321         (configure.ac): Remove gl_UCS4_UTF.
105322         (Makefile.am): Update.
105323         (Include): Change to unistr.h.
105324         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
105325         (Depends-on): Add unistr/base.
105326         (configure.ac): Remove gl_UCS4_UTF.
105327         (Makefile.am): Update.
105328         (Include): Change to unistr.h.
105329         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
105330         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
105331         utf8-ucs4-unsafe.h.
105332         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
105333         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
105334         utf16-ucs4-unsafe.h.
105335         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
105336         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
105337         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
105338         * lib/unistr/u8-strchr.c: Likewise.
105339         * lib/unistr/u8-strrchr.c: Likewise.
105340         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
105341         * lib/unistr/u16-strchr.c: Likewise.
105342         * lib/unistr/u16-strrchr.c: Likewise.
105343         * lib/striconveh.c: Update.
105344         * lib/linebreak.c: Update.
105346 2007-03-24  Bruno Haible  <bruno@clisp.org>
105348         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
105349         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
105351 2007-03-22  Bruno Haible  <bruno@clisp.org>
105353         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
105355 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
105357         * MODULES.html.sh (File system functions): New module write-any-file.
105358         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
105359         * m4/write-any-file.m4: New files.
105361 2007-03-23  Eric Blake  <ebb9@byu.net>
105363         * gnulib-tool: Rearrange space-tab sequences, since some editors
105364         like to eat them.
105366 2007-03-23  Eric Blake  <ebb9@byu.net>
105368         * lib/version-etc.c (version_etc_va): Update license wording to
105369         be more concise.  Recommended by Richard Stallman.
105371 2007-03-22  Bruno Haible  <bruno@clisp.org>
105373         * lib/poll.c (MSG_PEEK): New fallback definition.
105375 2007-03-22  Bruno Haible  <bruno@clisp.org>
105377         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
105378         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
105379         (main): Update.
105380         Fixes a compilation error on BeOS.
105382 2007-03-22  Bruno Haible  <bruno@clisp.org>
105384         * modules/frexpl-tests: New file.
105385         * tests/test-frexpl.c: New file.
105387         * modules/frexpl: New file.
105388         * m4/frexpl.m4: New file.
105389         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
105390         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
105391         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
105392         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
105393         (Depends-on): Add frexpl. Remove isnanl-nolibm.
105394         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
105396 2007-03-22  Bruno Haible  <bruno@clisp.org>
105398         * lib/frexpl.c: Share code with lib/frexp.c.
105399         * modules/mathl (Files): Add lib/frexp.c.
105400         (Depends-on): Add isnanl-nolibm.
105402 2007-03-22  Bruno Haible  <bruno@clisp.org>
105404         * modules/printf-frexp (Files): Add m4/frexp.m4.
105405         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
105406         only if the found frexp function actually works.
105408 2007-03-22  Bruno Haible  <bruno@clisp.org>
105410         * lib/frexp.c: Remove older implementation that uses divisions.
105412 2007-03-21  Bruno Haible  <bruno@clisp.org>
105414         * modules/frexp-tests: New file.
105415         * tests/test-frexp.c: New file.
105417         * modules/frexp: New file.
105418         * lib/frexp.c: New file.
105419         * m4/frexp.m4: New file.
105420         * lib/math_.h (frexp): New declaration.
105421         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
105422         REPLACE_FREXP.
105423         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
105425 2007-03-21  Bruno Haible  <bruno@clisp.org>
105427         * modules/isnanl-tests: New file.
105428         * tests/test-isnanl.c: New file.
105430         * modules/isnanl: New file.
105431         * lib/isnanl.h: New file.
105432         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
105433         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
105434         gl_FUNC_ISNANL_WORKS.
105435         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
105436         New macros.
105438 2007-03-21  Bruno Haible  <bruno@clisp.org>
105440         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
105441         lib/isnanl.h.
105442         (Include): Update.
105443         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
105444         * lib/vasnprintf.c: Update.
105445         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
105446         tests/test-isnanl.h, remove tests/test-isnanl.c.
105447         (Makefile.am): Update.
105448         * tests/test-isnanl-nolibm.c: New file.
105449         * tests/test-isnanl.h: New file.
105450         * tests/test-isnanl.c: Remove file.
105452 2007-03-21  Jim Meyering  <jim@meyering.net>
105454         When trying to open ".", treat ESTALE like EACCES.
105455         * lib/savewd.c (savewd_save): Resort to forking not just upon
105456         failure with EACCES, but also when errno is ESTALE.
105458 2007-03-20  Bruno Haible  <bruno@clisp.org>
105460         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
105461         Needed on AIX 5.1. Reported by Matthew Woehlke.
105463 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
105465         Suggestions by Bruno Haible:
105466         * lib/acl-internal.h: Include "gettext.h" rather than rolling
105467         our own.
105468         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
105469         * modules/acl (Depends-on): Add gettext.
105471 2007-03-19  Bruno Haible  <bruno@clisp.org>
105473         * modules/iconvme: Remove file.
105474         * lib/iconvme.h: Remove file.
105475         * lib/iconvme.c: Remove file.
105476         * m4/iconvme.m4: Remove file.
105478 2007-03-19  Bruno Haible  <bruno@clisp.org>
105480         * doc/relocatable-maint.texi: Break long shell script line.
105481         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
105483 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
105485         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
105486         handle file_has_acl.
105487         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
105488         * lib/acl.c: Move header inclusions and related macro defns into
105489         lib/acl-internal.h.
105490         (S_ISLNK): Remove defn, since that's now done for us.
105491         (file_has_acl): Move to lib/file-has-acl.c.
105492         Call acl_trivial if available.  This is the crucial part of the fix.
105493         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
105494         shared within the library.  Rewrite a bit, partly to make it compatible
105495         with the GNU coding style.
105496         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
105497         Remove unnecessary double-quotes.
105498         Don't test for acl_to_text; the build will catch that.
105499         Replace acl_entries if it doesn't exist and it is needed.
105500         Check for -lsec and acl_trivial (as used on Solaris 10).
105501         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
105502         lib/file-has-acl.c.
105503         (Depends-on): Add sys_stat, for S_ISLNK.
105505 2007-03-19  Ben Pfaff  <blp@gnu.org>
105507         * doc/gnulib.texi: Fix typos.
105508         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
105510 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
105512         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
105513         If size is zero here, buf must be zero.
105515 2007-03-19  Simon Josefsson  <simon@josefsson.org>
105517         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
105518         <bruno@clisp.org>.
105520 2007-03-18  Bruno Haible  <bruno@clisp.org>
105522         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
105523         Suggested by Eric Blake.
105525 2007-03-18  Ben Pfaff  <blp@gnu.org>
105527         * doc/relocatable.texi: Recommend using as prefix a directory
105528         that does not exist and will never be created.  Based on
105529         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
105530         and others.
105532 2007-03-17  Bruno Haible  <bruno@clisp.org>
105534         * lib/fchownat.c: Include lchown.h.
105536 2007-03-17  Bruno Haible  <bruno@clisp.org>
105538         Fix endless loop when the given allocated size was > INT_MAX.
105539         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
105540         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
105541         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
105542         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
105543         * lib/sprintf.c (sprintf): Likewise.
105545 2007-03-17  Bruno Haible  <bruno@clisp.org>
105547         * tests/test-argp-2.sh (func_compare): Output a context diff.
105549 2007-03-17  Bruno Haible  <bruno@clisp.org>
105551         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
105552         locale's decimal-point character.
105554 2007-03-17  Bruno Haible  <bruno@clisp.org>
105556         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
105557         before comparing it. Needed because on some platforms (e.g. x86) a
105558         'long double' occupies less bytes than sizeof (long double).
105560 2007-03-17  Bruno Haible  <bruno@clisp.org>
105562         * tests/test-crc.c (main): Make printf statements 64-bit clean.
105563         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
105564         * tests/test-getaddrinfo.c (simple): Likewise.
105565         * tests/test-read-file.c (main): Likewise.
105567 2007-03-17  Bruno Haible  <bruno@clisp.org>
105569         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
105571 2007-03-17  Bruno Haible  <bruno@clisp.org>
105573         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
105574         unused variable.
105576 2007-03-17  Bruno Haible  <bruno@clisp.org>
105578         * tests/test-c-strcasecmp.c: Include c-strcase.h.
105579         * tests/test-c-strncasecmp.c: Likewise.
105581 2007-03-17  Bruno Haible  <bruno@clisp.org>
105583         * modules/stdlib (Depends-on): Add unistd.
105584         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
105585         Needed for MacOS X 10.3.
105587 2007-03-17  Bruno Haible  <bruno@clisp.org>
105589         * lib/unistr/u-strdup.h: Include <stdlib.h>.
105591 2007-03-17  Bruno Haible  <bruno@clisp.org>
105593         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
105595 2007-03-17  Bruno Haible  <bruno@clisp.org>
105597         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
105598         to reflect files copied from gnulib (with or without modifications).
105599         Suggested by Jim Meyering.
105601 2007-03-17  Eric Blake  <ebb9@byu.net>
105603         * NEWS: Document stdlib change from 2007-02-18.
105605 2007-03-17  Jim Meyering  <jim@meyering.net>
105607         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
105608         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
105609         someone uses a name containing shell meta-characters.
105610         Reported by Alfred M. Szmidt.
105612         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
105614 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
105616         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
105617         and copy gettext configuration files only if configure.ac contains
105618         a use of AM_GNU_GETTEXT_VERSION.
105620 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
105622         * build-aux/bootstrap (gnulib_name): New variable.
105623         (gnulib_tool_options): Use it.
105625 2007-03-13  Simon Josefsson  <simon@josefsson.org>
105627         * tests/test-des.c: Use new namespace.
105629 2007-03-15  Bruno Haible  <bruno@clisp.org>
105631         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
105632         Reported by James Youngman <jay@gnu.org>.
105634 2007-03-15  Bruno Haible  <bruno@clisp.org>
105636         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
105637         declared prototype. Needed with cc on OSF/1 5.1.
105639 2007-03-15  Bruno Haible  <bruno@clisp.org>
105641         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
105642         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
105643         (struct gl_list_implementation): Add dispose_fn argument to the
105644         'create_empty', 'create' methods.
105645         (struct gl_list_impl_base): Add field 'dispose_fn'.
105646         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
105647         argument.
105648         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
105649         dispose_fn argument.
105650         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
105651         dispose_fn on the dropped values.
105652         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
105653         dispose_fn argument.
105654         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
105655         dropped values.
105656         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
105657         (gl_tree_remove_node): Call dispose_fn on the dropped value.
105658         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
105659         (gl_tree_remove_node): Call dispose_fn on the dropped value.
105660         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
105661         argument.
105662         (gl_tree_list_free): Call dispose_fn on the dropped values.
105663         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
105664         the dropped values.
105665         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
105666         Add dispose_fn argument.
105667         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
105668         Call dispose_fn on the dropped values.
105669         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
105670         Add dispose_fn argument.
105671         (gl_sublist_create): Initialize the 'dispose_fn' field.
105672         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
105673         * tests/test-array_list.c (main): Update.
105674         * tests/test-carray_list.c (main): Update.
105675         * tests/test-avltree_list.c (main): Update.
105676         * tests/test-rbtree_list.c (main): Update.
105677         * tests/test-avltreehash_list.c (main): Update.
105678         * tests/test-rbtreehash_list.c (main): Update.
105679         * tests/test-linked_list.c (main): Update.
105680         * tests/test-linkedhash_list.c (main): Update.
105681         * tests/test-array_oset.c (main): Update.
105683 2007-03-15  Bruno Haible  <bruno@clisp.org>
105685         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
105686         (gl_oset_create_empty): Add dispose_fn argument.
105687         (struct gl_oset_implementation): Add dispose_fn argument to
105688         'create_empty' method.
105689         (struct gl_oset_impl_base): Add dispose_fn field.
105690         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
105691         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
105692         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
105693         values.
105694         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
105695         (gl_tree_oset_free): Call dispose_fn on the dropped values.
105696         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
105697         dropped value.
105698         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
105699         dropped value.
105700         * tests/test-array_oset.c (main): Update.
105701         * tests/test-avltree_oset.c (main): Update.
105702         * tests/test-rbtree_oset.c (main): Update.
105703         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
105705 2007-03-13  Bruno Haible  <bruno@clisp.org>
105707         * tests/test-stdbool.c (i): Update after last patch.
105709 2007-03-12  Bruno Haible  <bruno@clisp.org>
105711         * lib/quotearg.c: Include <wctype.h> early, before the definition of
105712         the iswprint macro. Needed on Solaris 2.5.1.
105714 2007-03-12  Bruno Haible  <bruno@clisp.org>
105716         * tests/test-printf-frexp.c (main): Declare x as volatile.
105718 2007-03-12  Simon Josefsson  <simon@josefsson.org>
105720         * doc/gnulib.texi (Build robot for gnulib): New section.
105722 2007-03-12  Jim Meyering  <jim@meyering.net>
105724         * build-aux/bootstrap: New file.
105725         * build-aux/bootstrap.conf: New file, from coreutils.
105727 2007-03-11  Bruno Haible  <bruno@clisp.org>
105729         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
105731 2007-03-12  Simon Josefsson  <simon@josefsson.org>
105733         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
105734         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
105735         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
105737 2007-03-11  Bruno Haible  <bruno@clisp.org>
105739         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
105740         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
105742 2007-03-11  Bruno Haible  <bruno@clisp.org>
105744         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
105745         formula. Needed for SunPRO C 5.0.
105747 2007-03-11  Bruno Haible  <bruno@clisp.org>
105749         * modules/long-options (Depends-on): Add getopt.
105751 2007-03-11  Bruno Haible  <bruno@clisp.org>
105753         * modules/modechange (Depends-on): Add stdbool.
105755 2007-03-11  Bruno Haible  <bruno@clisp.org>
105757         * modules/i-ring (Depends-on): Add stdbool.
105759 2007-03-11  Bruno Haible  <bruno@clisp.org>
105761         * modules/gc-des (Depends-on): Add stdbool.
105763 2007-03-11  Bruno Haible  <bruno@clisp.org>
105765         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
105767 2007-03-11  Bruno Haible  <bruno@clisp.org>
105769         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
105771 2007-03-11  Bruno Haible  <bruno@clisp.org>
105773         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
105775 2007-03-11  Bruno Haible  <bruno@clisp.org>
105777         * lib/vasnprintf.c (sprintf): Undefine.
105779 2007-03-11  Bruno Haible  <bruno@clisp.org>
105781         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
105782         initializers in SunPRO C and Compaq C compilers.
105784 2007-03-11  Bruno Haible  <bruno@clisp.org>
105786         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
105787         decrementing code ANSI C compliant.
105789 2007-03-11  Bruno Haible  <bruno@clisp.org>
105791         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
105792         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
105794 2007-03-11  Bruno Haible  <bruno@clisp.org>
105796         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
105797         <stdbool.h> substitute doesn't pass.
105799 2007-03-11  Bruno Haible  <bruno@clisp.org>
105801         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
105803 2007-03-11  Bruno Haible  <bruno@clisp.org>
105805         * gnulib-tool (func_create_megatestdir): Create also an autobuild
105806         script, for submission to autobuild.josefsson.org.
105808 2007-03-10  Bruno Haible  <bruno@clisp.org>
105810         * modules/canonicalize-lgpl-tests: New file.
105811         * tests/test-canonicalize-lgpl.sh: New file.
105812         * tests/test-canonicalize-lgpl.c: New file.
105814         * modules/c-strcase-tests: New file.
105815         * tests/test-c-strcase.sh: New file.
105816         * tests/test-c-strcasecmp.c: New file.
105817         * tests/test-c-strncasecmp.c: New file.
105819         * modules/atexit-tests: New file.
105820         * tests/test-atexit.sh: New file.
105821         * tests/test-atexit.c: New file.
105823 2007-03-10  Bruno Haible  <bruno@clisp.org>
105825         * tests/test-binary-io.sh: Use temporary filenames that are not so
105826         likely to clash with those of other tests (in a parallel make).
105827         * tests/test-binary-io.c: Likewise.
105829 2007-03-10  Bruno Haible  <bruno@clisp.org>
105831         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
105832         fallback; use #error instead.
105833         Suggested by Simon Josefsson.
105835 2007-03-10  Bruno Haible  <bruno@clisp.org>
105837         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
105838         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
105839         first and the last.
105841 2007-03-10  Bruno Haible  <bruno@clisp.org>
105843         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
105845 2007-03-10  Bruno Haible  <bruno@clisp.org>
105847         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
105848         "make distcheck".
105849         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
105850         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
105851         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
105853 2007-03-10  Bruno Haible  <bruno@clisp.org>
105855         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
105856         variable.
105857         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
105858         variable.
105860 2007-03-09  Eric Blake  <ebb9@byu.net>
105861         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
105863         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
105864         types are not being provided by gnulib.
105865         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
105866         types are supported.
105868 2007-03-10  Bruno Haible  <bruno@clisp.org>
105870         * lib/stdio_.h (__attribute__): New macro.
105871         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
105872         vsprintf): Specify __attribute__ __format__ for GCC.
105873         Suggested by Eric Blake.
105875 2007-03-09  Bruno Haible  <bruno@clisp.org>
105877         * modules/printf-posix-tests: New file.
105878         * tests/test-printf-posix.sh: New file.
105879         * tests/test-printf-posix.c: New file.
105881         * modules/printf-posix: New file.
105882         * lib/printf.c: New file.
105883         * m4/printf-posix-rpl.m4: New file.
105884         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
105885         REPLACE_PRINTF.
105886         * lib/stdio_.h (printf): New declaration.
105887         (format, __format__, ____printf____, ____scanf____, ____strftime____,
105888         ____strfmon____): New macros.
105889         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
105890         REPLACE_PRINTF.
105892 2007-03-09  Bruno Haible  <bruno@clisp.org>
105894         * tests/test-vasnprintf-posix2.sh: New file.
105895         * tests/test-vasnprintf-posix2.c: New file.
105896         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
105897         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
105898         (Makefile.am): Activate test-vasnprintf-posix2.sh.
105900         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
105901         a locale dependent decimal point, rather than always '.'.
105903 2007-03-09  Eric Blake  <ebb9@byu.net>
105905         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
105906         spite of platforms like Tandem/NSK that define it to -1.
105908 2007-03-08  Bruno Haible  <bruno@clisp.org>
105910         * modules/vprintf-posix-tests: New file.
105911         * tests/test-vprintf-posix.sh: New file.
105912         * tests/test-vprintf-posix.c: New file.
105913         * tests/test-printf-posix.h: New file.
105915         * modules/vprintf-posix: New file.
105916         * lib/vprintf.c: New file.
105917         * m4/vprintf-posix.m4: New file.
105918         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
105919         REPLACE_VPRINTF.
105920         * lib/stdio_.h (vprintf): New declaration.
105921         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
105922         REPLACE_VPRINTF.
105924 2007-03-08  Bruno Haible  <bruno@clisp.org>
105926         * modules/fprintf-posix-tests: New file.
105927         * tests/test-fprintf-posix.sh: New file.
105928         * tests/test-fprintf-posix.c: New file.
105930         * modules/fprintf-posix: New file.
105931         * lib/fprintf.c: New file.
105932         * m4/fprintf-posix.m4: New file.
105933         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
105934         REPLACE_FPRINTF.
105935         * lib/stdio_.h (fprintf): New declaration.
105936         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
105937         REPLACE_FPRINTF.
105939 2007-03-08  Bruno Haible  <bruno@clisp.org>
105941         * modules/vfprintf-posix-tests: New file.
105942         * tests/test-vfprintf-posix.sh: New file.
105943         * tests/test-vfprintf-posix.c: New file.
105944         * tests/test-fprintf-posix.h: New file.
105945         * tests/test-fprintf-posix.out: New file.
105947         * modules/vfprintf-posix: New file.
105948         * lib/vfprintf.c: New file.
105949         * m4/vfprintf-posix.m4: New file.
105950         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
105951         REPLACE_VFPRINTF.
105952         * lib/stdio_.h (vfprintf): New declaration.
105953         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
105954         REPLACE_VFPRINTF.
105956 2007-03-08  Bruno Haible  <bruno@clisp.org>
105958         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
105960 2007-03-08  Bruno Haible  <bruno@clisp.org>
105962         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
105963         instead of 'expr' invocations.
105964         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
105965         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
105966         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
105967         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
105968         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
105969         Suggested by Paul Eggert.
105971 2007-03-08  Bruno Haible  <bruno@clisp.org>
105973         * modules/fseterr-tests: New file.
105974         * tests/test-fseterr.c: New file.
105976         * modules/fseterr: New file.
105977         * lib/fseterr.h: New file.
105978         * lib/fseterr.c: New file.
105980 2007-03-08  Bruno Haible  <bruno@clisp.org>
105982         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
105983         * lib/getopt_.h: Likewise.
105984         * lib/mbswidth.h: Likewise.
105985         * lib/setenv.h: Likewise.
105986         * lib/vasnprintf.h: Likewise.
105987         * lib/vasprintf.h: Likewise.
105988         * lib/verror.h: Likewise.
105989         * lib/xsetenv.h: Likewise.
105990         * lib/xvasprintf.h: Likewise.
105992 2007-03-08  Jim Meyering  <jim@meyering.net>
105994         * users.txt: Add parted.
105996         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
105998 2007-03-07  Bruno Haible  <bruno@clisp.org>
106000         * m4/printf.m4: Make the shell script snippets copy&pastable.
106002 2007-03-02  Bruno Haible  <bruno@clisp.org>
106004         * lib/netinet_in_.h: New file.
106005         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
106006         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
106007         * modules/netinet_in (Files): Add lib/netinet_in_.h.
106008         (Depends-on): Add absolute-header.
106009         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
106010         into netinet/in.h.
106012 2007-03-03  Bruno Haible  <bruno@clisp.org>
106014         * lib/sys_select_.h: New file.
106015         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
106016         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
106017         * modules/sys_select (Files): Add lib/sys_select_.h.
106018         (Depends-on): Add absolute-header.
106019         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
106020         into sys/select.h.
106022 2007-03-02  Bruno Haible  <bruno@clisp.org>
106024         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
106025         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
106026         values.
106027         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
106028         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
106029         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
106030         * modules/sys_socket (Depends-on): Add absolute-header.
106031         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
106032         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
106033         (Include): Remove requirement of inclusion of <sys/types.h>.
106035 2007-03-02  Bruno Haible  <bruno@clisp.org>
106037         * lib/byteswap_.h (bswap_32): Fix formula.
106039 2007-03-06  Bruno Haible  <bruno@clisp.org>
106041         * modules/sprintf-posix-tests: New file.
106042         * tests/test-sprintf-posix.c: New file.
106044         * modules/sprintf-posix: New file.
106045         * lib/sprintf.c: New file.
106046         * m4/sprintf-posix.m4: New file.
106047         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
106048         REPLACE_SPRINTF.
106049         * lib/stdio_.h (sprintf): New declaration.
106050         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
106051         REPLACE_SPRINTF.
106053 2007-03-06  Bruno Haible  <bruno@clisp.org>
106055         * modules/vsprintf-posix-tests: New file.
106056         * tests/test-vsprintf-posix.c: New file.
106057         * tests/test-sprintf-posix.h: New file.
106059         * modules/vsprintf-posix: New file.
106060         * lib/vsprintf.c: New file.
106061         * m4/vsprintf-posix.m4: New file.
106062         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
106063         REPLACE_VSPRINTF.
106064         * lib/stdio_.h (vsprintf): New declaration.
106065         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
106066         REPLACE_VSPRINTF.
106068 2007-03-06  Bruno Haible  <bruno@clisp.org>
106070         * modules/vsnprintf (Depend-on): Remove minmax.
106072 2007-03-06  Bruno Haible  <bruno@clisp.org>
106074         * modules/snprintf-posix-tests: New file.
106075         * tests/test-snprintf-posix.c: New file.
106077         * modules/snprintf-posix: New file.
106078         * m4/snprintf-posix.m4: New file.
106079         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
106080         gl_FUNC_SNPRINTF.
106081         (gl_FUNC_SNPRINTF): Invoke it.
106082         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
106083         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
106084         is set.
106085         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
106087 2007-03-06  Bruno Haible  <bruno@clisp.org>
106089         * modules/vsnprintf-posix-tests: New file.
106090         * tests/test-vsnprintf-posix.c: New file.
106091         * tests/test-snprintf-posix.h: New file.
106093         * modules/vsnprintf-posix: New file.
106094         * m4/vsnprintf-posix.m4: New file.
106095         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
106096         gl_FUNC_VSNPRINTF.
106097         (gl_FUNC_VSNPRINTF): Invoke it.
106098         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
106099         * lib/stdio_.h (vsnprintf): Define as a replacement if
106100         REPLACE_VSNPRINTF is set.
106101         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
106103 2007-03-06  Bruno Haible  <bruno@clisp.org>
106105         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
106106         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
106108 2007-03-06  Bruno Haible  <bruno@clisp.org>
106110         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
106111         (asinl): Declare also if HAVE_DECL_ASINL is set.
106112         (atanl): Declare also if HAVE_DECL_ATANL is set.
106113         (ceill): Declare also if HAVE_DECL_CEILL is set.
106114         (cosl): Declare also if HAVE_DECL_COSL is set.
106115         (expl): Declare also if HAVE_DECL_EXPL is set.
106116         (floorl): Declare also if HAVE_DECL_FLOORL is set.
106117         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
106118         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
106119         (logl): Declare also if HAVE_DECL_LOGL is set.
106120         (sinl): Declare also if HAVE_DECL_SINL is set.
106121         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
106122         (tanl): Declare also if HAVE_DECL_TANL is set.
106123         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
106124         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
106125         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
106126         declaration of frexpl, ldexpl.
106127         * modules/printf-frexpl (Depends-on): Add math.
106128         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
106130 2007-03-05  Bruno Haible  <bruno@clisp.org>
106132         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
106133         frexpl and ldexpl are declared.
106134         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
106136 2007-03-05  Bruno Haible  <bruno@clisp.org>
106138         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
106139         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
106141 2007-03-05  Bruno Haible  <bruno@clisp.org>
106143         * lib/stdio_.h: Include <stddef.h>.
106145 2007-03-05  Bruno Haible  <bruno@clisp.org>
106147         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
106149 2007-03-05  Bruno Haible  <bruno@clisp.org>
106151         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
106152         NetBSD 4, from Ralf Wildenhues.
106154 2007-03-04  Bruno Haible  <bruno@clisp.org>
106156         * lib/vasprintf.h: Update #if logic for the case when the functions
106157         exist but are overridden.
106159 2007-03-04  Bruno Haible  <bruno@clisp.org>
106161         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
106162         implementations: glibc-2.4 and MacOS X 10.3.
106163         * tests/test-vasnprintf-posix.c (test_function): Test also the case
106164         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
106165         * tests/test-vasprintf-posix.c (test_function): Likewise.
106167 2007-03-04  Bruno Haible  <bruno@clisp.org>
106169         * modules/vasprintf-posix-tests: New file.
106170         * tests/test-vasprintf-posix.c: New file.
106172         * modules/vasprintf-posix: New file.
106173         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
106174         defined.
106175         * m4/vasprintf-posix.m4: New file.
106176         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
106177         gl_FUNC_VASPRINTF.
106178         (gl_FUNC_VASPRINTF): Invoke it.
106179         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
106180         here.
106181         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
106183 2007-03-04  Bruno Haible  <bruno@clisp.org>
106185         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
106186         REPLACE_GETTIMEOFDAY.
106187         * modules/sys_time (Makefile.am): Likewise.
106188         * m4/sys_time_h.m4: Likewise.
106189         * m4/gettimeofday.m4: Likewise.
106191 2007-03-04  Bruno Haible  <bruno@clisp.org>
106193         * modules/vasnprintf-posix-tests: New file.
106194         * tests/test-vasnprintf-posix.c: New file.
106196         * modules/vasnprintf-posix: New file.
106197         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
106198         printf-frexpl.h.
106199         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
106200         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
106201         REPLACE_VASNPRINTF is defined.
106202         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
106203         gl_FUNC_VASNPRINTF.
106204         (gl_FUNC_VASNPRINTF): Invoke it.
106205         * m4/vasnprintf-posix.m4: New file.
106206         * m4/printf.m4: New file.
106208 2007-03-04  Bruno Haible  <bruno@clisp.org>
106210         Compile progreloc.c only if --enable-relocatable is specified.
106211         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
106212         if --enable-relocatable was specified.
106213         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
106214         lib_SOURCES.
106216 2007-03-04  Jim Meyering  <jim@meyering.net>
106218         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
106219         Use it consistently, rather than enumerating errno constants.
106221 2007-03-04  Bruno Haible  <bruno@clisp.org>
106223         * modules/xvasprintf-tests: New file.
106224         * tests/test-xvasprintf.c: New file.
106226         * modules/vasprintf-tests: New file.
106227         * tests/test-vasprintf.c: New file.
106229         * modules/vasnprintf-tests: New file.
106230         * tests/test-vasnprintf.c: New file.
106232         * modules/vsnprintf-tests: New file.
106233         * tests/test-vsnprintf.c: New file.
106235         * modules/snprintf-tests: New file.
106236         * tests/test-snprintf.c: New file.
106238 2007-03-04  Bruno Haible  <bruno@clisp.org>
106240         Compile relocatable.c only if --enable-relocatable is specified.
106241         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
106242         gl_RELOCATABLE_LIBRARY.
106243         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
106244         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
106245         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
106246         gl_RELOCATABLE_LIBRARY.
106247         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
106248         (Makefile.am): Remove lib_SOURCES.
106249         * modules/relocatable-lib-lgpl (configure.ac): Invoke
106250         gl_RELOCATABLE_LIBRARY.
106251         (Makefile.am): Remove lib_SOURCES.
106252         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
106253         always.
106254         * modules/relocatable-prog-wrapper (configure.ac): Invoke
106255         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
106257 2007-03-04  Bruno Haible  <bruno@clisp.org>
106259         * modules/argmatch-tests: New file.
106260         * tests/test-argmatch.c: New file.
106262         * tests/test-allocsa.c (main): Halve the number of loop runs.
106264         * modules/alloca-opt-tests: New file.
106265         * tests/test-alloca-opt.c: New file.
106267 2007-03-04  Jim Meyering  <jim@meyering.net>
106269         Work around difference between Linux ACLs and Solaris 10 ZFS.
106270         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
106271         for EINVAL.
106273 2007-03-03  Bruno Haible  <bruno@clisp.org>
106275         * modules/relocatable-prog (Depends-on): Add back progreloc's
106276         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
106278 2007-03-03  Bruno Haible  <bruno@clisp.org>
106280         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
106281         * modules/relocatable-lib: New file.
106283 2007-03-03  Bruno Haible  <bruno@clisp.org>
106285         * modules/relocatable-prog: Renamed from modules/relocatable.
106286         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
106288 2007-03-03  Bruno Haible  <bruno@clisp.org>
106290         * modules/relocatable-script (Files): Add doc/relocatable.texi,
106291         m4/relocatable-lib.m4.
106292         (Depends-on): Remove 'relocatable'.
106293         (configure.ac): Add gl_RELOCATABLE_NOP.
106295 2007-03-03  Bruno Haible  <bruno@clisp.org>
106297         * modules/relocatable-prog-wrapper: New file.
106298         * modules/relocatable (Depends-on): Add it. Remove all other
106299         dependencies except progname.
106300         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
106302         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
106303         (gl_FUNC_STRERROR): Nop.
106304         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
106306         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
106307         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
106309         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
106310         (gl_FUNC_READLINK): Update.
106312         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
106314 2007-03-03  Bruno Haible  <bruno@clisp.org>
106316         * lib/xreadlink.c: Include <unistd.h> unconditionally.
106317         * modules/xreadlink (Depends-on): Add unistd.
106318         * modules/xreadlink-with-size (Depends-on): Likewise.
106320 2007-03-03  Bruno Haible  <bruno@clisp.org>
106322         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
106323         extracted from gt_FUNC_SETENV.
106324         (gt_FUNC_SETENV): Remove macro.
106325         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
106326         remove gt_FUNC_SETENV.
106328 2007-03-03  Bruno Haible  <bruno@clisp.org>
106330         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
106331         ENABLE_RELOCATABLE here.
106332         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
106334 2007-03-03  Bruno Haible  <bruno@clisp.org>
106336         * modules/rbtreehash-list-tests (Depends-on): Add progname.
106337         * tests/test-rbtreehash_list.c: Include progname.h.
106338         (main): Call set_program_name.
106340         * modules/rbtree-oset-tests (Depends-on): Add progname.
106341         * tests/test-rbtree_oset.c: Include progname.h.
106342         (main): Call set_program_name.
106344         * modules/rbtree-list-tests (Depends-on): Add progname.
106345         * tests/test-rbtree_list.c: Include progname.h.
106346         (main): Call set_program_name.
106348         * modules/linked-list-tests (Depends-on): Add progname.
106349         * tests/test-linked_list.c: Include progname.h.
106350         (main): Call set_program_name.
106352 2007-03-03  Bruno Haible  <bruno@clisp.org>
106354         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
106355         All uses of __restrict changed to _Restrict_.
106356         * lib/glob_.h (__restrict): Remove macro.
106358 2007-03-02  Bruno Haible  <bruno@clisp.org>
106360         * modules/gettext (configure.ac): Require gettext infrastructure
106361         from version 0.16.1.
106363 2007-03-02  Bruno Haible  <bruno@clisp.org>
106365         * modules/linkedhash-list-tests (Depends-on): Add progname.
106366         * tests/test-linkedhash_list.c: Include progname.h.
106367         (main): Call set_program_name.
106369         * modules/carray-list-tests (Depends-on): Add progname.
106370         * tests/test-carray_list.c: Include progname.h.
106371         (main): Call set_program_name.
106373         * modules/avltreehash-list-tests (Depends-on): Add progname.
106374         * tests/test-avltreehash_list.c: Include progname.h.
106375         (main): Call set_program_name.
106377         * modules/avltree-oset-tests (Depends-on): Add progname.
106378         * tests/test-avltree_oset.c: Include progname.h.
106379         (main): Call set_program_name.
106381         * modules/avltree-list-tests (Depends-on): Add progname.
106382         * tests/test-avltree_list.c: Include progname.h.
106383         (main): Call set_program_name.
106385         * modules/array-oset-tests (Depends-on): Add progname.
106386         * tests/test-array_oset.c: Include progname.h.
106387         (main): Call set_program_name.
106389         * modules/array-list-tests (Depends-on): Add progname.
106390         * tests/test-array_list.c: Include progname.h.
106391         (main): Call set_program_name.
106393         * modules/argp-tests (Depends-on): Add progname.
106394         * tests/test-argp.c: Include argp.h first. Include progname.h.
106395         (main): Call set_program_name.
106397 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
106399         * doc/gnulib-tool.texi (Initial import): Reword description of
106400         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
106401         limited effect even if defined after the first system include.
106403 2007-03-01  Bruno Haible  <bruno@clisp.org>
106405         * build-aux/config.libpath: Update to libtool-1.5.22.
106406         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
106408 2007-03-01  Bruno Haible  <bruno@clisp.org>
106410         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
106411         foo_CFLAGS.
106412         Reported by Ralf Wildenhues.
106414 2007-03-01  Bruno Haible  <bruno@clisp.org>
106416         * build-aux/install-reloc: Remove object files left over by some
106417         compilers.
106418         Reported by Ralf Wildenhues.
106420 2007-03-01  Bruno Haible  <bruno@clisp.org>
106422         * build-aux/install-reloc: Break long lines.
106424 2007-03-01  Bruno Haible  <bruno@clisp.org>
106426         * doc/relocatable.texi: Document that it may not work on OpenBSD.
106427         Reported by Ralf Wildenhues.
106429 2007-03-01  Bruno Haible  <bruno@clisp.org>
106431         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
106432         include ordering constraints.
106434 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
106436         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
106437         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
106438         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
106439         as another example.
106440         * lib/time_.h: Fix misspelling.
106441         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
106442         Require gl_HEADER_TIME_H_DEFAULTS.
106443         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
106444         * m4/time_r.m4 (gl_TIME_R): Likewise.
106445         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
106447 2007-03-01  Bruno Haible  <bruno@clisp.org>
106449         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
106450         * m4/utimens.m4 (gl_UTIMENS): Likewise.
106452 2007-03-01  Jim Meyering  <jim@meyering.net>
106454         * modules/xreadlink (Maintainer): Add my name.
106455         * modules/xreadlink-with-size (Depends-on): Alphabetize.
106457 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
106458             Bruno Haible  <bruno@clisp.org>
106460         * build-aux/install-reloc: Compile also c-ctype.c.
106461         * build-aux/relocatable.sh.in: New file.
106462         * doc/relocatable.texi: New file.
106463         * doc/relocatable-maint.texi: New file.
106464         * doc/gnulib.texi: Include relocatable-maint.texi.
106465         * lib/progreloc.c: Include unistd.h unconditionally.
106466         * lib/relocwrapper.c: Include unistd.h unconditionally.
106467         Include c-ctype.h.
106468         (add_dotbin): Use c_tolower.
106469         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
106470         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
106471         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
106472         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
106473         to m4/relocatable-lib.m4.
106474         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
106475         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
106476         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
106477         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
106478         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
106479         * modules/relocatable: New file.
106480         * modules/relocatable-lib: New file.
106481         * modules/relocatable-script: New file.
106483 2007-02-28  Bruno Haible  <bruno@clisp.org>
106485         Import --enable-relocatable infrastructure.
106486         * build-aux/config.libpath: New file, from GNU gettext.
106487         * build-aux/install-reloc: New file, from GNU gettext.
106488         * build-aux/reloc-ldflags: New file, from GNU gettext.
106489         * lib/relocatable.h: New file, from GNU gettext.
106490         * lib/relocatable.c: New file, from GNU gettext.
106491         * lib/relocwrapper.c: New file, from GNU gettext.
106492         * m4/relocatable.m4: New file, from GNU gettext.
106494 2007-02-28  Bruno Haible  <bruno@clisp.org>
106496         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
106498         * modules/xreadlink: New file, from GNU gettext with modifications.
106499         * lib/xreadlink.c: New file, from GNU gettext.
106500         * lib/xreadlink.h: Add comments.
106501         (xreadlink): New declaration.
106503         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
106504         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
106505         lib/xreadlink-with-size.c.
106506         (configure.ac): Remove gl_XREADLINK invocation.
106507         (Makefile.am): Augment lib_SOURCES.
106508         * m4/xreadlink.m4: Remove file.
106509         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
106510         (xreadlink_with_size): Renamed from xreadink.
106511         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
106512         * modules/canonicalize (Depends-on): Replace xreadlink with
106513         xreadlink-with-size.
106514         * lib/canonicalize.c (canonicalize_filename_mode): Update.
106516 2007-02-25  Jim Meyering  <jim@meyering.net>
106518         * build-aux/announce-gen: When complaining about excess arguments,
106519         list them.
106521 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
106523         * README: Document signed integer overflow situation more
106524         accurately.
106526 2007-02-25  Bruno Haible  <bruno@clisp.org>
106528         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
106529         'a' or 'A' conversion.
106531 2007-02-25  Bruno Haible  <bruno@clisp.org>
106533         * modules/filename: Renamed from modules/pathname.
106534         (Files): Replace lib/pathname.h with lib/filename.h. Replace
106535         lib/concatpath.c with lib/concat-filename.c.
106536         (Makefile.am): Update.
106537         (Include): Replace pathname.h with filename.h.
106538         * lib/filename.h: Renamed from lib/pathname.h.
106539         (concatenated_filename): Renamed from concatenated_pathname.
106540         * lib/concat-filename.c: Renamed from lib/concatpath.c.
106541         (concatenated_filename): Renamed from concatenated_pathname.
106542         * lib/findprog.c: Include filename.h instead of pathname.h.
106543         (find_in_path): Update.
106544         * lib/javacomp.c: Include filename.h instead of pathname.h.
106545         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
106546         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
106547         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
106548         is_oldgcj_14_13_usable, is_javac_usable): Update.
106549         * lib/javaexec.c: Include filename.h instead of pathname.h.
106550         (execute_java_class): Update.
106551         * modules/findprog: Update.
106552         * modules/javacomp: Update.
106553         * modules/javaexec: Update.
106554         * MODULES.html.sh (File system functions): Add 'filename', remove
106555         'pathname'.
106557 2007-02-25  Bruno Haible  <bruno@clisp.org>
106559         * modules/printf-frexpl-tests: New file.
106560         * tests/test-printf-frexpl.c: New file.
106562         * modules/printf-frexpl: New file.
106563         * lib/printf-frexpl.h: New file.
106564         * lib/printf-frexpl.c: New file.
106565         * m4/printf-frexpl.m4: New file.
106567 2007-02-25  Bruno Haible  <bruno@clisp.org>
106569         * modules/printf-frexp-tests: New file.
106570         * tests/test-printf-frexp.c: New file.
106572         * modules/printf-frexp: New file.
106573         * lib/printf-frexp.h: New file.
106574         * lib/printf-frexp.c: New file.
106575         * m4/printf-frexp.m4: New file.
106577 2007-02-25  Bruno Haible  <bruno@clisp.org>
106579         Assume automake >= 1.10 for the tests.
106580         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
106581         * modules/arctwo-tests: Likewise.
106582         * modules/argp-tests: Likewise.
106583         * modules/avltree-list-tests: Likewise.
106584         * modules/avltree-oset-tests: Likewise.
106585         * modules/avltreehash-list-tests: Likewise.
106586         * modules/carray-list-tests: Likewise.
106587         * modules/crc-tests: Likewise.
106588         * modules/des-tests: Likewise.
106589         * modules/gc-arcfour-tests: Likewise.
106590         * modules/gc-arctwo-tests: Likewise.
106591         * modules/gc-des-tests: Likewise.
106592         * modules/gc-hmac-md5-tests: Likewise.
106593         * modules/gc-hmac-sha1-tests: Likewise.
106594         * modules/gc-md2-tests: Likewise.
106595         * modules/gc-md4-tests: Likewise.
106596         * modules/gc-md5-tests: Likewise.
106597         * modules/gc-pbkdf2-sha1-tests: Likewise.
106598         * modules/gc-rijndael-tests: Likewise.
106599         * modules/gc-sha1-tests: Likewise.
106600         * modules/gc-tests: Likewise.
106601         * modules/getaddrinfo-tests: Likewise.
106602         * modules/hmac-md5-tests: Likewise.
106603         * modules/hmac-sha1-tests: Likewise.
106604         * modules/linked-list-tests: Likewise.
106605         * modules/linkedhash-list-tests: Likewise.
106606         * modules/lock-tests: Likewise.
106607         * modules/md2-tests: Likewise.
106608         * modules/md4-tests: Likewise.
106609         * modules/md5-tests: Likewise.
106610         * modules/rbtree-list-tests: Likewise.
106611         * modules/rbtree-oset-tests: Likewise.
106612         * modules/rbtreehash-list-tests: Likewise.
106613         * modules/read-file-tests: Likewise.
106614         * modules/rijndael-tests: Likewise.
106615         * modules/stdint-tests: Likewise.
106616         * modules/tls-tests: Likewise.
106618 2007-02-24  Bruno Haible  <bruno@clisp.org>
106620         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
106621         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
106622         function; instead check whether isnan with a double argument links.
106623         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
106624         function; instead check whether isnan with a 'long double' argument
106625         links.
106626         Reported by Eric Blake <ebb9@byu.net>.
106628 2007-02-24  Bruno Haible  <bruno@clisp.org>
106630         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
106631         defined.
106632         * lib/isnanl.c: Remove all code. Just include isnan.c.
106633         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
106635 2007-02-25  Jim Meyering  <jim@meyering.net>
106637         Avoid conflicting types for 'unsetenv' on FreeBSD.
106638         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
106639         conflicting with FreeBSD's (5.0 and 6.1) function declaration
106640         in stdlib.h.
106642 2007-02-24  Bruno Haible  <bruno@clisp.org>
106644         * modules/isnanl-nolibm-tests: New file.
106645         * tests/test-isnanl.c: New file.
106647         * modules/isnanl-nolibm: New file.
106648         * lib/isnanl.h: New file.
106649         * lib/isnanl.c: New file.
106650         * m4/isnanl.m4: New file.
106652 2007-02-24  Bruno Haible  <bruno@clisp.org>
106654         * modules/isnan-nolibm-tests: New file.
106655         * tests/test-isnan.c: New file.
106657         * modules/isnan-nolibm: New file.
106658         * lib/isnan.h: New file.
106659         * lib/isnan.c: New file.
106660         * m4/isnan.m4: New file.
106662 2007-02-24  Bruno Haible  <bruno@clisp.org>
106664         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
106665         assume that an exponent fits in 20 bits.
106667 2007-02-24  Jim Meyering  <jim@meyering.net>
106669         * m4/regex.m4: Update the description of the configure-time option,
106670         --without-included-regex, to state accurately what the defaults are,
106671         and perhaps to give people an idea why using this option is risky.
106673 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
106675         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
106676         loops on small arguments.  This attempts to avoid the problem
106677         Bruno Haible reported for AIX 4.3.2 in
106678         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
106680 2007-02-23  Bruno Haible  <bruno@clisp.org>
106682         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
106683         Needed for help2man.
106685 2007-02-23  Karl Berry  <karl@gnu.org>
106687         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
106688         exists, foo.h should be cvs-ignored, not committed.
106690 2007-02-23  Eric Blake  <ebb9@byu.net>
106692         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
106693         * lib/stat-time.h (includes): Likewise.
106694         * lib/utimecmp.c (includes): Likewise.
106695         * lib/utimens.h (includes): Likewise.
106696         * lib/getdate.y (includes): Also include "timespec.h" for use
106697         internal to the module.
106698         * modules/utimens (Depends-on): Revert yesterday's patch.
106699         * modules/nanosleep (Depends-on): Add missing dependency.
106701 2007-02-22  Bruno Haible  <bruno@clisp.org>
106703         * lib/glob.c: Don't include getlogin_r.h.
106705 2007-02-22  Jim Meyering  <jim@meyering.net>
106707         * modules/utimens (Depends-on): Add timespec, required for
106708         utimens.h's inclusion of timespec.h.
106710 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
106712         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
106713         long unreadable paths in GNU/Linux.  Problem reported by Andreas
106714         Schwab in
106715         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
106716         I'll try to think of a better way to fix the Solaris problem.
106718         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
106719         like glibc; on Solaris 10, it fails with errno == EINVAL.
106720         POSIX says the behavior is unspecified if the first argument is NULL,
106721         so play it safe and never pass NULL to the system getcwd.
106723 2007-02-21  Jim Meyering  <jim@meyering.net>
106725         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
106726         of gettimeofday.  It would conflict with the one now always
106727         provided via sys_time_.h.  Reported by Matthew Woehlke, as
106728         an IRIX 6.5 build failure.
106730 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
106732         Minor fixups to port to Solaris 10 with Sun C 5.8.
106733         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
106734         * modules/getcwd (Depends-on): Add dirfd.
106735         * lib/putenv.c (putenv): #undef it.
106736         (rpl_putenv): New decl.
106737         (malloc, free): Include <stdlib.h> rather than prototyping separately.
106739 2007-02-20  Bruno Haible  <bruno@clisp.org>
106741         * modules/stdio-tests: New file.
106742         * tests/test-stdio.c: New file.
106744         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
106745         (Depends-on): Add stdio.
106746         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
106747         (Include): Use <stdio.h> instead of vsnprintf.h.
106748         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
106749         HAVE_DECL_VSNPRINTF.
106750         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
106752         * modules/snprintf (Files): Remove lib/snprintf.h.
106753         (Depends-on): Add stdio.
106754         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
106755         (Include): Use <stdio.h> instead of snprintf.h.
106756         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
106757         HAVE_DECL_SNPRINTF.
106758         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
106759         * lib/getaddrinfo.c: Likewise.
106761         * modules/stdio: New file.
106762         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
106763         * lib/snprintf.h: Remove file.
106764         * lib/vsnprintf.h: Remove file.
106765         * lib/.cppi-disable: Remove snprintf.h.
106766         * m4/stdio_h.m4: New file.
106767         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
106769 2007-02-20  Jim Meyering  <jim@meyering.net>
106771         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
106772         used by e.g., mingw.  From Bruno Haible.
106774 2007-02-19  Bruno Haible  <bruno@clisp.org>
106776         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
106777         warnings.
106778         Reported by Ben Pfaff <blp@cs.stanford.edu>.
106780 2007-02-19  Bruno Haible  <bruno@clisp.org>
106782         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
106783         from mingw users.
106785 2007-02-19  Bruno Haible  <bruno@clisp.org>
106787         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
106788         warnings.
106789         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
106791 2007-02-19  Jim Meyering  <jim@meyering.net>
106793         Don't use FD after a successful "fdopendir (fd)".
106794         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
106795         Reset it by calling dirfd on the just-obtained DIR*.
106797         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
106798         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
106800 2007-02-18  Bruno Haible  <bruno@clisp.org>
106802         * lib/readlink.c: Include <unistd.h>.
106803         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
106804         HAVE_READLINK.
106805         * modules/readlink (Depends-on): Add unistd.
106806         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106807         (Include): Add <unistd.h>.
106809         * lib/getlogin_r.h: Remove file.
106810         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
106811         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
106812         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
106813         HAVE_DECL_GETLOGIN_R.
106814         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
106815         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106816         (Include): Use <unistd.h> instead of getlogin_r.h.
106818         * lib/getcwd.h: Remove file.
106819         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
106820         * lib/xgetcwd.c: Likewise.
106821         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
106822         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
106823         * modules/getcwd (Files): Remove lib/getcwd.h.
106824         (Depends-on): Add unistd.
106825         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106826         (Include): Use <unistd.h> instad of getcwd.h.
106828         * lib/ftruncate.c: Include <unistd.h> first.
106829         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
106830         Set HAVE_FTRUNCATE.
106831         * modules/ftruncate (Depends-on): Add unistd.
106832         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106834         * lib/fchdir.c: Include <unistd.h> first.
106835         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
106836         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
106837         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
106838         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106839         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
106841         * lib/dup2.c: Include <unistd.h> first.
106842         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
106843         HAVE_DUP2.
106844         * modules/dup2 (Depends-on): Add unistd.
106845         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106847         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
106848         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
106849         REPLACE_CHOWN. Don't define chown as a macro here.
106850         * modules/chown (Depends-on): Add unistd.
106851         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
106853         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
106854         Add definition for GL_LINK_WARNING.
106855         (chown, dup2): New declarations.
106856         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
106857         link warning.
106858         (ftruncate): New declaration.
106859         (getcwd): New declaration, taken from old getcwd.h.
106860         (getlogin_r): New declaration, taken from old getlogin_r.h.
106861         (readlink): New declaration.
106862         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
106863         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
106864         (gl_PREREQ_UNISTD): Remove macro.
106865         (gl_UNISTD_MODULE_INDICATOR): New macro.
106866         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
106867         many new variables. Don't set UNISTD_H.
106868         * modules/unistd (Description): Change.
106869         (Depends-on): Add link-warning.
106870         (configure.ac): Update.
106871         (Makefile.am): Create unistd.h always. Substitute many new variables
106872         into it.
106874 2007-02-18  Bruno Haible  <bruno@clisp.org>
106876         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
106877         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
106878         HAVE_GETSUBOPT.
106879         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
106880         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
106881         * lib/getsubopt.h: Remove file.
106882         * modules/getsubopt (Files): Remove lib/getsubopt.h.
106883         (Depends-on): Add stdlib.
106884         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
106885         (Includes): Use <stdlib.h> instead of getsubopt.h.
106886         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
106887         Set HAVE_GETSUBOPT.
106888         * lib/getsubopt.c: Don't include getsubopt.h.
106890 2007-02-18  Bruno Haible  <bruno@clisp.org>
106892         * modules/fchdir (Depends-on): Add dup2.
106894 2007-02-18  Bruno Haible  <bruno@clisp.org>
106896         * lib/stdlib_.h: Handle glibc's special invocation convention
106897         specially.
106899 2007-02-18  Bruno Haible  <bruno@clisp.org>
106901         * modules/stdlib-tests: New file.
106902         * tests/test-stdlib.c: New file.
106904         * modules/mkstemp (Files): Remove lib/mkstemp.h.
106905         (Depends-on): Add stdlib.
106906         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
106907         (Includes): Use <stdlib.h> instead of mkstemp.h.
106908         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
106909         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
106910         * lib/mkstemp.c: Don't include mkstemp.h.
106911         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
106912         * lib/stdlib--.h: Don't include mkstemp.h.
106914         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
106915         (Depends-on): Add stdlib.
106916         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
106917         (Includes): Use <stdlib.h> instead of mkdtemp.h.
106918         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
106919         HAVE_MKDTEMP.
106920         * lib/mkdtemp.c: Don't include mkdtemp.h.
106921         * lib/clean-temp.c: Don't include mkdtemp.h.
106923         * modules/exit (Files): Remove lib/exit.h.
106924         (Depends-on): Add stdlib.
106925         (Makefile.am): Remove lib_SOURCES.
106926         (Include): Use <stdlib.h> instead of exit.h.
106927         * lib/argmatch.c: Don't include exit.h.
106928         * lib/execute.c: Likewise.
106929         * lib/pagealign_alloc.c: Likewise.
106930         * lib/pipe.c: Likewise.
106931         * lib/wait-process.c: Likewise.
106932         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
106933         * lib/exitfail.c: Likewise.
106934         * lib/savewd.c: Likewise.
106935         * lib/xsetenv.c: Likewise.
106937         * modules/stdlib: New file.
106938         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
106939         and extra comments about mkstemp().
106940         * lib/exit.h: Remove file.
106941         * lib/mkdtemp.h: Remove file.
106942         * lib/mkstemp.h: Remove file.
106943         * m4/stdlib_h.m4: New file.
106944         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
106946 2007-02-18  Bruno Haible  <bruno@clisp.org>
106948         * modules/math-tests: New file.
106949         * tests/test-math.c: New file.
106951         * modules/math: New file.
106952         * modules/mathl (Files): Remove lib/mathl.h.
106953         (Depends-on): Add math.
106954         (Makefile.am): Don't mention mathl.h.
106955         (Include): Use <math.h> instead of mathl.h.
106956         * lib/math_.h: New file.
106957         * lib/mathl.h: Remove file.
106958         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
106959         mathl.h.
106960         * lib/asinl.c: Likewise.
106961         * lib/atanl.c: Likewise.
106962         * lib/ceill.c: Likewise.
106963         * lib/cosl.c: Likewise.
106964         * lib/expl.c: Likewise.
106965         * lib/floorl.c: Likewise.
106966         * lib/frexpl.c: Likewise.
106967         * lib/ldexpl.c: Likewise.
106968         * lib/logl.c: Likewise.
106969         * lib/sincosl.c: Likewise.
106970         * lib/sinl.c: Likewise.
106971         * lib/sqrtl.c: Likewise.
106972         * lib/tanl.c: Likewise.
106973         * lib/trigl.c: Likewise.
106974         * m4/math_h.m4: New file.
106975         * MODULES.html.sh (Mathematics): Add math.
106977 2007-02-17  Bruno Haible  <bruno@clisp.org>
106979         * modules/wctype-tests: New file.
106980         * tests/test-wctype.c: New file.
106982         * modules/wchar-tests: New file.
106983         * tests/test-wchar.c: New file.
106985         * modules/unistd-tests: New file.
106986         * tests/test-unistd.c: New file.
106988         * modules/time-tests: New file.
106989         * tests/test-time.c: New file.
106991         * modules/sysexits-tests: New file.
106992         * tests/test-sysexits.c: New file.
106994         * modules/sys_time-tests: New file.
106995         * tests/test-sys_time.c: New file.
106997         * modules/sys_stat-tests: New file.
106998         * tests/test-sys_stat.c: New file.
107000         * modules/sys_socket-tests: New file.
107001         * tests/test-sys_socket.c: New file.
107003         * modules/sys_select-tests: New file.
107004         * tests/test-sys_select.c: New file.
107006         * modules/string-tests: New file.
107007         * tests/test-string.c: New file.
107009         * modules/stdbool-tests: New file.
107010         * tests/test-stdbool.c: New file.
107012         * modules/netinet_in-tests: New file.
107013         * tests/test-netinet_in.c: New file.
107015         * modules/inttypes-tests: New file.
107016         * tests/test-inttypes.c: New file.
107018         * modules/fcntl-tests: New file.
107019         * tests/test-fcntl.c: New file.
107021         * modules/byteswap-tests: New file.
107022         * tests/test-byteswap.c: New file.
107024         * modules/arpa_inet-tests: New file.
107025         * tests/test-arpa_inet.c: New file.
107027 2007-02-17  Bruno Haible  <bruno@clisp.org>
107029         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
107030         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
107031         if the corresponding module is not enabled. Emit link warnings if
107032         the function is used nevertheless.
107033         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
107034         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
107035         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
107036         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
107037         * modules/inttypes (Depends-on): Add link-warning.
107038         (Makefile.am): Copy the contents of build-aux/link-warning.h into
107039         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
107040         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
107041         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
107042         * modules/imaxdiv (configure.ac): Likewise.
107043         * modules/strtoimax (configure.ac): Likewise.
107044         * modules/strtoumax (configure.ac): Likewise.
107046 2007-02-17  Bruno Haible  <bruno@clisp.org>
107048         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
107049         gl_STRING_MODULE_INDICATOR_DEFAULTS.
107050         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
107051         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
107053 2007-02-17  Bruno Haible  <bruno@clisp.org>
107055         * modules/link-warning: New file.
107056         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
107057         * lib/string_.h (GL_LINK_WARNING): Remove definition.
107058         * modules/string (Depends-on): Add link-warning.
107059         (Makefile.am): Copy the contents of build-aux/link-warning.h into
107060         string.h.
107061         * MODULES.html.sh (Support for building libraries and executables): Add
107062         link-warning.
107064 2007-02-17  Bruno Haible  <bruno@clisp.org>
107066         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
107067         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
107068         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
107069         long lines.
107071 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
107072             Bruno Haible  <bruno@clisp.org>
107074         * modules/tmpfile: New file.
107075         * lib/tmpfile.c: New file.
107076         * m4/tmpfile.m4: New file.
107077         * MODULES.html.sh (func_all_modules): New section "Input/output".
107079 2007-02-15  Bruno Haible  <bruno@clisp.org>
107081         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
107082         (supports_delete_on_close): New function.
107083         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
107085 2007-02-14  Bruno Haible  <bruno@clisp.org>
107087         * modules/mbspcasecmp-tests: New file.
107088         * tests/test-mbspcasecmp.sh: New file.
107089         * tests/test-mbspcasecmp.c: New file.
107091         New module mbspcasecmp.
107092         * modules/mbspcasecmp: New file.
107093         * lib/mbspcasecmp.c: New file.
107094         * lib/string_.h (strncasecmp): Change warning message.
107095         (mbspcasecmp): New declaration.
107096         * m4/mbspcasecmp.m4: New file.
107097         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107098         GNULIB_MBSPCASECMP.
107099         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
107100         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
107102 2007-02-14  Bruno Haible  <bruno@clisp.org>
107104         * modules/mbsncasecmp-tests: New file.
107105         * tests/test-mbsncasecmp.sh: New file.
107106         * tests/test-mbsncasecmp.c: New file.
107108         New module mbsncasecmp.
107109         * modules/mbsncasecmp: New file.
107110         * lib/mbsncasecmp.c: New file.
107111         * lib/string_.h (mbsncasecmp): New declaration.
107112         * m4/mbsncasecmp.m4: New file.
107113         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107114         GNULIB_MBSNCASECMP.
107115         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
107116         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
107118 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
107120         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
107121         Verify that it doesn't overlap with our flags.
107122         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
107123         do not have the desired effect in multibyte locales; instead, use
107124         mbscasecmp.
107125         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
107126         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
107127         we don't require GNU fnmatch ourselves (if our users require it, they
107128         should do so explicitly).
107130         Fix regex code so it doesn't rely on strcasecmp.
107131         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
107132         Otherwise, include gnulib's langinfo.h.
107133         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
107134         undesirable behavior in non-C locales.  Instead, rely on localecharset.
107135         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
107136         * modules/regex (FILES): Remove m4/codeset.m4.
107137         (Depends-on): Add localcharset.  Remove strcase.
107139 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107141         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
107142         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
107144 2007-02-13  Bruno Haible  <bruno@clisp.org>
107146         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
107147         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
107149 2007-02-12  Bruno Haible  <bruno@clisp.org>
107151         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
107152         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
107153         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
107154         time warning rather than a link error.
107156 2007-02-12  Bruno Haible  <bruno@clisp.org>
107158         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
107159         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
107160         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
107162 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
107164         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
107165         args, not 2.
107167 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
107169         New module 'time', so that apps can include <time.h> as per
107170         POSIX and GNU instead of separate include files like time_r.h
107171         and timegm.h.  This implementation tries out a simpler approach
107172         for replacing decls in standard include files (as compared to
107173         the string module), somewhat as an experiment.
107175         * config/srclist.txt: Comment out mktime.c for now.
107176         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
107177         since it doesn't apply any more.  Use generic wording instead.
107178         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
107179         'time'.
107180         * lib/time_.h, m4/time_h.m4, modules/time: New files.
107181         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
107182         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
107183         Don't include <sys/types.h>; no longer needed since we assume C89.
107184         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
107185         * lib/strftime.c: Likewise.
107186         * lib/time_r.c: Likewise.
107187         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
107188         * lib/nanosleep.c: Include <time.h> first, to check interface.
107189         * lib/strptime.c: Likewise.
107190         * lib/time_r.c: Likewise.
107191         * lib/timegm.c: Likewise.
107192         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
107193         needed.
107194         * lib/timegm.c: Don't include timegm.h; no longer needed.
107195         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
107196         time.h now handles any problems in that area.
107197         (struct timespec, nanosleep): Remove; time.h now arranges for these.
107198         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
107199         that time.h defines struct timespec.
107200         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
107201         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
107202         handles that.
107203         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
107204         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
107205         needed.  Set REPLACE_LOCALTIME.
107206         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
107207         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
107208         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
107209         nanosleep; time_h.m4 now does that.  Don't require
107210         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
107211         module handles this now.
107212         * modules/getdate (Depends-on): Remove timespec.  Add time.
107213         * modules/nanosleep (Depends-on): Likewise.
107214         * modules/stat-time (Depends-on): Likewise.
107215         * modules/nanosleep (Include): Include time.h, not timespec.h.
107216         * modules/strptime (Files): Remove lib/strptime.h.
107217         (Depends-on): Add extensions, time.
107218         (Include): Include time.h, not strptime.h.
107219         * modules/time_r (Files): Remove lib/time_r.h.
107220         (Depends-on): Add time.
107221         (Include): Include time.h, not time_r.h.
107222         * modules/timegm: Likewise.
107223         * modules/timespec (Description): Now does timespec-related decls
107224         of our own, instead of struct timespec itself.
107225         (Depends-on): Add time; remove extensions.
107226         (Maintainer): Add self.
107227         * modules/utimecmp (Depends-on): Add time; remove timespec.
107228         * modules/utimens (Depends-on): Likewise.
107229         * modules/xnanosleep (Depends-on): Likewise.
107231 2007-02-11  Bruno Haible  <bruno@clisp.org>
107233         * lib/c-strstr.c: Include allocsa.h.
107234         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
107235         * lib/c-strcasestr.c: Include allocsa.h.
107236         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
107237         * lib/strcasestr.c: Include allocsa.h.
107238         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
107239         * lib/mbsstr.c: Include allocsa.h.
107240         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
107241         allocsa/freesa instead of malloc/free.
107242         * lib/mbscasestr.c: Include allocsa.h.
107243         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
107244         allocsa/freesa instead of malloc/free.
107245         * modules/c-strstr (Depends-on): Add allocsa.
107246         * modules/c-strcasestr (Depends-on): Likewise.
107247         * modules/strcasestr (Depends-on): Likewise.
107248         * modules/mbsstr (Depends-on): Likewise.
107249         * modules/mbscasestr (Depends-on): Likewise.
107251 2007-02-11  Bruno Haible  <bruno@clisp.org>
107253         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
107255         * modules/mbsspn-tests: New file.
107256         * tests/test-mbsspn.sh: New file.
107257         * tests/test-mbsspn.c: New file.
107259 2007-02-11  Bruno Haible  <bruno@clisp.org>
107261         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
107263         * modules/mbspbrk-tests: New file.
107264         * tests/test-mbspbrk.sh: New file.
107265         * tests/test-mbspbrk.c: New file.
107267 2007-02-11  Bruno Haible  <bruno@clisp.org>
107269         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
107270         unneeded cast.
107272         * modules/mbscspn-tests: New file.
107273         * tests/test-mbscspn.sh: New file.
107274         * tests/test-mbscspn.c: New file.
107276 2007-02-11  Bruno Haible  <bruno@clisp.org>
107278         * modules/mbscasecmp-tests: New file.
107279         * tests/test-mbscasecmp.sh: New file.
107280         * tests/test-mbscasecmp.c: New file.
107282 2007-02-11  Bruno Haible  <bruno@clisp.org>
107284         Ensure O(n) worst-case complexity of mbscasestr.
107285         * lib/mbscasestr.c: Include stdbool.h.
107286         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
107287         functions.
107288         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
107289         the bookkeeping indicates that it's worth it.
107290         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
107292         * modules/mbscasestr-tests: New file.
107293         * tests/test-mbscasestr1.c: New file.
107294         * tests/test-mbscasestr2.sh: New file.
107295         * tests/test-mbscasestr2.c: New file.
107296         * tests/test-mbscasestr3.sh: New file.
107297         * tests/test-mbscasestr3.c: New file.
107298         * tests/test-mbscasestr4.sh: New file.
107299         * tests/test-mbscasestr4.c: New file.
107300         * m4/locale-tr.m4: New file.
107302 2007-02-11  Bruno Haible  <bruno@clisp.org>
107304         Ensure O(n) worst-case complexity of mbsstr.
107305         * lib/mbsstr.c: Include stdbool.h.
107306         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
107307         functions.
107308         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
107309         bookkeeping indicates that it's worth it.
107310         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
107312         * modules/mbsstr-tests: New file.
107313         * tests/test-mbsstr1.c: New file.
107314         * tests/test-mbsstr2.sh: New file.
107315         * tests/test-mbsstr2.c: New file.
107316         * tests/test-mbsstr3.sh: New file.
107317         * tests/test-mbsstr3.c: New file.
107318         * m4/locale-fr.m4: New file.
107320 2007-02-11  Bruno Haible  <bruno@clisp.org>
107322         * lib/mbsrchr.c (mbsrchr): Fix bug.
107324         * modules/mbsrchr-tests: New file.
107325         * tests/test-mbsrchr.sh: New file.
107326         * tests/test-mbsrchr.c: New file.
107328 2007-02-11  Bruno Haible  <bruno@clisp.org>
107330         * lib/mbschr.c (mbschr): Fix bug.
107332         * modules/mbschr-tests: New file.
107333         * tests/test-mbschr.sh: New file.
107334         * tests/test-mbschr.c: New file.
107335         * m4/locale-zh.m4: New file.
107337 2007-02-11  Bruno Haible  <bruno@clisp.org>
107339         Support for copying multibyte string iterators.
107340         * lib/mbiter.h: Include <string.h>.
107341         (mbiter_multi_copy): New function.
107342         (mbi_copy): New macro.
107343         * lib/mbuiter.h: Include <string.h>.
107344         (mbuiter_multi_copy): New function.
107345         (mbui_copy): New macro.
107347 2007-02-11  Bruno Haible  <bruno@clisp.org>
107349         New module mbslen.
107350         * modules/mbslen: New file.
107351         * lib/mbslen.c: New file.
107352         * lib/string_.h (mbslen): New declaration.
107353         * m4/mbslen.m4: New file.
107354         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107355         GNULIB_MBSLEN.
107356         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
107357         * MODULES.html.sh (Internationalization functions): Add mbslen.
107359 2007-02-11  Bruno Haible  <bruno@clisp.org>
107361         Ensure O(n) worst-case complexity of strcasestr substitute.
107362         * lib/strcasestr.c: Include stdbool.h.
107363         (knuth_morris_pratt): New function.
107364         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
107365         bookkeeping indicates that it's worth it.
107366         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
107368         * modules/strcasestr-tests: New file.
107369         * tests/test-strcasestr.c: New file.
107371 2007-02-11  Bruno Haible  <bruno@clisp.org>
107373         Ensure O(n) worst-case complexity of c_strcasestr.
107374         * lib/c-strcasestr.c: Include stdbool.h, string.h.
107375         (knuth_morris_pratt): New function.
107376         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
107377         the bookkeeping indicates that it's worth it.
107378         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
107380         * modules/c-strcasestr-tests: New file.
107381         * tests/test-c-strcasestr.c: New file.
107383 2007-02-11  Bruno Haible  <bruno@clisp.org>
107385         Ensure O(n) worst-case complexity of c_strstr.
107386         * lib/c-strstr.c: Include stdbool.h, string.h.
107387         (knuth_morris_pratt): New function.
107388         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
107389         bookkeeping indicates that it's worth it.
107390         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
107392         * lib/c-strstr.c: Complete rewrite for maintainability.
107394         * modules/c-strstr-tests: New file.
107395         * tests/test-c-strstr.c: New file.
107397 2007-02-11  Bruno Haible  <bruno@clisp.org>
107399         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
107400         5.2.1 and earlier, whereby \055 was treated just like the range
107401         delimiter '-'.
107402         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
107404 2007-02-08  Bruno Haible  <bruno@clisp.org>
107406         * modules/regex (Depends-on): Add stdbool.
107407         Reported by Dalibor Topic <robilad@kaffe.org>.
107409 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
107411         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
107412         Prefer returning from main to exiting from it.
107413         Remove unnecessary parens after sizeof.
107415 2007-02-05  Bruno Haible  <bruno@clisp.org>
107417         New module mbssep.
107418         * modules/mbssep: New file.
107419         * lib/mbssep.c: New file.
107420         * lib/string_.h (strsep): Add a conditional link warning.
107421         (mbssep): New declaration.
107422         * m4/mbssep.m4: New file.
107423         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107424         GNULIB_MBSSEP.
107425         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
107426         * MODULES.html.sh (Internationalization functions): Add mbssep.
107428 2007-02-05  Bruno Haible  <bruno@clisp.org>
107430         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
107431         Optimize search in case of 1 delimiter.
107433 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
107435         * lib/acl.h: Include sys/types.h before sys/acl.h.
107437 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
107439         Merge upstream fix for glibc bugzilla #3957:
107441         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
107443         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
107444         bit for RE_HAT_LISTS_NOT_NEWLINE.
107445         (build_charclass_op): Remove bogus comment.
107447 2007-02-05  Simon Josefsson  <simon@josefsson.org>
107449         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
107451 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
107453         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
107454         * lib/memmem.c [!defined _LIBC]: Include config.h.
107456 2007-02-04  Bruno Haible  <bruno@clisp.org>
107458         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
107459         warning message.
107461 2007-02-04  Bruno Haible  <bruno@clisp.org>
107463         New module mbstok_r.
107464         * modules/mbstok_r: New file.
107465         * lib/mbstok_r.c: New file.
107466         * lib/string_.h (strtok_r): Change argument names to match the
107467         comments. Add a conditional link warning.
107468         (mbstok_r): New declaration.
107469         * m4/mbstok_r.m4: New file.
107470         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107471         GNULIB_MBSTOK_R.
107472         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
107473         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
107475 2007-02-04  Bruno Haible  <bruno@clisp.org>
107477         New module mbsspn.
107478         * modules/mbsspn: New file.
107479         * lib/mbsspn.c: New file.
107480         * lib/string_.h (strspn): Add a conditional link warning.
107481         (mbsspn): New declaration.
107482         * m4/mbsspn.m4: New file.
107483         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107484         GNULIB_MBSSPN.
107485         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
107486         * MODULES.html.sh (Internationalization functions): Add mbsspn.
107488 2007-02-04  Bruno Haible  <bruno@clisp.org>
107490         New module mbspbrk.
107491         * modules/mbspbrk: New file.
107492         * lib/mbspbrk.c: New file.
107493         * lib/string_.h (strpbrk): Add a conditional link warning.
107494         (mbspbrk): New declaration.
107495         * m4/mbspbrk.m4: New file.
107496         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107497         GNULIB_MBSPBRK.
107498         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
107499         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
107501 2007-02-04  Bruno Haible  <bruno@clisp.org>
107503         New module mbscspn.
107504         * modules/mbscspn: New file.
107505         * lib/mbscspn.c: New file.
107506         * lib/string_.h (strcspn): Add a conditional link warning.
107507         (mbscspn): New declaration.
107508         * m4/mbscspn.m4: New file.
107509         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107510         GNULIB_MBSCSPN.
107511         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
107512         * MODULES.html.sh (Internationalization functions): Add mbscspn.
107514 2007-02-04  Bruno Haible  <bruno@clisp.org>
107516         New module mbscasestr, reduced goal of strcasestr.
107517         * modules/mbscasestr: New file.
107518         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
107519         (mbscasestr): Renamed from strcasestr.
107520         * lib/strcasestr.c: Don't include mbuiter.h.
107521         (strcasestr): Remove support for multibyte locales.
107522         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
107523         Change the conditional link warning.
107524         (mbscasestr): New declaration.
107525         * m4/mbscasestr.m4: New file.
107526         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
107527         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
107528         REPLACE_STRCASESTR.
107529         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
107530         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
107531         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
107532         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
107533         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
107534         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
107535         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
107536         (Depends-on): Remove mbuiter.
107537         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
107539 2007-02-04  Bruno Haible  <bruno@clisp.org>
107541         Simplify handling of strncasecmp.
107542         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
107543         the conditional link warning.
107544         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
107545         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
107546         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
107547         * modules/strcase (configure.ac): Don't invoke
107548         gl_STRING_MODULE_INDICATOR.
107549         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
107551 2007-02-04  Bruno Haible  <bruno@clisp.org>
107553         New module mbscasecmp, reduced goal of strcasecmp.
107554         * modules/mbscasecmp: New file.
107555         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
107556         (mbscasecmp): Renamed from strcasecmp.
107557         * lib/strcasecmp.c: Don't include mbuiter.h.
107558         (strcasecmp): Remove support for multibyte locales.
107559         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
107560         Change the conditional link warning.
107561         (mbscasecmp): New declaration.
107562         * m4/mbscasecmp.m4: New file.
107563         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
107564         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
107565         REPLACE_STRCASECMP.
107566         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
107567         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107568         GNULIB_MBSCASECMP.
107569         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
107570         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
107571         * modules/strcase (Files): Remove m4/mbrtowc.m4.
107572         (Depends-on): Remove mbuiter.
107573         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
107575 2007-02-04  Bruno Haible  <bruno@clisp.org>
107577         New module mbsstr. Remove module strstr.
107578         * modules/mbsstr: New file.
107579         * modules/strstr: Remove file.
107580         * lib/mbsstr.c: Renamed from lib/strstr.c.
107581         (mbsstr): Renamed from strstr.
107582         * lib/string_.h (strstr): Remove declaration. Change the conditional
107583         link warning.
107584         (mbsstr): New declaration.
107585         * m4/mbsstr.m4: New file.
107586         * m4/strstr.m4: Remove file.
107587         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
107588         REPLACE_STRSTR.
107589         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
107590         Don't initialize GNULIB_STRSTR.
107591         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
107592         substitute GNULIB_STRSTR and REPLACE_STRSTR.
107593         * MODULES.html.sh (Internationalization functions): Add mbsstr.
107594         (Support for systems lacking ANSI C 89): Remove strstr.
107596 2007-02-04  Bruno Haible  <bruno@clisp.org>
107598         New module mbsrchr.
107599         * modules/mbsrchr: New file.
107600         * lib/mbsrchr.c: New file.
107601         * lib/string_.h (strrchr): Add a conditional link warning.
107602         (mbsrchr): New declaration.
107603         * m4/mbsrchr.m4: New file.
107604         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107605         GNULIB_MBSRCHR.
107606         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
107607         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
107609 2007-02-04  Bruno Haible  <bruno@clisp.org>
107611         New module mbschr.
107612         * modules/mbschr: New file.
107613         * lib/mbschr.c: New file.
107614         * lib/string_.h (strchr): Add a conditional link warning.
107615         (mbschr): New declaration.
107616         * m4/mbschr.m4: New file.
107617         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
107618         GNULIB_MBSCHR.
107619         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
107620         * MODULES.html.sh (Internationalization functions): Add mbschr.
107622 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
107624         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
107626         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
107628 2007-02-04  Bruno Haible  <bruno@clisp.org>
107630         New module description section 'configure.ac-early'.
107631         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
107632         (func_get_autoconf_early_snippet): New function.
107633         (func_import, func_create_testdir): Use it. Remove special cases for
107634         modules 'extensions' and 'lock'.
107635         * modules/extensions (configure.ac-early): Require
107636         gl_USE_SYSTEM_EXTENSIONS.
107637         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
107639 2007-02-04  Bruno Haible  <bruno@clisp.org>
107641         Make use of gcj-4.3's -fsource and -ftarget option.
107642         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
107643         and if so try the options -fsource and -ftarget.
107644         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
107645         source_version, ftarget_option, target_version arguments.
107646         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
107647         (is_envjavac_oldgcj_14_14_usable): Renamed from
107648         is_envjavac_gcj_14_14_usable.
107649         (is_envjavac_oldgcj_14_13_usable): Renamed from
107650         is_envjavac_gcj_14_13_usable.
107651         (is_gcj_present): Update.
107652         (is_gcj_43, is_gcj43_usable): New functions.
107653         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
107654         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
107655         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
107656         try the options -fsource and -ftarget.
107658 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
107660         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
107661         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
107662         larger value.
107664 2007-02-03  Jim Meyering  <jim@meyering.net>
107666         Give tools a better chance to allocate space for very large buffers.
107667         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
107669         Make pwd and readlink work also when run with an unreadable parent dir
107670         on systems with openat support.
107671         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
107672         provided getcwd function, even when we have openat support.
107673         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
107675 2007-02-02  Bruno Haible  <bruno@clisp.org>
107677         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
107678         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
107679         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
107680         portability problems if one of these functions is only used on specific
107681         platforms.
107682         Reported by Paul Eggert.
107684 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
107686         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
107687         is causing more trouble than it's curing.
107688         * lib/regex_internal.h (__mempcpy): Remove.
107689         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
107690         (and make the code a tad smaller to boot).
107691         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
107693 2007-02-02  Jim Meyering  <jim@meyering.net>
107695         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
107696         section, not in the Makefile.am: one.
107698 2007-02-02  Eric Blake  <ebb9@byu.net>
107700         * lib/strchrnul.c: Always include config.h first.
107702         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
107703         gnulib strstr is not necessary here.
107705 2007-02-02  Simon Josefsson  <simon@josefsson.org>
107707         * m4/socklen.m4: Fix typo.
107709 2007-02-02  Eric Blake  <ebb9@byu.net>
107711         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
107712         * modules/netinet_in (Makefile.am): Likewise.
107714 2007-02-01  Bruno Haible  <bruno@clisp.org>
107716         * lib/string_.h (GL_LINK_WARNING): New macro.
107717         (strcasecmp, strstr, strcasestr): If provided by the system,
107718         conditionally define as a macro that leads to a warning instead of to
107719         an error.
107720         (strncasecmp): Conditionally define as a macro that leads to a warning.
107722 2007-02-01  Karl Berry  <karl@gnu.org>
107724         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
107726 2007-02-01  Bruno Haible  <bruno@clisp.org>
107728         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
107729         renamings.
107731 2007-02-01  Eric Blake  <ebb9@byu.net>
107733         * modules/regex (Depends-on): Revert dependence on mempcpy.
107734         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
107735         module's definition of mempcpy.
107736         Reported by Paul Eggert.
107738 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
107740         * lib/string_.h: If the gnulib module XYZ is not present, undefine
107741         the symbol XYZ before redefining it.  This fixes a problem with
107742         programs that don't use XYZ, when compiled on systems that define
107743         XYZ to something else.
107745 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
107747         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
107748         occurs when "mkdir -m foo" creates a setgid directory that is (1)
107749         writeable to group or other and (2) is intended to have a special
107750         mode bit that is set or cleared.  In such a case, the directory
107751         should be neither group- nor other-writeable until the special
107752         mode bits are right.
107754 2007-01-31  Eric Blake  <ebb9@byu.net>
107756         * modules/mountlist (Depends-on): Add strstr.
107758         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
107759         bug.
107760         * modules/string (Makefile.am): Remove redundant replacement.
107761         * modules/regex (Depends-on): Add mempcpy.
107763 2007-01-31  Bruno Haible  <bruno@clisp.org>
107765         New module description field 'Link'.
107766         * gnulib-tool (func_usage): Document --extract-link-directive.
107767         (sed_extract_prog): Recognize 'Link' directive.
107768         (func_get_link_directive): New function.
107769         (func_import): Show summary of link directives.
107770         Handle --extract-link-directive option.
107771         * modules/acl (Link): New section.
107772         * modules/clock-time (Link): New section.
107773         * modules/euidaccess (Link): New section.
107774         * modules/gettext (Link): New section.
107775         * modules/iconv (Link): New section.
107776         * modules/lock (Link): New section.
107777         * modules/nanosleep (Link): New section.
107778         * modules/readline (Link): New section.
107780 2007-01-27  Bruno Haible  <bruno@clisp.org>
107782         Enforce the use of gnulib modules for unportable <string.h> functions.
107783         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
107784         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
107785         (gl_HEADER_STRING_H_BODY): Require it.
107786         * lib/string_.h: If the gnulib module XYZ is not present, redefine
107787         the symbol XYZ to one that gives a link error.
107788         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
107789         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
107790         * modules/mempcpy (configure.ac): Likewise.
107791         * modules/memrchr (configure.ac): Likewise.
107792         * modules/stpcpy (configure.ac): Likewise.
107793         * modules/stpncpy (configure.ac): Likewise.
107794         * modules/strcase (configure.ac): Likewise.
107795         * modules/strcasestr (configure.ac): Likewise.
107796         * modules/strchrnul (configure.ac): Likewise.
107797         * modules/strdup (configure.ac): Likewise.
107798         * modules/strndup (configure.ac): Likewise.
107799         * modules/strnlen (configure.ac): Likewise.
107800         * modules/strpbrk (configure.ac): Likewise.
107801         * modules/strsep (configure.ac): Likewise.
107802         * modules/strstr (configure.ac): Likewise.
107803         * modules/strtok_r (configure.ac): Likewise.
107805 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
107807         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
107809 2007-01-30  Jim Meyering  <jim@meyering.net>
107811         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
107813 2007-01-29  Bruno Haible  <bruno@clisp.org>
107815         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
107816         * lib/execute.c: Likewise.
107817         * lib/pipe.c: Likewise.
107818         * lib/printf-args.h: Likewise.
107819         * lib/printf-args.c: Likewise.
107820         * lib/printf-parse.c: Likewise.
107821         * lib/vasnprintf.c: Likewise.
107823 2007-01-29  Eric Blake  <ebb9@byu.net>
107825         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
107826         declaration.
107828 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
107830         * lib/strptime.h (strptime): Use 'restrict' for args where
107831         POSIX requires this.
107832         * lib/strptime.c (strptime): Likewise.
107833         Change license notice from LGPL to GPL, since gnulib-tool will
107834         change this as needed.
107835         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
107836         defined.
107837         Include "strptime.h" first, to check interface.
107838         Do not #undef _LIBC and _NL_CURRENT.
107839         Do not include <stdlib.h>; no longer needed.
107840         Include "time_r.h" and declare ptime_locale_status
107841         only if _LIBC is not defined.
107842         (__P): Remove unused macro.
107843         (match_string): Bring back glibc version, but use it only if _LIBC
107844         is defined.
107845         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
107846         Remove unnecessary assertion and abort() call.
107847         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
107848         * m4/strptime.m4: Fix serial number comment.
107849         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
107850         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
107851         (Depends-on): Add time_r.
107853 2007-01-29  Bruno Haible  <bruno@clisp.org>
107855         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
107856         strptime.
107857         * modules/strptime (Depends-on): Add stdbool.
107858         * lib/strptime.h: Include <time.h> always. Add comments.
107860 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
107862         * modules/strptime: New file.
107863         * lib/strptime.h: New file.
107864         * lib/strptime.c: New file.
107865         * m4/strptime.m4: New file.
107867 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
107869         * MODULES.html.sh: New module mpsort.
107870         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
107872         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
107873         a circularity problem with HP-UX ia64 reported by Bob Proulx in
107874         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
107875         All uses changed.
107876         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
107877         All uses changed.
107878         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
107879         to _Restrict_.
107880         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
107881         the parameter matches the prototype.
107883 2007-01-28  Jim Meyering  <jim@meyering.net>
107885         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
107886         sys/time.h here, reverting that part of the previous patch:
107887         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
107889 2007-01-28  Bruno Haible  <bruno@clisp.org>
107891         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
107892         value of $(SYS_TIME_H).
107893         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
107894         remove it conditionally, too. [added by Jim Meyering]
107895         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
107896         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
107897         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
107898         GETTIMEOFDAY_REPLACEMENT to 1.
107900 2007-01-28  Bruno Haible  <bruno@clisp.org>
107902         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
107903         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
107904         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
107905         Set UNISTD_H instead of UNISTD_H2.
107906         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
107908 2007-01-28  Bruno Haible  <bruno@clisp.org>
107910         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
107911         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
107913 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107915         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
107916         (func_create_testdir): Ensure C locale for `grep' and `tr'
107917         character ranges.
107918         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
107919         ACLOCAL_AMFLAGS parsing state machine.
107921 2007-01-27  Bruno Haible  <bruno@clisp.org>
107923         * modules/unistr/base: Update.
107925 2007-01-27  Bruno Haible  <bruno@clisp.org>
107927         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
107928         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
107929         * modules/unistr/u32-mbtouc-unsafe: Renamed from
107930         modules/unistr/u32-mbtouc.
107931         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
107932         * lib/unistr.h: Update.
107933         * lib/linebreak.c: Update.
107934         * modules/unistr/u32-mbtouc: Renamed from
107935         modules/unistr/u32-mbtouc-safe.
107936         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
107937         * lib/unistr.h: Update.
107938         * lib/unistr/u32-to-u8.c: Update.
107939         * lib/unistr/u32-to-u16.c: Update.
107941 2007-01-27  Bruno Haible  <bruno@clisp.org>
107943         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
107944         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
107945         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
107946         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
107947         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
107948         * modules/unistr/u16-mbtouc-unsafe: Renamed from
107949         modules/unistr/u16-mbtouc.
107950         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
107951         * lib/unistr.h: Update.
107952         * lib/linebreak.c: Update.
107953         * modules/linebreak: Update.
107954         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
107955         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
107956         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
107957         * modules/unistr/u16-mbtouc: Renamed from
107958         modules/unistr/u16-mbtouc-safe.
107959         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
107960         * lib/unistr.h: Update.
107961         * lib/unistr/u16-to-u8.c: Update.
107962         * modules/unistr/u16-to-u8: Update.
107963         * lib/unistr/u16-to-u32.c: Update.
107964         * modules/unistr/u16-to-u32: Update.
107966 2007-01-27  Bruno Haible  <bruno@clisp.org>
107968         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
107969         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
107970         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
107971         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
107972         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
107973         * modules/unistr/u8-mbtouc-unsafe: Renamed from
107974         modules/unistr/u8-mbtouc.
107975         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
107976         * lib/unistr.h: Update.
107977         * lib/striconveh.c: Update.
107978         * modules/striconveh: Update.
107979         * lib/linebreak.c: Update.
107980         * modules/linebreak: Update.
107981         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
107982         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
107983         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
107984         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
107985         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
107986         * lib/unistr.h: Update.
107987         * lib/striconveh.c: Update.
107988         * modules/striconveh: Update.
107989         * lib/unistr/u8-to-u16.c: Update.
107990         * modules/unistr/u8-to-u16: Update.
107991         * lib/unistr/u8-to-u32.c: Update.
107992         * modules/unistr/u8-to-u32: Update.
107994 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107996         Sync from Libtool.
107997         * lib/argz.c: Do not include strings.h nor memory.h, include
107998         string.h unconditionally.  Patch by Simon Josefsson.
108000 2007-01-27  Bruno Haible  <bruno@clisp.org>
108002         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
108003         from gl_HEADER_STRING_H_BODY.
108004         (gl_HEADER_STRING_H_BODY): Require it.
108005         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
108006         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
108007         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
108008         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
108009         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
108010         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
108011         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
108012         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
108013         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
108014         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
108015         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
108016         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
108017         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
108018         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
108019         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
108021 2007-01-27  Bruno Haible  <bruno@clisp.org>
108023         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
108024         check_PROGRAMS into noinst_PROGRAMS.
108025         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
108026         check_PROGRAMS in this case.
108027         (func_import): Set for_test to false.
108028         (func_create_testdir): Set for_test to true.
108030 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
108031             Bruno Haible  <bruno@clisp.org>
108033         * modules/strcasestr (Files): Remove lib/strcasestr.h.
108034         (Depends-on): Add string.
108035         (Includes): Use <string.h> instead of strcasestr.h.
108036         * modules/string (Makefile.am): Also substitute the value of
108037         REPLACE_STRCASESTR.
108038         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
108039         assume strcasestr is declared in <string.h> not <strings.h>. Also
108040         set REPLACE_STRCASESTR.
108041         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
108042         REPLACE_STRCASESTR.
108043         * lib/strcasestr.h: Remove file.
108044         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
108045         * lib/string_.h (strcasestr): New declaration.
108047 2007-01-27  Bruno Haible  <bruno@clisp.org>
108049         * lib/string_.h: Use 'extern'.
108051 2007-01-27  Jim Meyering  <jim@meyering.net>
108053         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
108054         of set-but-not-used local, "q".
108056         * lib/mempcpy.c: Include <config.h> before <string.h>.
108057         This fixes a compilation error on HP-UX, due to the system's
108058         "restrict"-using mempcpy prototype.
108060 2007-01-26  Bruno Haible  <bruno@clisp.org>
108062         Small optimization.
108063         * lib/javacomp.c: Include c-strstr.h.
108064          (is_envjavac_gcj): Use c_strstr instead of strstr.
108065         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
108067 2007-01-26  Bruno Haible  <bruno@clisp.org>
108069         * MODULES.html.sh (Unicode string functions): Add the new modules.
108071         * modules/uniconv/u32-strconv-to-locale: New file.
108072         * lib/uniconv/u32-strconv-to-locale.c: New file.
108074         * modules/uniconv/u16-strconv-to-locale: New file.
108075         * lib/uniconv/u16-strconv-to-locale.c: New file.
108077         * modules/uniconv/u8-strconv-to-locale: New file.
108078         * lib/uniconv/u8-strconv-to-locale.c: New file.
108080         * modules/uniconv/u32-strconv-from-locale: New file.
108081         * lib/uniconv/u32-strconv-from-locale.c: New file.
108083         * modules/uniconv/u16-strconv-from-locale: New file.
108084         * lib/uniconv/u16-strconv-from-locale.c: New file.
108086         * modules/uniconv/u8-strconv-from-locale: New file.
108087         * lib/uniconv/u8-strconv-from-locale.c: New file.
108089         * modules/uniconv/u32-strconv-to-enc: New file.
108090         * lib/uniconv/u32-strconv-to-enc.c: New file.
108091         * modules/uniconv/u32-strconv-to-enc-tests: New file.
108092         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
108094         * modules/uniconv/u16-strconv-to-enc: New file.
108095         * lib/uniconv/u16-strconv-to-enc.c: New file.
108096         * lib/uniconv/u-strconv-to-enc.h: New file.
108097         * modules/uniconv/u16-strconv-to-enc-tests: New file.
108098         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
108100         * modules/uniconv/u8-strconv-to-enc: New file.
108101         * lib/uniconv/u8-strconv-to-enc.c: New file.
108102         * modules/uniconv/u8-strconv-to-enc-tests: New file.
108103         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
108105         * modules/uniconv/u32-strconv-from-enc: New file.
108106         * lib/uniconv/u32-strconv-from-enc.c: New file.
108107         * modules/uniconv/u32-strconv-from-enc-tests: New file.
108108         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
108110         * modules/uniconv/u16-strconv-from-enc: New file.
108111         * lib/uniconv/u16-strconv-from-enc.c: New file.
108112         * modules/uniconv/u16-strconv-from-enc-tests: New file.
108113         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
108115         * modules/uniconv/u8-strconv-from-enc: New file.
108116         * lib/uniconv/u8-strconv-from-enc.c: New file.
108117         * lib/uniconv/u-strconv-from-enc.h: New file.
108118         * modules/uniconv/u8-strconv-from-enc-tests: New file.
108119         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
108121         * modules/uniconv/u32-conv-from-enc: New file.
108122         * lib/uniconv/u32-conv-from-enc.c: New file.
108123         * modules/uniconv/u32-conv-from-enc-tests: New file.
108124         * tests/uniconv/test-u32-conv-from-enc.c: New file.
108126         * modules/uniconv/u16-conv-from-enc: New file.
108127         * lib/uniconv/u16-conv-from-enc.c: New file.
108128         * lib/uniconv/u-conv-from-enc.h: New file.
108129         * modules/uniconv/u16-conv-from-enc-tests: New file.
108130         * tests/uniconv/test-u16-conv-from-enc.c: New file.
108132         * modules/uniconv/u8-conv-from-enc: New file.
108133         * lib/uniconv/u8-conv-from-enc.c: New file.
108134         * modules/uniconv/u8-conv-from-enc-tests: New file.
108135         * tests/uniconv/test-u8-conv-from-enc.c: New file.
108137         * modules/uniconv/base: New file.
108138         * lib/uniconv.h: New file.
108140 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
108142         * doc/gnulib-tool.texi (Initial import): Update to match current
108143         behavior with strdup module.
108144         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
108145         * lib/memmem.h: Remove; all uses removed.  This is now done
108146         by <string.h>.
108147         * lib/mempcpy.h: Likewise.
108148         * lib/memrchr.h: Likewise.
108149         * lib/stpcpy.h: Likewise.
108150         * lib/stpncpy.h: Likewise.
108151         * lib/strcase.h: Likewise.
108152         * lib/strchrnul.h: Likewise.
108153         * lib/strdup.h: Likewise.
108154         * lib/strndup.h: Likewise.
108155         * lib/strnlen.h: Likewise.
108156         * lib/strpbrk.h: Likewise.
108157         * lib/strsep.h: Likewise.
108158         * lib/strstr.h: Likewise.
108159         * lib/strtok_r.h: Likewise.
108160         * lib/string_.h: New file.
108161         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
108162         Rely on <string.h> instead.
108163         * lib/canon-host.c: Likewise.
108164         * lib/chdir-long.c: Likewise.
108165         * lib/concatpath.c: Likewise.
108166         * lib/exclude.c: Likewise.
108167         * lib/fchdir.c: Likewise.
108168         * lib/getaddrinfo.c: Likewise.
108169         * lib/getcwd.c: Likewise.
108170         * lib/getsubopt.c: Likewise.
108171         * lib/glob.c: Likewise.
108172         * lib/hard-locale.c: Likewise.
108173         * lib/iconvme.c: Likewise.
108174         * lib/javacomp.c: Likewise.
108175         * lib/mempcpy.c: Likewise.
108176         * lib/memrchr.c: Likewise.
108177         * lib/regex_internal.h: Likewise.
108178         * lib/stpncpy.c: Likewise.
108179         * lib/strcasecmp.c: Likewise.
108180         * lib/strchrnul.c: Likewise.
108181         * lib/strdup.c: Likewise.
108182         * lib/striconv.c: Likewise.
108183         * lib/striconveh.c: Likewise.
108184         * lib/striconveha.c: Likewise.
108185         * lib/strncasecmp.c: Likewise.
108186         * lib/strndup.c: Likewise.
108187         * lib/strnlen.c: Likewise.
108188         * lib/strsep.c: Likewise.
108189         * lib/strstr.c: Likewise.
108190         * lib/strtok_r.c: Likewise.
108191         * lib/userspec.c: Likewise.
108192         * lib/w32spawn.h: Likewise.
108193         * lib/xstrndup.c: Likewise.
108194         * lib/mountlist.c (strstr): Remove decl.
108195         * m4/string_h.m4: New file.
108196         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
108197         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
108198         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
108199         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
108200         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
108201         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
108202         Set REPLACE_STRCASECMP if necessary.
108203         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
108204         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
108205         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
108206         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
108207         HAVE_DECL_STRDUP if necessary.
108208         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
108209         since gl_FUNC_STRNDUP does that now.
108210         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
108211         Check for decl here...
108212         (gl_PREREQ_STRNLEN): ... not here.
108213         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
108214         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
108215         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
108216         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
108217         necessary.
108218         * modules/string: New file.
108219         * modules/memmem (Files): Remove special-purpose include file.
108220         (Depends-on): Add string.
108221         (Include): Include <string.h>, not the removed file.
108222         * modules/mempcpy: Likewise.
108223         * modules/memrchr: Likewise.
108224         * modules/stpcpy: Likewise.
108225         * modules/stpncpy: Likewise.
108226         * modules/strcase: Likewise.
108227         * modules/strchrnul: Likewise.
108228         * modules/strdup: Likewise.
108229         * modules/strndup: Likewise.
108230         * modules/strnlen: Likewise.
108231         * modules/strpbrk: Likewise.
108232         * modules/strsep: Likewise.
108233         * modules/strstr: Likewise.
108234         * modules/strtok_r: Likewise.
108235         * tests/test-dirname.c: Don't include "strdup.h", since
108236         <string.h> now suffices.
108237         * tests/test-memmem.c: Don't include "memmem.h", since
108238         <string.h> now suffices.
108240 2007-01-25  Bruno Haible  <bruno@clisp.org>
108242         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
108243         *resultp is 0.
108245         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
108246         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
108247         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
108248         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
108250         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
108251         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
108252         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
108253         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
108254         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
108255         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
108257 2007-01-24  Bruno Haible  <bruno@clisp.org>
108259         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
108260         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
108261         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
108262         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
108263         gl_FUNC_FTS_CORE.
108264         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
108265         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
108266         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
108267         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
108268         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
108269         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
108270         gl_FUNC_FCHOWNAT.
108271         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
108272         gl_FUNC_STRFTIME.
108273         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
108274         Reported by Ralf Wildenhues.
108276 2007-01-24  Bruno Haible  <bruno@clisp.org>
108278         Drop AC_REQUIRE calls that are redundant with the module dependencies.
108279         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
108280         gl_GETADDRINFO.
108281         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
108282         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
108283         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
108285 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
108287         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
108288         Don't use 'exit'; just return from 'main'.
108289         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
108291         * lib/fnmatch_.h: Readjust white space and comments to match
108292         glibc, to avoid spurious diffs.
108294 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
108296         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
108297         2004-12-01 change by Jakub Jelinek, since this code won't compile
108298         if !LIBC.  Problem reported by Bob Proulx.
108300 2007-01-23  Bruno Haible  <bruno@clisp.org>
108302         * lib/striconveh.c: Include c-strcaseeq.h.
108303         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
108304         * modules/striconveh (Depends-on): Add c-strcaseeq.
108306 2007-01-23  Bruno Haible  <bruno@clisp.org>
108308         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
108310         * modules/c-strcaseeq: New file.
108311         * lib/c-strcaseeq.h: New file.
108313         * modules/streq: New file.
108314         * lib/streq.h: New file.
108316 2007-01-23  Bruno Haible  <bruno@clisp.org>
108318         * modules/striconveha-tests: New file.
108319         * tests/test-striconveha.c: New file.
108321         * lib/striconveha.h: Include <stdbool.h>.
108322         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
108323         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
108324         (mem_iconveha_notranslit): Renamed from mem_iconveha.
108325         (mem_iconveha): New function.
108326         (str_iconveha_notranslit): Renamed from str_iconveha.
108327         (str_iconveha): New function.
108328         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
108329         c-strcase.
108331 2007-01-23  Bruno Haible  <bruno@clisp.org>
108333         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
108334         encodings without forgiving before trying any encoding with handler.
108335         (str_iconveha): Try all encodings without forgiving before trying any
108336         encoding with handler.
108338 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
108340         Import the following changes from libc.
108342         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
108344         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
108346         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
108348         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
108349         normal_bracket label.
108351         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
108353         [BZ #361]
108354         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
108355         to normal_bracket after fetching the next character.
108357 2007-01-22  Bruno Haible  <bruno@clisp.org>
108359         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
108360         argument.
108361         * lib/striconveh.c (iconv_carefully_1): New function.
108362         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
108363         argument.
108364         (str_cd_iconveh): Update.
108365         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
108366         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
108367         * tests/test-striconveh.c (MAGIC): New macro.
108368         (new_offsets): New function.
108369         (main): Test call with and without offsets.
108371 2007-01-22  Bruno Haible  <bruno@clisp.org>
108373         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
108374         * modules/sys_select (Makefile.am): Likewise.
108375         * modules/sys_socket (Makefile.am): Likewise.
108376         * modules/sys_time (Makefile.am): Likewise.
108378 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
108380         * modules/gettimeofday (License): Change from GPL to LGPL, since
108381         gettimeofday is a library function.
108383 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
108385         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
108387 2007-01-21  Bruno Haible  <bruno@clisp.org>
108389         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
108391 2007-01-21  Bruno Haible  <bruno@clisp.org>
108393         * modules/striconveha: New file.
108394         * lib/striconveha.h: New file.
108395         * lib/striconveha.c: New file.
108396         * MODULES.html.sh (Internationalization functions): Add striconveha.
108397         * lib/striconv.c (str_iconv): Optimize the case of an empty input
108398         string.
108399         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
108401 2007-01-21  Bruno Haible  <bruno@clisp.org>
108403         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
108404         * lib/striconveh.c (str_iconveh): Likewise.
108406 2007-01-21  Bruno Haible  <bruno@clisp.org>
108408         * lib/striconveh.h (mem_iconveh): New declaration.
108409         * lib/striconveh.c (mem_iconveh): New function.
108410         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
108412 2007-01-21  Bruno Haible  <bruno@clisp.org>
108414         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
108416         * lib/striconveh.h (mem_cd_iconveh): Change specification.
108417         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
108418         original result buffer.
108419         (str_cd_iconveh): Update.
108420         * tests/test-striconveh.c (main): Update.
108422         * lib/striconv.h (mem_cd_iconv): Change specification.
108423         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
108424         result buffer.
108425         (str_cd_iconv): Update.
108426         * tests/test-striconv.c (main): Update.
108428 2007-01-21  Bruno Haible  <bruno@clisp.org>
108430         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
108432 2007-01-20  Jim Meyering  <jim@meyering.net>
108434         * lib/userspec.c (parse_with_separator): If a user or group string
108435         starts with "+", skip the corresponding name-to-ID look-up, since
108436         such a look-up must fail: user and group names may not include "+".
108438 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
108440         * lib/poll.c: Include sys/time.h and time.h unconditionally,
108441         since we now assume the sys_time module.
108442         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
108443         check for sys/time.h; no longer needed.
108444         * modules/poll (Depends-on): Depend on sys_time.
108446 2007-01-18  Bruno Haible  <bruno@clisp.org>
108448         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
108449         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
108451         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
108452         gettimeofday.
108454         * tests/test-gettimeofday.c: Include <time.h>.
108455         (dummy): Remove variable.
108457         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
108458         gl_HEADER_SYS_TIME_H.
108459         (gl_HEADER_SYS_TIME_H): New macro.
108461         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
108462         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108463         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
108464         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
108465         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108466         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
108467         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
108468         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108469         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
108470         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
108471         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108473         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
108474         last change; it caused a compilation error when cross-compiling to
108475         Cygwin.
108477 2007-01-18  Jim Meyering  <jim@meyering.net>
108479         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
108480         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
108481         than the race-prone "test -d sys || mkdir sys".
108482         (configure.ac): Use AC_PROG_MKDIR_P.
108483         * modules/sys_select: Likewise.
108484         * modules/sys_socket: Likewise.
108485         * modules/sys_time: Likewise.
108487 2007-01-18  Eric Blake  <ebb9@byu.net>
108489         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
108490         replace gettimeofday.
108491         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
108492         name, to avoid infinite recursion.
108494 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
108496         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
108497         module sys_time.
108498         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
108499         assume timespec.h defines struct timeval.
108500         * lib/settime.c: Likewise.
108501         * lib/utimens.c: Likewise.
108502         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
108503         since we now assume the gettimeofday module.
108504         * lib/tempname.c (__gen_tempname): Likewise.
108505         * lib/gettimeofday.h: Remove.
108506         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
108507         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
108508         Include <time.h>, for 'time()'.
108509         (localtime_buffer_addr): Also use this workaround if
108510         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
108511         to simplify the uses.  All uses changed.
108512         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
108513         that #undef is inside {}, and 'const' follows type name consistently.
108514         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
108515         (gettimeofday): Do not use the maximum possible value for
108516         tv->tv_usec, since that might break usages other than ls.c.
108517         Instead, we'll leave ls.c alone.  This undoes today's patch
108518         by Bruno.  Add a compile-time warning for 1s-clock resolution;
108519         we've never observed the problem but might as well keep the
108520         canary.
108521         * lib/nanosleep.c: Include timespec.h first, for interface check.
108522         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
108523         now assume the sys_time module.
108524         * lib/tempname.c: Likewise.
108525         * lib/timespec.h: Likewise.
108526         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
108527         needed.
108528         * lib/strftime.c: Likewise.
108529         * lib/timespec.h: Likewise.
108530         * lib/posixtm.c: Include posixtm.h first, for interface check.
108531         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
108532         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
108533         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
108534         * lib/sys_time_.h: New file.
108535         * lib/timespec.h (struct timespec): Use long int, not long.
108536         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
108537         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
108538         Remove obsolescent call to AC_HEADER_TIME.
108539         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
108540         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
108541         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
108542         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
108543         Likewise.
108544         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
108545         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
108546         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
108547         into the sys_time module.  Check for gettimeofday just once.
108548         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
108549         for gettimeofday signature to just check the signature.  Merely
108550         compile it, since linking doesn't test signature.  Improve test for
108551         whether gettimeofday.o is actually needed.
108552         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
108553         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
108554         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
108555         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108556         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
108557         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
108558         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
108559         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
108560         than worrying about sys/time.h.
108561         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
108562         Don't bother worrying about TIME_WITH_SYS_TIME.
108563         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
108564         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
108565         * m4/sys_time_h.m4: New file.
108566         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
108567         Don't include sys/time.h.  Return from main rather than exiting.
108568         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
108569         all uses changed.
108570         * modules/gethrxtime (Depends-on): Add sys_time.
108571         * modules/gettime (Depends-on): Likewise.
108572         * modules/gettimeofday (Depends-on): Likewise.
108573         * modules/nanosleep (Depends-on): Likewise.
108574         * modules/settime (Depends-on): Likewise.
108575         * modules/tempname (Depends-on): Likewise.
108576         * modules/utimens (Depends-on): Likewise.
108577         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
108578         (Include): Change back to <sys/time.h>.
108579         (Maintainer): Add self.
108580         * modules/sys_time: New file.
108581         * modules/tempname (Depends-on): Add gettimeofday.
108582         * tests/test-gettimeofday.c: Include <sys/time.h>
108583         rather than gettimeofday.h.
108585 2007-01-17  Bruno Haible  <bruno@clisp.org>
108587         * gnulib-tool (func_get_license): Revert last patch. Instead, let
108588         the license default to GPL.
108589         (func_create_testdir): Don't complain if a module is LGPL and its
108590         tests module depends on GPLed modules.
108592 2007-01-17  Bruno Haible  <bruno@clisp.org>
108594         * lib/gettimeofday.c (gettimeofday): Add code for the case
108595         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
108596         maximum possible value for tv->tv_usec, rather than the minimum one.
108598 2005-10-08  Martin Lambers  <marlam@marlam.de>
108599 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
108600 2007-01-16  Bruno Haible  <bruno@clisp.org>
108602         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
108603         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
108604         gl_FUNC_GETTIMEOFDAY.
108605         (Include): Add gettimeofday.h.
108606         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
108607         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
108608         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
108609         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
108610         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
108611         * lib/gettimeofday.h: New file.
108612         * lib/gettimeofday.c: Include <sys/timeb.h>.
108613         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
108614         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
108615         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
108616         fall back on time().
108618         * tests/test-gettimeofday.c: New file.
108619         * modules/gettimeofday-tests: New file.
108621 2007-01-16  Eric Blake  <ebb9@byu.net>
108623         * modules/fnmatch (Depends-on): Depend on wchar.
108624         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
108625         * m4/fnmatch.m4: Likewise.
108626         * modules/mbchar (Makefile.am): Assume <wchar.h>.
108627         * m4/mbchar.m4: Likewise.
108628         * modules/mbswidth (Depends-on): Depend on wchar.
108629         * lib/mbswidth.c: Assume <wchar.h>.
108630         * m4/mbswidth.m4: Likewise.
108631         * modules/quotearg (Depends-on): Depend on wchar.
108632         * lib/quotearg.c: Assume <wchar.h>.
108633         * m4/quotearg.m4: Likewise.
108634         * modules/regex (Depends-on): Depend on wchar.
108635         * lib/regex_internal.h: Assume <wchar.h>.
108636         * m4/regex.m4: Likewise.
108637         * modules/stdint (Depends-on): Depend on wchar.
108638         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
108639         * m4/stdint.m4: Likewise.
108640         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
108641         * modules/strftime (Depends-on): Depend on wchar.
108642         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
108643         * modules/strtol (Depends-on): Depend on wchar.
108644         * lib/strtol.c: Assume <wchar.h>.
108645         * modules/wcwidth (Depends-on): Depend on wchar.
108646         * lib/wcwidth.h: Assume <wchar.h>.
108647         * m4/wcwidth.m4: Likewise.
108649 2007-01-16  Bruno Haible  <bruno@clisp.org>
108651         * modules/csharpexec-script: New, created from...
108652         * modules/csharpexec: ... this.
108654 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
108656         * modules/javaexec-script: New, created from...
108657         * modules/javaexec: ... this.
108659 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
108661         * modules/poll (Dependencies): Add sys_select.
108663 2007-01-15  Jim Meyering  <jim@meyering.net>
108665         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
108666         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
108667         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
108668         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
108670 2007-01-15  Bruno Haible  <bruno@clisp.org>
108672         * modules/striconveh: New file.
108673         * lib/striconveh.h: New file.
108674         * lib/striconveh.c: New file.
108675         * MODULES.html.sh (Internationalization functions): Add striconveh.
108677         * modules/striconveh-tests: New file.
108678         * tests/test-striconveh.c: New file.
108680 2007-01-15  Bruno Haible  <bruno@clisp.org>
108682         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
108683         not from GNU libiconv or GNU libc.
108685 2007-01-15  Bruno Haible  <bruno@clisp.org>
108687         * doc/gnulib-intro.texi (Copyright): Explain the different license
108688         terms for module descriptions, autoconf macros, tests, documentation.
108690 2007-01-14  Bruno Haible  <bruno@clisp.org>
108692         * modules/striconv-tests: New file.
108693         * tests/test-striconv.c: New file.
108695 2007-01-14  Bruno Haible  <bruno@clisp.org>
108697         * modules/iconv-tests: New file.
108698         * tests/test-iconv.c: New file.
108700 2007-01-14  Bruno Haible  <bruno@clisp.org>
108702         * gnulib-tool (func_get_license): For test modules, use the license of
108703         the main module.
108705 2007-01-14  Bruno Haible  <bruno@clisp.org>
108707         * modules/iconv (Include): Clarify that <iconv.h> can only be included
108708         if iconv is found to exist.
108710 2007-01-14  Bruno Haible  <bruno@clisp.org>
108712         * modules/c-ctype-tests: New file.
108713         * tests/test-c-ctype.c: New file.
108715 2007-01-14  Bruno Haible  <bruno@clisp.org>
108717         * modules/binary-io-tests: New file.
108718         * tests/test-binary-io.sh: New file.
108719         * tests/test-binary-io.c: New file.
108721 2007-01-14  Bruno Haible  <bruno@clisp.org>
108723         * modules/array-oset-tests: New file.
108724         * tests/test-array_oset.c: New file.
108726 2007-01-14  Bruno Haible  <bruno@clisp.org>
108728         * modules/array-list-tests: New file.
108729         * tests/test-array_list.c: New file.
108731 2007-01-14  Bruno Haible  <bruno@clisp.org>
108733         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
108734         and make.
108735         Reported by Simon Josefsson in
108736         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
108738 2007-01-14  Bruno Haible  <bruno@clisp.org>
108740         * modules/allocsa-tests: New file.
108741         * tests/test-allocsa.c: New file.
108743 2007-01-14  Bruno Haible  <bruno@clisp.org>
108745         * modules/fchdir (Depends-on): Add absolute-header.
108746         * modules/unistd (Depends-on): Likewise.
108748 2006-12-30  Bruno Haible  <bruno@clisp.org>
108750         * modules/fchdir: New file.
108751         * modules/unistd (Files): Add lib/unistd_.h.
108752         (Makefile.am): Generate unistd.h from unistd_.h.
108753         * lib/fchdir.c: New file.
108754         * lib/dirent_.h: New file.
108755         * lib/unistd_.h: New file.
108756         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
108757         * m4/fchdir.m4: New file.
108758         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
108759         (gl_HEADER_UNISTD): Invoke it.
108760         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
108761         function.
108762         * lib/backupfile.c (opendir, closedir): Undefine.
108763         * lib/chown.c (open, close): Undefine.
108764         * lib/clean-temp.c (open, close): Undefine.
108765         * lib/copy-file.c (open, close): Undefine.
108766         * lib/execute.c (open, close): Undefine.
108767         * lib/fsusage.c (open, close): Undefine.
108768         * lib/gc-gnulib.c (open, close): Undefine.
108769         * lib/getcwd.c (opendir, closedir): Undefine.
108770         * lib/glob.c (opendir, closedir): Undefine.
108771         * lib/javacomp.c (open, close): Undefine.
108772         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
108773         * lib/openat-proc.c (open, close): Undefine.
108774         * lib/pagealign_alloc.c (open, close): Undefine.
108775         * lib/pipe.c (open, close): Undefine.
108776         * lib/progreloc.c (open, close): Undefine.
108777         * lib/savedir.c (opendir, closedir): Undefine.
108778         * lib/utime.c (open, close): Undefine.
108779         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
108781 2007-01-10  Bruno Haible  <bruno@clisp.org>
108783         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
108785 2007-01-12  Eric Blake  <ebb9@byu.net>
108787         Provide a robust <wchar.h>.  Further simplifications are now
108788         possible in other modules, but not included here.
108789         * modules/wchar: New module.
108790         * m4/wchar.m4: New file.
108791         * lib/wchar_.h: Likewise.
108792         * modules/mbchar (Depends-on): Depend on wchar, as the first use
108793         of the new module.
108794         * MODULES.html.sh (Extended multibyte and wide character utilities):
108795         New section.
108797 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
108799         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
108800         to a reasonable default for memory allocation.
108801         (xreadlink): Don't allocate a huge buffer, to work around a buggy
108802         file system that reports garbage st_size values for symlinks.
108803         Problem reported by Liyang Hu.
108805 2007-01-11  Simon Josefsson  <simon@josefsson.org>
108807         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
108808         Emacs .#* auto-save files).
108810 2007-01-11  Bruno Haible  <bruno@clisp.org>
108812         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
108813         directory.
108815 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
108817         Use @...@ consistently in lib/wctype_.h.
108818         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
108819         on it being set to 1 or 0.
108820         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
108821         go back to AC_SUBSTing it.
108822         * modules/wctype (Makefile.am): Undo previous change.
108824 2007-01-10  Eric Blake  <ebb9@byu.net>
108826         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
108827         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
108828         * modules/wctype (Makefile.am): Likewise.
108829         Reported by Chris McGuire.
108831 2007-01-10  Jim Meyering  <jim@meyering.net>
108833         fts.c: a small readability/maintainability improvement
108834         * lib/fts.c (fts_read): Make this code slightly more readable and
108835         maintainable by hoisting the "sp->fts_cur = p" assignments to
108836         immediately follow the statements that set P.  Derived from
108837         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
108839 2007-01-10  Eric Blake  <ebb9@byu.net>
108841         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
108842         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
108843         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
108844         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
108845         Reported by Chris McGuire.
108847 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108849         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
108850         in sed script.
108852 2007-01-09  Bruno Haible  <bruno@clisp.org>
108854         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
108855         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
108856         variables.
108857         (func_module): Use them.
108859 2007-01-09  Bruno Haible  <bruno@clisp.org>
108861         * modules/unistr/base: New file.
108862         * lib/unistr.h: New file.
108864         * modules/unistr/u8-to-u16: New file.
108865         * lib/unistr/u8-to-u16.c: New file.
108867         * modules/unistr/u8-to-u32: New file.
108868         * lib/unistr/u8-to-u32.c: New file.
108870         * modules/unistr/u16-to-u8: New file.
108871         * lib/unistr/u16-to-u8.c: New file.
108873         * modules/unistr/u16-to-u32: New file.
108874         * lib/unistr/u16-to-u32.c: New file.
108876         * modules/unistr/u32-to-u8: New file.
108877         * lib/unistr/u32-to-u8.c: New file.
108879         * modules/unistr/u32-to-u16: New file.
108880         * lib/unistr/u32-to-u16.c: New file.
108882         * modules/unistr/u8-check: New file.
108883         * modules/unistr/u16-check: New file.
108884         * modules/unistr/u32-check: New file.
108885         * lib/unistr/u8-check.c: New file.
108886         * lib/unistr/u16-check.c: New file.
108887         * lib/unistr/u32-check.c: New file.
108889         * modules/unistr/u8-chr: New file.
108890         * modules/unistr/u16-chr: New file.
108891         * modules/unistr/u32-chr: New file.
108892         * lib/unistr/u8-chr.c: New file.
108893         * lib/unistr/u16-chr.c: New file.
108894         * lib/unistr/u32-chr.c: New file.
108896         * modules/unistr/u8-cmp: New file.
108897         * modules/unistr/u16-cmp: New file.
108898         * modules/unistr/u32-cmp: New file.
108899         * lib/unistr/u8-cmp.c: New file.
108900         * lib/unistr/u16-cmp.c: New file.
108901         * lib/unistr/u32-cmp.c: New file.
108903         * modules/unistr/u8-cpy: New file.
108904         * modules/unistr/u16-cpy: New file.
108905         * modules/unistr/u32-cpy: New file.
108906         * lib/unistr/u8-cpy.c: New file.
108907         * lib/unistr/u16-cpy.c: New file.
108908         * lib/unistr/u32-cpy.c: New file.
108909         * lib/unistr/u-cpy.h: New file.
108911         * modules/unistr/u8-cpy-alloc: New file.
108912         * modules/unistr/u16-cpy-alloc: New file.
108913         * modules/unistr/u32-cpy-alloc: New file.
108914         * lib/unistr/u8-cpy-alloc.c: New file.
108915         * lib/unistr/u16-cpy-alloc.c: New file.
108916         * lib/unistr/u32-cpy-alloc.c: New file.
108917         * lib/unistr/u-cpy-alloc.h: New file.
108919         * modules/unistr/u8-endswith: New file.
108920         * modules/unistr/u16-endswith: New file.
108921         * modules/unistr/u32-endswith: New file.
108922         * lib/unistr/u8-endswith.c: New file.
108923         * lib/unistr/u16-endswith.c: New file.
108924         * lib/unistr/u32-endswith.c: New file.
108925         * lib/unistr/u-endswith.h: New file.
108927         * modules/unistr/u8-mblen: New file.
108928         * modules/unistr/u16-mblen: New file.
108929         * modules/unistr/u32-mblen: New file.
108930         * lib/unistr/u8-mblen.c: New file.
108931         * lib/unistr/u16-mblen.c: New file.
108932         * lib/unistr/u32-mblen.c: New file.
108934         * modules/unistr/u8-mbtouc: New file.
108935         * modules/unistr/u16-mbtouc: New file.
108936         * modules/unistr/u32-mbtouc: New file.
108937         * lib/unistr/u8-mbtouc.c: New file.
108938         * lib/unistr/u16-mbtouc.c: New file.
108939         * lib/unistr/u32-mbtouc.c: New file.
108941         * modules/unistr/u8-mbtouc-safe: New file.
108942         * modules/unistr/u16-mbtouc-safe: New file.
108943         * modules/unistr/u32-mbtouc-safe: New file.
108944         * lib/unistr/u8-mbtouc-safe.c: New file.
108945         * lib/unistr/u16-mbtouc-safe.c: New file.
108946         * lib/unistr/u32-mbtouc-safe.c: New file.
108948         * modules/unistr/u8-move: New file.
108949         * modules/unistr/u16-move: New file.
108950         * modules/unistr/u32-move: New file.
108951         * lib/unistr/u8-move.c: New file.
108952         * lib/unistr/u16-move.c: New file.
108953         * lib/unistr/u32-move.c: New file.
108954         * lib/unistr/u-move.h: New file.
108956         * modules/unistr/u8-next: New file.
108957         * modules/unistr/u16-next: New file.
108958         * modules/unistr/u32-next: New file.
108959         * lib/unistr/u8-next.c: New file.
108960         * lib/unistr/u16-next.c: New file.
108961         * lib/unistr/u32-next.c: New file.
108963         * modules/unistr/u8-prev: New file.
108964         * modules/unistr/u16-prev: New file.
108965         * modules/unistr/u32-prev: New file.
108966         * lib/unistr/u8-prev.c: New file.
108967         * lib/unistr/u16-prev.c: New file.
108968         * lib/unistr/u32-prev.c: New file.
108970         * modules/unistr/u8-set: New file.
108971         * modules/unistr/u16-set: New file.
108972         * modules/unistr/u32-set: New file.
108973         * lib/unistr/u8-set.c: New file.
108974         * lib/unistr/u16-set.c: New file.
108975         * lib/unistr/u32-set.c: New file.
108976         * lib/unistr/u-set.h: New file.
108978         * modules/unistr/u8-startswith: New file.
108979         * modules/unistr/u16-startswith: New file.
108980         * modules/unistr/u32-startswith: New file.
108981         * lib/unistr/u8-startswith.c: New file.
108982         * lib/unistr/u16-startswith.c: New file.
108983         * lib/unistr/u32-startswith.c: New file.
108984         * lib/unistr/u-startswith.h: New file.
108986         * modules/unistr/u8-stpcpy: New file.
108987         * modules/unistr/u16-stpcpy: New file.
108988         * modules/unistr/u32-stpcpy: New file.
108989         * lib/unistr/u8-stpcpy.c: New file.
108990         * lib/unistr/u16-stpcpy.c: New file.
108991         * lib/unistr/u32-stpcpy.c: New file.
108992         * lib/unistr/u-stpcpy.h: New file.
108994         * modules/unistr/u8-stpncpy: New file.
108995         * modules/unistr/u16-stpncpy: New file.
108996         * modules/unistr/u32-stpncpy: New file.
108997         * lib/unistr/u8-stpncpy.c: New file.
108998         * lib/unistr/u16-stpncpy.c: New file.
108999         * lib/unistr/u32-stpncpy.c: New file.
109000         * lib/unistr/u-stpncpy.h: New file.
109002         * modules/unistr/u8-strcat: New file.
109003         * modules/unistr/u16-strcat: New file.
109004         * modules/unistr/u32-strcat: New file.
109005         * lib/unistr/u8-strcat.c: New file.
109006         * lib/unistr/u16-strcat.c: New file.
109007         * lib/unistr/u32-strcat.c: New file.
109008         * lib/unistr/u-strcat.h: New file.
109010         * modules/unistr/u8-strchr: New file.
109011         * modules/unistr/u16-strchr: New file.
109012         * modules/unistr/u32-strchr: New file.
109013         * lib/unistr/u8-strchr.c: New file.
109014         * lib/unistr/u16-strchr.c: New file.
109015         * lib/unistr/u32-strchr.c: New file.
109017         * modules/unistr/u8-strcmp: New file.
109018         * modules/unistr/u16-strcmp: New file.
109019         * modules/unistr/u32-strcmp: New file.
109020         * lib/unistr/u8-strcmp.c: New file.
109021         * lib/unistr/u16-strcmp.c: New file.
109022         * lib/unistr/u32-strcmp.c: New file.
109024         * modules/unistr/u8-strcpy: New file.
109025         * modules/unistr/u16-strcpy: New file.
109026         * modules/unistr/u32-strcpy: New file.
109027         * lib/unistr/u8-strcpy.c: New file.
109028         * lib/unistr/u16-strcpy.c: New file.
109029         * lib/unistr/u32-strcpy.c: New file.
109030         * lib/unistr/u-strcpy.h: New file.
109032         * modules/unistr/u8-strcspn: New file.
109033         * modules/unistr/u16-strcspn: New file.
109034         * modules/unistr/u32-strcspn: New file.
109035         * lib/unistr/u8-strcspn.c: New file.
109036         * lib/unistr/u16-strcspn.c: New file.
109037         * lib/unistr/u32-strcspn.c: New file.
109038         * lib/unistr/u-strcspn.h: New file.
109040         * modules/unistr/u8-strdup: New file.
109041         * modules/unistr/u16-strdup: New file.
109042         * modules/unistr/u32-strdup: New file.
109043         * lib/unistr/u8-strdup.c: New file.
109044         * lib/unistr/u16-strdup.c: New file.
109045         * lib/unistr/u32-strdup.c: New file.
109046         * lib/unistr/u-strdup.h: New file.
109048         * modules/unistr/u8-strlen: New file.
109049         * modules/unistr/u16-strlen: New file.
109050         * modules/unistr/u32-strlen: New file.
109051         * lib/unistr/u8-strlen.c: New file.
109052         * lib/unistr/u16-strlen.c: New file.
109053         * lib/unistr/u32-strlen.c: New file.
109054         * lib/unistr/u-strlen.h: New file.
109056         * modules/unistr/u8-strmblen: New file.
109057         * modules/unistr/u16-strmblen: New file.
109058         * modules/unistr/u32-strmblen: New file.
109059         * lib/unistr/u8-strmblen.c: New file.
109060         * lib/unistr/u16-strmblen.c: New file.
109061         * lib/unistr/u32-strmblen.c: New file.
109063         * modules/unistr/u8-strmbtouc: New file.
109064         * modules/unistr/u16-strmbtouc: New file.
109065         * modules/unistr/u32-strmbtouc: New file.
109066         * lib/unistr/u8-strmbtouc.c: New file.
109067         * lib/unistr/u16-strmbtouc.c: New file.
109068         * lib/unistr/u32-strmbtouc.c: New file.
109070         * modules/unistr/u8-strncat: New file.
109071         * modules/unistr/u16-strncat: New file.
109072         * modules/unistr/u32-strncat: New file.
109073         * lib/unistr/u8-strncat.c: New file.
109074         * lib/unistr/u16-strncat.c: New file.
109075         * lib/unistr/u32-strncat.c: New file.
109076         * lib/unistr/u-strncat.h: New file.
109078         * modules/unistr/u8-strncmp: New file.
109079         * modules/unistr/u16-strncmp: New file.
109080         * modules/unistr/u32-strncmp: New file.
109081         * lib/unistr/u8-strncmp.c: New file.
109082         * lib/unistr/u16-strncmp.c: New file.
109083         * lib/unistr/u32-strncmp.c: New file.
109085         * modules/unistr/u8-strncpy: New file.
109086         * modules/unistr/u16-strncpy: New file.
109087         * modules/unistr/u32-strncpy: New file.
109088         * lib/unistr/u8-strncpy.c: New file.
109089         * lib/unistr/u16-strncpy.c: New file.
109090         * lib/unistr/u32-strncpy.c: New file.
109091         * lib/unistr/u-strncpy.h: New file.
109093         * modules/unistr/u8-strnlen: New file.
109094         * modules/unistr/u16-strnlen: New file.
109095         * modules/unistr/u32-strnlen: New file.
109096         * lib/unistr/u8-strnlen.c: New file.
109097         * lib/unistr/u16-strnlen.c: New file.
109098         * lib/unistr/u32-strnlen.c: New file.
109099         * lib/unistr/u-strnlen.h: New file.
109101         * modules/unistr/u8-strpbrk: New file.
109102         * modules/unistr/u16-strpbrk: New file.
109103         * modules/unistr/u32-strpbrk: New file.
109104         * lib/unistr/u8-strpbrk.c: New file.
109105         * lib/unistr/u16-strpbrk.c: New file.
109106         * lib/unistr/u32-strpbrk.c: New file.
109107         * lib/unistr/u-strpbrk.h: New file.
109109         * modules/unistr/u8-strrchr: New file.
109110         * modules/unistr/u16-strrchr: New file.
109111         * modules/unistr/u32-strrchr: New file.
109112         * lib/unistr/u8-strrchr.c: New file.
109113         * lib/unistr/u16-strrchr.c: New file.
109114         * lib/unistr/u32-strrchr.c: New file.
109116         * modules/unistr/u8-strspn: New file.
109117         * modules/unistr/u16-strspn: New file.
109118         * modules/unistr/u32-strspn: New file.
109119         * lib/unistr/u8-strspn.c: New file.
109120         * lib/unistr/u16-strspn.c: New file.
109121         * lib/unistr/u32-strspn.c: New file.
109122         * lib/unistr/u-strspn.h: New file.
109124         * modules/unistr/u8-strstr: New file.
109125         * modules/unistr/u16-strstr: New file.
109126         * modules/unistr/u32-strstr: New file.
109127         * lib/unistr/u8-strstr.c: New file.
109128         * lib/unistr/u16-strstr.c: New file.
109129         * lib/unistr/u32-strstr.c: New file.
109130         * lib/unistr/u-strstr.h: New file.
109132         * modules/unistr/u8-strtok: New file.
109133         * modules/unistr/u16-strtok: New file.
109134         * modules/unistr/u32-strtok: New file.
109135         * lib/unistr/u8-strtok.c: New file.
109136         * lib/unistr/u16-strtok.c: New file.
109137         * lib/unistr/u32-strtok.c: New file.
109138         * lib/unistr/u-strtok.h: New file.
109140         * modules/unistr/u8-uctomb: New file.
109141         * modules/unistr/u16-uctomb: New file.
109142         * modules/unistr/u32-uctomb: New file.
109143         * lib/unistr/u8-uctomb.c: New file.
109144         * lib/unistr/u16-uctomb.c: New file.
109145         * lib/unistr/u32-uctomb.c: New file.
109147         * MODULES.html.sh (Unicode string functions): Add the new modules.
109149 2007-01-08  Bruno Haible  <bruno@clisp.org>
109151         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
109152         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
109153         subdirectories.
109155 2007-01-08  Karl Berry  <karl@gnu.org>
109157         * doc/error.texi: mention that main() fns must set program_name
109158         when progname is used.
109160 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
109162         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
109163         WCTYPE_H is empty, for the benefit of builds from non-distclean
109164         directories.  Problem reported by Eric Blake in
109165         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
109167 2007-01-08  Bruno Haible  <bruno@clisp.org>
109169         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
109170         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
109171         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
109172         PROVIDE_CANONICALIZE_FILENAME_MODE.
109173         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
109175 2007-01-08  Bruno Haible  <bruno@clisp.org>
109177         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
109178         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
109179         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
109180         * lib/fts.c: Likewise.
109181         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
109183 2006-12-25  Bruno Haible  <bruno@clisp.org>
109185         * modules/utf8-ucs4-safe: New file.
109186         * lib/utf8-ucs4-safe.h: New file.
109187         * lib/unistr/utf8-ucs4-safe.c: New file.
109189         * modules/utf16-ucs4-safe: New file.
109190         * lib/utf16-ucs4-safe.h: New file.
109191         * lib/unistr/utf16-ucs4-safe.c: New file.
109193         * MODULES.html.sh (Unicode string functions): Add the new modules.
109195 2007-01-08  Bruno Haible  <bruno@clisp.org>
109197         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
109198         (Depends-on): Add unitypes.
109199         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
109200         (u8_mbtouc_aux): Move out to separate file.
109201         (u8_mbtouc): Use ucs4_t, uint8_t types.
109202         * lib/unistr/utf8-ucs4.c: New file.
109204         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
109205         (Depends-on): Add unitypes.
109206         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
109207         (u16_mbtouc_aux): Move out to separate file.
109208         (u16_mbtouc): Use ucs4_t, uint16_t types.
109209         * lib/unistr/utf16-ucs4.c: New file.
109211         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
109212         (Depends-on): Add unitypes.
109213         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
109214         (u8_uctomb_aux): Move out to separate file.
109215         (u8_uctomb): Use ucs4_t, uint8_t types.
109216         * lib/unistr/ucs4-utf8.c: New file.
109218         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
109219         (Depends-on): Add unitypes.
109220         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
109221         (u16_uctomb_aux): Move out to separate file.
109222         (u16_uctomb): Use ucs4_t, uint16_t types.
109223         * lib/unistr/ucs4-utf16.c: New file.
109225 2006-12-25  Bruno Haible  <bruno@clisp.org>
109227         * modules/unitypes: New file.
109228         * lib/unitypes.h: New file.
109229         * MODULES.html.sh (func_all_modules): New section "Unicode string
109230         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
109231         this section. Add unitypes.
109233 2007-01-08  Bruno Haible  <bruno@clisp.org>
109235         Avoid variable names that conflict with those from libtool.
109236         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
109237         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
109238         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
109239         library_names_spec to acl_library_names_spec, hardcode_* to
109240         acl_hardcode_*.
109241         Reported by Ralf Wildenhues.
109243 2007-01-08  Bruno Haible  <bruno@clisp.org>
109245         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
109246         definition.
109247         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
109248         definition.
109249         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
109250         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
109251         definition.
109252         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
109253         definition.
109254         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
109255         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
109256         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
109257         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
109258         definition.
109259         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
109260         definition.
109261         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
109262         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
109263         GC_USE_<algorithm>.
109264         * lib/gc-libgcrypt.c: Likewise.
109265         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
109266         * modules/gc-arctwo (configure.ac): Likewise.
109267         * modules/gc-des (configure.ac): Likewise.
109268         * modules/gc-hmac-md5 (configure.ac): Likewise.
109269         * modules/gc-hmac-sha1 (configure.ac): Likewise.
109270         * modules/gc-md2 (configure.ac): Likewise.
109271         * modules/gc-md4 (configure.ac): Likewise.
109272         * modules/gc-md5 (configure.ac): Likewise.
109273         * modules/gc-random (configure.ac): Likewise.
109274         * modules/gc-rijndael (configure.ac): Likewise.
109275         * modules/gc-sha1 (configure.ac): Likewise.
109277 2007-01-08  Bruno Haible  <bruno@clisp.org>
109279         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
109280         macro definition.
109281         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
109282         definition.
109283         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
109284         definition.
109285         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
109286         * modules/fcntl-safer (configure.ac): Likewise.
109287         * modules/fopen-safer (configure.ac): Likewise.
109288         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
109289         GNULIB_FWRITEERROR macro definition.
109291 2007-01-08  Bruno Haible  <bruno@clisp.org>
109293         * m4/gnulib-common.m4: New file.
109294         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
109295         (func_get_filelist): Add m4/gnulib-common.m4.
109297 2007-01-08  Bruno Haible  <bruno@clisp.org>
109299         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
109300         command.
109302 2007-01-08  Jim Meyering  <jim@meyering.net>
109304         Use a more robust test for a "can't happen" condition.
109305         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
109306         narrowed the st_size value.  Presuming the "can't happen" condition
109307         is true, that narrowing could conceivably convert an invalid st_size
109308         value into a valid one.  Instead, use a change based on Matthew
109309         Woehlke's original patch.
109311         Slight readability improvement: use an assert-like macro
109312         in place of literal "abort ()" uses.
109313         * lib/fts.c (fts_assert): Define.
109314         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
109315         Use this macro instead of a bare 'abort'.
109317 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
109319         Don't worry about using IRIX 5.3's wctype.h broken definitions;
109320         simply work around them.
109321         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
109322         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
109323         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
109324         declaring.
109325         Don't bother to define as macros, since the standard doesn't require it.
109326         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
109327         longer worry about IRIX 5.3.
109328         (HAVE_WCTYPE_CTMP_BUG): Remove.
109330 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
109332         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
109333         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
109334         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
109335         Problems reported by Georg Schwarz for IRIX 5.3.
109337         * gnulib-tool (autoconf_minversion): Take the maximum version number
109338         found, not the minimum.  Problem reported by James Youngman.
109340 2007-01-03  Karl Berry  <karl@gnu.org>
109342         * doc/error.texi: new file, explaining interaction with progname.
109343         * doc/gnulib.texi: include it.  Update copyright.
109345 2007-01-03  Simon Josefsson  <simon@josefsson.org>
109347         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
109348         AC_CANONICAL_HOST, to improve autobuild outputs.
109350 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
109351             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
109353         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
109354         sockets, server sockets, and other file descriptors.  Count errors
109355         to compute the return value.  Reorder the code a bit to be easier
109356         to follow.  Don't set event bits that were not requested (except
109357         POLLERR and POLLHUP).
109359 2007-01-01  Bruno Haible  <bruno@clisp.org>
109361         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
109363 2007-01-03  Jim Meyering  <jim@meyering.net>
109365         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
109367 2007-01-02  Bruno Haible  <bruno@clisp.org>
109369         * modules/settime (Include): Require timespec.h.
109370         * modules/nanosleep (Include): Likewise.
109372 2007-01-01  Bruno Haible  <bruno@clisp.org>
109374         * gnulib-tool (func_emit_copyright_notice): Bump year.
109375         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
109377 2007-01-01  Bruno Haible  <bruno@clisp.org>
109379         Improve support for OpenBSD.
109380         * build-aux/config.rpath (libname_spec): Export.
109381         (library_names_spec): New variable. Export.
109382         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
109383         library_names_spec from the config.rpath output. Locate shared library
109384         through the name pattern in library_names_spec.
109386 2007-01-01  Eric Blake  <ebb9@byu.net>
109388         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
109390 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
109392         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
109393         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
109394         assume the C locale, and avoid an "eval" that could cause trouble.
109395         Problem with SORT reported by Bob Proulx.
109397         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
109398         Define.  Trivial patch from Henning Nielsen Lund, originally
109399         sent to bug-grep@gnu.org today.
109401 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
109403         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
109404         struct stat.  Problem reported by Henning Nielsen Lund.
109405         * lib/acl.c: Include acl.h first, to check interface.  Don't
109406         bother to include sys/types.h and sys/stat.h again.
109408 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
109410         Import the following change from libc; problem reported by
109411         Sven Verdoolaege.
109413         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
109415         [BZ #1373]
109416         * lib/argp.h: Remove __NTH for __argp_usage inline function.
109418 2006-12-28  Jim Meyering  <jim@meyering.net>
109420         * build-aux/announce-gen: Do not assume that the package
109421         builds any of tar.gz, tar.bz2, and .xdelta files.
109422         Suggestion from Simon Josefsson.
109424 2006-12-28  Simon Josefsson  <simon@josefsson.org>
109426         * modules/announce-gen: New file.
109428 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
109430         * lib/mbchar.h: Just include <wctype.h>; the wctype module
109431         handles its gotchas now.
109432         * lib/mbswidth.c: Likewise.
109433         * lib/wcwidth.h: Likewise.
109434         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
109435         and iswcntrl; the wctype module does this stuff now.
109436         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
109437         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
109438         * modules/mbchar (Depends-on): Add wctype.
109439         * modules/mbswidth (Depends-on): Likewise.
109440         * modules/wcwidth (Depends-on): Likewise.
109442 2006-12-27  Eric Blake  <ebb9@byu.net>
109444         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
109445         module uses more than what <wctype.h> is required to provide.
109447 2006-12-26  Eric Blake  <ebb9@byu.net>
109449         * gnulib-tool (sed_extract_prog): Avoid space-tab.
109451 2006-12-26  Eric Blake  <ebb9@byu.net>
109453         * modules/absolute-header: New module.
109454         * modules/fcntl (Depends-on): Depend on it.
109455         * modules/inttypes (Depends-on): Likewise.
109456         * modules/stdint (Depends-on): Likewise.
109457         * modules/sys_stat (Depends-on): Likewise.
109458         * modules/wctype (Depends-on): Likewise.
109459         * MODULES.html.sh (Support for building libraries and
109460         executables): Document it.
109462 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
109464         * gnulib-tool (SED): Remove, undoing previous change.
109465         The problem was that it broke coreutils on Solaris, because
109466         "sed --posix" leaked into a makefile.
109467         (sed): New alias, if 'alias' and GNU sed.
109469 2006-12-24  Jim Meyering  <jim@meyering.net>
109471         Work around an fchownat bug in glibc-2.4:
109472         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
109473         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
109474         in spite of the -P option.
109475         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
109476         New macros.
109477         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
109478         * modules/openat (Files): Add lib/fchownat.c.
109479         * lib/openat.c (fchownat): Don't define here.  Move to...
109480         * lib/fchownat.c: ...this new file.
109482 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
109484         Fix bug reported by Bruno Haible in
109485         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
109486         where quotearg.c didn't compile on Mac OS X 10.2 because it
109487         lacks <wchar.h> and wint_t.
109488         * lib/wctype_.h (__wctype_wint_t): New type.
109489         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
109490         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
109491         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
109492         Arg is now of type __wctype_wint_t, not wint_t.
109493         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
109494         substitute HAVE_WINT_T.
109495         * modules/wctype (Files): Add m4/wint_t.m4.
109496         (wctype.h): Substitute HAVE_WINT_T.
109498 2006-12-23  Bruno Haible  <bruno@clisp.org>
109500         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
109502 2006-12-23  Bruno Haible  <bruno@clisp.org>
109504         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
109505         S_ISLNK.
109506         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
109507         mingw.
109509 2006-12-22  Bruno Haible  <bruno@clisp.org>
109511         * lib/copy-file.c: Include acl.h.
109512         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
109513         Close the file descriptors only after being done with copy_acl.
109514         * modules/copy-file (Depends-on): Add acl.
109516 2006-12-22  Bruno Haible  <bruno@clisp.org>
109518         * gnulib-tool (SED): New variable.
109519         Use $SED instead of sed everywhere.
109521 2006-12-22  Bruno Haible  <bruno@clisp.org>
109523         * modules/no-c++: New file.
109524         * m4/no-c++.m4: New file.
109525         * MODULES.html.sh (Support for building libraries and executables):
109526         Add no-c++.
109528 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
109530         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
109531         Include <limits.h>, and use its INT_MAX to rewrite the
109532         j loop so that it does not overflow 'int'.  Problem reported by
109533         Ralf Wildenhues in
109534         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
109535         Play it safe by shifting left by 1 rather than multiplying by 2,
109536         as GCC is less likely to optimize this away when the value
109537         is signed (when it assumes overflow leads to undefined behavior).
109538         Also, don't assume time_t uses two's complement.
109540 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
109542         * MODULES.html.sh: New module wctype.
109543         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
109544         * lib/fnmatch.c: Don't bother to include <wchar.h> before
109545         <wctype.h>, since the new wctype module should fix this.
109546         * lib/quotearg.c: Include <wctype.h> unconditionally, since
109547         the wctype module should arrange for it.
109548         * lib/regex_internal.h: Likewise.
109549         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
109550         since the wctype module should handle this now.
109551         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
109552         * modules/fnmatch (Depends-on): Add wctype.
109553         * modules/quotearg (Depends-on): Likewise.
109554         * modules/regex (Depends-on): Likewise.
109556 2006-12-19  Bruno Haible  <bruno@clisp.org>
109558         * lib/strdup.h [C++]: Wrap definitions in extern "C".
109559         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
109561 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109563         * modules/savewd (Depends-on): Fix dependency on fcntl.
109565 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
109567         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
109568         conforms to C99, rather than relying on the user's environment
109569         setting of STDINT_H.
109571 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
109572         and Eric Blake  <ebb9@byu.net>
109574         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
109575         This is more consistent with the other defines here.
109576         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
109577         Port to z/OS.  Problem reported by Paul Gilmartin.
109578         Change local vars to use gl_ prefix rather than ac_.
109579         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
109580         with other defines.
109581         * modules/double-slash-root: New module.
109582         * modules/dirname (Files): Remove m4/double-slash-root.m4.
109583         (Depends-on): Add double-slash-root.
109584         * MODULES.html.sh (File system functions): Mention new module.
109586 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
109588         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
109589         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
109590         This is for the benefit of gzip, which doesn't do i18n.
109592 2006-12-12  Jim Meyering  <jim@meyering.net>
109594         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
109595         Reported by Andreas Schwab <schwab@suse.de>.
109597 2006-12-12  Bruno Haible  <bruno@clisp.org>
109599         Merge these changes.
109600         2006-09-05  Bruno Haible  <bruno@clisp.org>
109601         * lib/iconvme.c (iconv_string): No need to save and restore errno when
109602         iconv_alloc succeeded.
109603         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
109604         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
109605         test for " && dest " at the end - dest is always != NULL there. Call
109606         iconv with 4xNULL arguments initially, to reset the state. Call iconv
109607         with 2xNULL arguments, also to flush the state storage. Handle the
109608         IRIX iconv behaviour. Realloc the final result, to throw away unused
109609         memory.
109611 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
109613         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
109614         and fchmodat unconditionally, since glibc 2.4 has them.
109615         Problem reported by Arkadiusz Miskiewicz.
109617 2006-12-10  Bruno Haible  <bruno@clisp.org>
109619         * gnulib-tool (func_import): Show the include files only for those
109620         modules that are copied and specified.
109621         Reported by Karl Berry.
109623 2006-12-08  Jim Meyering  <jim@meyering.net>
109625         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
109626         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
109628         * build-aux/announce-gen: Add two new options, both optional:
109629         --bootstrap-tools=TOOL_LIST
109630               a comma-separated list of tools, e.g.,
109631               autoconf,automake,bison,gnulib
109632         --gnulib-snapshot-date=DATE
109633               if gnulib is in the bootstrap tool list,
109634               then report this as the snapshot date.
109635               If not specified, use the current date/time.
109636               If you specify a date here, be sure it's UTC.
109638 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109640         * tests/test-argp-2.sh: Fix test to match actual output.
109641         (func_compare): Fix sed script to be portable.
109643 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
109645         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
109646         workaround for this case.  It is not autoconfigured now; offhand
109647         it's hard to see how to autoconfigure it.
109649 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
109651         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
109652         a directory that is about to be chowned.  Such a directory's
109653         initial file permissions should permit the owner only and this
109654         should not be changed until after the chown, since the group and
109655         other bits would be incorrect if they granted permission before
109656         the chown.
109658         Fix porting problem for iswctype reported by Georg Schwarz in:
109659         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
109660         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
109661         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
109662         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
109663         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
109665 2006-12-03  Jim Meyering  <jim@meyering.net>
109667         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
109668         p->fts_statp may not yet be defined.
109669         (fts_read): Instead, set it in the caller, once p->fts_statp is
109670         sure to be defined, and corresponds to a top-level directory.
109671         This bug made du -x fail.  Here's the coreutils test case:
109672         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
109673         Reported by Mike Frysinger.
109675 2006-12-01  Jim Meyering  <jim@meyering.net>
109677         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
109678         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
109679         Reported by Simon Josefsson.
109681 2006-11-30  Jim Meyering  <jim@meyering.net>
109683         * m4/warning.m4: Use the all-permissive copyright notice
109684         recommended by RMS (rather than LGPL).
109685         * m4/vararrays.m4: Likewise.
109686         * m4/flexmember.m4: Likewise.
109688 2006-11-29  Bruno Haible  <bruno@clisp.org>
109690         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
109691         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
109692         using +=.
109693         Reported by Simon Josefsson <simon@josefsson.org>.
109695 2006-11-28  James Youngman  <jay@gnu.org>
109697         * README: Advise users that they might find the bug-gnulib@gnu.org
109698         and autotools-announce@gnu.org mailing lists useful.
109700 2006-11-28  Bruno Haible  <bruno@clisp.org>
109702         * m4/ptrdiff_max.m4: Remove file.
109704 2006-11-21  Bruno Haible  <bruno@clisp.org>
109706         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
109707         _AC_COMPUTE_INT.
109708         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
109709         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
109710         _AC_COMPUTE_INT.
109711         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
109712         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
109713         _AC_COMPUTE_INT.
109714         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
109716 2006-11-28  Jim Meyering  <jim@meyering.net>
109718         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
109719         warning from "gcc -Wshadow" about shadowing the builtin.
109721 2006-11-27  Bruno Haible  <bruno@clisp.org>
109723         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
109724         _AC_COMPUTE_INT.
109725         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
109727 2006-11-27  Bruno Haible  <bruno@clisp.org>
109728             Paul Eggert  <eggert@cs.ucla.edu>
109730         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
109732 2006-11-26  Bruno Haible  <bruno@clisp.org>
109734         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
109735         noinst_LTLIBRARIES.
109737 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
109738             Bruno Haible  <bruno@clisp.org>
109740         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
109741         if compiling with "gcc -ansi".
109743 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
109745         Fix some incompatibilities with gcc -ansi -pedantic.
109746         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
109747         if compiling pedantically with GCC, unless it's C99 or later.
109748         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
109749         it mishandles gcc -ansi -pedantic as well.
109750         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
109751         if gcc -pedantic.
109752         * lib/regexec.c (check_node_accept_bytes): Don't use auto
109753         initializers for struct if -pedantic, unless it's C99 or later.
109755 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
109757         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
109758         Don't close an fd more than once. Identical atimes indicate
109759         success, not failure.
109761 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
109763         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
109765 2006-11-23  Jim Meyering  <jim@meyering.net>
109767         * build-aux/announce-gen: New file.  From coreutils.
109769 2006-11-22  Jim Meyering  <jim@meyering.net>
109771         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
109772         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
109773         (fts_read): Use a temporary to narrow the overused st_size member
109774         before using it in a switch statement.  Reported by Matthew Woehlke.
109776         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
109777         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
109779 2006-11-20  Bruno Haible  <bruno@clisp.org>
109781         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
109782         changequote instead of pairs of brackets.
109783         Reported by Andreas Schwab <schwab@suse.de>.
109785 2006-11-21  Jim Meyering  <jim@meyering.net>
109787         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
109788         so as to remain compatible with older compilers.
109789         Patch from Michael Deutschmann.
109791 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
109793         * MODULES.html.sh (File system functions): Add openat.
109795         * lib/openat.h (rpl_fstatat): New macro, if
109796         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
109797         (fstatat): Define to rpl_fstatat under the same conditions,
109798         unless COMPILING_FSTATAT.
109799         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
109800         seems to have the bug.
109801         * lib/fstatat.c: New file.
109802         * modules/openat (Files): Add it.
109804 2006-11-20  Bruno Haible  <bruno@clisp.org>
109806         * Makefile: New file.
109808 2006-11-20  Jim Meyering  <jim@meyering.net>
109810         The beginnings of syntax-related checks for gnulib.
109811         * lib/Makefile: New file.
109812         * lib/t-idcache: New script.  Ensure that the two halves of
109813         idcache.c stay in sync.
109815         * lib/idcache.c: Adjust comments in user- and group- portions to
109816         be more accurate, and to be consistent with one another.
109818 2006-11-20  Jim Meyering  <jim@meyering.net>
109820         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
109821         continue using the flexible array member (thus, this module performs
109822         half as many malloc calls), with the addition that...
109823         (getgroup, getuser): Consistently record a non-match via an empty
109824         "name" string, and map an empty string match to a NULL return value.
109825         * modules/idcache (Depends-on): Re-add flexmember.
109827         * lib/idcache.c (getuser): Remove all uses of the register keyword.
109828         (getuidbyname, getgroup, getgidbyname): Likewise.
109830         Use cleaner syntax: NULL rather than 0.
109831         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
109833 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
109835         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
109836         It mishandled the case where the group was missing.
109837         Problem reported by Greg Schafer.
109838         * modules/idcache: Likewise.
109840 2006-11-18  Jim Meyering  <jim@meyering.net>
109842         * check-module (%exempt_header): Add exception for some
109843         conditionally-included headers.
109845         * modules/i-ring (Depends-on): Add verify.
109846         (License): Change to LGPL.
109848 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
109850         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
109851         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
109852         and inttostr.h.  Use snprintf rather than uinttostr, so that
109853         LGPLed code doesn't depend on GPLed.
109855 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
109857         * modules/inline (License): Change from GPL to LGPL.
109859 2006-11-17  Jim Meyering  <jim@meyering.net>
109861         * modules/d-type (License): Switch to LGPL.
109863 2006-11-15  Bruno Haible  <bruno@clisp.org>
109865         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
109867 2006-11-15  Eric Blake  <ebb9@byu.net>
109869         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
109870         the module dependency.
109872 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
109873             Bruno Haible  <bruno@clisp.org>
109875         * gnulib-tool (func_create_testdir): Add license consistency check.
109877 2006-11-15  Eric Blake  <ebb9@byu.net>
109879         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
109880         random "(cached)" in configure output.
109882 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109884         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
109885         test for conforming inttypes.h is both announced and cached.
109887         * MODULES.html.sh (seen_modules, seen_files): New variables.
109888         (func_module): Rewrite to use a few less gnulib-tool and sed
109889         invocations.  Avoid a couple of quadratic algorithms for ...
109890         (missed_modules, missed_files): ... these, with ...
109891         (func_append, func_tmpdir): ... these new functions, from
109892         gnulib-tool.  Analogously, install traps for cleanup.
109894         * tests/test-gc.c (main): Remove unused variables.
109895         * tests/test-read-file.c: Include stdlib.h, for 'free'.
109897 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
109899         * modules/inttostr (License): Change to LGPL.
109901 2006-11-14  Eric Blake  <ebb9@byu.net>
109903         * modules/tempname (License): Change to LGPL.
109905 2006-11-14  Eric Blake  <ebb9@byu.net>
109907         * doc/functions.texi (Function Portability): *printf functions on
109908         Cygwin now understand all POSIX size specifiers.
109910 2006-11-14  Bruno Haible  <bruno@clisp.org>
109912         * modules/c-ctype (License): Change to LGPL.
109914 2006-11-12  Bruno Haible  <bruno@clisp.org>
109916         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
109917         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
109918         for GNOME libraries, for which the include files are installed in
109919         subdirectories of $prefix/include.
109921 2006-11-12  Bruno Haible  <bruno@clisp.org>
109923         * m4/lib-link.m4: Require at least autoconf-2.54.
109924         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
109925         name to underscores for the --with option.
109927 2006-11-13  Bruno Haible  <bruno@clisp.org>
109929         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
109930         the tests directory.
109931         Reported by Ralf Wildenhues.
109933 2006-11-13  Bruno Haible  <bruno@clisp.org>
109935         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
109936         (func_emit_initmacro_end): Undo the override here.
109937         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
109938         Works around the famous automake error in coreutils.
109940 2006-11-13  Eric Blake  <ebb9@byu.net>
109942         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
109943         element, not its node.
109945 2006-11-12  Bruno Haible  <bruno@clisp.org>
109947         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
109948         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
109950 2006-11-12  Bruno Haible  <bruno@clisp.org>
109952         * gnulib-tool: New option --local-symlink.
109953         (func_usage): Document it.
109954         (lsymbolic): New variable.
109955         (func_import, func_create_testdir): If --symlink was not specified,
109956         test whether --local-symlink was specified and the file comes from
109957         the local_gnulib_dir.
109959 2006-11-12  Bruno Haible  <bruno@clisp.org>
109961         * gnulib-tool (func_ln): New function.
109962         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
109964 2006-11-12  Bruno Haible  <bruno@clisp.org>
109966         Finish support for source files in subdirectories.
109967         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
109968         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
109969         AUTOMAKE_OPTIONS.
109970         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
109972 2006-11-12  Bruno Haible  <bruno@clisp.org>
109974         * gnulib-tool (func_get_automake_snippet): Synthesize also an
109975         EXTRA_lib_SOURCES augmentation.
109976         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
109978 2006-11-12  Jim Meyering  <jim@meyering.net>
109980         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
109981         file descriptors.  This also averts a failure on systems with
109982         native openat support when a traversed directory lacks "x" access.
109983         * lib/fts_.h: Include "i-ring.h"
109984         (struct FTS) [fts_fd_ring]: New member.
109985         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
109986         (FCHDIR): Add parentheses.
109987         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
109988         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
109989         When descending, rather than simply closing the previous
109990         fts_cwd_fd value, push that file descriptor onto the ring.
109991         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
109992         (fts_open): Initialize the new fd_ring member.
109993         (fts_close): Clear the ring.
109994         (fts_safe_changedir): When possible, use our new fd_ring to skip
109995         the diropen and fstat and dev/ino comparison that would normally
109996         accompany a virtual `chdir ("..")'.
109998         * modules/fts (Depends-on): Add i-ring.
109999         * modules/i-ring: New module.
110000         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
110001         * m4/i-ring.m4: New file.
110003 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110005         * gnulib-tool (func_create_testdir): Fix replacement of
110006         `build-aux' in configure.ac.  Run autotools in gltests
110007         subdirectory.
110008         (func_create_testdir, func_create_megatestdir, test): There is
110009         no need for '--force' in most autotool invocations in a new
110010         tree.  Actually fail the whole test if any of the tools, or the
110011         configure or make stages fail.
110013         Sync from Automake.
110014         * build-aux/gnupload: Revert last change.  Add pointer to upload
110015         instructions of the GNU Maintenance Instructions.
110016         Suggestion by Karl Berry.
110018 2006-11-10  Jim Meyering  <jim@meyering.net>
110020         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
110022 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
110024         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
110025         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
110026         (bind_textdomain_codeset) [! ENABLE_NLS]:
110027         Evaluate all the arguments.  That way, callers get compatible behavior
110028         if the arguments have side effects.  Also, it avoids some GCC
110029         diagnostics in some cases; Joel E. Denny reported problems when Bison
110030         was configured with --enable-gcc-warnigs.
110032 2006-11-10  Jim Meyering  <jim@meyering.net>
110034         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
110035         relevant options in CFLAGS (like -O, -fno-inline) are taken into
110036         account.
110038 2006-11-10  Jim Meyering  <jim@meyering.net>
110040         * modules/inline: New file/module.
110041         * modules/xalloc (Files): Remove m4/inline.m4.
110042         (Depends-on): Add inline, instead.
110043         * modules/oset: Likewise.
110044         * modules/list: Likewise.
110046 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
110048         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
110049         Problem reported by Matthew Woehlke.
110051 2006-11-09  Bruno Haible  <bruno@clisp.org>
110053         * lib/tempname.c (gen_tempname): Remove variant that invokes
110054         __gen_tempname.
110055         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
110056         __gen_tempname.
110058 2006-11-08  Bruno Haible  <bruno@clisp.org>
110060         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
110061         to 'yes' instead of 'cross-compiling'.
110063 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
110065         * lib/quotearg.h (quotearg_free): New decl.
110066         * lib/quotearg.c (quotearg_free): New function.
110067         (slot0, nslots, slotvec0, slotvec):
110068         Now file-scope so that quotearg_free can get at them.
110070 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110072         Sync from Automake.
110073         * build-aux/gnupload: Add missing 'gnu' to example URL.
110074         Report by Karl Berry.
110076 2006-11-08  Bruno Haible  <bruno@clisp.org>
110078         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
110079         Suggested by Paul Eggert.
110081 2006-11-08  Jim Meyering  <jim@meyering.net>
110083         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
110084         It's already included if !_LIBC.
110085         (fts_safe_changedir): Add a comment.
110087 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
110089         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
110090         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
110091         Matthew Woehlke.
110093         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
110094         definitions up, to avoid colliding with change below.
110095         (static_inline) [HAVE_INLINE]: New macro.
110096         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
110097         Provide extern decls when !HAVE_INLINE.  Do not define unless
110098         static_inline is defined, either by us or by xmalloc.c.  Use
110099         static_inline rather than static inline.
110100         (XCALLOC): Optimize sizeof(T) = 1 case.
110101         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
110103 2006-11-07  Bruno Haible  <bruno@clisp.org>
110105         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
110106         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
110107         AC_C_INLINE.
110108         * modules/xalloc (Files): Add m4/inline.m4.
110110 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110112         * README: Fix typo.
110113         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
110114         (Miscellanous Notes): ...from this.
110116 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
110118         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
110119         Mention that offsetof should be used instead of sizeof.
110120         From Bruno Haible.
110122 2006-11-07  Bruno Haible  <bruno@clisp.org>
110124         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
110126 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
110128         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
110129         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
110130         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
110131         (gl_tree_add_before, gl_tree_add_after):
110132         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
110133         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
110134         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
110135         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
110136         (gl_linked_add_after, gl_linked_add_at): Likewise.
110137         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
110138         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
110139         (gl_tree_add_before, gl_tree_add_after): Likewise.
110140         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
110141         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
110142         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
110144 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110146         * lib/gl_oset.h: Use C comment style, not C++ comment style.
110148 2006-11-06  Bruno Haible  <bruno@clisp.org>
110150         * m4/inline.m4: New file.
110151         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
110152         * modules/list (Files): Add m4/inline.m4.
110153         * modules/oset (Files): Likewise.
110155 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
110157         * lib/idcache.c: Include <stddef.h>, for offsetof.
110158         (struct userid.name): Change from char * to a flexible array member.
110159         All uses changed.
110160         * modules/idcache (Depends-on): Add flexmember.
110162         * MODULES.html.sh (Core language properties): New module flexmember.
110163         * modules/flexmember, m4/flexmember.m4: New files.
110165         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
110166         inline functions that are identical with the old xnmalloc_inline,
110167         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
110168         that we can avoid some unnecessary integer multiplications and
110169         divisions in the common case where the element size is known at
110170         compile time.
110171         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
110172         needed.
110173         (xnboundedmalloc): Remove.
110174         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
110175         arguments, for consistency with rest of this header.
110176         (xcharalloc): Rewrite using XNMALLOC.
110177         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
110178         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
110179         versions have been moved to lib/xalloc.h and renamed to be the
110180         non-*_inline versions.
110181         (xmalloc, xrealloc): Implement without reference to the xnmalloc
110182         and xnrealloc functions, since those functions are now inline and
110183         now call us.
110184         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
110185         renaming described above.
110186         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
110187         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
110188         captures the dependency in AC_C_INLINE.
110190         New module canonicalize-lgpl, proposed by Charles Wilson in
110191         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
110192         with a few small changes afterwards.
110193         * MODULES.html.sh (File system functions): New module
110194         canonicalize-lgpl.
110195         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
110196         and canonicalize_file_name.
110197         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
110198         * modules/canonicalize-lgpl: New files.
110200 2006-11-05  Bruno Haible  <bruno@clisp.org>
110202         * gnulib-tool (func_import, func_create_testdir): Create directories
110203         also for files in subdirectories of lib/.
110205 2006-11-05  Bruno Haible  <bruno@clisp.org>
110207         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
110208         ANSI C compliant.
110210 2006-11-03  Bruno Haible  <bruno@clisp.org>
110212         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
110213         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
110214         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
110215         (xnboundedmalloc): New inline function.
110216         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
110217         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
110218         xmalloc.
110219         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
110220         xmalloc.
110221         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
110222         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
110223         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
110224         xmalloc.
110225         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
110226         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
110227         xmalloc.
110228         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
110229         gl_tree_add_after): Use XMALLOC instead of xmalloc.
110230         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
110231         xmalloc.
110232         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
110233         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
110234         gl_tree_add_after): Use XMALLOC instead of xmalloc.
110235         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
110236         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
110237         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
110238         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
110240 2006-11-03  Bruno Haible  <bruno@clisp.org>
110242         * lib/c-ctype.h [C++]: Define functions without name mangling.
110243         * lib/fwriteerror.h [C++]: Likewise.
110244         * lib/gcd.h [C++]: Likewise.
110245         * lib/linebreak.h [C++]: Likewise.
110247 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
110249         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
110250         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
110251         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
110252         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
110253         Check for functions and headers just once.
110254         Check for declaration of canonicalize_file_name.
110255         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
110257 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
110259         * gnulib-tool (func_import): Fix typo in actioncmd.
110261 2006-11-02  Bruno Haible  <bruno@clisp.org>
110263         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
110264         newline sequence in the Makefile.am snippet as a space, like "make"
110265         does.
110266         Reported by Roger Persson <perrog@gmail.com>.
110268 2006-11-01  Bruno Haible  <bruno@clisp.org>
110270         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
110271         already declared in <string.h>.
110272         * lib/strcase.h (strncasecmp): Don't declare it if yes.
110274 2006-11-01  Bruno Haible  <bruno@clisp.org>
110276         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
110277         * lib/strcase.h: Include <string.h>.
110278         (strcasecmp): Define to rpl_strcasecmp here.
110280 2006-11-01  Bruno Haible  <bruno@clisp.org>
110282         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
110284 2006-11-01  Eric Blake  <ebb9@byu.net>
110286         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
110288         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
110290 2006-10-29  Bruno Haible  <bruno@clisp.org>
110292         Make it compile in C++ mode.
110293         * lib/full-write.c (full_rw): Add a cast.
110295 2006-11-01  Bruno Haible  <bruno@clisp.org>
110297         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
110298         be POSIX compliant.
110299         Reported by Roger Persson <perrog@gmail.com>.
110301 2006-11-01  Eric Blake  <ebb9@byu.net>
110303         * lib/getopt_.h: Fix comments.
110305 2006-10-31  Eric Blake  <ebb9@byu.net>
110307         * modules/tmpdir (Depends-on): Add sys_stat.
110308         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
110309         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
110310         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
110311         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
110312         tempname.
110314 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
110316         Avoid some C++ diagnostics reported by Bruno Haible.
110317         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
110318         xmalloc.
110319         (quotearg_alloc): Use xcharalloc rather than xmalloc.
110320         (struct slotvec): Move to top level.
110321         (quotearg_n_options): Rewrite to avoid xmalloc.
110322         * lib/xalloc.h (xcharalloc): New function.
110323         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
110324         [defined __cplusplus]: Add function template that provides result
110325         type propagation.  This part of the change is from Bruno Haible.
110327 2006-10-29  Bruno Haible  <bruno@clisp.org>
110329         Make it compile in C++ mode.
110330         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
110331         * lib/strnlen1.c (strnlen1): Cast memchr result.
110332         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
110333         * lib/clean-temp.c (string_equals, string_hash): Add casts.
110334         (create_temp_dir): Rename local variable 'template'.
110335         (compile_csharp_using_sscli): Add cast.
110336         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
110337         * lib/findprog.c (find_in_path): Likewise.
110338         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
110339         * lib/wait-process.c (register_slave_subprocess): Likewise.
110341 2006-10-22  Bruno Haible  <bruno@clisp.org>
110343         * modules/tsearch: New file.
110344         * lib/tsearch.h: New file.
110345         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
110346         * m4/tsearch.m4: New file.
110347         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
110349 2006-10-29  Eric Blake  <ebb9@byu.net>
110351         * lib/arcfour.c: Assume config.h.
110352         * lib/arctwo.c: Likewise.
110353         * lib/base64.c: Likewise.
110354         * lib/check-version.c: Likewise.
110355         * lib/crc.c: Likewise.
110356         * lib/des.c: Likewise.
110357         * lib/gc-gnulib.c: Likewise.
110358         * lib/gc-libgcrypt.c: Likewise.
110359         * lib/gc-pbkdf2-sha1.c: Likewise.
110360         * lib/getaddrinfo.c: Likewise.
110361         * lib/getdelim.c: Likewise.
110362         * lib/getline.c: Likewise.
110363         * lib/hmac-md5.c: Likewise.
110364         * lib/hmac-sha1.c: Likewise.
110365         * lib/iconvme.c: Likewise.
110366         * lib/md2.c: Likewise.
110367         * lib/md4.c: Likewise.
110368         * lib/memxor.c: Likewise.
110369         * lib/read-file.c: Likewise.
110370         * lib/readline.c: Likewise.
110371         * lib/rijndael-alg-fst.c: Likewise.
110372         * lib/rijndael-api-fst.c: Likewise.
110373         * lib/xgetdomainname.c: Likewise.
110375 2006-10-28  Eric Blake  <ebb9@byu.net>
110377         * lib/xstrndup.c: Assume config.h.
110379 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
110381         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
110382         stat-macros.h is now for our own macros, whereas stat_h is for
110383         macros in the <sys/stat.h> name space.
110384         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
110385         (STAT_MACROS_H): Remove.
110386         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
110387         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
110388         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
110389         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
110390         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
110391         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
110392         Move these macros to ...
110393         * lib/stat_.h: here.  Don't include stat-macros.h.
110394         * lib/canonicalize.c: Don't include stat-macros.h.
110395         * lib/chown.c: Likewise.
110396         * lib/euidaccess.c: Likewise.
110397         * lib/file-type.c: Likewise.
110398         * lib/filemode.c: Likewise.
110399         * lib/glob.c: Likewise.
110400         * lib/isapipe.c: Likewise.
110401         * lib/lchown.c: Likewise.
110402         * lib/lstat.c: Likewise.
110403         * lib/mkdir-p.c: Likewise.
110404         * lib/rmdir.c: Likewise.
110405         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
110406         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
110407         unless mkdir isn't declared, to speed up 'configure'.
110408         Always create sys/stat.h, since it's unlikely any real sys/stat.h
110409         would define all the S_* symbols.
110410         * modules/canonicalize (Depends-on):
110411         Depend on sys_stat, not stat-macros.
110412         * modules/chown: Likewise.
110413         * modules/euidaccess: Likewise.
110414         * modules/filemode: Likewise.
110415         * modules/file-type: Likewise.
110416         * modules/glob: Likewise.
110417         * modules/isapipe: Likewise.
110418         * modules/lchown: Likewise.
110419         * modules/lstat: Likewise.
110420         * modules/mkancesdirs: Likewise.
110421         * modules/rmdir: Likewise.
110422         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
110423         * modules/modechange: Likewise.
110424         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
110425         (configure.ac): Remove gl_STAT_MACROS.
110426         * modules/sys_stat (Depends-on): Remove stat-macros.
110428 2006-10-27  Bruno Haible  <bruno@clisp.org>
110430         * m4/signed.m4: Remove file.
110431         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
110432         invocation.
110433         * modules/vasnprintf (Files): Remove m4/signed.m4.
110435 2006-10-27  Bruno Haible  <bruno@clisp.org>
110437         Update to GNU gettext 0.16.
110438         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
110439         m4/inttypes-h.m4, m4/signed.m4.
110440         * m4/gettext.m4: Update to GNU gettext 0.16.
110441         * m4/intl.m4: New file, from GNU gettext.
110442         * m4/intldir.m4: New file, from GNU gettext.
110443         * config/srclist.txt: Update
110445 2006-10-27  Eric Blake  <ebb9@byu.net>
110447         * MODULES.html.sh: Document tempname.
110448         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
110449         dependencies.
110450         (Files): Move lib/tempname.c...
110451         * modules/tempname: ...to this new module.
110452         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
110453         (gl_PREREQ_TEMPNAME): Move...
110454         * m4/tempname.m4: ...to this new file.
110455         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
110456         * modules/sys_stat (Depends-on): Add stat-macros.
110457         * lib/stat_.h (includes): Pick up stat macros.
110458         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
110459         if stat macros are broken.
110460         * lib/tempname.c (includes): No need to include "stat-macros.h".
110461         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
110462         (direxists, __path_search) [!_LIBC]: Don't compile these in
110463         gnulib; the tmpdir module covers that.
110464         * lib/tempname.h: New file.
110466 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
110468         * COPYING: Explain how gnulib-tool converts licence headers.
110469         Almost all wording by Eric Blake.
110471 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
110473         * lib/mbchar.h (is_basic_table): Make read-only.
110474         * lib/mbchar.c (is_basic_table): Likewise.
110475         Reported by John Darrington.
110477 2006-10-25  Bruno Haible  <bruno@clisp.org>
110479         * lib/progname.h (set_program_name): Undefine before defining.
110481 2006-10-25  Bruno Haible  <bruno@clisp.org>
110483         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
110484         false for non-gcc C++ compilers.
110485         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
110487 2006-10-24  Bruno Haible  <bruno@clisp.org>
110489         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
110490         iconv implementations like Irix iconv.
110492 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
110494         * modules/vararrays: New file.
110495         * m4/vararrays.m4: New file, taken from diffutils.
110496         * MODULES.html.sh: New module vararrays.
110498 2006-10-24  Karl Berry  <karl@gnu.org>
110500         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
110501         Don't call GNU Unix.
110503 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110505         * users.txt: Add Libtool.
110507         Sync from Libtool:
110509         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
110511         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
110512         to gnulib's policy of including config.h unconditionally.
110514 2006-10-24  Bruno Haible  <bruno@clisp.org>
110516         * modules/wcwidth (Files): Add m4/wint_t.m4.
110517         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
110518         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
110520 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
110522         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
110523         to pacify GCC with some -W flags enabled.  Problem reported by
110524         Bruno Haible.
110526 2006-10-24  Jim Meyering  <jim@meyering.net>
110528         * MODULES.html.sh: Remove uinttostr.  It's not a module.
110529         Reported by Karl Berry.
110531 2006-10-23  Bruno Haible  <bruno@clisp.org>
110533         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
110535 2006-10-24  Bruno Haible  <bruno@clisp.org>
110537         * lib/gl_list.h: Use C comment style, not C++ comment style.
110539 2006-10-23  Eric Blake  <ebb9@byu.net>
110541         * lib/getaddrinfo.c (includes): Add missing include.
110543 2006-10-23  Bruno Haible  <bruno@clisp.org>
110544             Paul Eggert  <eggert@cs.ucla.edu>
110546         Ability to rename obstack_free.
110547         * lib/obstack.h (__obstack_free): New macro. Declare instead of
110548         obstack_free.
110549         (obstack_free): Invoke the __obstack_free macro.
110550         * lib/obstack.c (obstack_free): Use __obstack_free macro.
110552 2006-10-23  Bruno Haible  <bruno@clisp.org>
110553             Paul Eggert  <eggert@cs.ucla.edu>
110555         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
110556         __argc, __argv from the declaration. (They are defined as macros on
110557         mingw.)
110559 2006-10-22  Bruno Haible  <bruno@clisp.org>
110561         * doc/gnulib-intro.texi: New file.
110562         * doc/gnulib.texi: Include it.
110564 2006-10-21  Bruno Haible  <bruno@clisp.org>
110566         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
110567         "Introduction", "Miscellanous Notes", "Particular Modules".
110569 2006-10-21  Bruno Haible  <bruno@clisp.org>
110571         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
110572         Change mostlyclean-local rule to avoid sh syntax error from bash
110573         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
110575 2006-10-23  Jim Meyering  <jim@meyering.net>
110577         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
110578         in place of snprintf.
110580         * modules/inttostr (Files): Add lib/uinttostr.c.
110581         * lib/uinttostr.c (inttostr): New file/function.
110582         * lib/inttostr.h (uinttostr): Declare.
110583         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
110584         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
110585         Add uinttostr.
110586         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
110588 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
110590         * lib/canonicalize.c (ELOOP): Define if not already defined.
110591         Problem reported by Bruno Haible in
110592         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
110594 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
110596         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
110597         Problem reported by Perry Smith and Ville Laurikari.
110599         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
110600         uses.
110602 2006-10-19  Bruno Haible  <bruno@clisp.org>
110604         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
110605         for mingw.
110607 2006-10-19  Bruno Haible  <bruno@clisp.org>
110609         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
110610         Needed for mingw.
110612 2006-10-19  Bruno Haible  <bruno@clisp.org>
110614         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
110616 2006-10-19  Bruno Haible  <bruno@clisp.org>
110618         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
110619         it.
110621 2006-10-19  Bruno Haible  <bruno@clisp.org>
110623         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
110624         invocation.
110626 2006-10-19  Bruno Haible  <bruno@clisp.org>
110628         * gnulib-tool (func_create_testdir): Don't include ftruncate and
110629         mountlist by default.
110631 2006-10-16  Bruno Haible  <bruno@clisp.org>
110633         * lib/c-strstr.c: Include c-strstr.h.
110635 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
110637         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
110638         in a slash.
110640 2006-10-18  Bruno Haible  <bruno@clisp.org>
110642         * lib/lock.h [C++]: Wrap definitions in extern "C".
110644 2006-10-18  Bruno Haible  <bruno@clisp.org>
110646         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
110647         gl_LIBOBJS list.
110649 2006-10-18  Bruno Haible  <bruno@clisp.org>
110651         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
110653 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
110655         * lib/xstrtol.h: Include gettext.h.
110656         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
110657         Problem reported by Eric Blake.
110658         * modules/xstrtol (Depends-on): Add gettext-h.
110660 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
110662         * lib/strftime.c (advance): New macro.
110663         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
110664         incomplete type, so you can't add 0 to it.  Problem and patch
110665         reported by Eelco Dolstra for dietlibc.
110667 2006-10-18  Jim Meyering  <jim@meyering.net>
110669         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
110670         type for a local, and rename it: s/up/user_proc/.
110672 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
110674         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
110675         READ_UTMP_USER_PROCESS.
110676         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
110678 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
110680         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
110681         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
110683 2006-10-17  Eric Blake  <ebb9@byu.net>
110685         * lib/sigprocmask.c (sigprocmask): Fix typo.
110687         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
110689         * modules/clean-temp (Makefile.am): Don't add to make output...
110690         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
110691         config.h.
110693 2006-10-17  Bruno Haible  <bruno@clisp.org>
110695         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
110696         differently if DEFAULT_TEXT_DOMAIN is set.
110698 2006-10-16  Bruno Haible  <bruno@clisp.org>
110700         * lib/clean-temp.c: Include fwriteerror.h.
110702 2006-10-16  Bruno Haible  <bruno@clisp.org>
110704         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
110706 2006-10-16  Bruno Haible  <bruno@clisp.org>
110708         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
110709         * lib/sigprocmask.h: Include <sys/types.h>.
110710         (sigset_t): Use the system's definition if present.
110712 2006-10-17  Eric Blake  <ebb9@byu.net>
110714         * lib/xvasprintf.c (includes): Assume config.h.
110715         * lib/xasprintf.c (includes): Likewise.
110717 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
110719         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
110720         at least as wide as intmax_t.
110722 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
110724         (Imported from Automake.)
110725         * build-aux/gnupload: Update to version 1.1 of directive file.
110727 2006-10-16  Eric Blake  <ebb9@byu.net>
110729         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
110730         match Automake 1.10a.
110732 2006-10-14  Bruno Haible  <bruno@clisp.org>
110734         * modules/sigprocmask: New file.
110735         * lib/sigprocmask.h: New file.
110736         * lib/sigprocmask.c: New file.
110737         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
110738         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
110739         request sigprocmask.o.
110740         (gl_PREREQ_SIGPROCMASK): New macro.
110741         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
110742         (Depends-on): Add sigprocmask.
110743         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
110744         gt_SIGNALBLOCKING. Test for 'raise' only once.
110745         * lib/fatal-signal.c: Include sigprocmask.h.
110746         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
110747         unblock_fatal_signals): Define always.
110748         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
110749         sigprocmask.
110751 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
110753         Sync from Automake.
110754         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
110755         which incorrectly sets the mode of an existing destination
110756         directory.  In some cases the unpatched install-sh could do the
110757         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
110758         system.  We hope this is rare in practice, but it's clearly worth
110759         fixing.  Problem reported by Alex Unleashed in
110760         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
110761         Also, don't bother to check for -m bugs unless we're using -m;
110762         suggested by Stepan Kasal.
110764 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110766         Sync from Automake.
110767         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
110768         `-c' flag, so they appear at the same position as in %FASTDEP%
110769         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
110770         which ignores unknown options only after the first non-option.
110771         Bug report against M4 by Nelson H. F. Beebe.
110773 2006-10-13  Jim Meyering  <jim@meyering.net>
110775         Fix a bug in yesterday's change.
110776         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
110777         p->fts_statp->st_dev would be used uninitialized.
110778         Ensures that we always call fts_stat on the very first entry.
110779         Miklos Szeredi reported that find -xdev stopped working.
110781 2006-10-12  Bruno Haible  <bruno@clisp.org>
110783         * gnulib-tool (func_get_automake_snippet): Append an automatically
110784         computed EXTRA_DIST augmentation.
110785         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
110786         * modules/alloca-opt (Makefile.am): Likewise.
110787         * modules/allocsa (Makefile.am): Likewise.
110788         * modules/arcfour (Makefile.am): Likewise.
110789         * modules/arctwo (Makefile.am): Likewise.
110790         * modules/argmatch (Makefile.am): Likewise.
110791         * modules/argz (Makefile.am): Likewise.
110792         * modules/atexit (Makefile.am): Likewise.
110793         * modules/backupfile (Makefile.am): Likewise.
110794         * modules/byteswap (Makefile.am): Likewise.
110795         * modules/c-strtod (Makefile.am): Likewise.
110796         * modules/c-strtold (Makefile.am): Likewise.
110797         * modules/calloc (Makefile.am): Likewise.
110798         * modules/canon-host (Makefile.am): Likewise.
110799         * modules/canonicalize (Makefile.am): Likewise.
110800         * modules/chdir-long (Makefile.am): Likewise.
110801         * modules/chdir-safer (Makefile.am): Likewise.
110802         * modules/check-version (Makefile.am): Likewise.
110803         * modules/chown (Makefile.am): Likewise.
110804         * modules/cloexec (Makefile.am): Likewise.
110805         * modules/close-stream (Makefile.am): Likewise.
110806         * modules/closeout (Makefile.am): Likewise.
110807         * modules/crc (Makefile.am): Likewise.
110808         * modules/csharpexec (Makefile.am): Likewise.
110809         * modules/cycle-check (Makefile.am): Likewise.
110810         * modules/des (Makefile.am): Likewise.
110811         * modules/dev-ino (Makefile.am): Likewise.
110812         * modules/dirfd (Makefile.am): Likewise.
110813         * modules/dirname (Makefile.am): Likewise.
110814         * modules/dup2 (Makefile.am): Likewise.
110815         * modules/eealloc (Makefile.am): Likewise.
110816         * modules/error (Makefile.am): Likewise.
110817         * modules/euidaccess (Makefile.am): Likewise.
110818         * modules/exclude (Makefile.am): Likewise.
110819         * modules/exitfail (Makefile.am): Likewise.
110820         * modules/fcntl-safer (Makefile.am): Likewise.
110821         * modules/fcntl (Makefile.am): Likewise.
110822         * modules/file-type (Makefile.am): Likewise.
110823         * modules/fileblocks (Makefile.am): Likewise.
110824         * modules/filemode (Makefile.am): Likewise.
110825         * modules/filenamecat (Makefile.am): Likewise.
110826         * modules/fnmatch (Makefile.am): Likewise.
110827         * modules/fopen-safer (Makefile.am): Likewise.
110828         * modules/fpending (Makefile.am): Likewise.
110829         * modules/fprintftime (Makefile.am): Likewise.
110830         * modules/free (Makefile.am): Likewise.
110831         * modules/fsusage (Makefile.am): Likewise.
110832         * modules/ftruncate (Makefile.am): Likewise.
110833         * modules/fts (Makefile.am): Likewise.
110834         * modules/gc-arcfour (Makefile.am): Likewise.
110835         * modules/gc-des (Makefile.am): Likewise.
110836         * modules/gc-hmac-md5 (Makefile.am): Likewise.
110837         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
110838         * modules/gc-md4 (Makefile.am): Likewise.
110839         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
110840         * modules/gc-sha1 (Makefile.am): Likewise.
110841         * modules/gc (Makefile.am): Likewise.
110842         * modules/getaddrinfo (Makefile.am): Likewise.
110843         * modules/getcwd (Makefile.am): Likewise.
110844         * modules/getdelim (Makefile.am): Likewise.
110845         * modules/getdomainname (Makefile.am): Likewise.
110846         * modules/getgroups (Makefile.am): Likewise.
110847         * modules/gethostname (Makefile.am): Likewise.
110848         * modules/gethrxtime (Makefile.am): Likewise.
110849         * modules/getline (Makefile.am): Likewise.
110850         * modules/getloadavg (Makefile.am): Likewise.
110851         * modules/getlogin_r (Makefile.am): Likewise.
110852         * modules/getndelim2 (Makefile.am): Likewise.
110853         * modules/getopt (Makefile.am): Likewise.
110854         * modules/getpagesize (Makefile.am): Likewise.
110855         * modules/getpass-gnu (Makefile.am): Likewise.
110856         * modules/getpass (Makefile.am): Likewise.
110857         * modules/getsubopt (Makefile.am): Likewise.
110858         * modules/gettime (Makefile.am): Likewise.
110859         * modules/gettimeofday (Makefile.am): Likewise.
110860         * modules/getugroups (Makefile.am): Likewise.
110861         * modules/getusershell (Makefile.am): Likewise.
110862         * modules/glob (Makefile.am): Likewise.
110863         * modules/group-member (Makefile.am): Likewise.
110864         * modules/hard-locale (Makefile.am): Likewise.
110865         * modules/hash (Makefile.am): Likewise.
110866         * modules/hmac-md5 (Makefile.am): Likewise.
110867         * modules/hmac-sha1 (Makefile.am): Likewise.
110868         * modules/human (Makefile.am): Likewise.
110869         * modules/idcache (Makefile.am): Likewise.
110870         * modules/imaxabs (Makefile.am): Likewise.
110871         * modules/imaxdiv (Makefile.am): Likewise.
110872         * modules/inet_ntop (Makefile.am): Likewise.
110873         * modules/inet_pton (Makefile.am): Likewise.
110874         * modules/intprops (Makefile.am): Likewise.
110875         * modules/inttostr (Makefile.am): Likewise.
110876         * modules/inttypes (Makefile.am): Likewise.
110877         * modules/isapipe (Makefile.am): Likewise.
110878         * modules/javaversion (Makefile.am): Likewise.
110879         * modules/lchmod (Makefile.am): Likewise.
110880         * modules/lchown (Makefile.am): Likewise.
110881         * modules/localcharset (Makefile.am): Likewise.
110882         * modules/long-options (Makefile.am): Likewise.
110883         * modules/lstat (Makefile.am): Likewise.
110884         * modules/malloc (Makefile.am): Likewise.
110885         * modules/mathl (Makefile.am): Likewise.
110886         * modules/mbchar (Makefile.am): Likewise.
110887         * modules/md2 (Makefile.am): Likewise.
110888         * modules/md4 (Makefile.am): Likewise.
110889         * modules/md5 (Makefile.am): Likewise.
110890         * modules/memcasecmp (Makefile.am): Likewise.
110891         * modules/memchr (Makefile.am): Likewise.
110892         * modules/memcmp (Makefile.am): Likewise.
110893         * modules/memcoll (Makefile.am): Likewise.
110894         * modules/memcpy (Makefile.am): Likewise.
110895         * modules/memmem (Makefile.am): Likewise.
110896         * modules/memmove (Makefile.am): Likewise.
110897         * modules/mempcpy (Makefile.am): Likewise.
110898         * modules/memrchr (Makefile.am): Likewise.
110899         * modules/memset (Makefile.am): Likewise.
110900         * modules/memxor (Makefile.am): Likewise.
110901         * modules/mkancesdirs (Makefile.am): Likewise.
110902         * modules/mkdir-p (Makefile.am): Likewise.
110903         * modules/mkdir (Makefile.am): Likewise.
110904         * modules/mkdtemp (Makefile.am): Likewise.
110905         * modules/mkstemp (Makefile.am): Likewise.
110906         * modules/mktime (Makefile.am): Likewise.
110907         * modules/modechange (Makefile.am): Likewise.
110908         * modules/mountlist (Makefile.am): Likewise.
110909         * modules/nanosleep (Makefile.am): Likewise.
110910         * modules/obstack (Makefile.am): Likewise.
110911         * modules/openat (Makefile.am): Likewise.
110912         * modules/pagealign_alloc (Makefile.am): Likewise.
110913         * modules/pathmax (Makefile.am): Likewise.
110914         * modules/physmem (Makefile.am): Likewise.
110915         * modules/poll (Makefile.am): Likewise.
110916         * modules/posixtm (Makefile.am): Likewise.
110917         * modules/posixver (Makefile.am): Likewise.
110918         * modules/putenv (Makefile.am): Likewise.
110919         * modules/quote (Makefile.am): Likewise.
110920         * modules/quotearg (Makefile.am): Likewise.
110921         * modules/raise (Makefile.am): Likewise.
110922         * modules/read-file (Makefile.am): Likewise.
110923         * modules/readline (Makefile.am): Likewise.
110924         * modules/readlink (Makefile.am): Likewise.
110925         * modules/readtokens (Makefile.am): Likewise.
110926         * modules/readutmp (Makefile.am): Likewise.
110927         * modules/realloc (Makefile.am): Likewise.
110928         * modules/regex (Makefile.am): Likewise.
110929         * modules/rename-dest-slash (Makefile.am): Likewise.
110930         * modules/rename (Makefile.am): Likewise.
110931         * modules/rijndael (Makefile.am): Likewise.
110932         * modules/rmdir (Makefile.am): Likewise.
110933         * modules/rpmatch (Makefile.am): Likewise.
110934         * modules/safe-read (Makefile.am): Likewise.
110935         * modules/safe-write (Makefile.am): Likewise.
110936         * modules/same-inode (Makefile.am): Likewise.
110937         * modules/same (Makefile.am): Likewise.
110938         * modules/save-cwd (Makefile.am): Likewise.
110939         * modules/savedir (Makefile.am): Likewise.
110940         * modules/setenv (Makefile.am): Likewise.
110941         * modules/settime (Makefile.am): Likewise.
110942         * modules/sha1 (Makefile.am): Likewise.
110943         * modules/sig2str (Makefile.am): Likewise.
110944         * modules/snprintf (Makefile.am): Likewise.
110945         * modules/stat-macros (Makefile.am): Likewise.
110946         * modules/stat-time (Makefile.am): Likewise.
110947         * modules/stdbool (Makefile.am): Likewise.
110948         * modules/stdint (Makefile.am): Likewise.
110949         * modules/stdlib-safer (Makefile.am): Likewise.
110950         * modules/stpcpy (Makefile.am): Likewise.
110951         * modules/stpncpy (Makefile.am): Likewise.
110952         * modules/strcase (Makefile.am): Likewise.
110953         * modules/strcasestr (Makefile.am): Likewise.
110954         * modules/strchrnul (Makefile.am): Likewise.
110955         * modules/strcspn (Makefile.am): Likewise.
110956         * modules/strdup (Makefile.am): Likewise.
110957         * modules/strerror (Makefile.am): Likewise.
110958         * modules/strftime (Makefile.am): Likewise.
110959         * modules/strndup (Makefile.am): Likewise.
110960         * modules/strnlen (Makefile.am): Likewise.
110961         * modules/strpbrk (Makefile.am): Likewise.
110962         * modules/strsep (Makefile.am): Likewise.
110963         * modules/strstr (Makefile.am): Likewise.
110964         * modules/strtod (Makefile.am): Likewise.
110965         * modules/strtoimax (Makefile.am): Likewise.
110966         * modules/strtok_r (Makefile.am): Likewise.
110967         * modules/strtol (Makefile.am): Likewise.
110968         * modules/strtoll (Makefile.am): Likewise.
110969         * modules/strtoul (Makefile.am): Likewise.
110970         * modules/strtoull (Makefile.am): Likewise.
110971         * modules/strtoumax (Makefile.am): Likewise.
110972         * modules/strverscmp (Makefile.am): Likewise.
110973         * modules/sys_socket (Makefile.am): Likewise.
110974         * modules/sys_stat (Makefile.am): Likewise.
110975         * modules/sysexits (Makefile.am): Likewise.
110976         * modules/time_r (Makefile.am): Likewise.
110977         * modules/timegm (Makefile.am): Likewise.
110978         * modules/timespec (Makefile.am): Likewise.
110979         * modules/tmpfile-safer (Makefile.am): Likewise.
110980         * modules/trim (Makefile.am): Likewise.
110981         * modules/unistd-safer (Makefile.am): Likewise.
110982         * modules/unlinkdir (Makefile.am): Likewise.
110983         * modules/unlocked-io (Makefile.am): Likewise.
110984         * modules/userspec (Makefile.am): Likewise.
110985         * modules/utime (Makefile.am): Likewise.
110986         * modules/utimecmp (Makefile.am): Likewise.
110987         * modules/utimens (Makefile.am): Likewise.
110988         * modules/vasnprintf (Makefile.am): Likewise.
110989         * modules/vasprintf (Makefile.am): Likewise.
110990         * modules/vsnprintf (Makefile.am): Likewise.
110991         * modules/xalloc (Makefile.am): Likewise.
110992         * modules/xgetcwd (Makefile.am): Likewise.
110993         * modules/xnanosleep (Makefile.am): Likewise.
110994         * modules/xreadlink (Makefile.am): Likewise.
110995         * modules/xstrtod (Makefile.am): Likewise.
110996         * modules/xstrtol (Makefile.am): Likewise.
110997         * modules/xstrtold (Makefile.am): Likewise.
110998         * modules/yesno (Makefile.am): Likewise.
110999         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
111001 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
111003         * modules/error (Makefile.am): Distribute files through
111004         EXTRA_DIST, not lib_SOURCES.
111006 2006-10-12  Eric Blake  <ebb9@byu.net>
111008         * modules/error (Makefile.am): Distribute files in /lib.
111009         * modules/obstack (Makefile.am): Likewise.
111011 2006-10-12  Bruno Haible  <bruno@clisp.org>
111013         * modules/acl (Makefile.am): Distribute all files in lib/ through
111014         EXTRA_DIST.
111015         * modules/arcfour (Makefile.am): Likewise.
111016         * modules/arctwo (Makefile.am): Likewise.
111017         * modules/argmatch (Makefile.am): Likewise.
111018         * modules/argz (Makefile.am): Likewise.
111019         * modules/atexit (Makefile.am): Likewise.
111020         * modules/backupfile (Makefile.am): Likewise.
111021         * modules/c-strtod (Makefile.am): Likewise.
111022         * modules/c-strtold (Makefile.am): Likewise.
111023         * modules/calloc (Makefile.am): Likewise.
111024         * modules/canon-host (Makefile.am): Likewise.
111025         * modules/canonicalize (Makefile.am): Likewise.
111026         * modules/chdir-long (Makefile.am): Likewise.
111027         * modules/chdir-safer (Makefile.am): Likewise.
111028         * modules/check-version (Makefile.am): Likewise.
111029         * modules/chown (Makefile.am): Likewise.
111030         * modules/cloexec (Makefile.am): Likewise.
111031         * modules/close-stream (Makefile.am): Likewise.
111032         * modules/closeout (Makefile.am): Likewise.
111033         * modules/crc (Makefile.am): Likewise.
111034         * modules/cycle-check (Makefile.am): Likewise.
111035         * modules/des (Makefile.am): Likewise.
111036         * modules/dirfd (Makefile.am): Likewise.
111037         * modules/dirname (Makefile.am): Likewise.
111038         * modules/dup2 (Makefile.am): Likewise.
111039         * modules/euidaccess (Makefile.am): Likewise.
111040         * modules/exclude (Makefile.am): Likewise.
111041         * modules/exitfail (Makefile.am): Likewise.
111042         * modules/fcntl-safer (Makefile.am): Likewise.
111043         * modules/file-type (Makefile.am): Likewise.
111044         * modules/fileblocks (Makefile.am): Likewise.
111045         * modules/filemode (Makefile.am): Likewise.
111046         * modules/filenamecat (Makefile.am): Likewise.
111047         * modules/fnmatch (Makefile.am): Likewise.
111048         * modules/fopen-safer (Makefile.am): Likewise.
111049         * modules/fpending (Makefile.am): Likewise.
111050         * modules/fprintftime (Makefile.am): Likewise.
111051         * modules/free (Makefile.am): Likewise.
111052         * modules/fsusage (Makefile.am): Likewise.
111053         * modules/ftruncate (Makefile.am): Likewise.
111054         * modules/fts (Makefile.am): Likewise.
111055         * modules/gc (Makefile.am): Likewise.
111056         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
111057         * modules/getaddrinfo (Makefile.am): Likewise.
111058         * modules/getcwd (Makefile.am): Likewise.
111059         * modules/getdelim (Makefile.am): Likewise.
111060         * modules/getdomainname (Makefile.am): Likewise.
111061         * modules/getgroups (Makefile.am): Likewise.
111062         * modules/gethostname (Makefile.am): Likewise.
111063         * modules/gethrxtime (Makefile.am): Likewise.
111064         * modules/getline (Makefile.am): Likewise.
111065         * modules/getloadavg (Makefile.am): Likewise.
111066         * modules/getlogin_r (Makefile.am): Likewise.
111067         * modules/getopt (Makefile.am): Likewise.
111068         * modules/getpass (Makefile.am): Likewise.
111069         * modules/getpass-gnu (Makefile.am): Likewise.
111070         * modules/getsubopt (Makefile.am): Likewise.
111071         * modules/gettime (Makefile.am): Likewise.
111072         * modules/gettimeofday (Makefile.am): Likewise.
111073         * modules/getugroups (Makefile.am): Likewise.
111074         * modules/getusershell (Makefile.am): Likewise.
111075         * modules/glob (Makefile.am): Likewise.
111076         * modules/group-member (Makefile.am): Likewise.
111077         * modules/hard-locale (Makefile.am): Likewise.
111078         * modules/hash (Makefile.am): Likewise.
111079         * modules/hmac-md5 (Makefile.am): Likewise.
111080         * modules/hmac-sha1 (Makefile.am): Likewise.
111081         * modules/human (Makefile.am): Likewise.
111082         * modules/idcache (Makefile.am): Likewise.
111083         * modules/imaxabs (Makefile.am): Likewise.
111084         * modules/imaxdiv (Makefile.am): Likewise.
111085         * modules/inet_ntop (Makefile.am): Likewise.
111086         * modules/inet_pton (Makefile.am): Likewise.
111087         * modules/inttostr (Makefile.am): Likewise.
111088         * modules/isapipe (Makefile.am): Likewise.
111089         * modules/lchown (Makefile.am): Likewise.
111090         * modules/long-options (Makefile.am): Likewise.
111091         * modules/lstat (Makefile.am): Likewise.
111092         * modules/malloc (Makefile.am): Likewise.
111093         * modules/mathl (Makefile.am): Likewise.
111094         * modules/mbchar (Makefile.am): Likewise.
111095         * modules/md2 (Makefile.am): Likewise.
111096         * modules/md4 (Makefile.am): Likewise.
111097         * modules/md5 (Makefile.am): Likewise.
111098         * modules/memcasecmp (Makefile.am): Likewise.
111099         * modules/memchr (Makefile.am): Likewise.
111100         * modules/memcmp (Makefile.am): Likewise.
111101         * modules/memcoll (Makefile.am): Likewise.
111102         * modules/memcpy (Makefile.am): Likewise.
111103         * modules/memmem (Makefile.am): Likewise.
111104         * modules/memmove (Makefile.am): Likewise.
111105         * modules/mempcpy (Makefile.am): Likewise.
111106         * modules/memrchr (Makefile.am): Likewise.
111107         * modules/memset (Makefile.am): Likewise.
111108         * modules/memxor (Makefile.am): Likewise.
111109         * modules/mkancesdirs (Makefile.am): Likewise.
111110         * modules/mkdir (Makefile.am): Likewise.
111111         * modules/mkdir-p (Makefile.am): Likewise.
111112         * modules/mkdtemp (Makefile.am): Likewise.
111113         * modules/mkstemp (Makefile.am): Likewise.
111114         * modules/mktime (Makefile.am): Likewise.
111115         * modules/modechange (Makefile.am): Likewise.
111116         * modules/mountlist (Makefile.am): Likewise.
111117         * modules/nanosleep (Makefile.am): Likewise.
111118         * modules/openat (Makefile.am): Likewise.
111119         * modules/pagealign_alloc (Makefile.am): Likewise.
111120         * modules/physmem (Makefile.am): Likewise.
111121         * modules/poll (Makefile.am): Likewise.
111122         * modules/posixtm (Makefile.am): Likewise.
111123         * modules/posixver (Makefile.am): Likewise.
111124         * modules/putenv (Makefile.am): Likewise.
111125         * modules/quote (Makefile.am): Likewise.
111126         * modules/quotearg (Makefile.am): Likewise.
111127         * modules/raise (Makefile.am): Likewise.
111128         * modules/read-file (Makefile.am): Likewise.
111129         * modules/readline (Makefile.am): Likewise.
111130         * modules/readlink (Makefile.am): Likewise.
111131         * modules/readtokens (Makefile.am): Likewise.
111132         * modules/readutmp (Makefile.am): Likewise.
111133         * modules/realloc (Makefile.am): Likewise.
111134         * modules/regex (Makefile.am): Likewise.
111135         * modules/rename (Makefile.am): Likewise.
111136         * modules/rename-dest-slash (Makefile.am): Likewise.
111137         * modules/rijndael (Makefile.am): Likewise.
111138         * modules/rmdir (Makefile.am): Likewise.
111139         * modules/rpmatch (Makefile.am): Likewise.
111140         * modules/safe-read (Makefile.am): Likewise.
111141         * modules/safe-write (Makefile.am): Likewise.
111142         * modules/same (Makefile.am): Likewise.
111143         * modules/save-cwd (Makefile.am): Likewise.
111144         * modules/savedir (Makefile.am): Likewise.
111145         * modules/setenv (Makefile.am): Likewise.
111146         * modules/settime (Makefile.am): Likewise.
111147         * modules/sha1 (Makefile.am): Likewise.
111148         * modules/sig2str (Makefile.am): Likewise.
111149         * modules/snprintf (Makefile.am): Likewise.
111150         * modules/stdlib-safer (Makefile.am): Likewise.
111151         * modules/stpcpy (Makefile.am): Likewise.
111152         * modules/stpncpy (Makefile.am): Likewise.
111153         * modules/strcase (Makefile.am): Likewise.
111154         * modules/strcasestr (Makefile.am): Likewise.
111155         * modules/strchrnul (Makefile.am): Likewise.
111156         * modules/strcspn (Makefile.am): Likewise.
111157         * modules/strdup (Makefile.am): Likewise.
111158         * modules/strerror (Makefile.am): Likewise.
111159         * modules/strftime (Makefile.am): Likewise.
111160         * modules/strndup (Makefile.am): Likewise.
111161         * modules/strnlen (Makefile.am): Likewise.
111162         * modules/strpbrk (Makefile.am): Likewise.
111163         * modules/strsep (Makefile.am): Likewise.
111164         * modules/strstr (Makefile.am): Likewise.
111165         * modules/strtod (Makefile.am): Likewise.
111166         * modules/strtoimax (Makefile.am): Likewise.
111167         * modules/strtok_r (Makefile.am): Likewise.
111168         * modules/strtol (Makefile.am): Likewise.
111169         * modules/strtoll (Makefile.am): Likewise.
111170         * modules/strtoul (Makefile.am): Likewise.
111171         * modules/strtoull (Makefile.am): Likewise.
111172         * modules/strtoumax (Makefile.am): Likewise.
111173         * modules/strverscmp (Makefile.am): Likewise.
111174         * modules/time_r (Makefile.am): Likewise.
111175         * modules/timegm (Makefile.am): Likewise.
111176         * modules/tmpfile-safer (Makefile.am): Likewise.
111177         * modules/unistd-safer (Makefile.am): Likewise.
111178         * modules/unlinkdir (Makefile.am): Likewise.
111179         * modules/userspec (Makefile.am): Likewise.
111180         * modules/utime (Makefile.am): Likewise.
111181         * modules/utimecmp (Makefile.am): Likewise.
111182         * modules/utimens (Makefile.am): Likewise.
111183         * modules/vasnprintf (Makefile.am): Likewise.
111184         * modules/vasprintf (Makefile.am): Likewise.
111185         * modules/vsnprintf (Makefile.am): Likewise.
111186         * modules/xalloc (Makefile.am): Likewise.
111187         * modules/xgetcwd (Makefile.am): Likewise.
111188         * modules/xnanosleep (Makefile.am): Likewise.
111189         * modules/xreadlink (Makefile.am): Likewise.
111190         * modules/xstrtod (Makefile.am): Likewise.
111191         * modules/xstrtol (Makefile.am): Likewise.
111192         * modules/xstrtold (Makefile.am): Likewise.
111193         * modules/yesno (Makefile.am): Likewise.
111195 2006-10-12  Jim Meyering  <jim@meyering.net>
111197         * m4/getloadavg.m4: Revert the change below.
111199         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
111200         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
111201         fail with a symlink, which is what coreutils' ./bootstrap now
111202         creates by default.
111204 2006-10-12  Bruno Haible  <bruno@clisp.org>
111206         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
111207         mingw.
111208         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
111209         MSVC and mingw explicitly.
111211 2006-10-11  Simon Josefsson  <jas@extundo.com>
111212             Bruno Haible  <bruno@clisp.org>
111214         Add support for multiple gnulib-tool invocations in the scope of a
111215         single configure.ac file.
111216         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
111217         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
111218         with the same contents as the _LIBADD variable.
111219         (func_emit_initmacro_start, func_emit_initmacro_end,
111220         func_emit_initmacro_done): New functions.
111221         (func_import, func_create_testdir): Invoke them. Allow the identifiers
111222         gl_LIBOBJS and gl_LTLIBOBJS.
111224 2006-10-11  Bruno Haible  <bruno@clisp.org>
111226         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
111227         (func_create_testdir): Don't create po/Makefile.am, don't invoke
111228         autoreconf. Instead, invoke autopoint explicitly but move back the
111229         *.m4 files from gnulib.
111231 2006-10-11  Bruno Haible  <bruno@clisp.org>
111233         * gnulib-tool (func_usage): Make module names after --create-testdir
111234         optional.
111235         (func_create_testdir): If no module was specified, use nearly all
111236         modules.
111238 2006-10-12  Jim Meyering  <jim@meyering.net>
111240         Big performance improvement for fts-based tools that use FTS_NOSTAT.
111241         Avoid spurious inode-mismatch problems on non-POSIX file systems.
111242         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
111243         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
111244         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
111245         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
111246         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
111247         (fts_set_stat_required): New function.
111248         (fts_open): Defer the calls to fts_stat, if possible or requested.
111249         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
111250         into fts_stat itself.
111251         (fts_read): Perform any required (deferred) fts_stat call.
111252         (fts_build): Likewise, for the directory we're about to open and read.
111253         In the readdir loop, carefully decide whether each entry will require
111254         an eventual call to fts_stat, using dirent.d_type info if available.
111255         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
111256         a command line argument into this function.  Update all callers.
111257         Map a return value of FTS_DOT to FTS_D for a command line argument.
111258         * modules/fts (Depends-on): Add d-type.  Alphabetize.
111259         Thanks to Miklos Szeredi for his tenacity and for the initial
111260         bug report about "find" failing on a FUSE-based file system.
111262         * lib/fts.c (fts_open): Use consistent indentation.
111264 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
111266         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
111267         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
111268         reported by Jim Meyering.  All uses of cache variables renamed
111269         to match Autoconf's.
111270         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
111271         the other one.
111273         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
111274         Fix misspelling in diagnostic.
111276 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
111278         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
111279         defined.  Problem reported by Matthew Woehlke.
111281         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
111282         Add support for Tandem NonStop R series.
111283         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
111284         Use new macro.
111286         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
111287         (has_trailing_slash): Omit size arg; all callers changed.
111288         Omit 'inline', since it doesn't help performance and we'd
111289         need to configure it.
111290         Don't count //, ///, etc. as having a trailing slash.
111291         As a side effect, this removes a C99ism reported by Matthew Woehlke.
111292         (rpl_rename_dest_slash): On failure, use rename's errno rather
111293         than (in some cases) an incorrect or junk errno.
111294         Simplify code by removing need to compute length; this does
111295         cause it to make two passes instead of one over the file name,
111296         but it's worth it.
111298         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
111299         change, since Autoconf's version may no longer be appropriate now
111300         that we are using CVS Autoconf's version.  Add support for Tandem.
111302 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
111303             Bruno Haible  <bruno@clisp.org>
111305         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
111306         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
111307         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
111308         gl_AC_TYPE_LONG_LONG.
111310         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
111311         instead of HAVE_LONG_LONG.
111312         * lib/printf-args.c (printf_fetchargs): Likewise.
111313         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
111314         * lib/vasnprintf.c (VASNPRINTF): Likewise.
111315         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
111316         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
111317         gl_AC_TYPE_LONG_LONG.
111319 2006-10-11  Bruno Haible  <bruno@clisp.org>
111321         * m4/longlong.m4: Add comments.
111322         * m4/ulonglong.m4: Likewise.
111324 2006-10-10  Bruno Haible  <bruno@clisp.org>
111326         Make it possible to #define stpcpy, strdup to aliases.
111327         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
111328         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
111330 2006-10-10  Bruno Haible  <bruno@clisp.org>
111332         Make it possible to #define gcd to an alias.
111333         * lib/gcd.c: Include config.h.
111335 2006-10-10  Bruno Haible  <bruno@clisp.org>
111337         Make it possible to #define c_isascii to an alias.
111338         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
111339         defined. Undefine the macros before defining them, to avoid gcc
111340         warnings.
111341         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
111342         define NO_C_CTYPE_MACROS early.
111344 2006-10-10  Bruno Haible  <bruno@clisp.org>
111346         Make it possible to #define set_program_name to an alias.
111347         * lib/progname.c: Don't undefine set_program_name; instead, undefine
111348         ENABLE_RELOCATABLE early.
111350 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
111352         Port to Tandem NSK OSS, which has 64-bit signed int but at most
111353         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
111354         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
111355         More generally, don't assume that 64-bit signed int is available
111356         if unsigned int is, and vice versa.
111357         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
111358         unsigned symbols, not on their signed counterparts.
111359         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
111360         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
111361         (UINT64_C, UINTMAX_C):
111362         Likewise.
111363         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
111364         unsigned counterparts.
111365         (Have_long_long, Unsigned): New macros.
111366         (Int): Renamed from INT.
111367         (strtoimax): Use the new macros.
111368         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
111369         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
111370         * modules/inttypes (inttypes.h): Substitute
111371         HAVE_UNSIGNED_LONG_LONG_INT.
111372         * modules/stdint (stdint.h): Likewise.
111373         (Files): Add m4/ulonglong.m4.
111375 2006-10-10  Bruno Haible  <bruno@clisp.org>
111377         Fix a gcc -Wshadow warning.
111378         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
111379         to 'bucket'.
111380         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
111381         gl_linked_indexof_from_to): Likewise.
111382         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
111383         Likewise.
111384         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
111385         Likewise.
111386         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
111387         Reported by Eric Blake.
111389 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
111391         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
111392         for NetBSD.  Problem reported by Bruno Haible.
111394 2006-10-09  Jim Meyering  <jim@meyering.net>
111396         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
111397         Patch from Bruno Haible.
111399 2006-10-09  Jim Meyering  <jim@meyering.net>
111401         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
111402         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
111403         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
111405 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
111407         Don't include <config.h> twice; this doesn't work in some cases,
111408         e.g., when config.h has "#define intmax_t long long int" and
111409         we include <config.h>, <inttypes.h>, <config.h> in that order.
111410         Problem reported by Matthew Woehlke in:
111411         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
111412         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
111413         * lib/fts-cycle.c: Don't include config.h.
111414         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
111415         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
111416         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
111417         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
111418         inttypes.h.
111419         * lib/xstrtoumax.c: Likewise.
111420         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
111421         __strtol and the like, so that this module is more like its siblings.
111422         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
111423         Remove; no longer needed now that we assume gnulib inttypes.h.
111425 2006-10-08  Bruno Haible  <bruno@clisp.org>
111427         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
111428         option.
111430 2006-10-07  Jim Meyering  <jim@meyering.net>
111432         * modules/inttypes (inttypes.h): Revert what seems to have been
111433         an inadvertent part of today's change: use "|", not "/" in the
111434         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
111436 2006-10-07  Bruno Haible  <bruno@clisp.org>
111438         * modules/sublist: New file.
111440 2006-10-07  Bruno Haible  <bruno@clisp.org>
111442         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
111443         * modules/argz (argz.h): Likewise.
111444         * modules/arpa_inet (arpa/inet.h): Likewise.
111445         * modules/byteswap (byteswap.h): Likewise.
111446         * modules/configmake (configmake.h): Likewise.
111447         * modules/fcntl (fcntl.h): Likewise.
111448         * modules/fnmatch (fnmatch.h): Likewise.
111449         * modules/getopt (getopt.h): Likewise.
111450         * modules/glob (glob.h): Likewise.
111451         * modules/inttypes (inttypes.h): Likewise.
111452         * modules/netinet_in (netinet/in.h): Likewise.
111453         * modules/poll (poll.h): Likewise.
111454         * modules/stdbool (stdbool.h): Likewise.
111455         * modules/stdint (stdint.h): Likewise.
111456         * modules/sys_select (sys/select.h): Likewise.
111457         * modules/sys_socket (sys/socket.h): Likewise.
111458         * modules/sys_stat (sys/stat.h): Likewise.
111459         * modules/sysexits (sysexits.h): Likewise.
111460         * modules/unistd (unistd.h): Likewise.
111461         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111462         Add a "DO NOT EDIT" comment to the generated file.
111463         (func_import): Likewise for gnulib-comp.m4.
111465 2006-10-07  Bruno Haible  <bruno@clisp.org>
111467         * lib/gl_sublist.h: New file.
111468         * lib/gl_sublist.c: New file.
111470 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
111472         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
111473         name (relative to the original working directory) and the file
111474         name component (relative to the temporary working directory).  All
111475         callers changed.
111476         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
111477         * lib/mkdir-p.c (make_dir_parents): Likewise.
111478         * lib/mkdir-p.h (make_dir_parents): Likewise.
111480 2006-10-06  Eric Blake  <ebb9@byu.net>
111482         Define several macros for use by the clean-temp module.
111483         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
111484         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
111485         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
111487         * lib/clean-temp.h (close_stream_temp): New declaration.
111488         * lib/clean-temp.c (includes): Pull in headers according to what
111489         other modules are in use.
111490         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
111492 2006-10-06  Bruno Haible  <bruno@clisp.org>
111494         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
111495         instead of fopen, fwriteerror.
111497 2006-10-06  Bruno Haible  <bruno@clisp.org>
111499         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
111500         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
111501         int.
111502         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
111503         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
111504         Return an error indicator.
111505         Suggested by Eric Blake.
111507 2006-10-06  Bruno Haible  <bruno@clisp.org>
111509         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
111510         Reported by Eric Blake.
111512 2006-10-06  Bruno Haible  <bruno@clisp.org>
111514         * modules/closeout (Description): Mention stderr too.
111516 2006-10-06  Bruno Haible  <bruno@clisp.org>
111517         and Paul Eggert  <eggert@cs.ucla.edu>
111519         * lib/closeout.c (close_stdout): Also close stderr.
111520         * lib/closeout.h: Update comment.
111522 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
111524         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
111525         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
111526         * lib/dirchownmod.c: Include lchown.h.
111527         * lib/lchown.c: Don't include files that lchown.h now includes.
111528         Don't declare chown, since lchown.h now does that.
111529         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
111530         (lchown): Define to rpl_chown if lchown is declared but
111531         does not exist.  Declare using a prototype if lchown is not
111532         declared.  Add a copyright notice.
111533         * lib/mkstemp.h: Include <unistd.h>.
111534         * lib/openat.c: Include lchown.h.
111536         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
111537         we now test for that separately.
111538         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
111539         rather than O_NOFOLLOW, when testing whether it's possible to
111540         avoid a race condition reliably.
111541         * lib/savewd.c (savewd_chdir): Likewise.
111543         Remove macros that are no longer needed now that stdint.h is
111544         reliable.
111545         * lib/fsusage.c (UINTMAX_MAX): Remove.
111546         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
111547         * lib/utimecmp.c (SIZE_MAX): Remove.
111549         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
111551         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
111552         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
111553         O_NOATIME works.
111555 2006-10-05  Bruno Haible  <bruno@clisp.org>
111557         * lib/gl_list.h (gl_sortedlist_search_from_to,
111558         gl_sortedlist_indexof_from_to): New declarations.
111559         (gl_list_implementation): New fields sortedlist_search_from_to,
111560         sortedlist_indexof_from_to.
111561         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
111562         inline functions.
111563         * lib/gl_list.c (gl_sortedlist_search_from_to,
111564         gl_sortedlist_indexof_from_to): New functions.
111565         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
111566         function.
111567         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
111568         (gl_array_sortedlist_search_from_to): New function.
111569         (gl_array_list_implementation): Update.
111570         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
111571         function.
111572         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
111573         (gl_carray_sortedlist_search_from_to): New function.
111574         (gl_carray_list_implementation): Update.
111575         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
111576         gl_linked_sortedlist_indexof_from_to): New functions.
111577         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
111578         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
111579         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
111580         gl_tree_sortedlist_indexof_from_to): New functions.
111581         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
111582         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
111583         Update.
111584         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
111585         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
111586         Update.
111588 2006-10-05  Bruno Haible  <bruno@clisp.org>
111590         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
111591         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
111592         (struct gl_list_implementation): Add fields search_from_to,
111593         indexof_from_to. Remove fields search, indexof.
111594         (gl_list_search): Use the search_from_to method.
111595         (gl_list_search_from, gl_list_search_from_to): New functions.
111596         (gl_list_indexof): Use the indexof_from_to method.
111597         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
111598         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
111599         (gl_list_search_from, gl_list_search_from_to): New functions.
111600         (gl_list_indexof): Use the indexof_from_to method.
111601         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
111602         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
111603         gl_array_indexof. Add start_index, end_index arguments.
111604         (gl_array_search_from_to): Renamed from gl_array_search. Add
111605         start_index, end_index arguments.
111606         (gl_array_remove, gl_array_list_implementation): Update.
111607         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
111608         gl_carray_indexof. Add start_index, end_index arguments.
111609         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
111610         start_index, end_index arguments.
111611         (gl_carray_remove, gl_carray_list_implementation): Update.
111612         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
111613         gl_linked_search. Add start_index, end_index arguments.
111614         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
111615         start_index, end_index arguments.
111616         (gl_linked_remove): Update.
111617         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
111618         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
111619         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
111620         field to 'size_t'.
111621         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
111622         gl_tree_search. Add start_index, end_index arguments.
111623         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
111624         start_index, end_index arguments.
111625         (gl_tree_remove): Update.
111626         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
111627         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
111628         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
111629         function.
111630         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
111631         gl_tree_search. Add start_index, end_index arguments.
111632         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
111633         start_index, end_index arguments.
111634         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
111635         Update.
111636         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
111638 2006-10-05  Bruno Haible  <bruno@clisp.org>
111640         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
111642         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
111643         fwriteerror_temp): New declarations.
111644         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
111645         (descriptors): New variable.
111646         (cleanup): First, close the descriptors.
111647         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
111648         fclose_temp, fwriteerror_temp): New functions.
111650 2006-10-04  Jim Meyering  <jim@meyering.net>
111652         * lib/fts.c (fts_open): Tiny comment change.
111654 2006-10-04  Bruno Haible  <bruno@clisp.org>
111656         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
111657         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
111658         gl_LOCK_BODY.
111659         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
111660         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
111661         gl_LOCK_EARLY_BODY.
111662         (gl_LOCK): Require gl_LOCK_BODY.
111664 2006-10-04  Bruno Haible  <bruno@clisp.org>
111666         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
111667         (gl_oset_search_atleast): New declaration.
111668         (struct gl_oset_implementation): Add field 'search_atleast'.
111669         (gl_oset_search_atleast): New inline function.
111670         * lib/gl_oset.c (gl_oset_search_atleast): New function.
111671         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
111672         (gl_array_oset_implementation): Update.
111673         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
111674         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
111675         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
111677 2006-10-04  Bruno Haible  <bruno@clisp.org>
111679         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
111681 2006-10-03  Bruno Haible  <bruno@clisp.org>
111683         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
111684         from gl_avltreehash_list_implementation.
111686 2006-10-03  Bruno Haible  <bruno@clisp.org>
111688         * lib/gl_oset.c (gl_oset_add): Fix return type.
111690 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
111692         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
111694 2006-10-02  Eric Blake  <ebb9@byu.net>
111696         * modules/strnlen (Depends-on): Add extensions.
111698 2006-10-02  Eric Blake  <ebb9@byu.net>
111700         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
111701         definition in 2.60+.
111703 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
111705         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
111706         checks.
111708 2006-10-02  Bruno Haible  <bruno@clisp.org>
111710         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
111711         to the AUTOMAKE_OPTIONS.
111712         Reported by Jim Meyering.
111714 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
111716         Work around bug in Solaris 10 /proc file system:
111717         /proc/self/fd/NNN/.. isn't the parent directory of
111718         the directory whose file descriptor is NNN.  This needs to
111719         be worked around at run time, not compile time, since a
111720         program might be built on Solaris 8, where things work, and
111721         run on Solaris 10.
111722         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
111723         to use the following interface instead:
111724         (OPENAT_BUFFER_SIZE): New macro.
111725         (openat_proc_name): New function.
111726         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
111727         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
111728         Likewise.
111729         * lib/openat-proc.c: New file.
111730         * modules/openat (Files): Add lib/openat-proc.c.
111731         (Depends-on): Add same-inode, stdbool.
111732         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
111734 2006-09-29  Bruno Haible  <bruno@clisp.org>
111736         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
111737         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
111738         argument. Set stdout_closed before testing for ferror, not after.
111739         (fwriteerror, fwriteerror_no_ebadf): New functions.
111741 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111743         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
111745 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
111747         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
111748         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
111750 2006-09-28  Jim Meyering  <jim@meyering.net>
111752         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
111753         Include <unistd.h>.
111755 2006-09-28  Bruno Haible  <bruno@clisp.org>
111757         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
111758         * modules/linkedhash-list (Depends-on): Likewise.
111759         * modules/rbtreehash-list (Depends-on): Likewise.
111761 2006-09-28  Bruno Haible  <bruno@clisp.org>
111763         * lib/strndup.h: Simplify the redefinition of strndup.
111764         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
111765         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
111767 2006-09-28  Bruno Haible  <bruno@clisp.org>
111769         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
111770         * lib/gl_linkedhash_list.c: Likewise.
111771         * lib/gl_rbtreehash_list.c: Likewise.
111773 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
111775         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
111776         getaddrinfo.
111778         * lib/__fpending.h: Don't include <stdio_ext.h> unless
111779         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
111780         it causes <stdio_ext.h> to cause a compile-time error.
111781         Problem reported by Nelson H. F. Beebe.
111782         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
111783         of HAVE_DECL___PENDING.
111785         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
111786         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
111787         declaration.
111789 2006-09-27  Jim Meyering  <jim@meyering.net>
111791         This file could end up with a definition for a function
111792         named __strndup, rather than rpl_strndup on a system with
111793         incomplete weak_alias support.
111794         * lib/strndup.c (strndup): Rename from __strndup.
111795         Remove #defines that used to map __strndup to strndup.
111796         Don't use K&R prototypes.
111797         Remove LIBC-related code, since this file is not sync'd with glibc.
111798         * lib/strndup.h: Revamp, accordingly.
111799         * m4/strndup.m4: Modernize.
111801 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
111803         * modules/savewd (Depends-on): Add 'raise'.
111804         * lib/savewd.c: Include <signal.h>, for 'raise'.
111806 2006-09-26  Jim Meyering  <jim@meyering.net>
111808         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
111809         when we detect Darwin 8.7.0's acl_get_file bug.
111810         Rearrange to perform the new (below) run-test while $LIBS
111811         contains any acl-related library.  Set USE_ACL at the end.
111812         (gl_ACL_GET_FILE): New function.
111814 2006-09-26  Eric Blake  <ebb9@byu.net>
111816         * lib/verror.c: Include <config.h> unconditionally.
111818 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
111820         * modules/clock-time (Maintainer): Add self.
111821         * modules/getlogin_r (Depends-on): Add extensions.
111823 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111825         * modules/clock-time: New module.
111826         * modules/nanosleep (Depends-on): Add clock-time.
111827         * modules/gethrxtime (Depends-on): Likewise.
111828         * modules/gettime (Depends-on): Likewise.
111829         * modules/settime (Depends-on): Likewise.
111831         * modules/fts-lgpl: Depend on openat.
111832         * modules/mkancesdirs: Depend on savewd.
111833         * modules/mkdir-p: Likewise.
111835 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111837         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
111839         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
111840         `gl_have_arbitrary_file_name_length_limit' to
111841         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
111842         actually works between configure runs.
111844 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111845             Bruno Haible  <bruno@clisp.org>
111847         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
111849 2006-09-25  Jim Meyering  <jim@meyering.net>
111851         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
111852         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
111854 2006-09-25  Eric Blake  <ebb9@byu.net>
111856         * gnulib-tool (func_import, func_create_testdir): Fix typos in
111857         exec's in 2006-09-18 patch when shuffling fds.
111859 2006-09-25  Bruno Haible  <bruno@clisp.org>
111861         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
111862         Reported by Jim Meyering.
111864 2006-09-24  Jim Meyering  <jim@meyering.net>
111866         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
111867         compare a pointer against a literal "0".  That caused failures with
111868         at least HP-UX's hpcc.
111870 2006-09-22  Simon Josefsson  <jas@extundo.com>
111872         * modules/gc-sha1:
111873         * modules/gc-md4:
111874         * modules/gc-hmac-sha1:
111875         * modules/gc-hmac-md5:
111876         * modules/gc-des:
111877         * modules/gc-arcfour: Distribute more files.
111879 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111881         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
111882         (gl_linked_iterator_from_to): Initialize struct completely.
111883         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
111884         (gl_tree_iterator_from_to): Likewise
111885         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
111886         * lib/gl_array_list.c [lint] (gl_array_iterator)
111887         (gl_array_iterator_from_to): Likewise.
111888         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
111889         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
111890         (gl_carray_iterator_from_to): Likewise.
111892         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
111893         * lib/md4.c (md4_process_block): Remove unused variable.
111894         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
111895         parentheses for clarity.
111897 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111899         * modules/bison-i18n (Depends-on): Add gettext.
111901 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111903         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
111904         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
111905         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
111906         also add missing comma that caused broken test.
111907         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
111908         stdlib.h, for `abort'.
111909         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
111910         variables.
111911         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
111912         include unistd.h if present, for `rmdir'.
111913         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
111914         variables.
111915         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
111916         in the process include standard headers for prototypes.
111917         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
111918         gets declared on GNU/Linux.
111919         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
111920         unistd.h, for `rmdir'.
111921         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
111923         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
111924         always true.
111925         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
111927         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
111929 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111931         * gnulib-tool (func_version): Create output all at once.  This
111932         may help avoid triggering unnecessary SIGPIPEs, and at any
111933         rate it doesn't hurt.
111935 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111936             Bruno Haible  <bruno@clisp.org>
111938         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
111939         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
111940         * m4/signed.m4 (bh_C_SIGNED): Likewise.
111942         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
111943         (gl_FUNC_VASPRINTF): Invoke it.
111945 2006-09-22  Bruno Haible  <bruno@clisp.org>
111947         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
111948         getloadavg.c as first argument.
111950 2006-09-22  Bruno Haible  <bruno@clisp.org>
111952         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
111953         at the beginning of the gl_INIT macro.
111954         * modules/getloadavg (configure.ac): Pass $gl_source_base to
111955         gl_GETLOADAVG.
111957 2006-09-22  Bruno Haible  <bruno@clisp.org>
111959         * gnulib-tool (func_create_megatestdir): Don't include the config-h
111960         module.
111961         Suggested by Ralf Wildenhues.
111963 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
111965         Import this patch from libc:
111967         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
111969         * lib/regex_internal.c (re_string_reconstruct): Handle
111970         offset < pstr->valid_raw_len && pstr->offsets_needed case.
111971         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
111972         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
111973         re_string_context_at.
111975         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
111976         now requires it.
111977         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
111978         gl_REGEX now does it for us.
111979         (gl_REGEX): Add test taken from
111980         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
111982         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
111983         Check that large offsets work.  Modernize Autoconf usages.
111984         Prefer "yes" to mean a good thing rather than a bad.
111985         Don't put "#define mkstemp" in config.h, as this might interfere
111986         with standard system headers that "#define mkstemp mkstemp64".
111988         * modules/mkstemp (Depends-on): Add extensions, so that
111989         mkstemp is visible on some platforms.
111990         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
111991         (Include): Change to "mkstemp.h" from <stdlib.h>.
111992         (Files): Add mkstemp.h.
111994         * lib/mkstemp.h: New file, since some standard headers
111995         #define mkstemp.
111996         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
111997         Include "mkstemp.h".
111998         Make the _LIBC code resemble glibc original more,
111999         e.g., use K&R style.
112000         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
112001         (mkstemp): Remove, since mkstemp.h does this for us.
112002         * lib/stdlib--.h: Include mkstemp.h.
112004         Import this patch from libc:
112006         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
112008         * lib/tempname.c (__gen_tempname): Change attempts_min
112009         into a macro.  Use preprocessor to decide how to initialize
112010         attempts [Coverity CID 67].
112012 2006-09-20  Bruno Haible  <bruno@clisp.org>
112014         * lib/mkdtemp.c: Import from libc.
112015         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
112016                 * sysdeps/posix/tempname.c (__gen_tempname): Change
112017                 attempts_min into a macro.  Use preprocessor to decide how to
112018                 initialize attempts [Coverity CID 67].
112019         2001-11-27  Paul Eggert  <eggert@twinsun.com>
112020                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
112021                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
112023 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112025         * gnulib-tool (func_exit): New function, to allow to pass the
112026         exit status portably through the trap.  Use everywhere.
112027         (--help, --version): Signal a write error.
112028         (trap): catch SIGPIPE, for write errors.
112029         Exit at the end of the trap, with the correct exit status.
112031 2006-09-19  Karl Berry  <karl@gnu.org>
112033         * doc/gnulib.texi: note about the license texinfo files.
112035 2006-09-19  Eric Blake  <ebb9@byu.net>
112037         * gnulib-tool: Avoid space-tab.
112039 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
112041         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
112042         that prevented coreutils 6.1 from building.  Problem reported
112043         by Petter Reinholdtsen.
112045 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
112047         * gnulib-tool (avoidlist): Fix typo that broke options like
112048         --avoid=lock that are used by coreutils bootstrap.
112050 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
112052         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
112053         more systematically.
112055 2006-09-18  Jim Meyering  <jim@meyering.net>
112057         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
112059 2006-09-18  Bruno Haible  <bruno@clisp.org>
112061         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
112063 2006-09-18  Bruno Haible  <bruno@clisp.org>
112065         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
112066         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
112067         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
112068         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
112069         * m4/gettext.m4: Require autoconf >= 2.52.
112070         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
112071         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
112072         of gl_cv_header_inttypes_h.
112074 2006-09-18  Bruno Haible  <bruno@clisp.org>
112076         * lib/javaversion.c: Include configmake.h.
112078 2006-09-18  Bruno Haible  <bruno@clisp.org>
112080         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
112081         avoid that the while loops be executed in a subshell.
112083 2006-09-18  Bruno Haible  <bruno@clisp.org>
112085         * MODULES.html.sh (func_module): Break long lines.
112086         Suggested by Bruce Korb <bkorb@gnu.org>.
112088 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112090         Speed up by a factor of 1.12.
112091         * gnulib-tool (nl): New variable.
112092         (func_import): Rewrite include directive extraction to only read each
112093         directive once.
112095 2006-09-17  Bruno Haible  <bruno@clisp.org>
112097         * modules/javaversion (Makefile.am): Remove DEFS setting.
112098         (Depends-on): Add configmake, for PKGDATADIR definition.
112100 2006-09-17  Bruno Haible  <bruno@clisp.org>
112102         * gnulib-tool (func_create_testdir): Rewrite all files at once.
112104 2006-09-17  Bruno Haible  <bruno@clisp.org>
112106         * gnulib-tool (func_append): New function, stolen from libtool.m4.
112107         (func_modules_transitive_closure, func_modules_add_dummy,
112108         func_modules_to_filelist, func_import, func_create_testdir,
112109         func_create_megatestdir, ...): Use it wherever possible.
112110         Suggested by Ralf Wildenhues.
112112 2006-09-16  Karl Berry  <karl@gnu.org>
112114         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
112115         to avoid sectioning errors.
112116         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
112117         [ifinfo]: blank line after @center-ed titles.
112118         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
112119         Spell FSF address consistently with others.
112120         (These changes approved by rms.)
112122 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112124         Speed up by a factor of 1.61.
112125         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
112126         already checked module names again.
112128 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112130         Speed up by a factor of 1.13.
112131         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
112132         for new_files, and the input to func_add_or_update.
112134 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112136         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
112137         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
112139 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
112141         * modules/mkancesdirs (Depends-on): Add fcntl.
112142         * modules/savewd: New file.
112143         * MODULES.html.sh (File system functions): Add savewd.
112145         * modules/configmake (Makefile.am): Add support for the
112146         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
112148 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
112150         * m4/savewd.m4: New file.
112152 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
112154         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
112155         (dirchownmod): New arg FD.  All callers changed.
112156         Use FD rather than opening the directory ourself, as opening is
112157         now the caller's responsibility.
112158         * lib/dirchownmod.h: Likewise.
112159         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
112160         hosts that require <sys/types.h> before <sys/stat.h>.  Include
112161         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
112162         (test_dir): Remove.
112163         (mkancesdirs): Return length of prefix of FILE that has already
112164         been made, or -2 if there is a child doing the work.  Redo
112165         algorithm so that it is O(N) rather than O(N**2).  Optimize away
112166         ".", and treat ".." specially since it might stray back into
112167         already-created areas.  Use a subprocess if necessary.  New arg
112168         WD; all users changed.  MAKE_DIR function should now return 1
112169         if it creates a directory that is not readable.  Return -2 if
112170         a child process is spun off.
112171         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
112172         Adjust signature to match code.
112173         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
112174         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
112175         all users changed.
112176         * lib/savewd.c, lib/savewd.h: New files.
112178 2006-09-15  Jim Meyering  <jim@meyering.net>
112180         * modules/rename-dest-slash: New module.
112181         * MODULES.html.sh (posix_compat): Add it here.
112183         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
112185 2006-09-15  Jim Meyering  <jim@meyering.net>
112187         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
112188         file.
112190         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
112192 2006-09-15  Jim Meyering  <jim@meyering.net>
112194         * lib/rename-dest-slash.c (has_trailing_slash): Use
112195         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
112196         (rpl_rename_dest_slash): Perform the cheaper trailing slash
112197         test before testing whether SRC is a directory.
112198         Suggestions from Bruno Haible.
112200         Avoid a warning about an unused variable.
112201         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
112202         into the #ifdef block where it's used.
112204         * lib/rename-dest-slash.c: New file.
112206 2006-09-14  Bruno Haible  <bruno@clisp.org>
112208         * lib/allocsa.c: Include <config.h> unconditionally.
112209         * lib/asnprintf.c: Likewise.
112210         * lib/asprintf.c: Likewise.
112211         * lib/c-strcasecmp.c: Likewise.
112212         * lib/c-strcasestr.c: Likewise.
112213         * lib/c-strncasecmp.c: Likewise.
112214         * lib/c-strstr.c: Likewise.
112215         * lib/classpath.c: Likewise.
112216         * lib/clean-temp.c: Likewise.
112217         * lib/concatpath.c: Likewise.
112218         * lib/copy-file.c: Likewise.
112219         * lib/csharpcomp.c: Likewise.
112220         * lib/csharpexec.c: Likewise.
112221         * lib/execute.c: Likewise.
112222         * lib/fatal-signal.c: Likewise.
112223         * lib/findprog.c: Likewise.
112224         * lib/fwriteerror.c: Likewise.
112225         * lib/gl_array_list.c: Likewise.
112226         * lib/gl_array_oset.c: Likewise.
112227         * lib/gl_avltree_list.c: Likewise.
112228         * lib/gl_avltree_oset.c: Likewise.
112229         * lib/gl_avltreehash_list.c: Likewise.
112230         * lib/gl_carray_list.c: Likewise.
112231         * lib/gl_linked_list.c: Likewise.
112232         * lib/gl_linkedhash_list.c: Likewise.
112233         * lib/gl_list.c: Likewise.
112234         * lib/gl_oset.c: Likewise.
112235         * lib/gl_rbtree_list.c: Likewise.
112236         * lib/gl_rbtree_oset.c: Likewise.
112237         * lib/gl_rbtreehash_list.c: Likewise.
112238         * lib/imaxabs.c: Likewise.
112239         * lib/imaxdiv.c: Likewise.
112240         * lib/javacomp.c: Likewise.
112241         * lib/javaexec.c: Likewise.
112242         * lib/javaversion.c: Likewise.
112243         * lib/linebreak.c: Likewise.
112244         * lib/localcharset.c: Likewise.
112245         * lib/lock.c: Likewise.
112246         * lib/mbchar.c: Likewise.
112247         * lib/mbswidth.c: Likewise.
112248         * lib/mkdtemp.c: Likewise.
112249         * lib/pipe.c: Likewise.
112250         * lib/printf-args.c: Likewise.
112251         * lib/printf-parse.c: Likewise.
112252         * lib/progname.c: Likewise.
112253         * lib/progreloc.c: Likewise.
112254         * lib/readlink.c: Likewise.
112255         * lib/sh-quote.c: Likewise.
112256         * lib/stpcpy.c: Likewise.
112257         * lib/stpncpy.c: Likewise.
112258         * lib/strcasecmp.c: Likewise.
112259         * lib/strcasestr.c: Likewise.
112260         * lib/strcspn.c: Likewise.
112261         * lib/striconv.c: Likewise.
112262         * lib/strncasecmp.c: Likewise.
112263         * lib/strnlen1.c: Likewise.
112264         * lib/strstr.c: Likewise.
112265         * lib/strtok_r.c: Likewise.
112266         * lib/tls.c: Likewise.
112267         * lib/tmpdir.c: Likewise.
112268         * lib/unicodeio.c: Likewise.
112269         * lib/unsetenv.c: Likewise.
112270         * lib/vasnprintf.c: Likewise.
112271         * lib/vasprintf.c: Likewise.
112272         * lib/wait-process.c: Likewise.
112273         * lib/xallocsa.c: Likewise.
112274         * lib/xsetenv.c: Likewise.
112275         * lib/xstriconv.c: Likewise.
112277 2006-09-13  Simon Josefsson  <jas@extundo.com>
112279         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
112280         that internally, suggested by Ralf Wildenhues
112281         <Ralf.Wildenhues@gmx.de>.
112283 2006-09-13  Simon Josefsson  <jas@extundo.com>
112285         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
112286         @LIBOBJS@.
112287         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
112289 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
112291         * lib/_fpending.c: Include <config.h> unconditionally, since we no
112292         longer worry about uses that don't define HAVE_CONFIG_H.
112293         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
112294         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
112295         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
112296         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
112297         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
112298         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
112299         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
112300         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
112301         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
112302         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
112303         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
112304         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
112305         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
112306         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
112307         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
112308         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
112309         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
112310         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
112311         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
112312         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
112313         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
112314         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
112315         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
112316         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
112317         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
112318         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
112319         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
112320         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
112321         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
112322         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
112323         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
112324         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
112325         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
112326         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
112327         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
112328         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
112329         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
112330         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
112331         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
112332         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
112333         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
112334         Likewise.
112336 2006-09-13  Eric Blake  <ebb9@byu.net>
112338         * lib/getopt.c: Fix typo in last commit.
112340 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
112342         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
112343         dgettext.
112345 2006-09-12  Jim Meyering  <jim@meyering.net>
112347         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
112348         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
112349         Reported by Nelson H. F. Beebe.
112351 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
112353         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
112354         program_invocation_name and program_invocation_short_name are
112355         initialized.
112356         * lib/argp-namefrob.h: Move declarations of program_invocation_name
112357         and program_invocation_short_name to argp.h, so they are visible
112358         to user programs.
112359         * lib/argp.h: Likewise
112361 2006-09-10  Bruno Haible  <bruno@clisp.org>
112363         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
112364         m4/inttypes_h.m4, m4/uintmax_t.m4.
112366 2006-09-10  Bruno Haible  <bruno@clisp.org>
112368         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
112369         gl_AC_TYPE_UINTMAX_T.
112371 2006-09-10  Bruno Haible  <bruno@clisp.org>
112373         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
112375 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
112377         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
112378         convention.  Text proposed by Bruno Haible.
112379         (struct argp_option): Document the use of N_() wrappers.
112381         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
112382         '\v', and translate the two parts separately, instead of feeding
112383         the whole string to gettext.  This allows to exclude
112384         '\v' from the strings visible to the translator by writing doc
112385         strings as N_("..") "\v" N_("..").
112387 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
112389         * config/srclist.txt: Undo latest change; the bug was fixed.
112391 2006-09-09  Bruno Haible  <bruno@clisp.org>
112393         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
112394         assignments if building a library without libtool.
112395         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
112396         in func_emit_lib_Makefile_am.
112397         (func_import): When building a static library libfoo.a, arrange to
112398         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
112399         (func_create_testdir): Likewise.
112400         * modules/gc (configure.ac, Makefile.am): If building statically,
112401         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
112402         * modules/iconvme (configure.ac, Makefile.am): Likewise.
112403         * modules/striconv (configure.ac, Makefile.am): Likewise.
112404         Based on a suggestion by Ralf Wildenhues.
112406 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
112408         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
112409         Check for unistd.h too, since Autoconf doesn't assume POSIX.
112410         Also:
112412         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
112413         Add year_2050_test to catch glibc bug 2821
112414         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
112416         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
112417         Prefer #ifdef to #if.
112419         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
112420         Return from 'main' instead of calling 'exit'.
112422 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
112424         * lib/mktime.c (guess_time_tm): Fix bug where mktime
112425         returned the maximum time_t value rather than (time_t) -1.
112426         Problem originally reported by William Bardwell
112427         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
112429         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
112430         Moved to here ...
112431         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
112432         ... from here.
112434 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
112436         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
112437         2821 is fixed.
112439 2006-09-08  Jim Meyering  <jim@meyering.net>
112441         Don't make generated files read-only.  That would bother too many
112442         people.  However, do retain the ability to work when targets are
112443         read-only: remove the destination and temporary files before writing
112444         them (when generated via sed or echo), or by using the -f option for
112445         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
112446         * modules/alloca-opt, modules/argz, modules/arpa_inet:
112447         * modules/byteswap, modules/configmake, modules/fcntl:
112448         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
112449         * modules/localcharset, modules/netinet_in, modules/poll:
112450         * modules/stdbool, modules/stdint, modules/sys_select:
112451         * modules/sys_socket, modules/sys_stat, modules/sysexits:
112453 2006-09-08  Jim Meyering  <jim@meyering.net>
112455         Avoid new build failure on FreeBSD 6.0.
112456         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
112457         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
112458         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
112460 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112462         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
112464 2006-09-07  Jim Meyering  <jim@meyering.net>
112466         Fix global typo in last change: use chmod u-w, not chmod u-x.
112467         Spotted by Paul Eggert and Bruce Korb.
112468         * modules/alloca-opt, modules/argz, modules/arpa_inet:
112469         * modules/byteswap, modules/configmake, modules/fcntl:
112470         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
112471         * modules/localcharset, modules/netinet_in, modules/poll:
112472         * modules/stdbool, modules/stdint, modules/sys_select:
112473         * modules/sys_socket, modules/sys_stat, modules/sysexits:
112475 2006-09-06  Jim Meyering  <jim@meyering.net>
112477         Make generated files be read-only.
112478         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
112479         Ensure that each generated file is now read-only.
112480         * modules/argz: Likewise.
112481         * modules/arpa_inet: Likewise.
112482         * modules/byteswap: Likewise.
112483         * modules/configmake: Likewise.
112484         * modules/fcntl: Likewise.
112485         * modules/fnmatch: Likewise.
112486         * modules/getopt: Likewise.
112487         * modules/glob: Likewise.
112488         * modules/inttypes: Likewise.
112489         * modules/netinet_in: Likewise.
112490         * modules/poll: Likewise.
112491         * modules/stdbool: Likewise.
112492         * modules/stdint: Likewise.
112493         * modules/sys_select: Likewise.
112494         * modules/sys_socket: Likewise.
112495         * modules/sys_stat: Likewise.
112496         * modules/sysexits: Likewise.
112497         * modules/localcharset: Same as above, but continue using temporary
112498         file named "t-$@" (why different?) rather than the "$@-t" used
112499         everywhere else.
112501         * modules/sysexits (Makefile.am): Replace literal occurrences
112502         of "sysexit.h" more readable, and more consistent, "$@".
112504 2006-09-06  Bruno Haible  <bruno@clisp.org>
112506         * modules/striconv: New file.
112507         * modules/xstriconv: New file.
112508         * MODULES.html.sh (Internationalization functions): Add striconv,
112509         xstriconv.
112511 2006-09-06  Bruno Haible  <bruno@clisp.org>
112513         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
112514         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
112515         not using libtool correctly.
112517 2006-09-06  Bruno Haible  <bruno@clisp.org>
112519         * lib/striconv.h: New file.
112520         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
112521         iconvstring.c.
112522         * lib/xstriconv.h: New file.
112523         * lib/xstriconv.c: New file.
112525 2006-09-06  Bruno Haible  <bruno@clisp.org>
112527         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
112528         lib_..._LDFLAGS.
112530 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112532         * lib/argz_.h: Sync from Libtool.
112534         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
112535                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
112537         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
112539 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
112541         * modules/trim: New file.
112543 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
112545         * lib/trim.h: New file.
112546         * lib/trim.c: New file.
112548 2006-09-05  Bruno Haible  <bruno@clisp.org>
112550         * MODULES.html.sh (String handling): Add trim.
112552 2006-09-04  Karl Berry  <karl@gnu.org>
112554         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
112555         until next release.
112557 2006-09-03  Bruno Haible  <bruno@clisp.org>
112559         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
112560         correctly.
112562 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
112564         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
112565         not gl_GETLOADAVG.  Omit unneeded semicolons.
112566         Problems reported by Ralf Wildenhues in
112567         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
112568         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
112569         at the end, which is the usual gnulib style.
112571         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
112572         of doing all the work ourselves.
112573         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
112574         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
112576 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
112578         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
112579         Problem reported by Ralf Wildenhues in
112580         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
112582         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
112583         HAVE_STRUCT_STATFS_F_FSTYPENAME.
112585 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
112587         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
112588         yesterday's patch by changing test -n to test -z.
112590 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
112592         * modules/getloadavg (Files): Add m4/getloadavg.m4.
112593         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
112594         the former is now obsolescent.
112596         * modules/chdir-long (Depends-on): Add fcntl.
112598 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
112600         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
112601         obsolescent, and programs should use gnulib instead.
112602         * m4/getloadavg.m4: New file, with contents taken from Autoconf
112603         but with prefixes changed.
112605 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
112607         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
112608         or stdbool.h, because they might not exist while configuring.
112610         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
112611         Don't include unistd.h or limits.h; not needed, since chdir-long.h
112612         does that for us.
112613         (O_DIRECTORY): Remove.
112615 2006-08-31  Eric Blake  <ebb9@byu.net>
112617         * gnulib-tool: Don't let emacs change spaces to TAB.
112619 2006-08-31  Bruno Haible  <bruno@clisp.org>
112621         * gnulib-tool: When calling func_import more than once, do it in a
112622         subshell.
112623         Reported by Eric Blake <ebb9@byu.net>.
112625 2006-08-31  Bruno Haible  <bruno@clisp.org>
112627         * gnulib-tool (nl): Remove variable.
112628         (sed_transform_lib_file): Use more robust test for config-h module.
112629         (func_import): Fix typo in 2006-08-25 patch.
112631 2006-08-31  Bruno Haible  <bruno@clisp.org>
112633         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
112634         specified, augment Makefile.am variables instead of assigning them.
112636 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
112638         Work around a bug in both the Linux and SunOS 64-bit kernels:
112639         nanosleep mishandles sleeps for longer than 2**31 seconds.
112640         Problem reported by Frank v Waveren in
112641         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
112642         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
112643         Check for nanosleep bug.
112644         (LIB_NANOSLEEP): Append clock_gettime library if needed.
112646 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
112648         Work around a bug in both the Linux and SunOS 64-bit kernels:
112649         nanosleep mishandles sleeps for longer than 2**31 seconds.
112650         Problem reported by Frank v Waveren in
112651         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
112652         * lib/nanosleep.c (BILLION): New constant.
112653         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
112654         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
112655         implementation.
112657 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
112659         * modules/nanosleep (Depends-on): Add gettime.
112661 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
112662         and Simon Josefsson  <jas@extundo.com>
112663         and Oskar Liljeblad  <oskar@osk.mine.nu>
112665         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
112666         * gnulib-tool (func_import): New license type 'unmodifiable license
112667         text'.
112668         * modules/fdl: Use it.  Longer description.
112669         * module/gpl, module/lgpl: New files.
112671 2006-08-30  Jim Meyering  <jim@meyering.net>
112673         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
112674         shadowing the parameter.
112676 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112678         Sync from Libtool:
112680         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112682         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
112683         sharing with gnulib.  Report by Eric Blake.
112685 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
112687         * modules/isapipe: New file.
112688         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
112690 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
112692         * modules/configmake (Makefile.am): Add a comment, and omit
112693         the CONFIGMAKE_ prefix from generated macro names.  Suggested
112694         by Bruno Haible.
112696 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
112698         * m4/isapipe.m4: New file.
112700 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
112702         * lib/isapipe.c, lib/isapipe.h: New files.
112704 2006-08-29  Jim Meyering  <jim@meyering.net>
112706         * modules/configmake (Makefile.am): Make configmake.h depend on
112707         Makefile.  Otherwise, a stale configmake.h could hang around.
112709 2006-08-29  Eric Blake  <ebb9@byu.net>
112711         * lib/error.c (error_at_line, print_errno_message): Match libc, after
112712         resolution of upstream bug 3044.
112714 2006-08-29  Bruno Haible  <bruno@clisp.org>
112716         * modules/localcharset (Depends-on): Add configmake.
112717         (Makefile.am): Remove setting of LIBDIR through DEFS.
112719 2006-08-29  Bruno Haible  <bruno@clisp.org>
112721         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
112722         defined.
112724 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
112726         * modules/fcntl: New file.
112727         * modules/chdir-safer (Depends-on): Add fcntl.
112728         * modules/fts: Likewise.
112729         * modules/mkdir-p: Likewise.
112731         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
112732         This undoes the most recent change, since we're now addressing the
112733         problem in a different way.
112735         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
112736         into output, since the output might be called Makefile.am even
112737         if $makefile_name is something different.
112738         (func_import): Use $makefile_am rather than
112739         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
112740         empty.
112742         * modules/inttypes (Files): Add m4/inttypes-h.m4.
112744 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
112746         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
112747         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
112748         recent change to stdint.m4, since we're now addressing the problem in a
112749         different way.
112751 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
112753         * m4/fcntl_h.m4: New file.
112755 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
112757         * lib/fcntl_.h: New file.
112758         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
112759         the fcntl module.
112760         * lib/dirchownmod.c: Likewise.
112761         * lib/fts.c: Likewise.
112763         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
112764         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
112765         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
112766         just before including <inttypes.h>, to avoid circular inclusion.
112768 2006-08-28  Jim Meyering  <jim@meyering.net>
112770         * doc/visibility.texi: Actually read and correct the grammar of the
112771         sentence affected by yesterday's change.
112773 2006-08-28  Eric Blake  <ebb9@byu.net>
112775         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
112776         needs wrapper.
112778 2006-08-28  Eric Blake  <ebb9@byu.net>
112780         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
112782 2006-08-28  Eric Blake  <ebb9@byu.net>
112784         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
112786 2006-08-28  Bruno Haible  <bruno@clisp.org>
112788         * modules/c-strstr: New file, from GNU gettext.
112789         * MODULES.html.sh (String handling): Add c-strstr.
112791 2006-08-28  Bruno Haible  <bruno@clisp.org>
112793         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
112794         macros.
112795         Reported by Eric Blake.
112797 2006-08-28  Bruno Haible  <bruno@clisp.org>
112799         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
112800         (VASNPRINTF): Return a string of length > INT_MAX without failing.
112801         * lib/vasprintf.c: Include errno.h, limits.h.
112802         (EOVERFLOW): New fallback definition.
112803         (vasprintf): Test here whether the string length is > INT_MAX.
112804         * lib/vsnprintf.c: Include errno.h, limits.h.
112805         (EOVERFLOW): New fallback definition.
112806         (vsnprintf): Fix bug when generated string was too long for the buffer.
112807         Test here whether the string length is > INT_MAX.
112809 2006-08-28  Bruno Haible  <bruno@clisp.org>
112811         * lib/inttypes_.h (SCNX*): Remove definitions.
112812         Reported by Eric Blake.
112814 2006-08-28  Bruno Haible  <bruno@clisp.org>
112816         * lib/c-strstr.h: New file, from GNU gettext.
112817         * lib/c-strstr.c: New file, from GNU gettext.
112819 2006-08-28  Bruno Haible  <bruno@clisp.org>
112821         * gnulib-tool: Reorder some statements.
112823 2006-08-28  Bruno Haible  <bruno@clisp.org>
112825         * gnulib-tool: New option --makefile-name.
112826         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
112827         $makefile_name.
112828         (func_import): Write $makefile_name to the cache file, and read it from
112829         there unless explicitly specified. Use $makefile_name as file name
112830         instead of Makefile.am. Adjust the recommendations accordingly.
112832 2006-08-28  Bruno Haible  <bruno@clisp.org>
112834         * gnulib-tool (func_verify_module): Check against misapplying patch.
112836 2006-08-28  Bruno Haible  <bruno@clisp.org>
112838         * gnulib-tool (func_relativize, func_relconcat): New functions.
112839         Give an error if --local-dir is given with --update.
112840         Remove trailing slashes from $local_gnulib_dir.
112841         (func_import): Store the relativized $local_gnulib_dir in
112842         gnulib-cache.m4, and read it from there if not specified explicitly.
112844 2006-08-28  Bruno Haible  <bruno@clisp.org>
112846         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
112847         is the current directory. Respect also $local_gnulib_dir.
112849 2006-08-28  Bruno Haible  <bruno@clisp.org>
112850             Simon Josefsson  <jas@extundo.com>
112852         BeOS portability.
112853         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
112855 2006-08-27  Jim Meyering  <jim@meyering.net>
112857         * doc/visibility.texi: Remove duplicate word: "pointer".
112859 2006-08-26  Bruno Haible  <bruno@clisp.org>
112861         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
112862         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
112863         (Makefile.am): Create inttypes.h from inttypes_.h.
112864         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
112866         * modules/imaxabs: New file.
112868         * modules/imaxdiv: New file.
112870 2006-08-26  Bruno Haible  <bruno@clisp.org>
112872         * m4/inttypes.m4: New file.
112873         * m4/_inttypes_h.m4: Remove file.
112874         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
112875         PRI_MACROS_BROKEN.
112876         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
112878         * m4/imaxabs.m4: New file.
112880         * m4/imaxdiv.m4: New file.
112882 2006-08-26  Bruno Haible  <bruno@clisp.org>
112884         * lib/inttypes_.h: New file.
112885         * lib/inttypes.h: Remove file.
112886         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
112888         * lib/imaxabs.c: New file.
112890         * lib/imaxdiv.c: New file.
112892 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
112894         New config-h module, so that "make" output needn't be cluttered
112895         by -DHAVE_CONFIG_H.
112896         * MODULES.html.sh (Support for building libraries and executables):
112897         Add config-h.
112898         * modules/config-h: New file.
112899         * gnulib-tool (nl, sed_transform_lib_file): New vars.
112900         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
112901         the config-h module is used.
112903         New configmake module, so that "make" output needn't be cluttered
112904         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
112905         * MODULES.html.sh (Support for building libraries and executables):
112906         Add configmake.
112907         * modules/configmake: New file.
112909 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
112911         * m4/config-h.m4: New file.
112913 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
112915         * config/srclist.txt: Add elisp-comp.
112917 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
112919         * MODULES.html.sh (Support for building libraries and executables):
112920         Add elisp-comp.
112921         * build-aux/elisp-comp: New file.
112922         * modules/elisp-comp: New file.
112924 2006-08-24  Bruno Haible  <bruno@clisp.org>
112926         * gnulib-tool (func_create_testdir): Use non-default values of
112927         sourcebase and m4base.
112929 2006-08-24  Bruno Haible  <bruno@clisp.org>
112931         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
112932         HTML structure.
112934 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
112936         * modules/openat (Depends-on): Add lchown.
112938 2006-08-23  Bruno Haible  <bruno@clisp.org>
112940         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
112941         of gl_LOCK_EARLY instead of gl_LOCK.
112943 2006-08-23  Bruno Haible  <bruno@clisp.org>
112945         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
112946         on OSF/1 to no.
112947         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
112949 2006-08-23  Bruno Haible  <bruno@clisp.org>
112951         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
112952         as unusable.
112954         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
112955         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
112956         (gl_LOCK): New macro.
112958 2006-08-22  Simon Josefsson  <jas@extundo.com>
112960         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
112961         to md5 module.
112963 2006-08-22  Simon Josefsson  <jas@extundo.com>
112965         * MODULES.html.sh: Add "Support for maintaining and release
112966         projects".
112968         * build-aux/gnupload: New file, from coreutils.
112970 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
112972         Avoid the need for AC_LIBSOURCES in m4 macros.
112973         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
112974         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
112975         * modules/check-version (EXTRA_DIST): Add check-version.h.
112976         * modules/crc (EXTRA_DIST): Add crc.h.
112977         * modules/des (EXTRA_DIST): Add des.h.
112978         * modules/gc (EXTRA_DIST): Add gc.h.
112979         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
112980         * modules/getline (EXTRA_DIST): Add getline.h.
112981         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
112982         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
112983         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
112984         * modules/md2 (EXTRA_DIST): Add md2.h.
112985         * modules/md4 (EXTRA_DIST): Add md4.h.
112986         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
112987         * modules/read-file (EXTRA_DIST): Add read-file.h.
112988         * modules/readline (EXTRA_DIST): Add readline.h.
112989         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
112990         rijndael-api-fst.h.
112992 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
112994         * m4/rijndael.m4 (gl_ARCFOUR):
112995         * m4/arctwo.m4 (gl_ARCTWO):
112996         * m4/check-version.m4 (gl_CHECK_VERSION):
112997         * m4/crc.m4 (gl_CRC):
112998         * m4/des.m4 (gl_DES):
112999         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
113000         * m4/gc.m4 (gl_GC):
113001         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
113002         * m4/getline.m4 (gl_FUNC_GETLINE):
113003         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
113004         * m4/hmac-md5.m4 (gl_HMAC_MD5):
113005         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
113006         * m4/md2.m4 (gl_MD2):
113007         * m4/md4.m4 (gl_MD4):
113008         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
113009         * m4/read-file.m4 (gl_FUNC_READ_FILE):
113010         * m4/readline.m4 (gl_FUNC_READLINE):
113011         * m4/rijndael.m4 (gl_RIJNDAEL):
113012         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
113013         to get the necessary .h files and whatnot.
113015 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
113017         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
113018         gnulib rather than the other way around.
113019         * config/srclistvars.sh (COREUTILS): Remove.
113021 2006-08-22  Jim Meyering  <jim@meyering.net>
113023         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
113025         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
113027 2006-08-22  Eric Blake  <ebb9@byu.net>
113029         * modules/regexprops-generic: New file.
113030         * MODULES.html.sh (Support for building documentation): List it.
113032 2006-08-22  Eric Blake  <ebb9@byu.net>
113034         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
113035         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
113036         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
113037         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
113039 2006-08-22  Bruno Haible  <bruno@clisp.org>
113041         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
113042         and lib_LTLIBRARIES like the other lib_* variables.
113044 2006-08-22  Bruno Haible  <bruno@clisp.org>
113046         * build-aux/x-to-1.in: New file, from GNU gettext.
113048 2006-08-22  Bruno Haible  <bruno@clisp.org>
113050         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
113051         <utmpx.h> exists.
113053 2006-08-22  Bruno Haible  <bruno@clisp.org>
113055         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
113056         <utmpx.h> exists.
113058 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
113060         BeOS portability.
113061         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
113062         exist.
113063         Problem reported by Bruno Haible.
113065 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
113067         Avoid the need for AC_LIBSOURCES in m4 macros.
113068         * modules/acl (EXTRA_DIST): Add acl.h.
113069         * modules/argmatch (Files): Add m4/argmatch.m4.
113070         (configure.ac): Add gl_ARGMATCH.
113071         (EXTRA_DIST): Renamed from lib_SOURCES, for
113072         consistency with the other modules.  Remove argmatch.c.
113073         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
113074         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
113075         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
113076         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
113077         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
113078         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
113079         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
113080         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
113081         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
113082         * modules/closeout (EXTRA_DIST): Add closeout.h.
113083         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
113084         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
113085         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
113086         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
113087         dirname.h; remove basename.c and stripslash.c.
113088         * modules/exclude (EXTRA_DIST): Add exclude.h.
113089         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
113090         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
113091         * modules/file-type (EXTRA_DIST): Add file-type.h.
113092         * modules/filemode (EXTRA_DIST): Add filemode.h.
113093         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
113094         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
113095         * modules/fpending (EXTRA_DIST): Add __fpending.h.
113096         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
113097         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
113098         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
113099         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
113100         * modules/getdate (EXTRA_DIST): Add getdate.c.
113101         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
113102         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
113103         * modules/getpass (EXTRA_DIST): Add getpass.h.
113104         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
113105         * modules/group-member (EXTRA_DIST): Add group-member.h.
113106         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
113107         * modules/hash (EXTRA_DIST): Add hash.h.
113108         * modules/human (EXTRA_DIST): Add human.h.
113109         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
113110         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
113111         * modules/lchown (EXTRA_DIST): Add lchown.h.
113112         * modules/long-options (EXTRA_DIST): Add long-options.h.
113113         * modules/lstat (EXTRA_DIST): Add lstat.h.
113114         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
113115         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
113116         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
113117         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
113118         * modules/memxor (EXTRA_DIST): Add memxor.h.
113119         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
113120         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
113121         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
113122         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
113123         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
113124         * modules/physmem (EXTRA_DIST): Add physmem.h.
113125         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
113126         * modules/posixver (EXTRA_DIST): Add posixver.h.
113127         * modules/quote (EXTRA_DIST): Add quote.h.
113128         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
113129         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
113130         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
113131         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
113132         regex_internal.h regexec.c.
113133         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
113134         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
113135         * modules/same (EXTRA_DIST): Add same.h.
113136         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
113137         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
113138         * modules/savedir (EXTRA_DIST): Add savedir.h.
113139         * modules/sha1 (EXTRA_DIST): Add sha1.h.
113140         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
113141         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
113142         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
113143         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
113144         * modules/strdup (EXTRA_DIST): Add strdup.h.
113145         * modules/strftime (EXTRA_DIST): Add strftime.h.
113146         * modules/strndup (EXTRA_DIST): Add strndup.h.
113147         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
113148         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
113149         * modules/time_r (EXTRA_DIST): Add time_r.h.
113150         * modules/timespec (EXTRA_DIST): Add timespec.h.
113151         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
113152         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
113153         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
113154         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
113155         * modules/userspec (EXTRA_DIST): Add userspec.h.
113156         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
113157         * modules/utimens (EXTRA_DIST): Add utimens.h.
113158         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
113159         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
113160         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
113161         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
113162         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
113163         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
113164         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
113165         * modules/yesno (EXTRA_DIST): Add yesno.h.
113167 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
113169         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
113171         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
113172         * m4/dev-ino.m4, same-inode.m4: Remove.
113174         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
113175         * m4/acl.m4 (AC_FUNC_ACL):
113176         * m4/backupfile.m4 (gl_BACKUPFILE):
113177         * m4/c-strtod.m4 (gl_C99_STRTOLD):
113178         * m4/canon-host.m4 (gl_CANON_HOST):
113179         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
113180         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
113181         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
113182         * m4/cloexec.m4 (gl_CLOEXEC):
113183         * m4/close-stream.m4 (gl_CLOSE_STREAM):
113184         * m4/closeout.m4 (gl_CLOSEOUT):
113185         * m4/dirfd.m4 (gl_FUNC_DIRFD):
113186         * m4/dirname.m4 (gl_DIRNAME):
113187         * m4/exclude.m4 (gl_EXCLUDE):
113188         * m4/exitfail.m4 (gl_EXITFAIL):
113189         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
113190         * m4/file-type.m4 (gl_FILE_TYPE):
113191         * m4/filemode.m4 (gl_FILEMODE):
113192         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
113193         * m4/fpending.m4 (gl_FUNC_FPENDING):
113194         * m4/fprintftime.m4 (gl_FPRINTFTIME):
113195         * m4/fts.m4 (gl_FUNC_FTS):
113196         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
113197         * m4/getdate.m4 (gl_GETDATE):
113198         * m4/gethrxtime.m4 (gl_GETHRXTIME):
113199         * m4/getpagesize.m4 (gl_GETPAGESIZE):
113200         * m4/getpass.m4 (gl_FUNC_GETPASS):
113201         * m4/gettime.m4 (gl_GETTIME):
113202         * m4/getugroups.m4 (gl_GETUGROUPS):
113203         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
113204         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
113205         * m4/hard-locale.m4 (gl_HARD_LOCALE):
113206         * m4/hash.m4 (gl_HASH):
113207         * m4/idcache.m4 (gl_IDCACHE):
113208         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
113209         * m4/lchown.m4 (gl_FUNC_LCHOWN):
113210         * m4/long-options.m4 (gl_LONG_OPTIONS):
113211         * m4/lstat.m4 (gl_FUNC_LSTAT):
113212         * m4/md5.m4 (gl_MD5):
113213         * m4/memcasecmp.m4 (gl_MEMCASECMP):
113214         * m4/memcoll.m4 (gl_MEMCOLL):
113215         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
113216         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
113217         * m4/memxor.m4 (gl_MEMXOR):
113218         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
113219         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
113220         * m4/modechange.m4 (gl_MODECHANGE):
113221         * m4/mountlist.m4 (gl_MOUNTLIST):
113222         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
113223         * m4/openat.m4 (gl_FUNC_OPENAT):
113224         * m4/pathmax.m4 (gl_PATHMAX):
113225         * m4/physmem.m4 (gl_PHYSMEM):
113226         * m4/posixtm.m4 (gl_POSIXTM):
113227         * m4/posixver.m4 (gl_POSIXVER):
113228         * m4/quote.m4 (gl_QUOTE):
113229         * m4/quotearg.m4 (gl_QUOTEARG):
113230         * m4/readtokens.m4 (gl_READTOKENS):
113231         * m4/readutmp.m4 (gl_READUTMP):
113232         * m4/regex.m4 (gl_REGEX):
113233         * m4/safe-read.m4 (gl_SAFE_READ):
113234         * m4/safe-write.m4 (gl_SAFE_WRITE):
113235         * m4/same.m4 (gl_SAME):
113236         * m4/save-cwd.m4 (gl_SAVE_CWD):
113237         * m4/savedir.m4 (gl_SAVEDIR):
113238         * m4/settime.m4 (gl_SETTIME):
113239         * m4/sha1.m4 (gl_SHA1):
113240         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
113241         * m4/stat-macros.m4 (gl_STAT_MACROS):
113242         * m4/stat-time.m4 (gl_STAT_TIME):
113243         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
113244         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
113245         * m4/strdup.m4 (gl_FUNC_STRDUP):
113246         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
113247         * m4/strndup.m4 (gl_FUNC_STRNDUP):
113248         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
113249         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
113250         * m4/time_r.m4 (gl_TIME_R):
113251         * m4/timespec.m4 (gl_TIMESPEC):
113252         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
113253         * m4/unlinkdir.m4 (gl_UNLINKDIR):
113254         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
113255         * m4/userspec.m4 (gl_USERSPEC):
113256         * m4/utimecmp.m4 (gl_UTIMECMP):
113257         * m4/utimens.m4 (gl_UTIMENS):
113258         * m4/xalloc.m4 (gl_XALLOC):
113259         * m4/xgetcwd.m4 (gl_XGETCWD):
113260         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
113261         * m4/xreadlink.m4 (gl_XREADLINK):
113262         * m4/xstrtod.m4 (gl_XSTRTOD):
113263         * m4/yesno.m4 (gl_YESNO):
113264         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
113265         to get the necessary .h files and whatnot.
113267 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
113268             Bruno Haible  <bruno@clisp.org>
113270         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
113271         /bin/sh understanding of '!' conditional negation.
113273 2006-08-21  Jim Meyering  <jim@meyering.net>
113275         * modules/openat (Depends-on): Really alphabetize.
113277         * modules/acl (Depends-on): Add error and quote.
113279         * check-module (find_included_lib_files): Add at-func.c to the
113280         ok-to-include-more-than-once white list.
113282         * modules/openat (Depends-on): Add lstat.  Alphabetize.
113284 2006-08-21  Bruno Haible  <bruno@clisp.org>
113286         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
113287         Emit a pkgdata_DATA variable only if some snippets add contents to it.
113288         Reported by Martin Lambers <marlam@marlam.de>.
113290 2006-08-21  Bruno Haible  <bruno@clisp.org>
113292         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
113293         specify an installation location, don't emit a noinst_LIBRARIES or
113294         noinst_LTLIBRARIES assignment.
113296 2006-08-21  Bruno Haible  <bruno@clisp.org>
113298         BeOS portability.
113299         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
113300         BeOS has mbrtowc() but no <wctype.h>.
113302 2006-08-21  Bruno Haible  <bruno@clisp.org>
113304         BeOS portability.
113305         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
113306         exist.
113308 2006-08-21  Bruno Haible  <bruno@clisp.org>
113310         BeOS portability.
113311         * lib/mbchar.h: Include <wctype.h> only if it exists.
113313 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
113315         Remove files that are no longer needed by their respective modules.
113316         * m4/obstack.m4: Remove.
113317         * m4/strerror_r.m4: Remove.
113318         * m4/uint32_t.m4: Remove.
113319         * m4/uintptr_t.m4: Remove.
113320         * m4/ullong_max.m4: Remove.
113321         * m4/xstrtoimax.m4: Remove.
113322         * m4/xstrtoumax.m4: Remove.
113324         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
113325         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
113326         dependencies now capture this.
113328         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
113329         Do not use AC_LIBSOURCES, since gnulib modules now do this.
113330         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
113331         * m4/human.m4 (gl_HUMAN): Likewise.
113332         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
113333         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
113335         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
113337         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
113338         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
113339         stdint.
113340         * m4/human.m4 (gl_HUMAN): Likewise.
113341         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
113342         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
113343         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
113344         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
113345         * m4/xstrtol (gl_XSTRTOL): Likewise.
113347         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
113348         AC_TYPE_LONG_LONG_INT.
113349         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
113350         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
113351         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
113352         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
113354         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
113355         on stdbool.
113357         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
113358         (gl_PREREQ_XSTRTOUL): Remove.
113360         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
113362         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
113363         mode.
113365 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
113367         Add and change modules to make it easier for coreutils to use
113368         gnulib-tool.
113369         * modules/backupfile (Files): Remove m4/d-ino.m4.
113370         (Depends-on): Add d-ino.
113371         * modules/cycle-check (Depends-on): Add stdint.
113372         (lib_SOURCES): Add cycle-check.h.
113373         * modules/d-ino: New module.
113374         * modules/d-type: New module.
113375         * modules/error (Files): Remove m4/strerror_r.m4.
113376         * modules/filemode (Files): Add m4/st_dm_mode.m4.
113377         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
113378         m4/inttypes_h.m4, m4/uintmax_t.m4.
113379         (Depends-on): Add stdint.
113380         (lib_SOURCES): Add fsusage.h.
113381         * modules/getcwd (Files): Remove d-ino.m4.
113382         (Depends-on): Add d-ino.
113383         * modules/getndelim2 (Depends-on): Add stdint.
113384         * modules/glob (Files): Remove m4/d-type.m4.
113385         (Depends-on): Add d-type.
113386         * modules/host-os: New module.
113387         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
113388         m4/inttypes_h.m4, m4/uintmax_t.m4.
113389         * Depends-on: Add stdint.
113390         (lib_SOURCES): Add human.h.
113391         * modules/inttostr (Files): Remove m4/intmax_t.m4,
113392         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
113393         m4/uintmax_t.m4, m4/ulonglong.m4.
113394         (Depends-on): Add stdint.
113395         (EXTRA_DIST): Add inttostr.h.
113396         * modules/lchmod: New module.
113397         * modules/link-follow: New module.
113398         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
113399         (Depends-on): Add lchmod.
113400         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
113401         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
113402         (Depends-on): Add stdint.
113403         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
113404         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
113405         (Depends-on): Add stdint.
113406         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
113407         * modules/perl: New module.
113408         * modules/regex (Depends-on): Add stdint.
113409         * modules/rmdir-errno: New module.
113410         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
113411         m4/intmax_t.m4.
113412         (Depends-on): Add stdint.
113413         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
113414         m4/uintmax_t.m4.
113415         (Depends-on): Add stdint.
113416         * modules/unlink-busy: New module.
113417         * modules/utimecmp (Depends-on): Add stdint.
113418         * modules/uptime: New module.
113419         * modules/winsz-ioctl: New module.
113420         * modules/winsz-termios: New module.
113421         * modules/xnanosleep (Depends-on): Add nanosleep.
113422         * modules/ullong_max: Remove.
113423         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
113424         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
113425         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
113426         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
113427         (Depends-on): Add inttypes.
113428         (lib_SOURCES): Add xstrtol.h.
113429         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
113430         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
113431         * MODULES.html.sh: Move 'assert' into the assert section.
113432         Move 'dummy' into the linking section.
113433         Remove ullong_max.
113434         Add section for compatibility checks for POSIX:2001 functions,
113435         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
113436         winsz-ioctl, and winsz-termios into it.
113437         Add lchmod.
113438         Add top-level Misc section and put host-os, perl, and uptime
113439         into it.
113441 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
113443         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
113444         now assume the stdint module.  Do not include inttypes.h.
113445         * lib/fsusage.h: Likewise.
113446         * lib/getndelim2.c: Likewise.
113447         * lib/human.h: Likewise.
113448         * lib/inttostr.h: Likewise.
113449         * lib/obstack.c: Likewise.
113450         * lib/regex_internal.h: Likewise.
113451         * lib/tempname.c: Likewise.
113452         * lib/utimecmp.c: Likewise.
113453         * lib/xstrtol.h: Likewise.
113455         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
113457         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
113458         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
113459         * lib/xtime.h: Likewise.
113461 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
113463         * modules/openat (Files): Add lib/fchmodat.c.
113464         Fixes problem reported by Jay Youngman.
113466 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
113468         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
113469         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
113471 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
113472             Bruno Haible  <bruno@clisp.org>
113474         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
113475         and is a script that invokes bison. Tighten the code. Add comments.
113477 2006-08-18  Jim Meyering  <jim@meyering.net>
113479         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
113480         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
113481         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
113482         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
113484 2006-08-18  Bruno Haible  <bruno@clisp.org>
113486         * modules/bison-i18n: New file.
113487         * MODULES.html.sh (Internationalization functions): Add it.
113489 2006-08-18  Bruno Haible  <bruno@clisp.org>
113491         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
113492         sys/statvfs.h. When getmntinfo was found, check its declaration and
113493         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
113495 2006-08-18  Bruno Haible  <bruno@clisp.org>
113497         * m4/bison-i18n.m4: New file, from bison.
113499 2006-08-18  Bruno Haible  <bruno@clisp.org>
113501         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
113502         (ME_DUMMY): Treat "kernfs" as a dummy.
113503         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
113505 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
113507         Update from coreutils.
113509         2006-08-15  Jim Meyering  <jim@meyering.net>
113511         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
113513         2006-01-17  Jim Meyering  <jim@meyering.net>
113515         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
113517         2006-01-11  Jim Meyering  <jim@meyering.net>
113519         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
113520         Check for the lchmod function.
113522 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
113524         Update from coreutils.
113526         * lib/__fpending.h: Add copyright notice.
113527         * lib/fprintftime.h: Likewise.
113528         * lib/savedir.c: Use (C) in copyright notice.
113529         * lib/savedir.h: Likewise.
113531         2006-08-15  Jim Meyering  <jim@meyering.net>
113533         * lib/at-func.c: New file, with the logic of all emulated at-functions.
113534         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
113535         in support of the EXPECTED_ERRNO macro.
113536         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
113537         definitions.  Instead, define the appropriate symbols and include
113538         "at-func.c".
113539         * lib/mkdirat.c (mkdirat): Likewise.
113540         * lib/fchmodat.c (fchmodat): Likewise.
113541         (ENOSYS): Remove definition.
113542         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
113543         it.  Don't include "unistd--.h" -- it wasn't ever used.
113545         2006-01-17  Jim Meyering  <jim@meyering.net>
113547         Rewrite fts.c not to change the current working directory,
113548         by using openat, fstatat, fdopendir, etc..
113550         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
113551         (HAVE_OPENAT_SUPPORT): Define.
113552         [_LIBC] (fchdir): Don't undef or define; no longer used.
113553         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
113554         Now, this `function' always succeeds, and consumes its file descriptor
113555         parameter -- so callers must not close such FDs.  Update callers.
113556         (diropen_fd, opendirat, cwd_advance_fd): New functions.
113557         (diropen): Add parameter, SP.  Adjust all callers.
113558         Implement using diropen_fd, rather than open.
113559         (fts_open): Initialize new member, fts_cwd_fd.
113560         Remove fts_rft-setting code.
113561         (fts_close): Close fts_cwd_fd, if necessary.
113562         (__opendir2): Define in terms of opendir or opendirat,
113563         depending on whether the FST_NOCHDIR flag is set.
113564         (fts_build): Since fts_safe_changedir consumes its FD, and since
113565         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
113566         and close the dup'd file descriptor upon failure.
113567         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
113568         (fts_safe_changedir): Tweak semantics to reflect that this function
113569         now calls cwd_advance_fd and hence consumes its FD argument.
113570         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
113571         [struct FTS] (fts_rft): Remove now-unused member.
113572         [struct FTS] (fts_cycle.state): Improve comment.
113574         * lib/openat.c (openat_needs_fchdir): New function.
113575         * lib/openat.h (openat_needs_fchdir): Declare it.
113577 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
113579         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
113580         Problem and fix reported by Pádraig Brady in
113581         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
113583 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
113585         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
113587 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
113589         * lib/memcoll.c (memcoll): Optimize for the common case where the
113590         arguments are bytewise equal.
113592 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
113594         * doc/regexprops-generic.texi: Add a copyright notice.
113596 2006-08-15  Bruno Haible  <bruno@clisp.org>
113598         * modules/tmpdir (License): Change to LGPL.
113600 2006-08-15  Bruno Haible  <bruno@clisp.org>
113602         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
113603         module.
113605 2006-08-14  Simon Josefsson  <jas@extundo.com>
113607         * config/srclist.txt: Add gnupload.
113609 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
113611         Change copyright notice from LGPL 2 to GPL 2, since that's the
113612         standard form used in the gnulib repository.
113613         * tests/test-lock.c: Likewise.
113614         * tests/test-stdint.c: Likewise.
113615         * tests/test-tls.c: Likewise.
113617         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
113618         prelude-manager.  User shorter URLs for GNU projects, without '?'.
113619         Add copyright notice.
113621         * check-module: Add copyright notice.  Output a copyright
113622         notice if "--version" is specified.
113623         * modules/COPYING: New file.
113624         * tests/test-getaddrinfo.c: Add copyright notice.
113625         * tests/test-verify.c: Likewise.
113627 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
113629         Change copyright notice from LGPL 2 to GPL 2, since that's the
113630         standard form used in the gnulib repository.
113631         * lib/lock.c: LGPL -> GPL.
113632         * lib/lock.h: Likewise.
113633         * lib/strnlen1.c: Likewise.
113634         * lib/strnlen1.h: Likewise.
113635         * lib/tls.c: Likewise.
113636         * lib/tls.h: Likewise.
113637         * lib/tmpdir.c: Likewise.
113639         * lib/TODO: Remove; this belongs only in coreutils.
113641 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
113643         Add copyright notices to long-enough files that lack them, since
113644         otherwise the files aren't clearly free.  Use the same notice that
113645         getdate.texi already uses.
113646         * doc/alloca-opt.texi: Add copyright notice.
113647         * doc/alloca.texi: Likewise.
113648         * doc/ctime.texi: Likewise.
113649         * doc/functions.texi: Likewise.
113650         * doc/gcd.texi: Likewise.
113651         * doc/gnulib-tool.texi: Likewise.
113652         * doc/inet_ntoa.texi: Likewise.
113653         * doc/visibility.texi: Likewise.
113655         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
113656         * doc/quote.texi: Add copyright notice.
113658         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
113659         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
113660         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
113661         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
113662         is now obsolete, and give a pointer to the Sun list.
113663         Add copyright notice.
113665 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
113667         * config/srclistvars.sh: Add copyright notice.
113669 2006-08-14  Eric Blake  <ebb9@byu.net>
113671         Import the following change from libc:
113673         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
113675         Upstream bug 2997.
113676         * lib/misc/error.c: Add space between program name and message if file
113677         name is missing.
113679 2006-08-12  Karl Berry  <karl@gnu.org>
113681         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
113682         remove, these originate in gnulib now.
113684 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113686         * doc/Makefile (standards.info standards.html standards.dvi):
113687         Also depend on make-stds.texi.
113689 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
113691         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
113692         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
113694         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
113695         in wchar_t.  Problem reported by Eric Blake.
113697         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
113698         LEN is smaller than SIZE.  Suggested by Bruno Haible.
113699         Also, help the compiler to keep LEN in a register.
113701 2006-08-11  Eric Blake  <ebb9@byu.net>
113703         * users.txt: Sort.  Add tar.
113705 2006-08-11  Bruno Haible  <bruno@clisp.org>
113707         * users.txt: New file.
113709 2006-08-11  Bruno Haible  <bruno@clisp.org>
113711         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
113712         before <wchar.h>. Needed for OSF/1 and BSD/OS.
113714 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
113716         * modules/snprintf (Depends-on): Remove minmax.
113717         (Maintainer): Add self and Bruno.
113719 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
113721         * lib/.cppi-disable: Add snprintf.h, socket_.h.
113722         * lib/snprintf.c: Include <errno.h> and <limits.h>.
113723         (EOVERFLOW): Define if the system does not.
113724         Do not include "minmax.h"; it wasn't used.
113725         (snprintf): Don't assume size_t promotes to an unsigned type.
113726         Fix bug when generated string was too long for the buffer: the
113727         buffer's contents are supposed to be the initial prefix of the
113728         output.  Don't assume vasnprintf returns EOVERFLOW if the size
113729         exceeds INT_MAX; do the check ourselves.
113731         Import the following changes from libc:
113733         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
113735         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
113736         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
113737         set wc to the byte which couldn't be converted.
113738         (re_string_reconstruct): Don't clear valid_raw_len before calling
113739         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
113740         tip_context using re_string_context_at.
113742         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
113744         * lib/posix/regex.h: g++ still cannot handled [restrict].
113746         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
113748         * lib/posix/regex.h: Remove special handling for VMS.
113750 2006-08-10  Jim Meyering  <jim@meyering.net>
113752         * modules/same-inode: New module.
113753         * modules/dev-ino: New module.
113754         * modules/cycle-check: Depend on these modules, rather than simply
113755         including their .h files.
113756         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
113757         required via m4/cycle-check.m4.
113758         * modules/same: Depend on new same-inode module, rather than
113759         including same-inode.h.
113760         * modules/chdir-safer: New file.
113762         * modules/chown (Depends-on): Add stat-macros.
113764 2006-08-10  Jim Meyering  <jim@meyering.net>
113766         * m4/cycle-check.m4: New file.
113767         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
113768         * m4/dev-ino.m4, m4/same-inode.m4: New files.
113770 2006-08-10  Eric Blake  <ebb9@byu.net>
113772         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
113773         in from original proposal.
113775 2006-08-10  Eric Blake  <ebb9@byu.net>
113776         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
113778         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
113779         namespace.
113781 2006-08-10  Bruno Haible  <bruno@clisp.org>
113783         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
113784         as well.
113786 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
113788         Sync from coreutils.
113790         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
113792         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
113793         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
113795 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
113797         * modules/restrict: Remove; no longer needed now that we assume
113798         Autoconf 2.59 or later.
113799         * MODULES.html.sh: Remove 'restrict'.
113800         * modules/argp (Depends-on): Remove 'restrict'.
113801         * modules/base64 (Depends-on): Likewise.
113802         * modules/gc (Depends-on): Likewise.
113803         * modules/getaddrinfo (Depends-on): Likewise.
113804         * modules/glob (Depends-on): Likewise.
113805         * modules/inet_ntop (Depends-on): Likewise.
113806         * modules/inet_pton (Depends-on): Likewise.
113807         * modules/memxor (Depends-on): Likewise.
113808         * modules/regex (Depends-on): Likewise.
113809         * modules/strtok_r (Depends-on): Likewise.
113810         * modules/time_r (Depends-on): Likewise.
113812 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
113814         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
113815         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
113816         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
113817         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
113818         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
113819         * m4/memxor.m4 (gl_MEMXOR): Likewise.
113820         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
113821         gl_C_RESTRICT replaced by AC_C_RESTRICT.
113823         Merge from coreutils.
113824         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
113825         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
113826         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
113827         * m4/time_r.m4 (gl_TIME_R): Likewise.
113829 2006-08-09  Karl Berry  <karl@gnu.org>
113831         * config/srclist.txt: no more gettext-tools, per Bruno.
113833 2006-08-08  Eric Blake  <ebb9@byu.net>
113835         * modules/verror: New module.
113836         * MODULES.html.sh: Document it.
113838 2006-08-08  Eric Blake  <ebb9@byu.net>
113840         * lib/verror.h, lib/verror.c: New files.
113842 2006-08-08  Eric Blake  <ebb9@byu.net>
113844         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
113845         verror_at_line output complies with GNU Coding Standards even when
113846         file is NULL.
113848 2006-08-07  Bruno Haible  <bruno@clisp.org>
113850         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
113851         versions of AIX.
113852         Reported by Ralf Wildenhues.
113854 2006-08-07  Bruno Haible  <bruno@clisp.org>
113856         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
113857         in an AC_DEFUN. Needed so that the autoconf snippets can use
113858         AC_REQUIRE.
113860 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113862         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
113863         Initialize pkgdata_DATA.
113864         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
113865         overriding it.
113867 2006-08-06  Eric Blake  <ebb9@byu.net>
113869         * lib/error.h: Fold in some upstream changes from glibc.
113870         * lib/error.c: Likewise.
113872 2006-08-04  Bruno Haible  <bruno@clisp.org>
113874         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
113875         Make the mostlyclean-local rule depend on mostlyclean-generic.
113876         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
113878 2006-07-31  Bruno Haible  <bruno@clisp.org>
113880         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
113881         <stdlib.h>, <string.h>.
113883 2006-07-30  Bruno Haible  <bruno@clisp.org>
113885         * modules/readlink (License): Change to LGPL.
113887 2006-07-30  Bruno Haible  <bruno@clisp.org>
113889         * modules/javaversion (Makefile.am): Distribute javaversion.java and
113890         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
113891         set PKGDATADIR to point to it.
113893 2006-07-30  Bruno Haible  <bruno@clisp.org>
113895         * modules/csharpexec (configure.ac): Comment out macro invocation.
113896         * modules/javaexec (configure.ac): Likewise.
113897         * modules/javacomp-script (configure.ac): Likewise.
113899         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
113901 2006-07-30  Bruno Haible  <bruno@clisp.org>
113903         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
113904         linked-list.
113906 2006-07-30  Bruno Haible  <bruno@clisp.org>
113908         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
113910 2006-07-30  Bruno Haible  <bruno@clisp.org>
113912         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
113913         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
113914         get removed.
113916 2006-07-29  Bruno Haible  <bruno@clisp.org>
113918         Make it possible for gnulib-tool to work with locally modified or
113919         augmented gnulib repositories.
113920         * gnulib-tool (func_usage): Document --local-dir option.
113921         (local_gnulib_dir): New variable.
113922         Handle --local-dir option.
113923         (func_lookup_file): New function.
113924         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
113925         (func_get_description, func_get_filelist, func_get_description,
113926         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
113927         func_get_automake_snippet, func_get_include_directive,
113928         func_get_license, func_get_maintainer): Use func_lookup_file.
113929         (func_import, func_create_testdir): Use func_lookup_file.
113931 2006-07-29  Bruno Haible  <bruno@clisp.org>
113933         * modules/setenv (Depends-on): Add unistd.
113935 2006-07-29  Bruno Haible  <bruno@clisp.org>
113937         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
113939 2006-07-29  Bruno Haible  <bruno@clisp.org>
113941         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
113943 2006-07-29  Bruno Haible  <bruno@clisp.org>
113945         * gnulib-tool (import, update): If there is no Makefile.am, look at
113946         aclocal.m4, instead of bailing out.
113948 2006-07-29  Bruno Haible  <bruno@clisp.org>
113950         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
113951         Categorize the options by when they are useful.
113953 2006-07-29  Bruno Haible  <bruno@clisp.org>
113955         * gnulib-tool (func_usage): Document option --no-libtool.
113956         Handle option --no-libtool.
113957         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
113958         for changed semantics of $libtool variable.
113959         (func_import): Likewise. If libtool is not used, show this through
113960         an option --no-libtool.
113961         (func_create_testdir): Update.
113963 2006-07-29  Bruno Haible  <bruno@clisp.org>
113965         * gnulib-tool (func_import): Extend error message about missing
113966         --doc-base.
113968 2006-07-29  Bruno Haible  <bruno@clisp.org>
113970         * gnulib-tool (func_import): Don't create the $docbase directory if
113971         there is no file to store there.
113973 2006-07-29  Bruno Haible  <bruno@clisp.org>
113975         * gnulib-tool (autoconf_minversion): If a --dir option is given and
113976         relevant, look for configure.ac there, not in the current directory.
113977         Also use a simple search for AC_PREREQ, not "autoconf --trace".
113979 2006-07-29  Bruno Haible  <bruno@clisp.org>
113981         * gnulib-tool (SORT): New variable.
113982         (func_usage): Undocument --assume-autoconf option.
113983         Remove --assume-autoconf option handling.
113984         (autoconf_minversion): Determine from the contents of configure.ac.
113985         (func_import): Remove autoconf_minversion handling.
113986         Suggested by Eric Blake.
113988 2006-07-29  Bruno Haible  <bruno@clisp.org>
113990         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
113992 2006-07-29  Bruno Haible  <bruno@clisp.org>
113994         * config/srclist.txt (*setenv.[ch]): Remove rules.
113996 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
113998         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
114000 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
114002         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
114003         arpa/inet.h.
114005 2006-07-28  Simon Josefsson  <jas@extundo.com>
114007         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
114008         * modules/inet_pton (Depends-on): Likewise.
114010 2006-07-28  Simon Josefsson  <jas@extundo.com>
114012         * m4/netinet_in_h.m4: New file.
114014 2006-07-28  Simon Josefsson  <jas@extundo.com>
114016         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
114017         #include's.
114019 2006-07-28  Simon Josefsson  <jas@extundo.com>
114021         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
114022         #include's.
114024 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
114026         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
114027         setgid on directories only if they set these bits.
114028         * lib/modechange.h: Remove obsolete comment about masks.
114030 2006-07-28  Eric Blake  <ebb9@byu.net>
114032         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
114033         macro expansion.
114035 2006-07-28  Bruno Haible  <bruno@clisp.org>
114037         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
114039 2006-07-28  Bruno Haible  <bruno@clisp.org>
114041         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
114043 2006-07-28  Bruno Haible  <bruno@clisp.org>
114045         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
114046         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
114047         Define fallbacks.
114048         Avoids link error on FreeBSD 4.x.
114049         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
114051         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
114052         encoding.
114053         * lib/mbswidth.c (iswcntrl): Likewise.
114055 2006-07-27  Bruno Haible  <bruno@clisp.org>
114057         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
114058         test.
114060 2006-07-27  Bruno Haible  <bruno@clisp.org>
114062         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
114063         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
114064         defined.
114066 2006-07-26  Eric Blake  <ebb9@byu.net>
114068         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
114070 2006-07-26  Eric Blake  <ebb9@byu.net>
114072         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
114073         like mingw that lack mkstemp.
114074         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
114075         avoid compilation warning on mingw.
114077 2006-07-26  Bruno Haible  <bruno@clisp.org>
114079         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
114080         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
114081         INT_FAST*_MIN, INTPTR_MIN.
114083 2006-07-25  Bruno Haible  <bruno@clisp.org>
114085         * modules/version-etc (Depends-on): Add stdarg.
114087 2006-07-25  Bruno Haible  <bruno@clisp.org>
114089         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
114090         complex commands.
114092 2006-07-25  Bruno Haible  <bruno@clisp.org>
114094         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
114095         defined in <stdarg.h> or config.h.
114097 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
114099         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
114100         (gl_STDIO_SAFER): Remove.
114102 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
114104         * MODULES.html.sh (File stream based Input/Output):
114105         Add fopen-safer, tmpfile-safer; remove stdio-safer.
114106         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
114107         * modules/fopen-safer, modules/tmpfile-safer: New files.
114108         * modules/stdio-safer: Remove.
114110 2006-07-24  Bruno Haible  <bruno@clisp.org>
114112         * modules/tmpdir: New file.
114113         * MODULES.html.sh (File system functions): Add it.
114115 2006-07-24  Bruno Haible  <bruno@clisp.org>
114117         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
114118         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
114120 2006-07-24  Bruno Haible  <bruno@clisp.org>
114122         * modules/clean-temp: New file.
114124 2006-07-24  Bruno Haible  <bruno@clisp.org>
114126         * m4/tmpdir.m4: New file, from GNU gettext.
114128 2006-07-24  Bruno Haible  <bruno@clisp.org>
114130         * lib/tmpdir.h: New file, from GNU gettext.
114131         * lib/tmpdir.c: New file, from GNU gettext.
114133 2006-07-24  Bruno Haible  <bruno@clisp.org>
114135         * lib/clean-temp.h: New file, from GNU gettext.
114136         * lib/clean-temp.c: New file, from GNU gettext.
114138 2006-07-23  Eric Blake  <ebb9@byu.net>
114140         * modules/stdio-safer (Files): Add tmpfile-safer.c.
114141         (Depends-on): Add binary-io.
114143 2006-07-23  Eric Blake  <ebb9@byu.net>
114145         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
114147 2006-07-23  Eric Blake  <ebb9@byu.net>
114149         * lib/tmpfile-safer.c: New file.
114150         * lib/stdio-safer.h (fopen_safer): Add prototype.
114151         * lib/stdio--.h (tmpfile): Make safer.
114153 2006-07-23  Bruno Haible  <bruno@clisp.org>
114155         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
114156         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
114157         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
114158         gl_linked_remove_at): Use it.
114160 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
114161         and Simon Josefsson <jas@extundo.com>
114163         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
114165         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
114167 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
114169         * modules/close-stream: New file.
114170         * modules/closeout (Description): Make it clear that it exits
114171         with a diagnostic on error.
114172         (Depends-on): Add close-stream.  Remove fpending, stdbool.
114173         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
114175 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
114177         * m4/close-stream.m4: New file.
114179 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
114181         * lib/close-stream.c, lib/close-stream.h: New files.
114183 2006-07-22  Bruno Haible  <bruno@clisp.org>
114185         Merge from GNU gettext 0.15.
114187         2006-05-01  Bruno Haible  <bruno@clisp.org>
114189                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
114191         2006-07-22  Bruno Haible  <bruno@clisp.org>
114193                 * modules/javaversion: New file.
114194                 * MODULES.html.sh (Java): Add javaversion.
114196         2006-03-12  Bruno Haible  <bruno@clisp.org>
114198                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
114200         2005-12-04  Bruno Haible  <bruno@clisp.org>
114202                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
114203                 (untested).
114205         2006-06-21  Bruno Haible  <bruno@clisp.org>
114207                 Avoid warnings from recent versions of mcs.
114208                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
114209                 -o, -L, -r any more. Use options documented since mcs-1.0
114210                 instead. Similarly for -g.
114212         2005-12-04  Bruno Haible  <bruno@clisp.org>
114214                 * build-aux/csharpcomp.sh.in: Suffix for resources is
114215                 .resources, not .resource.
114217         2005-07-09  Bruno Haible  <bruno@clisp.org>
114219                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
114220                 add a .dll suffix.
114221                 Reported by Mark Junker <mjscod@gmx.de>.
114223         2006-07-22  Bruno Haible  <bruno@clisp.org>
114225                 * modules/gettext: Upgrade to gettext-0.15.
114226                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
114227                 m4/visibility.m4.
114228                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
114230 2006-07-22  Bruno Haible  <bruno@clisp.org>
114232         Merge from GNU gettext 0.15.
114234         2006-03-25  Bruno Haible  <bruno@clisp.org>
114236                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
114238         2006-07-21  Bruno Haible  <bruno@clisp.org>
114240                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
114241                 "1.1".
114243         2006-05-09  Bruno Haible  <bruno@clisp.org>
114245                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
114246                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
114247                 for the conftestver execution.
114249         2006-05-01  Bruno Haible  <bruno@clisp.org>
114251                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
114252                 optional target-version argument. Verify that the compiler
114253                 groks source of the specified source-version, or add -source
114254                 option as necessary. Verify that the compiler produces
114255                 bytecode in the specified target-version, or add -target and
114256                 -source options as necessary. Make the result of the test
114257                 available as variable CONF_JAVAC. Also log error output in
114258                 config.log.
114260         2006-03-11  Bruno Haible  <bruno@clisp.org>
114262                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
114264         2006-05-09  Bruno Haible  <bruno@clisp.org>
114266                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
114267                 CLASSPATH_SEPARATOR to a semicolon.
114269         2006-03-12  Bruno Haible  <bruno@clisp.org>
114271                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
114272                 available as variable CONF_JAVA, for subsequent autoconf
114273                 tests. Also log error output in config.log.
114275         2006-07-19  Bruno Haible  <bruno@clisp.org>
114277                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
114278                 that getline works on glibc2 systems. Needed to avoid trouble
114279                 in relocatable.c.
114280                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
114282         2005-12-04  Bruno Haible  <bruno@clisp.org>
114284                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
114285                 launcher (untested).
114287         2005-12-04  Bruno Haible  <bruno@clisp.org>
114289                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
114291         2006-07-22  Bruno Haible  <bruno@clisp.org>
114293                 * gettext.m4: Update from GNU gettext-0.15.
114294                 * nls.m4: Likewise.
114295                 * po.m4: Likewise.
114296                 * inttypes-pri.m4: Likewise.
114297                 * inttypes-h.m4: Renamed from inttypes.m4.
114298                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
114300 2006-07-22  Bruno Haible  <bruno@clisp.org>
114302         Merge from GNU gettext 0.15.
114304         2005-07-05  Bruno Haible  <bruno@clisp.org>
114306                 * printf-args.c (printf_fetchargs): Work around broken
114307                 definition of wint_t on mingw.
114309         2005-02-12  Bruno Haible  <bruno@clisp.org>
114311                 * xallocsa.h: Add extern "C" for C++.
114313         2006-05-17  Bruno Haible  <bruno@clisp.org>
114315                 Cygwin portability.
114316                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
114318         2006-04-30  Bruno Haible  <bruno@clisp.org>
114320                 * progreloc.c: Include <mach-o/dyld.h> if available.
114321                 (find_executable): Use _NSGetExecutablePath when possible.
114323         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
114325                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
114326                 function.
114328         2005-12-29  Bruno Haible  <bruno@clisp.org>
114330                 * progreloc.c (set_program_name_and_installdir): Fix
114331                 compilation error.
114333         2005-12-04  Bruno Haible  <bruno@clisp.org>
114335                 Cygwin portability.
114336                 * progreloc.c: Include <windows.h> also on Cygwin.
114337                 (find_executable): Add support for Cygwin.
114338                 (set_program_name_and_installdir): Handle also platforms with
114339                 nonempty EXEEXT.
114341         2006-07-11  Bruno Haible  <bruno@clisp.org>
114343                 * javacomp.c: Fix a comment.
114344                 Reported by Jim Meyering.
114346         2006-04-30  Bruno Haible  <bruno@clisp.org>
114348                 * javacomp.h (compile_java_class): Add source_version,
114349                 target_version arguments.
114350                 * javacomp.c: Rewritten to choose only a compiler that
114351                 respects the specified source_version and target_version.
114353         2006-06-27  Bruno Haible  <bruno@clisp.org>
114355                 Assume correct S_ISDIR macro.
114356                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
114358         2006-07-22  Bruno Haible  <bruno@clisp.org>
114360                 * javaversion.h: New file, from GNU gettext.
114361                 * javaversion.c: New file, from GNU gettext.
114362                 * javaversion.java: New file, from GNU gettext.
114363                 * javaversion.class: New file, from GNU gettext.
114365         2006-05-17  Bruno Haible  <bruno@clisp.org>
114367                 Cygwin portability.
114368                 * javaexec.c (execute_java_class): Test for jview program
114369                 also on Cygwin.
114371         2006-04-09  Bruno Haible  <bruno@clisp.org>
114373                 * fatal-signal.c: Don't include string.h.
114374                 (at_fatal_signal): Use a copying loop instead of memcpy.
114376         2005-12-04  Bruno Haible  <bruno@clisp.org>
114378                 * csharpexec.c: Add support for 'clix' launcher (untested).
114379                 (execute_csharp_using_sscli): New function.
114380                 (execute_csharp_program): Call it.
114382         2006-06-21  Bruno Haible  <bruno@clisp.org>
114384                 Avoid warnings from recent versions of mcs.
114385                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
114386                 -o, -L, -r any more. Use options documented since mcs-1.0
114387                 instead. Similarly for -g.
114389         2005-07-09  Bruno Haible  <bruno@clisp.org>
114391                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
114392                 add a .dll suffix.
114393                 Reported by Mark Junker <mjscod@gmx.de>.
114395         2006-06-17  Bruno Haible  <bruno@clisp.org>
114397                 * config.charset: Update for NetBSD 3.0.
114399         2006-05-17  Bruno Haible  <bruno@clisp.org>
114401                 Cygwin portability.
114402                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
114404         2006-05-16  Bruno Haible  <bruno@clisp.org>
114406                 * localcharset.c [CYGWIN]: Include <windows.h>.
114407                 (get_charset_aliases): For Cygwin, return the same CPxxx
114408                 aliases list as under WIN32.
114409                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
114410                 the environment variables. Fall back to GetACP().
114412         2006-04-05  Bruno Haible  <bruno@clisp.org>
114414                 * config.charset: Update Juan Manuel Guerrero's address.
114416         2005-02-12  Bruno Haible  <bruno@clisp.org>
114418                 * allocsa.h: Add extern "C" for C++.
114420         2005-02-10  Bruno Haible  <bruno@clisp.org>
114422                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
114423                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
114425         2006-07-22  Bruno Haible  <bruno@clisp.org>
114427                 * gettext.h: Update to GNU gettext-0.15.
114429 2006-07-22  Bruno Haible  <bruno@clisp.org>
114431         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
114432         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
114433         lib-prefix.m4, longdouble.m4, ssize_t.m4.
114435 2006-07-21  Eric Blake  <ebb9@byu.net>
114437         * modules/stdlib-safer: New file.
114438         * MODULES.html.sh (File stream based Input/Output): Add
114439         stdlib-safer.
114441 2006-07-21  Eric Blake  <ebb9@byu.net>
114443         * lib/stdlib-safer.h: New file from coreutils, required by
114444         stdlib--.h.
114446 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
114448         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
114450 2006-07-20  Bruno Haible  <bruno@clisp.org>
114452         * gnulib-tool: Recognize new option --assume-autoconf.
114453         (autoconf_minversion): New variable.
114454         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
114456 2006-07-20  Bruno Haible  <bruno@clisp.org>
114458         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
114460 2006-07-19  Derek R. Price  <derek@ximbiot.com>
114462         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
114463         Reindent and repaginate.
114465 2006-07-19  Derek Price  <derek@ximbiot.com>
114467         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
114468         Correct grammar.
114470 2006-07-17  Bruno Haible  <bruno@clisp.org>
114472         * modules/list: New file.
114473         * modules/array-list: New file.
114474         * modules/carray-list, modules/carray-list-tests: New files.
114475         * modules/linked-list, modules/linked-list-tests: New files.
114476         * modules/avltree-list, modules/avltree-list-tests: New files.
114477         * modules/rbtree-list, modules/rbtree-list-tests: New files.
114478         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
114479         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
114480         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
114481         * modules/oset: New file.
114482         * modules/array-oset: New file.
114483         * modules/avltree-oset, modules/avltree-oset-tests: New files.
114484         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
114485         * tests/test-carray_list.c: New file.
114486         * tests/test-linked_list.c: New file.
114487         * tests/test-avltree_list.c: New file.
114488         * tests/test-rbtree_list.c: New file.
114489         * tests/test-linkedhash_list.c: New file.
114490         * tests/test-avltreehash_list.c: New file.
114491         * tests/test-rbtreehash_list.c: New file.
114492         * tests/test-avltree_oset.c: New file.
114493         * tests/test-rbtree_oset.c: New file.
114494         * MODULES.html.sh (Container data structures): New section.
114496 2006-07-17  Bruno Haible  <bruno@clisp.org>
114498         * m4/gl_list.m4: New file.
114500 2006-07-17  Bruno Haible  <bruno@clisp.org>
114502         * lib/gl_list.h: New file.
114503         * lib/gl_list.c: New file.
114504         * lib/gl_array_list.h: New file.
114505         * lib/gl_array_list.c: New file.
114506         * lib/gl_carray_list.h: New file.
114507         * lib/gl_carray_list.c: New file.
114508         * lib/gl_linked_list.h: New file.
114509         * lib/gl_linked_list.c: New file.
114510         * lib/gl_anylinked_list1.h: New file.
114511         * lib/gl_anylinked_list2.h: New file.
114512         * lib/gl_avltree_list.h: New file.
114513         * lib/gl_avltree_list.c: New file.
114514         * lib/gl_anyavltree_list1.h: New file.
114515         * lib/gl_anyavltree_list2.h: New file.
114516         * lib/gl_rbtree_list.h: New file.
114517         * lib/gl_rbtree_list.c: New file.
114518         * lib/gl_anyrbtree_list1.h: New file.
114519         * lib/gl_anyrbtree_list2.h: New file.
114520         * lib/gl_anytree_list1.h: New file.
114521         * lib/gl_anytree_list2.h: New file.
114522         * lib/gl_linkedhash_list.h: New file.
114523         * lib/gl_linkedhash_list.c: New file.
114524         * lib/gl_anyhash_list1.h: New file.
114525         * lib/gl_anyhash_list2.h: New file.
114526         * lib/gl_avltreehash_list.h: New file.
114527         * lib/gl_avltreehash_list.c: New file.
114528         * lib/gl_rbtreehash_list.h: New file.
114529         * lib/gl_rbtreehash_list.c: New file.
114530         * lib/gl_anytreehash_list1.h: New file.
114531         * lib/gl_anytreehash_list2.h: New file.
114533         * lib/gl_oset.h: New file.
114534         * lib/gl_oset.c: New file.
114535         * lib/gl_array_oset.h: New file.
114536         * lib/gl_array_oset.c: New file.
114537         * lib/gl_avltree_oset.h: New file.
114538         * lib/gl_avltree_oset.c: New file.
114539         * lib/gl_rbtree_oset.h: New file.
114540         * lib/gl_rbtree_oset.c: New file.
114541         * lib/gl_anytree_oset.h: New file.
114543 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
114545         * m4/mkancesdirs.m4: New file.
114546         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
114547         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
114548         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
114549         it.
114551 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
114553         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
114554         * lib/mkancesdirs.h: New files.
114555         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
114556         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
114557         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
114558         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
114559         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
114560         callers changed.  Revamp internals significantly, by not
114561         attempting to create directories that are temporarily more
114562         permissive than the final results.  Do not attempt to use
114563         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
114564         This removes some race conditions, fixes some bugs, and simplifies
114565         things.  Use new dirchownmod function to do owner and mode changes.
114566         * lib/mkdir-p.h: Likewise.
114567         * lib/modechange.c (octal_to_mode): New function.
114568         (struct mode_change): New member mentioned.
114569         (make_node_op_equals): New arg mentioned.  All callers changed.
114570         (mode_compile): Keep track of which mode bits the user has explicitly
114571         mentioned.
114572         (mode_adjust): New arg DIR, so that we implement the X op correctly.
114573         New arg PMODE_BITS, to keep track of which mode bits the user
114574         mentioned; it treats S_ISUID and S_ISGID speciall.
114575         All callers changed.
114576         * lib/modechange.h: Likewise.
114578 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
114580         * MODULES.html.sh: Add mkancestors.
114581         * modules/mkancesdirs: New module.
114582         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
114583         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
114584         The chdir-safer and afs files are now orphans; I'll remove them
114585         unless someone speaks up.
114586         Add lib/dirchownmod.c, lib/dirchownmod.h.
114587         (Depends-on): Remove alloca, chown, save-cwd, dirname.
114588         Add lchown, mkancesdirs.
114589         (Maintainer): Add self.
114591 2006-07-15  Karl Berry  <karl@gnu.org>
114593         * gnulib-tool: help message wording/arrangement.
114595 2006-07-14  Simon Josefsson  <jas@extundo.com>
114597         * doc/gnulib.texi (Libtool and Windows): New section.
114599 2006-07-12  Simon Josefsson  <jas@extundo.com>
114601         * modules/gendocs (License): Fix license, approved by Karl.
114603 2006-07-12  Eric Blake  <ebb9@byu.net>
114605         * MODULES.html.sh: Add gendocs.
114607 2006-07-11  Eric Blake  <ebb9@byu.net>
114609         * modules/fdl: New module, to install doc/fdl.texi.
114610         * MODULES.html.sh: Add new section for documentation modules.
114611         * gnulib-tool: Avoid space-tab.
114612         (--doc-base): New option, to manage files from doc.
114614 2006-07-11  Eric Blake  <ebb9@byu.net>
114616         * m4/absolute-header.m4: Fix comments to match recent change.
114618 2006-07-11  Eric Blake  <ebb9@byu.net>
114620         * gnulib-tool: List --doc-base before --tests-base.
114622 2006-07-11  Derek R. Price  <derek@ximbiot.com>
114624         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
114626 2006-07-11  Bruno Haible  <bruno@clisp.org>
114628         * README: Mention where to put documentation.
114630 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114632         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
114634 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
114636         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
114637         to stdint.m4.
114639 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
114641         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
114642         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
114643         "no/such/file/stdint.h" when there is no such file, so that
114644         the resulting C code can be parsed by dodgy compilers.
114645         Problems reported by Bob Proulx.
114647 2006-07-10  Derek R. Price  <derek@ximbiot.com>
114649         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
114650         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
114651         macros into the GNU _D_EXACT_NAMLEN.
114652         * lib/savedir.c:  Likewise.
114653         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
114655 2006-07-10  Derek R. Price  <derek@ximbiot.com>
114656         and Paul Eggert  <eggert@cs.ucla.edu>
114658         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
114659         * m4/savedir.m4:
114660         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
114661         macros into the GNU _D_EXACT_NAMLEN.
114663 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
114665         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
114666         around the absolute name, to work around a problem with the HP-UX
114667         11.23 native C compiler, reported by Bob Proulx.
114669 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
114671         * doc/maintain.texi, make-stds.texi: Sync from
114672         <http://savannah.gnu.org/projects/gnustandards>.
114674 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
114676         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
114678 2006-07-09  Jim Meyering  <jim@meyering.net>
114680         * m4/glob.m4: Remove a doubled word in a comment.
114682 2006-07-09  Jim Meyering  <jim@meyering.net>
114684         * lib/argp-pv.c: Remove a doubled word in a comment.
114685         * lib/check-version.c (check_version): Likewise.
114686         * lib/javacomp.c (compile_java_class): Likewise.
114688 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
114690         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
114691         for the benefit of people using Autoconf 2.60.  If you want to
114692         support older Autoconf versions you can copy m4/onceonly_2_57.m4
114693         (or m4/onceonly.m4, if pre-2.57) manually.
114695 2006-07-08  Jim Meyering  <jim@meyering.net>
114697         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
114698         comment.
114699         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
114700         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
114701         comment.
114703 2006-07-08  Jim Meyering  <jim@meyering.net>
114705         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
114707 2006-07-07  Simon Josefsson  <jas@extundo.com>
114709         * tests/test-crc.c: Change expected crc value, the test vector
114710         were probably computed using the old broken crc.c?
114712 2006-07-06  Simon Josefsson  <jas@extundo.com>
114714         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
114715         now the canonical place for the M4 file).
114717         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
114718         from the sys_socket dependency now.
114720         * modules/inet_pton (Files): Ditto.
114722         * modules/inet_ntop (Files): Ditto.
114724 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
114726         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
114727         not gl_PREREQ_GETUSERSHELL.
114729 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114731         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
114732         with only one argument, for Autoconf 2.60.
114733         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
114734         expand to nothing, so add a shell command to avoid syntax error.
114735         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
114737 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114739         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
114741 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
114743         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
114744         no longer needed.  Check for isblank decl.
114745         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
114746         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
114747         of existence.
114749 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
114751         * lib/getloadavg.c: Use __VMS, not VMS.
114752         * lib/getopt.c: Likewise.
114753         * lib/getpagesize.h: Likewise.
114754         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
114755         and probably does not work.
114757 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
114759         * lib/.cppi-disable: Add wcwidth.
114760         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
114761         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
114762         (ISGRAPH): Remove.  All uses changed to isgraph.
114763         (FOLD) [!defined _LIBC]: Remove special case.
114764         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
114765         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
114766         HAVE_ISBLANK.
114767         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
114768         case.
114770 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
114772         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
114773         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
114774         brackets.  Other minor changes to suppress some compiler
114775         warnings.
114777 2006-07-06  Derek R. Price  <derek@ximbiot.com>
114778         and Paul Eggert  <eggert@cs.ucla.edu>
114780         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
114781         of invoking obsolescent AC_HEADER_DIRENT macro.
114782         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
114783         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
114784         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
114785         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
114786         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
114787         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
114788         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
114789         * m4/readdir.m4: Remove; no longer needed.
114791 2006-07-06  Derek R. Price  <derek@ximbiot.com>
114792         and Paul Eggert  <eggert@cs.ucla.edu>
114794         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
114795         Don't worry about this obsolete case any more.
114796         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
114797         directories.
114798         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
114799         worry about this obsolete case any more.
114800         * lib/fts.c: Likewise.
114801         * lib/getcwd.c: Likewise.
114802         * lib/glob.h: Likewise.
114803         * lib/savedir.c: Likewise.
114805 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
114807         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
114808         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
114809         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
114810         needed.
114811         All uses removed.
114812         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
114813         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
114814         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
114815         needed.
114816         * m4/getdate.m4 (gl_GETDATE): Likewise.
114817         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
114818         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
114819         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
114820         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
114821         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
114822         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
114823         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
114824         needed.
114826 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
114828         * lib/memcasecmp.c: Include <limits.h>.
114829         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
114830         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
114831         Don't assume isdigit succeeds only on '0' through '9'.
114833 2006-07-05  Eric Blake  <ebb9@byu.net>
114835         * modules/getaddrinfo (Depends-on): Add snprintf.
114837 2006-07-05  Eric Blake  <ebb9@byu.net>
114839         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
114840         to avoid 'header present but could not be compiled' on cygwin.
114842 2006-07-05  Eric Blake  <ebb9@byu.net>
114844         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
114845         missing from netdb.h.
114846         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
114848 2006-07-05  Derek R. Price  <derek@ximbiot.com>
114850         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
114851         no longer needed.
114852         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
114853         * m4/getdate.m4 (gl_GETDATE): Likewise.
114854         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
114855         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
114856         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
114857         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
114858         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
114860 2006-07-05  Derek R. Price  <derek@ximbiot.com>
114862         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
114863         All uses of is_space replaced by isspace.
114864         * lib/exit.h: Don't talk about STDC_HEADERS.
114865         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
114866         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
114867         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
114868         replaced by isprint etc.
114869         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
114870         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
114871         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
114872         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
114873         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
114874         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
114876 2006-07-05  Bruno Haible  <bruno@clisp.org>
114878         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
114879         the function exists, before testing against AIX.
114880         Reported by Martin Lambers <marlam@marlam.de>.
114882 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
114884         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
114885         From Mark D. Baushke.
114887 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
114889         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
114890         to the absolute name, not just one, to bypass Sun C 5.8's
114891         "warning: #include of /usr/include/... may be non-portable".
114893 2006-07-04  Eric Blake  <ebb9@byu.net>
114895         * modules/dirname-tests: New test module.
114896         * tests/test-dirname.c: New file, replacing dirname.c
114897         TEST_DIRNAME section that was recently deleted.
114899 2006-07-04  Bruno Haible  <bruno@clisp.org>
114901         Assume ANSI C header files and <ctype.h> functions.
114902         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
114903         (mbsnwidth): Use isprint, iscntrl instead.
114905 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
114907         Merge from coreutils.
114908         * MODULES.html.sh: Add xstrtold.
114909         * modules/xstrtold: New file.
114910         * modules/cycle-check (Files): Add lib/same-inode.h.
114911         * modules/dirname (Files): Add m4/double-slash-root.m4.
114912         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
114913         * modules/mkdir-p (Files): Add lib/same-inode.h.
114914         * modules/same (Files): Add lib/same-inode.h.
114916 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
114918         * m4/absolute-header.m4: Renamed from full-header-path.m4.
114919         This is to keep the terminology clean; POSIX talks about
114920         "absolute pathnames", not "full pathnames", but the GNU
114921         Coding Standards say to use "path" for something else;
114922         so use "absolute" to keep both sides happy.
114923         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
114924         Set gl_absolute_header, not gl_full_header_path.
114925         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
114926         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
114927         All uses changed.
114929         Merge from coreutils.
114931         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
114933         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
114934         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
114935         want to require the building of c-strtod.o.
114936         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
114937         needs -lm directly.
114938         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
114940         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
114942         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
114943         --as-needed option if available.  Problem reported by Albert Chin in
114944         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
114945         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
114946         cc merely issues a bunch of annoying warnings for --as-needed
114947         (this problem was reported by Bob Proulx).  Also, try linking with
114948         -lm to detect a bug in binutils 2.16 (this problem was reported
114949         by Ralf Wildenhues).
114951         2006-06-18  Jim Meyering  <jim@meyering.net>
114953         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
114954         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
114955         macro.
114956         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
114957         also check for glibc-2.4's abort-inducing bug.
114959         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
114960         Low-probability clean-up should be to use rmdir to get rid of
114961         the just-created directory, not unlink.
114963         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
114964         configure fail, and request a bug report to inform us about it.
114965         Add a comment that, barring reports to the contrary, in 2007 we'll
114966         assume ftruncate is universally available.
114968         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
114970         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
114972         2006-03-12  Jim Meyering  <jim@meyering.net>
114974         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
114975         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
114976         * m4/same.m4 (gl_SAME): Likewise.
114977         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
114979         2006-03-11  Eric Blake  <ebb9@byu.net>
114981         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
114982         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
114983         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
114984         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
114986 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
114988         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
114989         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
114990         reported by Mark D. Baushke, one in
114991         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
114993         Merge from coreutils.
114995         * lib/.cppi-disable: Add stdint_.h.
114996         * lib/.cvsignore: Add stdint.h.
114998         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
115000         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
115001         both double and long double versions.
115002         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
115003         * lib/xstrtold.c: New file.
115004         * lib/xstrtod.h (xstrtold): New decl.
115006         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
115008         * lib/filemode.c (setst): Remove.
115009         (strmode): Rewrite to avoid setst.  This makes the code shorter,
115010         (arguably) clearer, and the generated code is a bit smaller on my
115011         Debian GNU/Linux stable x86 host.
115013         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
115015         * lib/filemode.c: Include "filemode.h" first, to test the interface.
115016         Assume that filemode.h includes sys/types.h and sys/stat.h.
115017         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
115018         (ftypelet): Reorder to put common cases first, for efficiency.
115019         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
115020         to do 'M'.
115021         (strmode): Renamed from mode_string, and now stores 12 bytes instead
115022         of 10, for compatibility with FreeBSD.  All callers changed.
115023         (filemodestring): Now stores 12 bytes instead of 10, and sets file
115024         types that can't be deduced solely from st_mode.  First arg is now a
115025         const pointer.
115026         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
115027         (strmode): Renamed from mode_string.
115028         (filemodestring): New decl.
115029         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
115030         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
115031         needed.
115032         (S_ISPORT, S_ISWHT): New macros, if not already defined.
115034         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
115036         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
115037         fsusage.h now does that.  Include fsusage.h first, to test interface.
115038         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
115039         at most one method (the old code could have generated decls that
115040         didn't conform to C89, not that this was ever exercised).
115041         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
115043         2006-03-19  Jim Meyering  <jim@meyering.net>
115045         Work even in a chroot where d_ino values for entries in "/"
115046         don't match the stat.st_ino values for the same names.
115047         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
115048         number, iterate through all entries again, using lstat instead.
115049         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
115050         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
115052         * lib/getcwd.c (__getcwd): Clarify a comment.
115053         Use memcpy in place of a call to strcpy.
115055         2006-03-12  Jim Meyering  <jim@meyering.net>
115057         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
115058         matches that of the current directory (which we're about to chdir ".."
115059         out of), then save the dev-ino of the parent, instead.
115061         * lib/same-inode.h (SAME_INODE): New file/macro.
115062         * lib/chdir-safer.c (SAME_INODE): Remove definition.
115063         Include "same-inode.h", instead.
115064         * lib/same.c: Likewise.
115065         * lib/cycle-check.h: Include "same-inode.h".
115066         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
115067         * lib/cycle-check.c (SAME_INODE): Remove definition.
115068         * lib/root-dev-ino.h: Include "same-inode.h".
115070         2006-03-11  Eric Blake  <ebb9@byu.net>
115072         * lib/same.c (same_name): s/base_name/last_component/
115073         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
115074         * lib/filenamecat.c (file_name_concat): Likewise.
115076         2006-03-11  Eric Blake  <ebb9@byu.net>,
115077                     Paul Eggert  <eggert@cs.ucla.edu>
115079         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
115080         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
115081         drive prefix.
115082         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
115083         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
115084         (last_component): New method.
115085         * lib/dirname.c (dir_len): Determine when drive letters need a
115086         subsequent slash.  Preserve // when it is special.
115087         (dir_name): Don't append dot when drive letter is absolute.
115088         [TEST_DIRNAME]: Move into a full-blown gnulib test.
115089         * lib/basename.c (base_name): New semantics - malloc the result.
115090         Preserve // when it is special.  Preserve relative files that look
115091         like drive letters.
115092         (base_len): Preserve // when it is special.
115093         (last_component): New method, similar to old base_name semantics.
115094         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
115095         base_name.  Strip redundant slashes from ///.
115097 2006-07-03  Jim Meyering  <jim@meyering.net>
115099         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
115100         macro is used before the first cycle_check call.
115102 2006-07-03  Eric Blake  <ebb9@byu.net>
115104         * modules/dirname (Depends-on): Add xstrndup.
115106 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
115108         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
115109         test cases, so that config.log is a bit easier to follow.
115111 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
115113         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
115114         both are 64 bits, since this seems to be the tradition, and this
115115         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
115116         we ever run into a host that prefers long long to long in this
115117         case, we'll need another configure-time test.  Problem reported by
115118         Jim Meyering.
115120 2006-07-02  Eric Blake  <ebb9@byu.net>
115122         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
115124 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
115126         * modules/inttypes (Depends-on): No longer depends on stdint.
115127         * modules/stdint (Description): Say more about assumptions.
115128         Say that the fast types might differ.  Say macros are used.
115129         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
115130         (Makefile.am): Revise list of substituted symbols to match
115131         new stdint.m4.
115132         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
115133         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
115134         * tests/test-stdint.c (verify_same_types)
115135         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
115136         the code conforms to C99/C89.
115137         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
115138         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
115140 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
115142         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
115143         but fix a bug, by requiring at least 64 bits.
115144         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
115145         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
115146         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
115147         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
115149         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
115150         changes.  Make 2.59 a prerequisite.  Check and substitute for
115151         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
115152         inttypes.h.  Do not use special include files; just use the
115153         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
115154         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
115155         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
115156         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
115157         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
115158         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
115159         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
115160         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
115161         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
115162         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
115163         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
115164         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
115165         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
115166         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
115167         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
115168         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
115169         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
115170         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
115171         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
115172         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
115173         WINT_MAX.  Check for C99 conformance more strictly, by detecting
115174         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
115175         not check for things that C99 does not require, e.g., int8_t.  If
115176         a test isn't needed unless <stdint.h> isn't working, and is
115177         unlikely to be needed for any other reason, then don't do it
115178         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
115179         size_t, since we assume C89 freestanding at least.  Do not check
115180         for sig_atomic_t, wchar_t, or wint_t, since the code now does
115181         the right thing even if the types are not defined.  Instead use:
115182         (gl_STDINT_TYPE_PROPERTIES): New macro.
115183         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
115184         testing whether <sys/types.h> clashes, as Autoconf does this for
115185         us now.  All uses removed.
115186         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
115187         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
115188         (gl_CHECK_TYPE_SAME):
115189         Remove; no longer needed.
115190         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
115191         exists, since we'll return 0 anyway in that case.
115192         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
115194 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
115196         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
115197         possible collision with system files.
115198         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
115199         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
115200         WCHAR_MIN and WCHAR_MAX in this case.
115201         (<stddef.h>): Do not include; no longer needed.
115202         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
115203         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
115204         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
115205         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
115206         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
115207         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
115208         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
115209         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
115210         !defined(__c99))]: Include in this case too, since it's harmless
115211         now.
115212         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
115213         dangerous to do so.
115214         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
115215         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
115216         (_STDINT_MIN, _STDINT_MAX): New macros.
115217         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
115218         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
115219         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
115220         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
115221         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
115222         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
115223         macros, not typedefs; this simplifies things quite a bit.
115224         Use long int for all types narrower than int64_t.
115225         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
115226         Define in terms of long long int or int64_t or long int,
115227         not int64_t or int32_t.  This saves some compile-time testing.
115228         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
115229         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
115230         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
115231         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
115232         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
115233         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
115234         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
115235         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
115236         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
115237         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
115238         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
115239         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
115240         undef any previous version and define our own version, for
115241         simplicity and consistency with the new macros for types.
115242         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
115243         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
115244         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
115245         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
115246         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
115247         @WINT_T_SUFFIX@ to keep things simple here.
115248         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
115249         Simplify by assuming typical 8/16/32/64 host, since we're
115250         already doing that elsewhere anyway.
115251         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
115252         and assume long long int is 64 bits if available.  This
115253         speeds up 'configure'.
115255 2006-07-01  Eric Blake  <ebb9@byu.net>
115257         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
115258         Reported by Andreas Buening.
115260 2006-07-01  Eric Blake  <ebb9@byu.net>
115262         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
115264 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
115266         * lib/getaddrinfo.c: fixed typo
115268 2006-06-29  Jim Meyering  <jim@meyering.net>
115270         * modules/strftime (Maintainer): Add my name, since with the
115271         FPRINTFTIME changes strftime.c has forked from glibc.
115273 2006-06-29  Eric Blake  <ebb9@byu.net>
115275         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
115277 2006-06-29  Eric Blake  <ebb9@byu.net>
115279         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
115281 2006-06-29  Eric Blake  <ebb9@byu.net>
115283         * lib/stat_.h: New file.
115285 2006-06-29  Eric Blake  <ebb9@byu.net>
115287         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
115288         unused static function.
115290 2006-06-29  Eric Blake  <ebb9@byu.net>
115292         * doc/functions.texi (Function Portability): Document missing lstat
115293         on mingw.
115295 2006-06-29  Eric Blake  <ebb9@byu.net>
115297         * MODULES.html.sh: Add sys_stat.
115298         * modules/sys_stat: New module.
115299         * modules/mkstemp (Depends-on): Add sys_stat.
115301 2006-06-29  Derek R. Price  <derek@ximbiot.com>
115303         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
115305 2006-06-29  Derek R. Price  <derek@ximbiot.com>
115307         * m4/c-bs-a.m4: Removed.
115309 2006-06-29  Derek R. Price  <derek@ximbiot.com>
115311         * lib/strftime.c: Assume strftime() exists.
115313 2006-06-29  Derek Price  <derek@ximbiot.com>
115315         * modules/c-bs-a: Removed - \a is C89.
115316         * MODULES.html.sh: Remove c-bs-a.
115318 2006-06-29  Bruno Haible  <bruno@clisp.org>
115320         * modules/wcwidth (License): Change to LGPL.
115322 2006-06-28  Simon Josefsson  <jas@extundo.com>
115324         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
115325         on _WIN32.
115327         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
115328         getnameinfo.
115330 2006-06-28  Simon Josefsson  <jas@extundo.com>
115332         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
115334 2006-06-28  Simon Josefsson  <jas@extundo.com>
115336         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
115337         functions there.  It will succeed on Windows XP, but on Windows
115338         2000 and (presumably) earlier, it will fail, and use the internal
115339         re-implementation.
115340         (use_win32_p): New function.
115341         (getaddrinfo): Use strtoul on servname, to support numeric ports.
115342         Support AI_NUMERICSERV to disable getservbyname.
115343         (getnameinfo): New function, only supports
115344         NI_NUMERICHOST|NI_NUMERICSERV for now.
115346         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
115347         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
115348         getnameinfo.
115350 2006-06-28  Eric Blake  <ebb9@byu.net>
115352         * modules/wcwidth: New file.
115353         * modules/mbchar (Depends-on): Add wcwidth.
115354         * modules/mbswidth (Depends-on): Add wcwidth.
115355         * MODULES.html.sh: Add wcwidth.
115357 2006-06-28  Eric Blake  <ebb9@byu.net>
115359         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
115360         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
115362 2006-06-28  Eric Blake  <ebb9@byu.net>
115364         * lib/xvasprintf.h: Fix comments.
115366 2006-06-28  Eric Blake  <ebb9@byu.net>
115368         * lib/mbchar.h (wcwidth): Include wcwidth.h.
115369         * lib/mbswidth.c (wcwidth): Move from here...
115370         * lib/wcwidth.h: ...to this new file.
115372 2006-06-28  Derek R. Price  <derek@ximbiot.com>
115374         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
115376         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
115377         it's obsolete.
115378         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
115380 2006-06-28  Derek R. Price  <derek@ximbiot.com>
115382         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
115383         Autoconf 2.60 says this stuff was obsolete.
115385 2006-06-28  Bruno Haible  <bruno@clisp.org>
115387         * modules/wcwidth (Files): Add m4/wchar_t.m4.
115389 2006-06-28  Bruno Haible  <bruno@clisp.org>
115391         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
115392         gt_TYPE_WCHAR_T.
115394 2006-06-28  Bruno Haible  <bruno@clisp.org>
115396         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
115397         declaration for wcwidth.
115398         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
115400 2006-06-28  Bruno Haible  <bruno@clisp.org>
115402         * lib/mkdtemp.c [MINGW]: Include <io.h>.
115403         (mkdir): Define using _mkdir.
115405 2006-06-28  Bruno Haible  <bruno@clisp.org>
115407         * lib/getaddrinfo.h: Fix POSIX URL.
115408         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
115409         _WIN32.
115410         (use_win32_p): Make static.
115411         (getaddrinfo): Reject service name if it is empty or does not consist
115412         solely of decimal digits, or if its value is > 65535.
115413         (getnameinfo): Remove useless casts.
115415 2006-06-27  Simon Josefsson  <jas@extundo.com>
115417         * modules/sys_select: New file, suggested by Bruno Haible, Paul
115418         Eggert and Martin Lambers.
115420 2006-06-27  Simon Josefsson  <jas@extundo.com>
115422         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
115423         Eggert and Martin Lambers.
115425 2006-06-27  Bruno Haible  <bruno@clisp.org>
115427         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
115428         result to 0, not to empty.
115429         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
115431 2006-06-27  Bruno Haible  <bruno@clisp.org>
115433         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
115435 2006-06-26  Simon Josefsson  <jas@extundo.com>
115437         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
115438         present.
115440 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
115442         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
115443         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
115444         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
115446 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
115448         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
115450 2006-06-26  Bruno Haible  <bruno@clisp.org>
115452         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
115454 2006-06-26  Bruno Haible  <bruno@clisp.org>
115456         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
115458 2006-06-26  Bruno Haible  <bruno@clisp.org>
115460         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
115461         SGI C compiler in pre-C99 mode.
115462         Suggested by Mark D. Baushke and Larry Jones.
115464 2006-06-26  Bruno Haible  <bruno@clisp.org>
115466         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
115467         WCHAR_MAX.
115468         Reported by Mark D. Baushke and Larry Jones.
115470 2006-06-26  Bruno Haible  <bruno@clisp.org>
115472         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
115473         in pre-C99 mode.
115474         Suggested by Mark D. Baushke and Larry Jones.
115476 2006-06-23  Simon Josefsson  <jas@extundo.com>
115477             Bruno Haible  <bruno@clisp.org>
115479         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
115480         Emit mostlyclean-local rule.
115481         (func_emit_tests_Makefile_am): Likewise.
115482         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
115484 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
115486         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
115488 2006-06-23  Bruno Haible  <bruno@clisp.org>
115490         * tests/test-stdint.c: Update to match ISO C 99 Technical
115491         Corrigendum 1.
115493 2006-06-23  Bruno Haible  <bruno@clisp.org>
115495         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
115497 2006-06-23  Bruno Haible  <bruno@clisp.org>
115499         * lib/stdint_.h: Treat IRIX like OpenBSD.
115501 2006-06-23  Bruno Haible  <bruno@clisp.org>
115503         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
115504         ISO C 99 Technical Corrigendum 1.
115506 2006-06-22  Simon Josefsson  <jas@extundo.com>
115508         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
115509         MinGW.
115511 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
115513         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
115514         needed.  Some compiler complained about some of them.  Problem reported
115515         by Larry Jones in
115516         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
115518 2006-06-21  Simon Josefsson  <jas@extundo.com>
115520         * tests/test-getaddrinfo.c: New file.
115522         * modules/getaddrinfo-tests: New file.
115524         * MODULES.html.sh: Add inet_pton.
115526         * modules/inet_pton: New file.
115528 2006-06-21  Simon Josefsson  <jas@extundo.com>
115530         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
115531         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
115532         of using the (limited) gnulib implementation on Windows XP.
115534         * m4/inet_pton.m4: New file.
115536 2006-06-21  Simon Josefsson  <jas@extundo.com>
115538         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
115539         variable.
115541         * lib/socket_.h: Don't define WINVER.
115543         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
115544         slightly modified to work in gnulib.
115546 2006-06-21  Simon Josefsson  <jas@extundo.com>
115548         * doc/gnulib.texi (Windows sockets): Add.
115550 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
115552         * lib/read-file.c (fread_file): Start with buffer allocation of
115553         0 bytes rather than 1 byte; this simplifies the code.
115554         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
115555         code to free buffer and save/restore errno.
115556         (internal_read_file): Remove unused local.
115558 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
115560         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
115561         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
115562         Problem reported by Denis Excoffier in
115563         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
115565 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
115567         * modules/sys_socket, modules/socklen: Include sys/types since
115568         FreeBSD 4.x's sys/socket.h needs it.
115570 2006-06-19  Simon Josefsson  <jas@extundo.com>
115572         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
115574 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
115576         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
115578 2006-06-19  Bruno Haible  <bruno@clisp.org>
115580         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
115581         and FULL_PATH_INTTYPES_H in angle brackets.
115582         Reported by Mark D. Baushke <mdb@gnu.org>.
115584 2006-06-17  Eric Blake  <ebb9@byu.net>
115586         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
115587         errno.
115589 2006-06-17  Bruno Haible  <bruno@clisp.org>
115591         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
115592         <sys/inttypes.h>.
115594 2006-06-17  Bruno Haible  <bruno@clisp.org>
115596         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
115597         whether errno is declared. Assume <errno.h> declares errno.
115599 2006-06-17  Bruno Haible  <bruno@clisp.org>
115601         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
115603 2006-06-17  Bruno Haible  <bruno@clisp.org>
115605         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
115606         problem on Solaris 2.5.1.
115608 2006-06-16  Eric Blake  <ebb9@byu.net>
115610         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
115611         * lib/unicodeio.c [!defined errno]: Likewise.
115612         * lib/strtol.c [!defined errno]: Likewise.
115613         * lib/strtod.c [!defined errno]: Likewise.
115615 2006-06-15  Eric Blake  <ebb9@byu.net>
115617         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
115619 2006-06-15  Eric Blake  <ebb9@byu.net>
115621         * config/srclist.txt (ssize_t.m4): Lose sync.
115623 2006-06-15  Bruno Haible  <bruno@clisp.org>
115625         * modules/stdint (Files): Include m4/full-header-path.m4,
115626         m4/size_max.m4, m4/wchar_t.m4.
115627         (Makefile.am): Many more substitutions.
115628         * modules/stdint-tests: New file.
115629         * tests/test-stdint.c: New file.
115631 2006-06-15  Bruno Haible  <bruno@clisp.org>
115633         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
115634         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
115635         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
115636         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
115637         gl_CHECK_TYPE_SAME): New macros.
115639 2006-06-15  Bruno Haible  <bruno@clisp.org>
115641         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
115643 2006-06-15  Bruno Haible  <bruno@clisp.org>
115645         * lib/stdint_.h: Rewritten to be fully auto-configured.
115646         Fixes bug on HP-UX/IA64.
115648 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
115650         * lib/getdate.y (__attribute__): Don't define if already defined.
115651         Problem reported by Larry Jones.
115652         * lib/utimens.c (__attribute__): Likewise.
115654 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
115656         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
115657         reported by Andreas Schwab.
115659 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115660             Bruno Haible  <bruno@clisp.org>
115662         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
115663         check for the declaration of strnlen and a run test that exposes the
115664         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
115665         rpl_strndup.
115667 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115668             Bruno Haible  <bruno@clisp.org>
115670         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
115672 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115674         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
115675         compile test, for Tru64 4.0D.
115677 2006-05-28  Karl Berry  <karl@gnu.org>
115679         * config/srclist.txt (printf-args.c): lose sync.
115681 2006-05-26  Martin Lambers  <marlam@marlam.de>
115683         * lib/getpass.c: Updates the test for the native W32 API, and adds
115684         missing includes, thus fixing compilation warnings.
115686 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
115688         * lib/exclude.c (exclude_fnmatch): New function.
115689         (excluded_file_name): Call exclude_fnmatch.
115690         * lib/exclude.h (excluded_file_name): New prototype
115692 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
115694         * lib/tempname.c (small_open, large_open): New macros.
115695         (__open, __open64) [!_LIBC]: Remove.
115696         (__gen_tempname): Use small_open and large_open instead of __open
115697         and __open64.  This fixes a portability bug on HP-UX 11.11i
115698         reported by Simon Wing-Tang in
115699         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
115701 2006-05-24  Bruno Haible  <bruno@clisp.org>
115703         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
115704         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
115705         Reported by Thorsten Maerz <torte@netztorte.de> via
115706         Aaron Stone <aaron@serendipity.cx>.
115708 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
115710         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
115711         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
115712         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
115713         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
115714         not really conditional on the cache.
115715         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
115717 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
115719         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
115720         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
115721         (my_usleep): Don't mishandle maximum value.
115723 2006-05-19  Jim Meyering  <jim@meyering.net>
115725         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
115727 2006-05-17  Bruno Haible  <bruno@clisp.org>
115729         Cygwin portability.
115730         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
115732 2006-05-17  Bruno Haible  <bruno@clisp.org>
115734         * lib/stdint_.h: Fix recognition of Cygwin.
115736 2006-05-15  Bruno Haible  <bruno@clisp.org>
115738         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
115739         on libtool patch by Ralf Wildenhues.
115741 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
115743         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
115744         test for C99 conformance; (bool) 0.5 is an integer constant
115745         expression, but (bool) -0.5 is not.  Problem reported by Fedor
115746         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
115748 2006-05-11  Simon Josefsson  <jas@extundo.com>
115750         * m4/xvasprintf.m4: Fix obvious typo.
115752 2006-05-11  Jim Meyering  <jim@meyering.net>
115754         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
115755         James Lemley.
115757 2006-05-10  Simon Josefsson  <jas@extundo.com>
115759         * lib/md4.c: Typo fix, update copyright years.
115760         (K1, K2): Don't use L because it turn computations into 64-bit on
115761         64-bit platforms.
115763 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
115765         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
115766         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
115767         unwanted sign propagation, e.g., on hosts with 64-bit int.
115768         There still are some problems with reeelly weird theoretical hosts
115769         (e.g., 33-bit int) but it's not worth worrying about now.
115770         * lib/sha1.c (rol): Likewise.
115771         (K1, K2, K3, K4): Remove unnecessary L suffix.
115773 2006-05-10  Bruno Haible  <bruno@clisp.org>
115775         * lib/des.c: Cast to avoid warnings.
115777 2006-05-09  Bruno Haible  <bruno@clisp.org>
115779         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
115780         (Depends-on): Depend also on xsize, stdarg.
115781         (configure.ac): Add gl_XVASPRINTF.
115783 2006-05-09  Bruno Haible  <bruno@clisp.org>
115785         * m4/xvasprintf.m4: New file.
115787 2006-05-09  Bruno Haible  <bruno@clisp.org>
115789         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
115790         (EOVERFLOW): Define fallback value.
115791         (xstrcat): New function.
115792         (xvasprintf): Recognize the special case of a string concatenation.
115794 2006-05-08  Eric Blake  <ebb9@byu.net>
115796         * gnulib-tool (func_version): Base copyright year on CVS date.
115797         (func_emit_copyright_notice): New function.
115798         (func_emit_lib_Makefile_am): Use it.
115799         (func_emit_tests_Makefile_am): Likewise.
115800         (func_import): Likewise.
115802 2006-05-08  Bruno Haible  <bruno@clisp.org>
115804         * modules/stdarg: New file.
115805         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
115807 2006-05-08  Bruno Haible  <bruno@clisp.org>
115809         * m4/stdarg.m4: New file, from GNU gettext.
115811 2006-05-08  Bruno Haible  <bruno@clisp.org>
115813         * config/srclist.txt (build-aux/config.rpath): different from latest
115814         release.
115816 2006-05-08  Bruno Haible  <bruno@clisp.org>
115818         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
115820 2006-05-05  Jim Meyering  <jim@meyering.net>
115822         * m4/warning.m4: New file, derived from bison's file by the same name.
115824 2006-05-03  Bruno Haible  <bruno@clisp.org>
115826         * lib/stdint_.h: Shorter URL.
115827         * lib/inttypes.h: Likewise.
115829 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
115831         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
115833 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
115835         * lib/verify.h: Document the internals better.  Most of this change
115836         was written by Bruno Haible.
115838 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
115840         * doc/verify.texi: New file, partly based on a proposal by
115841         Bruno Haible.
115843 2006-05-02  Bruno Haible  <bruno@clisp.org>
115845         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
115846         test from here...
115847         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
115849 2006-04-29  Bruno Haible  <bruno@clisp.org>
115851         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
115852         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
115854 2006-04-29  Bruno Haible  <bruno@clisp.org>
115856         * gnulib-tool: Make --update option actually work.
115858 2006-04-29  Bruno Haible  <bruno@clisp.org>
115860         * doc/gcd.texi: New file.
115861         * doc/gnulib.texi: Include it.
115863 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
115865         * lib/getdate.y (get_date): When adding relative date, start with the
115866         initial time, not with the result of the first mktime call.
115868 2006-04-25  Bruno Haible  <bruno@clisp.org>
115870         * gnulib-tool (func_import): Output the include directives in three
115871         blocks, sorted separately.
115872         Reported by Ben Pfaff <blp@cs.stanford.edu>.
115874 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
115876         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
115877         to define main with arguments, for C++.  Reported by Eric Blake.
115878         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
115879         Prefer 'int main ()' to 'int main (void)', for C++.
115880         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
115881         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
115882         for 'main', for C99 and C++.
115884 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
115886         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
115887         Don't assume that exit status -1 is valid.
115888         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
115889         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
115890         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
115891         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
115892         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
115893         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
115894         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
115895         functions can be used without declaring them, or that you can
115896         exit with status -1.
115897         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
115899 2006-04-24  Karl Berry  <karl@gnu.org>
115901         * config/srclist.txt (longdouble.m4): sync lost.
115903 2006-04-24  Eric Blake  <ebb9@byu.net>
115905         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
115907 2006-04-24  Bruno Haible  <bruno@clisp.org>
115909         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
115910         poll() implementation in AIX.
115911         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
115913 2006-04-24  Bruno Haible  <bruno@clisp.org>
115915         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
115916         assigned exactly once.
115918 2006-04-23  Claudio Fontana  <claudio@gnu.org>
115919             Bruno Haible  <bruno@clisp.org>
115921         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
115922         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
115923         for AM_CPPFLAGS.
115925 2006-04-23  Bruno Haible  <bruno@clisp.org>
115927         * modules/copy-file: Depend on unistd.
115928         * modules/execute: Likewise.
115929         * modules/fatal-signal: Likewise.
115930         * modules/findprog: Likewise.
115931         * modules/mkdtemp : Likewise.
115932         * modules/pipe: Likewise.
115933         * modules/wait-process: Likewise.
115935 2006-04-23  Bruno Haible  <bruno@clisp.org>
115937         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
115938         condition was already detected.
115939         Reported by Ben Pfaff <blp@cs.stanford.edu>.
115941 2006-04-23  Bruno Haible  <bruno@clisp.org>
115943         * lib/copy-file.c: Include <unistd.h> unconditionally.
115944         * lib/execute.c: Likewise.
115945         * lib/fatal-signal.c: Likewise.
115946         * lib/findprog.c: Likewise.
115947         * lib/mkdtemp.c: Likewise.
115948         * lib/pipe.h: Likewise.
115949         * lib/pipe.c: Likewise.
115950         * lib/wait-process.h: Likewise.
115952 2006-04-23  Bruno Haible  <bruno@clisp.org>
115954         * gnulib-tool (func_usage): Fix --import description. Document
115955         --update.
115956         (func_import): Create temporary file in a temporary directory, if
115957         --dry-run is specified. Silence errors from 'grep' when there are no
115958         m4 files in $m4dir.
115959         (func_create_testdir): Silence errors from 'grep' when there are no
115960         m4 files in $m4dir.
115961         Reported by Karl Berry <karl@freefriends.org>.
115963 2006-04-20  Bruno Haible  <bruno@clisp.org>
115965         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
115966         one argument, so that the code will be portable to Autoconf 2.60.
115967         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
115968         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
115969         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
115971 2006-04-19  Derek Price  <derek@ximbiot.com>
115972             Eric Blake  <ebb9@byu.net>
115974         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
115975         rather than "/full/path.h".  Update comment to match.  Shorten &
115976         generalize m4_translit call via AS_TR_CPP.
115978 2006-04-19  Derek Price  <derek@ximbiot.com>
115979             Eric Blake  <ebb9@byu.net>
115981         * lib/inttypes.h: Correct grammar in comment.
115983 2006-04-18  Derek Price  <derek@ximbiot.com>
115984             Paul Eggert  <eggert@cs.ucla.edu>
115986         * modules/inttypes: New file.
115987         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
115989 2006-04-18  Derek Price  <derek@ximbiot.com>
115990             Paul Eggert  <eggert@cs.ucla.edu>
115992         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
115993         New files.
115995 2006-04-18  Derek Price  <derek@ximbiot.com>
115996             Paul Eggert  <eggert@cs.ucla.edu>
115998         * lib/inttypes.h: New file.
115999         * lib/strtoimax.c: Assume <inttypes.h>.
116001 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
116003         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
116004         isn't mounted.  Problem reported by Kir Kolyshkin.
116006 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
116008         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
116009         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
116010         Derek R. Price.
116011         * lib/regex.h (RE_DUP_MAX): Update comment to match current
116012         implementation.
116014 2006-04-12  Eric Blake  <ebb9@byu.net>
116016         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
116017         is now done automatically by the corresponding Autoconf macro.
116019 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
116021         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
116022         time_r.h.
116024 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116026         Merge regex changes from libc, removing some of our
116027         POSIX-conformance changes that were rejected and redoing them in a
116028         less-intrusive way.
116030         * lib/regcomp.c (re_compile_internal, init_dfa):
116031         Length arg is now size_t, not Idx.  All uses changed.
116032         (peek_token): Forward decl now says internal_function.
116033         (__re_error_msgid, __re_error_msgid_idx):
116034         Now static rather than extern with attribute_hidden.
116035         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
116036         For some reason libc prefers K&R style defns for external functions.
116037         (regerror) [!defined _LIBC]: Likewise.
116038         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
116039         (seek_collating_symbol_entry, lookup_collation_sequence_value):
116040         (build_range_exp, build_collating_symbol):
116041         Use K&R-style defn.
116042         (re_compile_fastmap): Use '\0' to memset, not 0.
116043         (utf8_sb_map): Make the calculations more obvious.
116044         (init_dfa, parse_bracket_exp, build_charclass_op):
116045         Call calloc and cast result, as glibc does.
116046         (init_word_char, fetch_token, peek_token, peek_token_bracket):
116047         (build_range_exp, build_collating_symbol):
116048         Now internal functions.
116050         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
116052         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
116053         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
116054         Don't depend on VMS; depend on __VMS instead, for POSIX
116055         namespace cleanness.
116056         (regoff_t): Define to ssize_t, not long int.
116058         Remove the REG_ macros named below.  Instead, make the old names
116059         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
116060         __USE_GNU_REGEX.
116061         (REG_BACKSLASH_ESCAPE_IN_LISTS):
116062         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
116063         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
116064         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
116065         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
116066         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
116067         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
116068         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
116069         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
116070         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
116071         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
116072         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
116073         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
116074         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
116075         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
116076         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
116077         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
116078         (REG_NREGS):
116079         Remove.  All uses replaced by the old RE_* names.
116080         (RE_BACKSLASH_ESCAPE_IN_LISTS):
116081         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
116082         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
116083         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
116084         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
116085         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
116086         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
116087         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
116088         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
116089         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
116090         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
116091         Don't bother having these macros be independent of each others'
116092         values, since they no longer exist in the POSIX name space.
116094         Rename the following member names back to their old names,
116095         unless !__USE_GNU_REGEX.  All uses changed back.
116096         (buffer): Renamed from re_buffer.
116097         (allocated): Renamed from re_allocated.
116098         (used): Renamed from re_used.
116099         (syntax): Renamed from re_syntax.
116100         (fastmap): Renamed from re_fastmap.
116101         (translate): Renamed from re_translate.
116102         (can_be_null): Renamed from re_can_be_null.
116103         (regs_allocated): Renamed from re_regs_allocated.
116104         (fastmap_accurate): Renamed from re_fastmap_accurate.
116105         (no_sub): Renamed from re_no_sub.
116106         (not_bol): Renamed from re_not_bol.
116107         (not_eol): Renamed from re_not_eol.
116108         (newline_anchor): Renamed from re_newline_anchor.
116109         (num_regs): Renamed from rm_num_regs.
116110         (start): Renamed from rm_start.
116111         (end): Renamed from rm_end.
116113         (free_state): Move up a bit.
116115         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
116116         #define to be empty.
116117         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
116118         when that is what is intended.
116119         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
116120         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
116121         (MAX): New macro.
116122         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
116123         All uses changed back to re_malloc, etc.  It's now the caller's
116124         responsibility to check for overflow; all callers changed.
116125         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
116126         (re_x2nrealloc): Remove.
116127         (free_state): Remove decl.
116129         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
116130         (re_set_registers, re_exec):
116131         Use K&R-style defn.
116133         2006-01-31  Roland McGrath  <roland@redhat.com>
116135         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
116136         Reported by Mike Frysinger <vapier@gentoo.org>.
116138         2006-01-15  Andreas Jaeger  <aj@suse.de>
116140         [BZ #1950]
116141         * lib/regex_internal.c (re_string_reconstruct): Adjust for
116142         build_wcs_upper_buffer change.
116143         (build_wcs_upper_buffer): Change return type.
116145         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
116147         * lib/regex_internal.h: Include <stdint.h> if available.
116149         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
116151         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
116153         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
116155         * lib/regcomp.c: Adjust for changed secondary hash function.
116157         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
116159         * lib/regex.h: Pretty printing.
116160         Clean up namespace a bit.
116162         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
116164         * lib/regexec.c (update_cur_sifted_state, check_arrival,
116165         check_arrival_add_next_nodes): Avoid using uninitialized variable.
116167         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
116168                     Ulrich Drepper  <drepper@redhat.com>
116170         [BZ #1302]
116171         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
116172         changed.
116173         (bitset_word_t): Renamed from bitset_word.  All uses changed.
116175         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
116177         [BZ #281]
116178         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
116179         * lib/regcomp.c: Remove unnecessary uses of
116180         unsigned RE_TRANSLATE_TYPE.
116181         * lib/regex_internal.h: Likewise.
116182         * lib/regex_internal.c: Likewise.
116183         * lib/regexec.c: Likewise.
116184         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
116186         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
116188         * lib/regexec.c (find_recover_state): Remove unnecessary
116189         initialization.
116190         (transit_state_bkref): Make DFA a const pointer.
116191         (get_subexp): Likewise.
116192         (check_arrival): Likewise.
116193         (update_cur_sifted_state): Likewise.
116194         (re_search_internal): Likewise.
116195         (prune_impossible_nodes): Likewise.
116196         (acquire_init_state_context): Likewise.
116197         (proceed_next_node): Likewise.
116198         (set_regs): Likewise.
116199         (free_fail_stack_return): Likewise.
116200         (check_arrival_expand_ecl): Mark DFA parameter as const.
116201         (check_arrival_expand_ecl_sub): Likewise.
116202         (check_subexp_limits): Likewise.
116203         (sub_epsilon_src_nodes):  Likewise.
116204         (add_epsilon_src_nodes):  Likewise.
116205         (merge_state_array): Likewise.
116206         (update_regs): Likewise.
116207         (build_trtable): Likewise.
116208         (sift_states_backward): Mark MCTX parameter as const.
116209         (build_sifted_states): Likewise.
116210         (update_cur_sifted_state): Likewise.
116211         (sift_states_mkref): Likewise.
116212         (check_arrival_expand_ecl): Mark eclosure as const.
116213         (check_dst_limits_calc_pos_1): Likewise.
116214         * lib/regex_internal.h (re_match_context_t): Make dfa a const
116215         pointer.
116217         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
116219         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
116220         (transit_state_sb): Likewise.
116221         (transit_state_mb): Likewise.
116222         (sift_states_iter_mb): Likewise.
116223         (check_arrival_add_next_nodes): Likewise.
116224         (check_node_accept_bytes): Change first parameter to pointer-to-const.
116225         [_LIBC] (re_search_2_stub): Use mempcpy.
116227         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
116228         mbrtowc for very simple UTF-8 case.
116230         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
116231         a pointer-to-const.
116232         (re_acquire_state_context): Likewise.
116233         * lib/regex_internal.h: Adjust prototypes.
116235         * lib/regex.c: Prevent using C++ compilers.
116237         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
116238         (re_acquire_state_context): Likewise.
116240 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116242         * modules/regex (Depends-on): Add ssize_t.
116244 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116246         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
116247         translation table.
116249 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
116251         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
116253 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
116254             Bruno Haible  <bruno@clisp.org>
116256         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
116257         <sys/types.h> and <inttypes.h>.
116259 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116261         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
116262         `__error_t_defined', so argp.h will not typedef the former.
116264 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
116266         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
116267         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
116268         glibc names.  Even if glibc is changed to conform to POSIX, the
116269         traditional names will be available anyway, since regex depends on
116270         the extensions module.  Also, fix a longstanding typo in the
116271         implementation of Spencer ERE test #75 from grep 2.3.  Problems
116272         reported by Emanuele Giaquinta.  Also, change sense of cached
116273         variable, so that the message makes sense.
116275 2006-03-24  Simon Josefsson  <jas@extundo.com>
116277         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
116278         including some doc fixes.
116279         (base64_encode_alloc): Fix +1 bug on allocation failures.
116281 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116283         * lib/base64.c (base64_encode): Do not read past end of array with
116284         unsanitized input on systems with CHAR_BIT > 8.
116286 2006-03-24  Eric Blake  <ebb9@byu.net>
116288         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
116290 2006-03-22  Karl Berry  <karl@gnu.org>
116292         * config/srclist.txt (*setenv.[ch]): get from coreutils.
116293         * config/srclistvars.sh (COREUTILS): new var.
116295 2006-03-17  Jim Meyering  <jim@meyering.net>
116297         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
116298         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
116300 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
116302         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
116303         no longer needs it.  Instead, check that regoff_t is as least
116304         as wide as ptrdiff_t.
116306         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
116307         so that our regex.h stays compatible with the installed regex.
116308         This is helpful for installers who configure --without-included-regex.
116309         Problem reported by Emanuele Giaquinta.
116311 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
116313         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
116314         Typedef to long int, not to off_, as POSIX will likely change
116315         in that direction.
116317 2006-03-15  Eric Blake  <ebb9@byu.net>
116319         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
116321 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
116323         * lib/argp-help.c (validate_uparams): Fix typo
116324         * lib/argp-parse.c (argp_default_options): Consistently begin help
116325         messages with a lowercase letter.
116327 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
116329         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
116330         overrun buffers and shouldn't be used (much as gets shouldn't be
116331         used).
116332         * lib/time_r.c (asctime_r, ctime_r): Likewise.
116334 2006-03-08  Simon Josefsson  <jas@extundo.com>
116336         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
116337         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116339 2006-03-08  Simon Josefsson  <jas@extundo.com>
116341         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
116342         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116344 2006-03-08  Simon Josefsson  <jas@extundo.com>
116346         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
116347         signal that configure disabled the device.
116349 2006-03-08  Simon Josefsson  <jas@extundo.com>
116351         * build-aux/maint.mk: Fix refresh-po, to handle no translated
116352         languages.
116354 2006-03-07  Simon Josefsson  <jas@extundo.com>
116356         * modules/getopt (Depends-on): Add unistd.
116358         * modules/unistd: New file.
116360 2006-03-07  Simon Josefsson  <jas@extundo.com>
116362         * modules/gc-random: New file.
116364 2006-03-07  Simon Josefsson  <jas@extundo.com>
116366         * m4/unistd_h.m4: New file.
116368 2006-03-07  Simon Josefsson  <jas@extundo.com>
116370         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
116371         test to be side-effect free by storing the result in the cache
116372         variable gl_cv_lib_readline, and moving the assignment of
116373         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
116374         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
116376 2006-03-07  Simon Josefsson  <jas@extundo.com>
116378         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
116379         error on missing devices (the functions will return an error).
116381         * m4/gc.m4: Move random stuff to gc-random.m4
116383 2006-03-07  Simon Josefsson  <jas@extundo.com>
116385         * lib/unistd_.h: New file.
116387 2006-03-07  Simon Josefsson  <jas@extundo.com>
116389         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
116391 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
116393         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
116394         Problem reported by Juan Manuel Guerrero.
116396 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
116398         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
116399         the unistd module.
116400         * lib/getlogin_r.c: Likewise.
116401         * lib/getlogin_r.h: Likewise.
116402         * lib/glob.c: Likewise.
116403         * lib/pagealign_alloc.c: Likewise.
116404         * lib/unistd_.h: Remove; no longer needed.
116406 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
116408         * MODULES.html.sh (Support for systems lacking POSIX:2001):
116409         Add unistd.
116410         * modules/c-stack (Depends-on): Add unistd.
116411         * modules/getlogin_r: Likewise.
116412         * modules/glob: Likewise.
116413         * modules/pagealign_alloc: Likewise.
116414         * modules/unistd (Files): Remove lib/unistd_.h.
116415         (EXTRA_DIST): Remove.
116416         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
116417         need unistd_.h.
116418         (MOSTLYCLEANFILES): Remove unistd.h-t.
116420 2006-03-03  Simon Josefsson  <jas@extundo.com>
116422         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
116424 2006-03-03  Simon Josefsson  <jas@extundo.com>
116426         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
116427         libidn and bison.
116429 2006-03-03  Simon Josefsson  <jas@extundo.com>
116431         * build-aux/maint.mk: Add indent target.
116433 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
116435         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
116436         our replacement poll.h in any case, to avoid a differing
116437         declaration from a system header.  Seen on AIX.
116439 2006-03-01  Simon Josefsson  <jas@extundo.com>
116441         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
116442         <kasal@ucw.cz>.
116444 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
116446         * modules/gettime (Depends-on): Add extensions module.
116447         * modules/nanosleep (Depends-on): Likewise.
116448         * modules/settime (Depends-on): Likewise.
116450 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
116452         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
116453         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
116454         pedantically.
116455         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
116456         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
116458         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
116459         not "==".  Reported by Ralf Wildenhues.
116461 2006-03-01  Karl Berry  <karl@gnu.org>
116463         * doc/Copyright/request-*: new files, synced from gnuorg.
116465 2006-03-01  Karl Berry  <karl@gnu.org>
116467         * config/srclist.txt (Copyright/*): new entries.
116469 2006-02-28  Simon Josefsson  <jas@extundo.com>
116471         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
116473 2006-02-27  Simon Josefsson  <jas@extundo.com>
116475         * lib/base64.h: Indent #define's.  From Jim Meyering
116476         <jim@meyering.net>.
116478 2006-02-27  Jim Meyering  <jim@meyering.net>
116480         Revert the change of 2006-02-24, so these files can continue
116481         to be sync'd from gettext.
116482         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
116483         of `config.h'.
116485 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
116487         * modules/intprops: New file.
116488         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
116489         Add intprops.
116490         * modules/getloadavg (Files): Remove lib/intprops.h.
116491         (Depends-on): Add intprops.
116492         * modules/human: Likewise.
116493         * modules/inttostr: Likewise.
116494         * modules/openat: Likewise.
116495         * modules/sig2str: Likewise.
116496         * modules/userspec: Likewise.
116497         * modules/utimecmp: Likewise.
116498         * modules/xnanosleep: Likewise.
116499         * modules/xstrtol: Likewise.
116501 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
116503         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
116504         * modules/lock-tests (TESTS): Use $(EXEEXT).
116505         * modules/tls-tests: Likewise.
116506         * modules/argp-tests: Likewise.
116507         (check_PROGRAMS): New var, replacing...
116508         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
116510 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116512         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
116513         `config.h'.
116515 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
116517         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
116519 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116521         Sync from coreutils.
116522         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
116523         gl_CHDIR_SAFER.
116525 2006-02-22  Jim Meyering  <jim@meyering.net>
116527         Sync from coreutils.
116528         * m4/chdir-safer.m4: New file.
116530 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
116532         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
116533         AT_FDCWD exceeds INT_MAX.
116534         * lib/openat.h (AT_FDCWD): Likewise.
116536 2006-02-17  Eric Blake  <address@hidden>
116538         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
116540 2006-02-16  Simon Josefsson  <jas@extundo.com>
116542         * modules/getaddrinfo (Depends-on): Add sys_socket.
116544 2006-02-15  Simon Josefsson  <jas@extundo.com>
116546         * build-aux/maint.mk: Add dsyntax-check rule.
116548 2006-02-15  Eric Blake  <ebb9@byu.net>
116550         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
116551         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
116552         'present but cannot compile' warnings on cygwin.
116553         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
116554         use ws2tcpip.h if sys/socket.h works.
116555         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
116556         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
116558 2006-02-14  Simon Josefsson  <jas@extundo.com>
116560         * modules/maintainer-makefile (Files): Rename.
116562         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
116563         and (the local) Makefile.cfg to maint-cfg.mk.
116565         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
116566         to the latter.
116568         * modules/maintainer-makefile: New module.
116570         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
116571         severaly stripped to make it possible to build it up from scratch
116572         with reliable tests.
116574         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
116575         fixes to permit overriding the default actions when configure and
116576         makefile are not available.
116578 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
116580         Sync from coreutils.
116581         * modules/lstat (Depends-on): Don't depend on xalloc.
116582         (License): Change from GPL to LGPL, since this is now simply a
116583         replacement for a libc function.
116585 2006-02-14  Jim Meyering  <jim@meyering.net>
116587         Sync from coreutils.
116589         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
116590         failure on deficient systems, and simplify gnulib lgpl dependencies.
116591         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
116592         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
116594         * lib/xalloc-die.c: Remove unused definition of N_.
116596 2006-02-14  Jim Meyering  <jim@meyering.net>
116598         Sync from coreutils.
116599         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
116600         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
116601         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
116602         double-quote uses of that variable, to accommodate the rare case in
116603         which getmntent is available in none of the libraries checked.  This
116604         happens at least on FreeBSD 5.0.
116606 2006-02-13  Simon Josefsson  <jas@extundo.com>
116608         * gnulib-tool (Usage): Fix --import, from
116609         karl@freefriends.org (Karl Berry).
116611 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
116613         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
116615 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
116617         * lib/argp-namefrob.h: Restore changes accidentally lost during the
116618         "autoupdate" on 2005-12-12.
116620 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
116622         * modules/closeout (Depends-on): Remove atexit.
116624 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
116626         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
116627         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
116629 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
116631         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
116632         __EXTENSIONS__ if this causes compilation to fail.  Problem
116633         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
116634         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
116636 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
116638         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
116639         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
116640         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
116641         All uses changed.
116643 2006-01-26  Simon Josefsson  <jas@extundo.com>
116645         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
116646         prototype is visible on mingw32.
116648         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
116649         for mingw32.
116651         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
116652         mingw32).
116654 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
116656         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
116657         attempt to open for write; this always fails, at least on POSIX
116658         hosts.  This reinstates the 2006-01-09 change, which was
116659         inadvertently removed.
116661 2006-01-26  Bruno Haible  <bruno@clisp.org>
116663         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
116664         Reported by Paul Eggert.
116666 2006-01-26  Bruno Haible  <bruno@clisp.org>
116667             Paul Eggert  <eggert@cs.ucla.edu>
116669         * lib/stdbool_.h (_Bool)
116670         [(! (defined __cplusplus || defined __BEOS__)
116671           && !defined __GNUC__
116672           && !(defined __HP_cc || defined __xlc__
116673                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
116674                || defined __sgi))]:
116675         #define to signed char in these cases too; this simplifies
116676         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
116677         etc., separately) and makes it more conservative.
116679 2006-01-25  Simon Josefsson  <jas@extundo.com>
116681         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
116682         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
116683         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
116685 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
116687         * lib/argp-namefrob.h: Bugfix. Remove stray #
116689 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
116691         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
116692         so that we test the test.
116693         Check for yet another HP-UX cc bug involving *bool |= bool.
116695 2006-01-25  Karl Berry  <karl@gnu.org>
116697         * config/srclist.txt (vasnprintf.c): sync lost.
116699 2006-01-25  Jim Meyering  <jim@meyering.net>
116701         Sync from the stable (b5) branch of coreutils:
116703         * lib/fts.c (fts_children): Don't let close() clobber errno from
116704         failed fchdir().
116706         * lib/fts.c (fts_stat): When following a symlink-to-directory,
116707         don't necessarily interpret stat-fails+lstat-succeeds as indicating
116708         a dangling symlink.  That can also happen at least for ELOOP.
116709         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
116710         FYI, this bug predates the inclusion of fts.c in coreutils.
116712         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
116713         in their own block, so pre-c99 compilers don't object.
116715         Avoid the double-free (first in fts_read, second in fts_close) that
116716         would occur when an `active' directory is made inaccessible (e.g.,
116717         via chmod a-x) during a traversal.
116718         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
116719         before returning.  Reproduce this failure by
116720         mkdir -p a/b; cd a; chmod a-x . b
116721         Reported by Stavros Passas.
116723 2006-01-25  Jim Meyering  <jim@meyering.net>
116725         * lib/fileblocks.c: Remove more useless parentheses.
116726         * lib/readutmp.h: Likewise.
116728 2006-01-25  Bruno Haible  <bruno@clisp.org>
116730         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
116731         warnings.
116732         Reported by Paul Eggert.
116734 2006-01-25  Bruno Haible  <bruno@clisp.org>
116736         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
116737         rid of a trap command. For Solaris sh.
116738         Reported by Mark D. Baushke <mdb@gnu.org>.
116740 2006-01-24  Simon Josefsson  <jas@extundo.com>
116742         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
116743         Bruno.
116745 2006-01-24  Karl Berry  <karl@gnu.org>
116747         * config/srclist.txt (argp-namefrob.h): sync lost.
116749 2006-01-24  Jim Meyering  <jim@meyering.net>
116751         * modules/openat (Files): Add lib/intprops.h.
116752         From Mark D. Baushke.
116754 2006-01-24  Jim Meyering  <jim@meyering.net>
116756         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
116757         Reported by Mark D. Baushke.
116759 2006-01-24  Jim Meyering  <jim@meyering.net>
116761         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
116763 2006-01-24  Bruno Haible  <bruno@clisp.org>
116765         * modules/strnlen (Maintainer): Change from glibc to all.
116767 2006-01-24  Bruno Haible  <bruno@clisp.org>
116769         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
116770         Patch by Paul Eggert.
116772 2006-01-24  Bruno Haible  <bruno@clisp.org>
116774         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
116775         already has it.
116776         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
116777         2005-11-26.
116779         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
116780         'signed char' to avoid problems with the built-in _Bool type.
116781         Reported by Paul Eggert on 2005-11-26.
116783 2006-01-24  Bruno Haible  <bruno@clisp.org>
116785         * gnulib-tool (func_import): Avoid constructing complicated sed
116786         expressions inside backquote.
116787         Report and solution by Mark D. Baushke <mdb@gnu.org>.
116789 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
116791         These changes imported from libc.
116792         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
116793         test and two separate function calls.
116794         * lib/strndup.c (__strndup): Add libc_hidden_def.
116796 2006-01-23  Simon Josefsson  <jas@extundo.com>
116798         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
116799         Remove the test_*_SOURCES variable: automake infers it by default.
116800         * modules/tls-tests: Likewise.
116802 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
116804         Work around porting bugs reported by Dieter in
116805         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
116806         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
116807         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
116808         Include "getopt.h" first, to check interface.
116809         (getenv): Declare only if defined HAVE_DECL_GETENV &&
116810         !HAVE_DECL_GETENV.
116811         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
116812         (__strndup): Revert to K&R-style function dfns, the glibc style.
116813         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
116814         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
116815         Include strnlen.h first, to get prototype properly.
116816         (strnlen): Renamed from __strnlen.
116817         Remove weak alias.
116819 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
116821         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
116823 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
116825         * config/srclist.txt: Adjust to reflect glibc reorganization.
116826         This affects only comments.
116828 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
116830          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
116831          Reported by Bruce Korb <bkorb@gnu.org>.
116833 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
116835         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
116836         to pacify gcc -Wswitch-default.
116838 2006-01-22  Bruno Haible  <bruno@clisp.org>
116840         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
116841         temporary buffer for sprintf, take into account the precision also
116842         for 'd', 'i', 'u', 'o', 'x', 'X'.
116844 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
116846         * modules/argp-tests: New module
116847         * tests/test-argp.c: New file
116848         * tests/test-argp-2.sh: New file
116850 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
116852         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
116853         (__argp_base_name): Removed
116854         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
116855         typo.
116856         (__argp_base_name): Provide macro definition or extern declaration
116857         depending on the configuration
116859 2006-01-20  Simon Josefsson  <jas@extundo.com>
116861         * modules/inet_ntop (Depends-on): Depend on sys_socket.
116863 2006-01-20  Simon Josefsson  <jas@extundo.com>
116865         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
116867 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
116869         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
116870         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
116871         Suggested by Bruno Haible.
116873 2006-01-20  Karl Berry  <karl@gnu.org>
116875         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
116876         until changes propagate, I guess.
116878 2006-01-19  Simon Josefsson  <jas@extundo.com>
116880         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
116882 2006-01-19  Simon Josefsson  <jas@extundo.com>
116884         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
116886 2006-01-19  Simon Josefsson  <jas@extundo.com>
116888         * gnulib-tool: Set check_PROGRAMS.
116890         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
116891         modules/des-tests, modules/gc-arcfour-tests,
116892         modules/gc-arctwo-tests, modules/gc-des-tests,
116893         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
116894         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
116895         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
116896         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
116897         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
116898         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
116899         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
116900         test_*_SOURCES.
116902 2006-01-18  Simon Josefsson  <jas@extundo.com>
116904         * modules/socklen (Depends-on): Depend on sys_socket.
116906 2006-01-18  Simon Josefsson  <jas@extundo.com>
116908         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
116909         modules/des-tests, modules/gc-arcfour-tests,
116910         modules/gc-arctwo-tests, modules/gc-des-tests,
116911         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
116912         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
116913         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
116914         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
116915         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
116916         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
116917         $(EXEEXT) to automake TESTS variable, for mingw32.
116919 2006-01-17  Simon Josefsson  <jas@extundo.com>
116921         * modules/socklen (Include): Need sys/socket.h.
116923 2006-01-17  Bruno Haible  <bruno@clisp.org>
116925         * modules/ssize_t (Include): Add <sys/types.h>.
116927 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
116929         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
116930         it's not portable and it doesn't work with cross-compiles.
116931         Problem reported by Bruno Haible.  Fix missing-$ typo in
116932         'test "gl_cv_ignore_unused_libraries" ...' that prevented
116933         -zignore from being used with Sun's C compiler.
116935 2006-01-12  Simon Josefsson  <jas@extundo.com>
116937         * lib/base64.c: Fix warning, reported by Bruno Haible
116938         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
116940 2006-01-12  Bruno Haible  <bruno@clisp.org>
116942         * modules/ldd: New file.
116943         * build-aux/ldd.sh.in: New file.
116944         * MODULES.html.sh (Support for building libraries and executables): Add
116945         ldd.
116947 2006-01-12  Bruno Haible  <bruno@clisp.org>
116949         * m4/ldd.m4: New file.
116951 2006-01-12  Bruno Haible  <bruno@clisp.org>
116953         * gnulib-tool (func_import, func_create_testdir): Don't go into an
116954         endless loop while replacing $auxdir with build-aux.
116956 2006-01-11  Simon Josefsson  <jas@extundo.com>
116958         * lib/stdint_.h (SIZE_MAX): Add missing (.
116960 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
116962         Sync from coreutils.
116963         * lib/md5.c: Fix commentary typos.
116964         (alignof, UNALIGNED_P): No need for a GCC-specific version.
116965         * lib/md5.h (__attribute__): Remove; unused.
116966         * lib/sha1.c: Fix commentary to match md5 better.
116967         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
116968         so that we don't need to worry about alignment.  All uses changed.
116969         This merges the 2005-10-28 md5 change into sha1.
116971 2006-01-11  Jim Meyering  <jim@meyering.net>
116973         Sync from coreutils.
116974         * lib/md5.c (OP): Fix spacing.
116976 2006-01-11  Bruno Haible  <bruno@clisp.org>
116978         Ensure automatic ordering between gl_LOCK and gl_ARGP.
116979         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
116980         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
116982 2006-01-11  Bruno Haible  <bruno@clisp.org>
116984         Ensure automatic ordering between gl_LOCK and gl_ARGP.
116985         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
116986         the "early" section as well.
116988 2006-01-11  Bruno Haible  <bruno@clisp.org>
116990         Avoid "ar: no archive members specified" error on MacOS X.
116991         * gnulib-tool (func_modules_add_dummy): New function.
116992         (func_import, func_create_testdir): Invoke it.
116994 2006-01-11  Bruno Haible  <bruno@clisp.org>
116996         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
116997         with $auxdir in AC_CONFIG_FILES statements.
116999 2006-01-11  Bruno Haible  <bruno@clisp.org>
117001         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
117002         Initialize also noinst_HEADERS to empty.
117004 2006-01-11  Bruno Haible  <bruno@clisp.org>
117006         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
117007         variables.
117008         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
117009         autoreconf.
117011 2006-01-11  Bruno Haible  <bruno@clisp.org>
117013         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
117014         overridable by the user.
117015         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117017 2006-01-10  Simon Josefsson  <jas@extundo.com>
117019         * modules/sys_socket: New file.
117021 2006-01-10  Simon Josefsson  <jas@extundo.com>
117023         * m4/sys_socket_h.m4: New file.
117025 2006-01-10  Simon Josefsson  <jas@extundo.com>
117027         * lib/socket_.h: New file.
117029 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
117031         * modules/readutmp (Maintainer): Add myself.
117033 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
117035         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
117036         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
117037         People who are still concerned with buggy memcmp implementations
117038         can invoke gl_FUNC_MEMCMP themselves.
117040 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
117042         * lib/regex_internal.h (BITSET_WORD_BITS):
117043         Work around a bug in 64-bit PGC (before version 6.1-2), where the
117044         preprocessor mishandles large unsigned values as if they were signed.
117045         Problem reported by Claudio Fontana in
117046         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
117048 2006-01-10  Jim Meyering  <jim@meyering.net>
117050         Avoid the double-free (first in fts_read, second in fts_close) that
117051         would occur when an `active' directory is made inaccessible (e.g.,
117052         via chmod a-x) during a traversal.
117053         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
117054         before returning.  Reproduce this failure by
117055         mkdir -p a/b; cd a; chmod a-x . b
117056         Reported by Stavros Passas.
117058         Sync from coreutils.
117059         * lib/sha1.c: Tweak grammar in a comment.
117061 2006-01-10  Jim Meyering  <jim@meyering.net>
117063         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
117064         Patch by Joerg Sonnenberger.
117066 2006-01-10  Bruno Haible  <bruno@clisp.org>
117068         * modules/readutmp: Depend on module free.
117069         * modules/strtok_r: Depend on module restrict.
117071 2006-01-10  Bruno Haible  <bruno@clisp.org>
117073         * modules/gettext (configure.ac): Add an invocation of
117074         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
117076 2006-01-10  Bruno Haible  <bruno@clisp.org>
117078         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
117079         Reported by Werner Lemberg <wl@gnu.org>.
117081 2006-01-10  Bruno Haible  <bruno@clisp.org>
117083         * lib/localcharset.c: Update from GNU gettext.
117085 2006-01-10  Bruno Haible  <bruno@clisp.org>
117087         * lib/argp.h (__const): Remove macro. Use const instead.
117088         * lib/argp-fmtstream.h (__const): Likewise.
117089         * lib/glob_.h (__const): Remove macro.
117090         * lib/glob-libc.h: Use const instead of __const.
117092 2006-01-10  Bruno Haible  <bruno@clisp.org>
117094         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
117095         variable.
117096         Needed to avoid an automake error regarding the 'gettext' module.
117098 2006-01-09  Simon Josefsson  <jas@extundo.com>
117100         * modules/inet_ntop (Depends-on): Add restrict.
117102 2006-01-09  Simon Josefsson  <jas@extundo.com>
117104         * modules/gc-rijndael-tests (License): Put under LGPL.
117106         * modules/gc-des-tests (License): Likewise.
117108         * modules/gc-arcfour-tests (License): Likewise.
117110         * modules/gc-arctwo-tests (License): Likewise.
117112         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
117114         * modules/gc-hmac-sha1-tests (Files): Likewise.
117116         * modules/gc-hmac-md5-tests (License): Likewise.
117118         * modules/gc-sha1-tests (License): Likewise.
117120         * modules/gc-md5-tests (License): Likewise.
117122         * modules/gc-md4-tests (License): Likewise.
117124         * modules/gc-md2-tests (License): Likewise.
117126         * modules/gc-tests (License): Likewise.
117128         * modules/des-tests (License): Likewise.
117130         * modules/md4-tests (License): Likewise.
117132         * modules/md2-tests (License): Likewise.
117134 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
117136         Sync from coreutils:
117138         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
117139         * modules/lib-ignore: New file.
117140         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
117141         chdir-safer.m4, lchmod.m4.
117142         * modules/openat: Add mkdirat.c, openat-priv.h.
117144 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
117146         Sync from coreutils.
117147         * m4/lib-ignore.m4: New file.
117148         * m4/lchmod.m4: New file.
117150 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
117152         Sync from coreutils.
117153         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
117154         for write access: POSIX says that must fail.
117155         * lib/fts.c (diropen): Likewise.
117156         * lib/save-cwd.c (save_cwd): Likewise.
117157         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
117158         well, for minor improvements on hosts that lack O_DIRECTORY.
117159         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
117160         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
117161         Fall back on chown if open failed with EACCES.
117163         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
117164         Report an error at compile-time if only a 1-second nominal clock
117165         resolution is found.
117167         * lib/lchmod.h: New file.
117168         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
117169         (make_dir_parents): Use lchown rather than chown, and
117170         lchmod rather than chmod.
117172         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
117173         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
117174         "proc" reported by n0dalus.
117176         * lib/mountlist.c: Include <limits.h>.
117177         (dev_from_mount_options)
117178         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
117179         New function.  It no longer assumes "dev=" has the System V meaning
117180         on Linux (since it doesn't).  It also parses "dev=" more carefully.
117181         (read_file_system_list)
117182         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
117183         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
117184         dev= in that case.
117186         * lib/posixtm.h (PDS_PRE_2000): New macro.
117187         * lib/posixtm.c (year): Arg is now syntax_bits rather than
117188         allow_century.  All usages changed.  Reject dates outside the range
117189         1969-1999 if PDS_PRE_2000 is used.
117191 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
117193         Sync from coreutils.
117194         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
117195         (Time of day items): Mention the possibility of leap seconds.
117196         Problem reported by Dr. David Alan Gilbert.
117198 2006-01-09  Jim Meyering  <jim@meyering.net>
117200         Sync from coreutils.
117202         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
117204         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
117206         * lib/modechange.c (mode_compile): Reject an invalid mode string
117207         that starts with an octal digit.  From Andreas Gruenbacher.
117209         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
117210         and dup to open_safer and dup_safer, respectively.
117211         (openat_permissive): Fix typo in comment.
117213         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
117214         "gettext.h"; either no longer needed or are guaranteed by openat.h.
117215         (_): Remove; no longer needed.
117216         (openat): Renamed from rpl_openat; no need for rpl_openat
117217         since openat.h renames openat for us.
117218         Replace most of the body with a call to openat_permissive,
117219         to avoid duplicate code.
117220         Port to (probably hypothetical) environments were mode_t is
117221         wider than int.
117222         (openat_permissive): Require mode arg, so that we can check
117223         types better.  Put it just after flags.  Change cwd failure
117224         indicator from pointer-to-bool to pointer-to-errno-value.
117225         All callers changed.
117226         Invoke openat_save_fail and/or openat_restore_fail if
117227         cwd_errno is null, so that openat can call us.
117228         (openat_permissive, fdopendir, fstatat, unlinkat):
117229         Simplify errno handling to avoid some duplicate code,
117230         as it's OK to set errno on success.
117231         * lib/openat.h: Revamp code so that function macros depend on
117232         __OPENAT_PREFIX only, not also on AT_FDCWD.
117233         (openat_ro): Remove.  Caller changed to use openat_permissive.
117234         (openat_permissive): Now a macro, if not a function.
117235         (openat_restore_fail, openat_save_fail): Now always functions,
117236         since mkdirat needs them even if __OPENAT_PREFIX is defined.
117238         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
117239         and openat.c.
117240         * lib/mkdirat.c: Include openat-priv.h.
117241         Remove definitions of macros defined therein.
117242         * lib/openat.c: Likewise.
117244         * lib/mkdirat.c (mkdirat): New file and function.
117245         * lib/openat.h (mkdirat): Declare.
117247         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
117249         * lib/openat.h (openat_permissive): Declare.
117250         (openat_ro): Define.
117252         * lib/openat.c (EXPECTED_ERRNO): New macro.
117253         (openat_permissive): New function -- used in remove.c rewrite.
117254         (all functions): Set errno just before returning, only if there
117255         was an actual failure.
117256         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
117258         Emulate openat-family functions using Linux's procfs, if possible.
117259         Idea and some code based on Ulrich Drepper's glibc changes.
117261         * lib/openat.c: (BUILD_PROC_NAME): New macro.
117262         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
117263         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
117264         before falling back on save_cwd and restore_cwd.
117265         (fdopendir, fstatat, unlinkat): Likewise.
117267         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
117268         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
117270         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
117271         as second argument to va_arg.  Otherwise, some versions of gcc
117272         warn that `if this code is reached, the program will abort'.
117274 2006-01-09  Jim Meyering  <jim@meyering.net>
117276         Sync from coreutils.
117277         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
117278         Require openat-priv.h.
117280 2006-01-09  Bruno Haible  <bruno@clisp.org>
117282         * modules/strnlen (Include): Use strnlen.h.
117284 2006-01-09  Bruno Haible  <bruno@clisp.org>
117286         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
117288 2006-01-09  Bruno Haible  <bruno@clisp.org>
117290         * lib/sysexit_.h (EX_OK): New macro.
117291         Suggested by Martin Lambers <marlam@marlam.de>.
117293 2006-01-09  Bruno Haible  <bruno@clisp.org>
117295         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
117296         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
117298 2006-01-09  Bruno Haible  <bruno@clisp.org>
117300         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
117301         numbers.
117303 2006-01-09  Bruno Haible  <bruno@clisp.org>
117305         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
117306         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
117307         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
117308         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
117310 2006-01-09  Bruno Haible  <bruno@clisp.org>
117312         * build-aux/javacomp.sh.in: New file, moved from lib/.
117313         * modules/javacomp-script (Files): Update.
117314         (configure.ac): Add AC_CONFIG_FILES invocation.
117315         (EXTRA_DIST): Remove variable.
117317         * build-aux/javaexec.sh.in: New file, moved from lib/.
117318         * modules/javaexec (Files): Update.
117319         (configure.ac): Add AC_CONFIG_FILES invocation.
117320         (EXTRA_DIST): Remove javaexec.sh.in.
117322         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
117323         * modules/csharpcomp-script (Files): Update.
117324         (configure.ac): Add AC_CONFIG_FILES invocation.
117325         (EXTRA_DIST): Remove variable.
117327         * build-aux/csharpexec.sh.in: New file, moved from lib/.
117328         * modules/csharpexec (Files): Update.
117329         (configure.ac): Add AC_CONFIG_FILES invocation.
117330         (EXTRA_DIST): Remove csharpexec.sh.in.
117332 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
117334         Sync from coreutils.
117336         Add POSIX ACL support
117337         * lib/acl.h (copy_acl, set_acl): Add declarations.
117338         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
117339         systems other than Linux.
117340         (chmod_or_fchmod): New function: use fchmod when possible,
117341         and chmod otherwise.
117342         (file_has_acl): Add a POSIX ACL implementation, with a
117343         Linux-specific subcase.
117344         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
117345         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
117346         acls are unsupported.
117347         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
117348         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
117349         are unsupported.
117351 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
117353         Sync from coreutils.
117354         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
117356 2006-01-07  Bruno Haible  <bruno@clisp.org>
117358         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
117359         gl_EARLY.
117361 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
117363         * lib/strftime.c (tzname): Don't declare if it is already #defined.
117364         Problem reported for Mingw by Mark Junker.
117366 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
117368         * README: Gnulib normally doesn't generate a tarball.
117370 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
117372         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
117373         long int, not int, for nanosecond counts, so that people who are
117374         used to POSIX struct timespec won't be surprised.  Reported by Jim
117375         Meyering.
117377 2005-12-28  Bruno Haible  <bruno@clisp.org>
117379         * build-aux/config.rpath: Update from GNU gettext.
117381 2005-12-16  Jim Meyering  <jim@meyering.net>
117383         * modules/fprintftime: New module.
117384         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
117386 2005-12-16  Jim Meyering  <jim@meyering.net>
117388         * m4/fprintftime.m4: New file.
117390 2005-12-16  Jim Meyering  <jim@meyering.net>
117392         * lib/fprintftime.c, lib/fprintftime.h: New files.
117394 2005-12-15  Simon Josefsson  <jas@extundo.com>
117396         * modules/socklen (configure.ac): Fix M4 macro name, to align with
117397         new m4/socklen.m4.
117399 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
117401         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
117402         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
117404 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
117406         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
117407         * lib/argp-help.c (fill_in_uparams): Check if the constructed
117408         struct uparams is valid. Fall back to the default values if it is
117409         not.
117411 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117413         * modules/argp (Files): Add argp-pin.c
117414         (Depends-on): dirname
117415         (lib_SOURCES): Add argp-pin.c
117417 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117419         * m4/argp.m4:  Check if program_invocation_name and
117420         program_invocation_short_name are declared and define appropriate
117421         macros if they are not.
117423 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
117425         * lib/argp-help.c (__argp_base_name): New function
117426         (__argp_short_program_name): Rewrite using __argp_base_name
117427         * lib/argp-namefrob.h: Define program_invocation_name and
117428         program_invocation_short_name if requested
117429         (__argp_base_name): Add prototype
117430         * lib/argp-parse.c (argp_def): Use gettext wrappers
117431         (argp_default_parser): Use __argp_base_name
117432         * lib/argp-pin.c: New file. Defines program_invocation_name and
117433         program_invocation_short_name on systems that lack them.
117435 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
117437         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
117438         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
117439         porting problem reported by Georg Schwarz in
117440         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
117442 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
117444         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
117445         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
117446         porting problem reported by Georg Schwarz in
117447         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
117449 2005-12-05  Bruno Haible  <bruno@clisp.org>
117451         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
117452         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
117453         Reported by Mark Junker <mjscod@gmx.de>.
117455 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
117457         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
117458         Use implementation from Albert Chin, with some
117459         comments/corrections by Stepan Kasal and myself.
117461 2005-12-02  Bruno Haible  <bruno@clisp.org>
117463         * gnulib-tool (func_import): Accept GPLed build tool modules when
117464         --lgpl is given.
117465         * modules/csharpcomp-script: New file.
117466         * modules/csharpcomp: Depend on it.
117467         * modules/javacomp-script: New file.
117468         * modules/javacomp: Depend on it.
117469         Suggested by Simon Josefsson.
117471 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
117473         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
117474         statement, to work around an HP-UX 10.20 compiler bug reported by
117475         Peter O'Gorman.
117477 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
117479         * modules/savedir (Depends-on): Add openat.
117481 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
117483         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
117484         (uintmax_t) [defined uintmax_t]: Do not declare.
117485         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
117486         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
117487         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
117488         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
117489         sake of portability to weird hosts that C allows (though we don't
117490         know of any practical examples).
117492         * lib/savedir.h (fdsavedir): New decl.
117493         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
117494         contains most of the former guts of savedir.
117495         (savedir): Use savedirstream.
117496         Include "openat.h".
117498 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
117500         * modules/obstack (Files): Add m4/ulonglong.m4.
117501         Problem reported by Davide Angelocola.
117503 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
117505         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
117506         coreutils no longer futzes with rounding modes.
117508 2005-11-14  Jim Meyering  <jim@meyering.net>
117510         * lib/mkstemp-safer.c: Include <config.h>, required for possible
117511         replacement of mkstemp.
117513 2005-11-10  Simon Josefsson  <jas@extundo.com>
117515         * lib/readline.c: Remove EOL.
117517 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
117519         * modules/gethrxtime (Depends-on): Add gettime.
117521 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
117523         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
117524         or gettimeofday; no longer needed.
117526 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
117528         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
117529         time business.
117530         (gethrxtime) [! (HAVE_NANOUPTIME
117531         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
117532         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
117533         our own approximation.
117535 2005-11-08  Eric Blake  <ebb9@byu.net>
117537         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
117539 2005-11-08  Eric Blake  <ebb9@byu.net>
117541         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
117543 2005-11-04  Bruno Haible  <bruno@clisp.org>
117545         * gnulib-tool: Implement --update mode.
117547 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
117549         Fix porting problem reported by Theodoros V. Kalamatianos.
117550         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
117551         Don't assume that futimes failing means we must fail.
117553 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
117555         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
117556         variables to suggest the intended function of the PATH_MAX check.
117558 2005-10-30  Kean Johnston  <jkj@sco.com>
117560         Trivial changes to support SCO systems.
117561         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
117562         as PATH_MAX.
117563         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
117564         where __ptr is null when no I/O is pending.
117566 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
117568         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
117569         leave errno alone.  Problem reported by Dmitry V. Levin.
117571 2005-10-28  Simon Josefsson  <jas@extundo.com>
117573         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
117574         Test more.
117576         * tests/test-gc-md2.c, tests/test-md2.c: New files.
117578         * modules/md2, modules/md2-tests: New files.
117580 2005-10-28  Simon Josefsson  <jas@extundo.com>
117582         * m4/inet_ntop.m4: More tests.
117584         * m4/gc-md2.m4, md2.m4: New file.
117586 2005-10-28  Simon Josefsson  <jas@extundo.com>
117588         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
117589         "restrict" keywords, as per POSIX.  Protect the function
117590         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
117591         Don't use K&R prototypes.  Check the sprintf return values.
117592         Re-define EAFNOSUPPORT if not present.  Indent.
117594         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
117595         suggested by Bruno Haible <bruno@clisp.org>.
117597         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
117599         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
117601         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
117602         libgcrypt).
117604         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
117606         * lib/md2.h, lib/md2.c: New files.
117608 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
117610         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
117611         errno alone.  Problem reported by Frederic Jolliton.
117613 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
117615         * modules/verify (License): Change from GPL to LGPL.  This is a
117616         tiny module and there are apparently near-equivalents that are
117617         under the BSD license.
117619 2005-10-24  Simon Josefsson  <jas@extundo.com>
117621         * modules/sha1: Relicense to LGPL.
117623 2005-10-24  Simon Josefsson  <jas@extundo.com>
117625         * lib/md4.h: Shrink buffer size, now that we changed the type.
117627 2005-10-23  Simon Josefsson  <jas@extundo.com>
117629         * gnulib-tool (func_import): Fix --tests-base.
117631 2005-10-22  Simon Josefsson  <jas@extundo.com>
117633         * modules/arcfour (Depends-on): Need stdint.
117635 2005-10-22  Simon Josefsson  <jas@extundo.com>
117637         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
117638         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
117640 2005-10-22  Simon Josefsson  <jas@extundo.com>
117642         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
117643         suggested by Bruno Haible <bruno@clisp.org>.
117645 2005-10-22  Simon Josefsson  <jas@extundo.com>
117647         * lib/crc.h: Include stddef.h, for size_t.
117649 2005-10-22  Simon Josefsson  <jas@extundo.com>
117651         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
117652         arcfour_context struct (simplify test vector testing in GNU
117653         Shishi).
117655 2005-10-21  Simon Josefsson  <jas@extundo.com>
117657         * modules/des, modules/des-tests: New files.
117659         * modules/gc-des, modules/gc-des-tests: New files.
117661         * tests/test-des.c, tests/test-gc-des.c: New file.
117663 2005-10-21  Simon Josefsson  <jas@extundo.com>
117665         * modules/arctwo, modules/arctwo-tests: New files.
117667         * tests/test-arctwo.c: New file.
117669         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
117671         * tests/test-gc-arctwo.c: New file.
117673 2005-10-21  Simon Josefsson  <jas@extundo.com>
117675         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
117676         Bruno Haible <bruno@clisp.org>.
117678         * m4/gc-des.m4: New file.
117680 2005-10-21  Simon Josefsson  <jas@extundo.com>
117682         * m4/arctwo.m4: New file.
117684         * m4/gc-arctwo.m4: New file.
117686 2005-10-21  Simon Josefsson  <jas@extundo.com>
117688         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
117689         block.
117691 2005-10-21  Simon Josefsson  <jas@extundo.com>
117693         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
117694         <bruno@clisp.org>.
117696         * lib/hmac-sha1.c (hmac_sha1): Likewise.
117698         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
117699         Bruno Haible <bruno@clisp.org>.
117701         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
117702         <bruno@clisp.org>.
117704 2005-10-21  Simon Josefsson  <jas@extundo.com>
117706         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
117708 2005-10-21  Simon Josefsson  <jas@extundo.com>
117710         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
117712 2005-10-21  Simon Josefsson  <jas@extundo.com>
117714         * lib/des.h, lib/des.c: New files.
117716         * lib/gc-gnulib.c: Support DES.c
117718 2005-10-21  Simon Josefsson  <jas@extundo.com>
117720         * lib/arctwo.h, lib/arctwo.c: New files.
117722         * lib/gc-gnulib.c: Support ARCTWO.
117724 2005-10-21  Simon Josefsson  <jas@extundo.com>
117726         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
117727         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117729 2005-10-21  Simon Josefsson  <jas@extundo.com>
117731         * gnulib-tool (func_import, func_create_testdir): Define automake
117732         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
117733         Makefile.am snippet),
117734         suggested by Bruno Haible <bruno@clisp.org>.
117736         * modules/gc (Makefile.am): Use it.
117738 2005-10-21  Bruno Haible  <bruno@clisp.org>
117740         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
117741         patch.
117743 2005-10-19  Simon Josefsson  <jas@extundo.com>
117745         * tests/test-gc-rijndael.c: New file.
117747         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
117749 2005-10-19  Simon Josefsson  <jas@extundo.com>
117751         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
117752         interface too.
117754 2005-10-19  Simon Josefsson  <jas@extundo.com>
117756         * tests/test-gc-arcfour.c: New file.
117758         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
117760 2005-10-19  Simon Josefsson  <jas@extundo.com>
117762         * modules/gc-md4, modules/gc-md4-tests: New file.
117764         * tests/test-gc-md4.c: New file.
117766 2005-10-19  Simon Josefsson  <jas@extundo.com>
117768         * m4/gc-md4.m4: New file.
117770 2005-10-19  Simon Josefsson  <jas@extundo.com>
117772         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
117773         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
117774         <kasal@ucw.cz>.
117776 2005-10-19  Simon Josefsson  <jas@extundo.com>
117778         * m4/gc-arcfour.m4: New file.
117780         * m4/gc-rijndael.m4: New file.
117782 2005-10-19  Simon Josefsson  <jas@extundo.com>
117784         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
117786 2005-10-19  Simon Josefsson  <jas@extundo.com>
117788         * lib/gc-gnulib.c: Support ARCFOUR.
117790 2005-10-19  Simon Josefsson  <jas@extundo.com>
117792         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
117793         support.
117795         * lib/gc.h: Add ECB enum type.
117797         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
117799 2005-10-18  Simon Josefsson  <jas@extundo.com>
117801         * tests/test-md5.c: New file.
117803         * modules/md5-tests: New file.
117805 2005-10-18  Simon Josefsson  <jas@extundo.com>
117807         * tests/test-md4.c: New file.
117809         * modules/md4, modules/md4-tests: New files.
117811 2005-10-18  Simon Josefsson  <jas@extundo.com>
117813         * m4/md4.m4: New file.
117815 2005-10-18  Simon Josefsson  <jas@extundo.com>
117817         * lib/md4.h, lib/md4.c: New files, based on md5.?.
117819 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
117821         * gnulib-tool (func_create_testdir): Omit the second check whether
117822         BUILT_SOURCES in nonempty.
117824 2005-10-17  Simon Josefsson  <jas@extundo.com>
117826         * tests/test-rijndael.c: New file.
117828 2005-10-17  Simon Josefsson  <jas@extundo.com>
117830         * modules/sha1: Depend on stdint instead of md5.
117832         * modules/md5: Depend on stdint, remove uint32_t.
117834 2005-10-17  Simon Josefsson  <jas@extundo.com>
117836         * modules/gc-sha1-tests: New file.
117838         * tests/test-gc-sha1.c: New file.
117840 2005-10-17  Simon Josefsson  <jas@extundo.com>
117842         * m4/md5.m4: Remove call to uint32_t.m4.
117844 2005-10-17  Simon Josefsson  <jas@extundo.com>
117846         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
117848         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
117849         md5.h.
117851         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
117853         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
117855 2005-10-17  Simon Josefsson  <jas@extundo.com>
117857         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
117859 2005-10-17  Simon Josefsson  <jas@extundo.com>
117861         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
117863 2005-10-17  Simon Josefsson  <jas@extundo.com>
117865         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
117867         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
117869 2005-10-17  Bruno Haible  <bruno@clisp.org>
117871         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
117872         that it can also be used in a test.
117874 2005-10-16  Bruno Haible  <bruno@clisp.org>
117876         * gnulib-tool (func_emit_tests_Makefile_am): Also define
117877         TESTS_ENVIRONMENT, so that individual tests can augment it.
117879         * gnulib-tool (func_create_testdir): Use an intermediate target for
117880         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
117881         macros, like $(ALLOCA_H), which cannot be passed through the command
117882         line.
117884 2005-10-15  Simon Josefsson  <jas@extundo.com>
117886         * modules/rijndael-tests: New file.
117888         * modules/rijndael: New file.
117890 2005-10-15  Simon Josefsson  <jas@extundo.com>
117892         * m4/rijndael.m4: New file.
117894 2005-10-15  Simon Josefsson  <jas@extundo.com>
117896         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
117898         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
117900 2005-10-14  Simon Josefsson  <jas@extundo.com>
117902         * tests/test-arcfour.c: New file.
117904         * modules/arcfour, modules/arcfour-tests: New files.
117906 2005-10-14  Simon Josefsson  <jas@extundo.com>
117908         * m4/arcfour.m4: New file.
117910 2005-10-14  Simon Josefsson  <jas@extundo.com>
117912         * lib/arcfour.h, lib/arcfour.c: New files.
117914 2005-10-14  Roland McGrath  <roland@redhat.com>
117916         Import from libc.  [BZ #1331]
117917         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
117918         macro argument.
117919         Reported by Matej Vela <vela@debian.org>.
117921 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
117923         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
117924         include <wchar.h>; no longer needed.
117926 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
117928         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
117930 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
117931         and  Ulrich Drepper  <drepper@redhat.com>
117933         Import from libc.
117934         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
117935         instead of inline stream orientation test and two separate
117936         function calls.  Pay no attention to USE_IN_LIBIO.
117938 2005-10-13  Simon Josefsson  <jas@extundo.com>
117940         * modules/gc-hmac-md5-tests: New file.
117942         * tests/test-gc-hmac-sha1.c: New file.
117944         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
117946         * modules/gc-hmac-md5-tests: New file.
117948         * tests/test-gc-md5.c: New file.
117950         * modules/gc-md5-tests: New file.
117952 2005-10-13  Simon Josefsson  <jas@extundo.com>
117954         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
117955         Move memory allocation outside of loop.
117957 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
117959         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
117960         intermediate directory is in a read-only file system.  Problem
117961         reported by Eric Blake.
117963 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
117965         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
117967 2005-10-12  Simon Josefsson  <jas@extundo.com>
117969         * tests/test-hmac-sha1.c: New file.
117971         * modules/hmac-sha1-tests: New file.
117973         * modules/hmac-sha1: New file.
117975 2005-10-12  Simon Josefsson  <jas@extundo.com>
117977         * modules/gc-sha1: New file.
117979 2005-10-12  Simon Josefsson  <jas@extundo.com>
117981         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
117983         * tests/test-gc-pbkdf2-sha1.c: New file.
117985 2005-10-12  Simon Josefsson  <jas@extundo.com>
117987         * modules/gc-md5, modules/gc-hmac-md5: New files.
117989         * modules/gc (Files): Remove md5, memxor and hmac files.
117991 2005-10-12  Simon Josefsson  <jas@extundo.com>
117993         * m4/gc-pbkdf2-sha1.m4: New file.
117995         * m4/gc-hmac-sha1.m4: New file.
117997         * m4/gc-sha1: New file.
117999         * m4/hmac-sha1.m4: New file.
118001 2005-10-12  Simon Josefsson  <jas@extundo.com>
118003         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
118005         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
118007 2005-10-12  Simon Josefsson  <jas@extundo.com>
118009         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
118010         suggested by Bruno Haible <bruno@clisp.org>.
118012 2005-10-12  Simon Josefsson  <jas@extundo.com>
118014         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
118016 2005-10-12  Simon Josefsson  <jas@extundo.com>
118018         * lib/gc-pbkdf2-sha1.c: New file.
118020         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
118022 2005-10-12  Simon Josefsson  <jas@extundo.com>
118024         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
118026         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
118028 2005-10-12  Simon Josefsson  <jas@extundo.com>
118030         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
118031         GC_USE_HMAC_MD5, respectively.
118033         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
118034         (gc_md5): Fix typo.
118036         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
118038         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
118040         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
118042 2005-10-12  Bruno Haible  <bruno@clisp.org>
118044         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
118045         Reported by Stepan Kasal <kasal@ucw.cz>.
118047 2005-10-11  Simon Josefsson  <jas@extundo.com>
118049         * tests/test-crc.c: New file.
118051         * modules/crc, modules/crc-tests: New files.
118053 2005-10-11  Simon Josefsson  <jas@extundo.com>
118055         * m4/crc.m4: New file.
118057 2005-10-11  Simon Josefsson  <jas@extundo.com>
118059         * lib/gc.h: Add gc_hash and gc_hash_buffer.
118061         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
118063         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
118065 2005-10-11  Simon Josefsson  <jas@extundo.com>
118067         * lib/crc.h, lib/crc.c: New files.
118069         * lib/gc.h (gc_hash_buffer): Add doc.
118071 2005-10-11  Bruno Haible  <bruno@clisp.org>
118073         * modules/c-strcasestr: New file.
118074         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
118076 2005-10-11  Bruno Haible  <bruno@clisp.org>
118078         * modules/c-strcase: New file.
118079         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
118081 2005-10-11  Bruno Haible  <bruno@clisp.org>
118083         * lib/strcasecmp.c: Include limits.h.
118084         (strcasecmp): Avoid integer overflow on exotic platforms.
118085         * lib/strncasecmp.c: Include limits.h.
118086         (strncasecmp): Avoid integer overflow on exotic platforms.
118087         Reported by Paul Eggert.
118089 2005-10-11  Bruno Haible  <bruno@clisp.org>
118091         * lib/c-strcasestr.h: New file, from GNU gettext.
118092         * lib/c-strcasestr.c: New file, from GNU gettext.
118094 2005-10-11  Bruno Haible  <bruno@clisp.org>
118096         * lib/c-strcase.h: New file, from GNU gettext.
118097         * lib/c-strcasecmp.c: New file, from GNU gettext.
118098         * lib/c-strncasecmp.c: New file, from GNU gettext.
118100 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
118102         * modules/mempcpy (License): GPL -> LGPL.
118103         * modules/strchrnul (License): Likewise.
118104         * modules/sysexits (License): Likewise.
118106 2005-10-08  Simon Josefsson  <jas@extundo.com>
118108         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
118110 2005-10-07  Simon Josefsson  <jas@extundo.com>
118112         * m4/memxor.m4: Remove gl_C_RESTRICT call.
118114 2005-10-06  Simon Josefsson  <jas@extundo.com>
118116         * tests/test-hmac-md5.c: New file.
118118         * modules/hmac-md5-tests: New file.
118120         * modules/hmac-md5: New file.
118122 2005-10-06  Simon Josefsson  <jas@extundo.com>
118124         * m4/hmac-md5.m4: New file.
118126         * m4/memxor.m4: Require gl_C_RESTRICT.
118128 2005-10-06  Simon Josefsson  <jas@extundo.com>
118130         * lib/memxor.c (memxor): Avoid casts and warnings.
118132 2005-10-06  Simon Josefsson  <jas@extundo.com>
118134         * lib/hmac-md5.c: New file.
118136         * lib/hmac.h: New file.
118138 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
118140         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
118141         promotes to int, not unsigned int, to catch the AIX 5.3
118142         compiler bug.
118144 2005-10-05  Simon Josefsson  <jas@extundo.com>
118146         * modules/memxor: New file.
118148         * modules/iconv (Files): Move config.rpath to havelib, it is used
118149         there.
118151         * modules/havelib (Files): Add config.rpath.
118153 2005-10-05  Simon Josefsson  <jas@extundo.com>
118155         * m4/memxor.m4: New file.
118157 2005-10-05  Simon Josefsson  <jas@extundo.com>
118159         * lib/memxor.c (memxor): Fix compiler error.
118161         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
118162         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
118164         * lib/memxor.h, lib/memxor.c: New files.
118166         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
118167         we assume all systems have it, suggested by Jim Meyering
118168         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
118169         any systems lack sys/socket.h; mingw32 is known to lack it, but we
118170         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
118171         same reasons.
118173 2005-10-05  Simon Josefsson  <jas@extundo.com>
118175         * config/srclist.txt: Add glibc bug 1423 for md5.h.
118177 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
118179         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
118180         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
118181         needed, since the source code now assumes these .h files.
118183 2005-10-05  Derek Price  <derek@ximbiot.com>
118185         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
118187 2005-10-05  Bruno Haible  <bruno@clisp.org>
118189         * modules/stdint (License): Change to LGPL.
118191 2005-10-04  Simon Josefsson  <jas@extundo.com>
118193         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
118194         D. Baushke" <mdb@gnu.org>.
118196 2005-10-04  Bruno Haible  <bruno@clisp.org>
118198         * lib/verify.h (verify_true): Provide alternative definition for C++.
118200 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
118202         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
118203         (SSIZE_MAX): New macro, if not already defined.
118204         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
118205         than 2 GiB.
118207 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
118209         Sync from coreutils.
118210         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
118211         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
118212         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
118213         ULLONG_MAX doesn't work with 2.7.2.1.
118215 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
118217         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
118218         From Ben Pfaff.
118220         * modules/exclude (Depends-on): Depend on verify.
118221         * modules/strtoimax (Depends-on): Likewise.
118222         * modules/utimecmp (Depends-on): Likewise.
118224 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
118226         * lib/exclude.c: Include verify.h.
118227         (verify): Remove.  All callers changed to use verify.h's version.
118228         * lib/strtoimax.c: Likewise.
118229         * lib/utimecmp.c: Likewis.e
118231         Sync from coreutils.
118232         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
118233         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
118234         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
118235         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
118236         bother returning ENOSYS if settimeofday or stime fails; just let
118237         them return whatever errno they want to return.
118238         * lib/utimens.c: Include unistd.h, for dup2.
118239         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
118240         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
118242 2005-10-02  Jim Meyering  <jim@meyering.net>
118244         Sync from coreutils.
118245         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
118246         from glibc-2.2.5 that fails for read-only files.
118248 2005-10-02  Jim Meyering  <jim@meyering.net>
118250         Sync from coreutils.
118251         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
118252         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
118253         `#if HAVE_CONFIG_H'.
118254         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
118255         Remove AT_FDCWD test.
118256         Do not consume the fd unless successful.
118257         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
118258         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
118259         block, so that we don't even try to compile it if settimeofday is
118260         available.  This works around a compilation failure on OSF1 V5.1,
118261         due to stime requiring a `long int*' while tv_sec is `int'.
118263 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
118265         Sync from coreutils.
118266         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
118267         against `yes', rather than just testing for nonempty.
118269 2005-10-01  Simon Josefsson  <jas@extundo.com>
118271         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
118272         and Darwin.
118274         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
118275         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
118276         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
118277         freeaddrinfo and gai_strerror are declared by the POSIX headers.
118278         Check if struct addrinfo is declared.
118280 2005-10-01  Simon Josefsson  <jas@extundo.com>
118282         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
118283         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
118284         AI_* and EAI_* definitions.  Protect function declarations.
118286 2005-10-01  Jim Meyering  <jim@meyering.net>
118288         Sync from coreutils.
118290         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
118291         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
118292         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
118293         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
118294         in the inet and nsl libraries.  Required on Solaris 5.7.
118296 2005-10-01  Jim Meyering  <jim@meyering.net>
118298         Sync from coreutils.
118299         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
118300         in the inet and nsl libraries.  Required on Solaris 5.7.
118302 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
118304         * lib/getdelim.c (getdelim): Remove unused variables.
118306 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
118308         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
118309         so that the code works even with ancient cpp.  Portability problem
118310         with GCC 2.7.2.1 reported by Thomas M.Ott.
118312 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
118314         * modules/regex (Depends-on): Add strcase.
118316         * modules/gethostname (Licence): Change from GPL to LGPL, since
118317         gethostname.c is a trivial implementation of a standard library
118318         function.
118319         * modules/poll (License): Change from GPL to LGPL, since it's
118320         derived from LGPL code.
118322 2005-09-27  Jim Meyering  <jim@meyering.net>
118324         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
118325         HAVE_CONFIG_H.
118327         * lib/intprops.h (signed_type_or_expr__): Define.
118328         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
118329         for unsigned types.
118331 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
118333         * lib/verify.h (verify_expr): Remove, replacing with:
118334         (verify_true): New macro that returns true instead of void.
118335         (verify_type__): Remove.
118336         (verify): Use verify_true rather than verify_type__.
118338 2005-09-26  Bruno Haible  <bruno@clisp.org>
118340         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
118341         is necessary.
118342         (lib_SOURCES): Remove mbchar.c.
118343         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
118344         (Files): Add m4/mbrtowc.m4.
118345         * modules/mbiter: Likewise.
118346         * modules/mbuiter: Likewise.
118348 2005-09-26  Bruno Haible  <bruno@clisp.org>
118350         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
118351         compile mbchar.c if they are not both present.
118352         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
118353         * m4/mbiter.m4 (gl_MBITER): Likewise.
118354         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
118355         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
118356         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
118358 2005-09-25  Jim Meyering  <jim@meyering.net>
118360         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
118361         also uses socklen_t.
118363 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
118365         * lib/utimens.c (ENOSYS): Define if not already defined.
118366         (futimens): Support having a null PATH if the file descriptor
118367         is nonnegative.
118369         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
118370         Remove.
118371         (__attribute): Define to empty unless GCC 3.1 or later.
118372         This works around a core dump on OpenBSD 3.4, which has GCC
118373         2.95.3, which dumps core when given __attribute__(()).  It also
118374         simplifies other tests, since we really don't want to bother with
118375         worrying about which ancient version of GCC supported what.
118376         Original problem reported by Yoann Vandoorselaere, with part of
118377         the fix suggested by Derek Price.
118379 2005-09-24  Jim Meyering  <jim@meyering.net>
118381         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
118382         so we can once again use a positive bitfield width of 1 -- now we
118383         don't have to explain why we were using a bitfield width of 2.
118385 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
118387         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
118388         and similarly for the other external symbols.  Problem reported
118389         by James Gallager.
118391         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
118392         bug reported by Jim Meyering.
118394         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
118395         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
118396         not needed, since socklen is a prerequisite module.
118398 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
118400         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
118401         Problem reported by Eric Blake.
118402         (getaddrinfo): Initialize se so that it's not garbage.
118403         Redo internal storage allocation so that it doesn't make unportable
118404         assumptions about alignment.
118405         Fix a memory leak.
118407         * lib/utimens.c (futimens): Use futimesat if available.
118408         Prefer it to futimes since it doesn't have the futimes bug.
118410         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
118411         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
118412         Instead, declare a function that returns a pointer to an array,
118413         and use verify_type__ to declare the size of the array.
118414         Problem and germ of a solution reported by Bruno Haible.
118415         (verify_type__): Use 2, not 1, for bitfield size, to avoid
118416         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
118418 2005-09-23  Jim Meyering  <jim@meyering.net>
118420         Sync from coreutils.
118421         Correct build failure (socklen_t not defined) on at least
118422         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
118423         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
118425 2005-09-23  Jim Meyering  <jim@meyering.net>
118427         * modules/getaddrinfo (Depends-on): Add socklen.
118429 2005-09-23  Bruno Haible  <bruno@clisp.org>
118431         * tests/test-verify.c: New file.
118433 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
118435         Sync from coreutils.
118437         * modules/argmatch (Depends-on): Add verify.
118438         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
118439         unistd-safer.
118440         * modules/save-cwd (Depends-on): Likewise.
118442         * modules/openat (Files): Add lib/openat-die.c.
118443         (Depends-on): Remove error, exitfail.
118444         Add dirname.
118446         * modules/verify: New file.
118447         * MODULES.html.sh (Diagnostics <assert.h>): New section,
118448         with "verify" module.
118450 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
118452         Sync from coreutils.
118454         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
118455         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
118456         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
118457         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
118458         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
118459         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
118460         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
118461         Don't bother checking for string.h, stdlib.h, unistd.h.
118462         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
118463         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
118464         module's job.
118465         * m4/jm-macros.m4 (gl_MACROS): Likewise.
118466         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
118468         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
118469         (gl_GETDATE): Use it.
118471         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
118473 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
118475         Sync from coreutils.
118477         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
118478         stat-time.h.
118479         * lib/argmatch.h: Include verify.h
118480         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
118481         (ARGMATCH_ASSERT): Remove; unused.
118482         * lib/canonicalize.c: Assume STDC_HEADERS.
118483         * lib/exclude.c: Include "strcase.h".
118484         * lib/regex_internal.h [!defined _LIBC]: Likewise.
118485         * lib/getusershell.c: Include stdio--.h rather than stdio.h
118486         and stdio-safer.h.
118487         (getusershell): Call fopen, not fopen_safer.
118488         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
118489         Do not include unistd-safer.h.
118490         (save_cwd): Don't call fd_safer; no longer needed
118491         now that we include fcntl--.h.
118493         * lib/getdate.y (relative_time): New type.
118494         (RELATIVE_TIME_0): New constant.
118495         (parser_control): Use relative_time instead of doing it ourselves.
118496         (%union): Add new relative_time rel member.
118497         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
118498         Now typeless.
118499         (relunit, relunit_snumber): Now of type rel.
118500         (zone, rel, relunit, get_date): Adjust to above changes.
118502         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
118503         Do not include unistd-safer.h.
118504         (getloadavg): Don't call fd_safer; no longer needed
118505         now that we include fcntl--.h.
118507         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
118508         (make_dir_parents): Treat ENOSYS like EEXIST.
118510         Improve quality of diagnostics on restore_cwd failure.
118511         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
118512         (make_dir_parents): Last arg is now int * (for errno), not bool *.
118513         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
118514         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
118515         each time through the loop.  Do not diagnose restore_cwd failure;
118516         that is the caller's job (and perhaps the caller does not care).
118518         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
118519         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
118520         If the file already exists but is not a directory, don't bother
118521         to try to make its parents.
118522         Close potential file descriptor leak if we can't chdir("/") (!).
118523         Don't always return true if chdir($PWD) fails; return true only
118524         if the requested action was done successfully (except for the
118525         chdir($PWD)).
118526         Don't log final directory unless we actually made it.
118527         Refactor to avoid duplicate code to fix up permissions.
118528         Don't attempt to fix up parent permissions if chdir($PWD) fails.
118530         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
118531         to make it a bit faster and (I hope) clearer.
118532         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
118533         Fix bug in formats like %2N.
118535         * lib/verify.h: New file.
118537 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
118539         Sync from coreutils.
118540         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
118542 2005-09-22  Jim Meyering  <jim@meyering.net>
118544         Sync from coreutils.
118546         * m4/lstat.m4 (gl_FUNC_LSTAT):
118547         Use AC_LIBSOURCES to require lstat.c and lstat.h.
118548         Remove obsolete comment.
118549         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
118550         * m4/xstrtod.m4: Likewise.
118552         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
118554 2005-09-22  Jim Meyering  <jim@meyering.net>
118556         Sync from coreutils.
118558         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
118560         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
118561         the .tm_year member, since otherwise gcc-4.0 would now warn about
118562         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
118564         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
118565         order to avoid an unsuppressible warning from gcc on 64-bit systems.
118567         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
118568         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
118569         when run in a time zone for which daylight savings time is in effect
118570         for the starting date.
118572         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
118573         stop us from restricting permissions of just-created absolute-named
118574         directories.
118575         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
118576         to restore initial working directory.
118577         * lib/mkdir-p.c (make_dir_parents): New parameter:
118578         different_working_dir, to tell caller if/when we change the working
118579         directory and are unable to return to the initial one.
118580         * lib/mkdir-p.h (make_dir_parents): Update prototype.
118581         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
118582         `return false'.  This fixes a bug introduced on 2004-07-30.
118584         * lib/openat.c (fdopendir): Be sure to close the supplied
118585         file descriptor before returning.  This makes our replacement
118586         implementation a little closer to Solaris's, where fdopendir
118587         ties the file descriptor to the returned DIR* pointer.
118588         * lib/openat.c (unlinkat): New function.
118589         * lib/openat.h (unlinkat): Add prototype.
118590         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
118591         (openat_restore_fail): Rename from openat_restore_die.
118592         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
118594         Provide an alternative to exiting immediately upon save_cwd or
118595         restore_cwd failure.  Now, an application can arrange e.g.,
118596         to perform a longjump in that case.
118597         * lib/openat.c: Include dirname.h.
118598         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
118599         (rpl_openat, fdopendir, fstatat): Call openat_save_die
118600         and openat_restore_die rather than calling error directly.
118601         Don't include "error.h" or "exitfail.h"; they're no longer needed.
118603         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
118604         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
118605         define.
118607         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
118608         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
118609                             int utc, int nanoseconds);
118610         Background:
118611         date should not have to allocate a megabyte of virtual memory to
118612         handle a format argument like +%1048575T.  When implemented with
118613         strftime, it must allocate such a buffer, use strftime to fill it
118614         in, print it, then free it.
118615         With fprintftime, it simply prints everything and exits.
118616         With no need for memory allocation, that's one fewer way to fail.
118617         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
118618         optional field width, not before, so we accept %9:z, not %:9z.
118619         (my_strftime): Be sure to use L_('x') for literals.
118621         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
118622         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
118623         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
118624         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
118625         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
118626         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
118627         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
118628         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
118629         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
118630         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
118631         * lib/xgethostname.c, lib/xreadlink.c:
118632         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
118634         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
118635         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
118636         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
118637         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
118638         and don't include <sys/file.h>).
118640 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
118642         Sync from coreutils.
118644         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
118645         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
118646         [!LDAV_DONE]: Avoid unused variable warning.
118648 2005-09-21  Bruno Haible  <bruno@clisp.org>
118650         * lib/unicodeio.h (unicode_to_mb): New declaration.
118652 2005-09-20  Derek Price  <derek@ximbiot.com>
118654         * lib/getaddrinfo.c: Don't include <netdb.h> included from
118655         getaddrinfo.h.
118657 2005-09-20  Bruno Haible  <bruno@clisp.org>
118659         * gnulib-tool: Remove trailing slashes from the values specified for
118660         --source-base, --m4-base, --tests-base, --aux-dir.
118661         Suggested by Simon Josefsson <jas@extundo.com>.
118663 2005-09-20  Bruno Haible  <bruno@clisp.org>
118665         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
118666         func_modules_to_filelist, func_import, func_create_testdir): Make all
118667         sorting results locale-independent, so that gnulib-cache.m4 doesn't
118668         change when gnulib-tool is invoked in a different locale.
118670 2005-09-19  Simon Josefsson  <jas@extundo.com>
118672         * m4/socklen.m4: Fix typo.
118674 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
118676         Use a consistent style for including <config.h>.
118677         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
118678         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
118679         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
118680         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
118681         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
118682         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
118683         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
118684         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
118685         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
118686         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
118687         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
118688         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
118689         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
118690         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
118691         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
118692         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
118693         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
118694         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
118695         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
118696         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
118697         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
118698         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
118699         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
118700         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
118701         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
118702         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
118703         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
118704         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
118705         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
118706         lib/xstrtoumax.c, lib/yesno.c:
118707         Standardize inclusion of config.h.
118708         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
118709         lib/inttostr.h:  Removed inclusion of config.h from header files.
118710         * lib/inttostr.c:  Adjusted in-tree users.
118711         * lib/timespec.h: Remove superfluous warning to include config.h.
118712         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
118713         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
118714         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
118715         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
118716         config.h with HAVE_CONFIG_H.
118718 2005-09-19  Jim Meyering  <jim@meyering.net>
118720         * modules/pathmax (License): Change to LGPL.
118722 2005-09-19  Derek Price  <derek@ximbiot.com>
118724         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
118726 2005-09-19  Bruno Haible  <bruno@clisp.org>
118728         * gnulib-tool (import): Provide default for --tests-base.
118730 2005-09-19  Bruno Haible  <bruno@clisp.org>
118732         * doc/quote.texi: New file, extracted from gnulib.texi.
118733         * doc/ctime.texi: New file, extracted from gnulib.texi.
118734         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
118735         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
118736         * doc/gnulib.texi: Include them.
118738 2005-09-18  Bruno Haible  <bruno@clisp.org>
118740         Portability fix.
118741         * gnulib-tool (func_readlink): New function.
118742         (func_ln_if_changed): Use it.
118744 2005-09-18  Bruno Haible  <bruno@clisp.org>
118746         * gnulib-tool: Support --with-tests also with --import.
118747         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
118748         (func_import): Use variables $testsbase and $inctests. Emit a
118749         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
118750         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
118751         SUBDIRS += $testsdir.
118752         (func_create_testdir): Update.
118754 2005-09-18  Bruno Haible  <bruno@clisp.org>
118756         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
118757         instead of $dry_run.
118758         (func_cp_if_changed, func_mv_if_changed): Remove functions.
118759         (func_ln_if_changed): Don't handle dry-run here.
118760         (func_import): In dry-run mode, detect more precisely which actions
118761         would be performed, and don't use "...ing" verbs.
118763 2005-09-18  Bruno Haible  <bruno@clisp.org>
118765         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
118766         (func_import): Use join on two temporary files instead of three nested
118767         loops, in order to determine which files are new or old.
118769 2005-09-18  Bruno Haible  <bruno@clisp.org>
118771         * gnulib-tool (func_import): Comment out code that spits out the
118772         new files with --dry-run.
118774 2005-09-18  Bruno Haible  <bruno@clisp.org>
118776         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
118778 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
118780         * lib/stat-time.h: New file.
118781         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
118782         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
118783         in a different way.
118784         (timespec_cmp): New function.
118785         * lib/utimecmp.c: Include stat-time.h.
118786         (SYSCALL_RESOLUTION): Depend on whether various struct stat
118787         members exist, not on the obsolescent ST_MTIM_NSEC.
118788         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
118790 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
118792         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
118794 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
118796         * MODULES.html.sh (File system functions): Add stat-time.
118797         * modules/stat-time: New file.
118798         * modules/timespec (Files): Remove m4/st_mtim.m4; this
118799         is now done in a different way, by the stat-time module.
118800         * modules/utimecmp (Depends-on): Add stat-time.
118802 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
118804         * m4/st_mtim.m4: Remove.  Superseded by...
118805         * m4/stat-time.m4: New file.
118806         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
118807         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
118809 2005-09-15  Derek Price  <derek@ximbiot.com>
118811         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
118813 2005-09-15  Derek Price  <derek@ximbiot.com>
118815         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
118816         * lib/regex_internal.c: Ditto, using this...
118817         (__GNUC_PREREQ): ...new macro.
118818         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
118819         using...
118820         (__GNUC_PREREQ): ...this new macro.
118822         * lib/strstr.h: Include string.h. Define strstr as a macro here.
118824 2005-09-15  Derek Price  <derek@ximbiot.com>
118825             Paul Eggert  <eggert@cs.ucla.edu>
118827         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
118828         changes, consolidating in...
118829         * lib/regex_internal.h: ...this file.
118831 2005-09-13  Jim Meyering  <jim@meyering.net>
118833         * lib/canon-host.c: Filter through gnu indent and reword comments
118834         slightly.
118835         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
118837 2005-09-13  Derek Price  <derek@ximbiot.com>
118839         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
118840         failure.
118841         Reported by Jim Meyering  <jim@meyering.net>.
118843 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
118845         * lib/base64.c: Typo.
118846         (base64_encode): Put b64str in initialized data section.
118848 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
118850         Merge glibc and coreutils changes into gnulib, plus a few
118851         extra fixes.
118852         * lib/md5.c: Use #error rather than a string.
118853         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
118854         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
118855         (__attribute__): Define to empty for non recent-GCC.
118856         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
118857         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
118858         Renamed from their non-__ counterparts, with new macros replacing
118859         them if not _LIBC.  Add __THROW attribute.
118860         (rol): Remove.
118861         (struct md5_ctx): Align buffer if using GCC.
118862         * lib/sha1.h (struct sha1_ctx): Likewise.
118863         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
118864         The old name was backwards.
118865         (NOTSWAP): Remove; not used.
118866         (rol): New macro, moved here from md5.h.
118867         (sha1_process_block): Remove a FIXME that doesn't make sense.
118869 2005-09-12  Derek Price  <derek@ximbiot.com>
118871         Return usable errors from canon-host.
118872         * lib/canon-host.h: New file.
118873         * lib/canon-host.c (canon_host): Wrap...
118874         (canon_host_r): ...this new function, which now relies exclusively on
118875         getaddrinfo.
118876         (ch_strerror): New function.
118877         (last_cherror): New global.
118878         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
118879         interface.
118880         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
118881         void *.
118882         (freeaddrinfo): Free ai->ai_canonname when set.
118884 2005-09-12  Derek Price  <derek@ximbiot.com>
118886         Make canon-host require getaddrinfo.
118887         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
118888         AC_LIBSOURCE canon-host.h.  Call...
118889         (gl_PREREQ_CANON_HOST): ...this new function, which requires
118890         gl_GETADDRINFO.
118891         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
118893 2005-09-12  Derek Price  <derek@ximbiot.com>
118895         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
118896         LGPL.
118897         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
118899 2005-09-12  Derek Price  <derek@ximbiot.com>
118901         * lib/gai_strerror.c: Include config.h when available.  Include
118902         getaddrinfo.h before other headers to test interface.
118903         Reported by Larry Jones <lawrence.jones@ugs.com>.
118905 2005-09-12  Derek Price  <derek@ximbiot.com>
118906             Paul Eggert  <eggert@cs.ucla.edu>
118908         * modules/glob (Files): Add glob-libc.h.
118910 2005-09-12  Derek Price  <derek@ximbiot.com>
118911             Paul Eggert  <eggert@cs.ucla.edu>
118913         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
118914         glob_.h, glob-libc.h.
118915         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
118917 2005-09-12  Derek Price  <derek@ximbiot.com>
118918             Paul Eggert  <eggert@cs.ucla.edu>
118920         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
118921         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
118922         protecting things that should be done only in gnulib contexts.
118923         * lib/glob_.h: New file, containing only the glob things needed for
118924         gnulib.
118925         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
118926         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
118927         (glob, globfree, glob_pattern_p): Now defined simply in terms of
118928         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
118929         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
118930         and to respect the namespace rules better.
118932 2005-09-08  Simon Josefsson  <jas@extundo.com>
118934         * modules/socklen: New file.
118936 2005-09-08  Simon Josefsson  <jas@extundo.com>
118938         * m4/socklen.m4: New file.
118940 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
118942         * modules/utimens (Files): Add m4/utimbuf.m4, since
118943         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
118944         Reported by Sergey Poznyakoff.
118946 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
118948         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
118949         definitions, since that's the preferred style in glibc.
118950         Fix a minor spacing issue, and update copyright notice to match
118951         glibc's.
118953 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
118955         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
118957 2005-09-06  Simon Josefsson  <jas@extundo.com>
118959         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
118960         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
118962 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
118964         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
118965         warning.
118967 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
118969         * config/srclist.txt: Add glibc bug 1302.
118971 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
118973         Change bitset word type from unsigned int to unsigned long int,
118974         as this has better performance on typical 64-bit hosts.
118975         Port bitset code to hosts with unusual word sizes.
118976         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
118977         (build_collating_symbol):
118978         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
118979         argument is a bitset.  This is merely a style issue, but it makes
118980         it clearer that an entire array is expected.
118981         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
118982         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
118983         Port to the case where bitset_word is not the same as unsigned int.
118984         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
118985         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
118986         Likewise.
118987         * lib/regexec.c (check_dst_limits_calc_pos_1,
118988         check_subexp_matching_top):
118989         (build_trtable, group_nodes_into_DFAstates):
118990         Likewise.
118991         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
118992         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
118993         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
118994         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
118995         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
118996         * lib/regcomp.c (optimize_subexps, lower_subexp):
118997         Work even if bitset_word has holes in its bitwise representation.
118998         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
118999         * lib/regexec.c (check_dst_limits_calc_pos_1,
119000         check_subexp_matching_top):
119001         Likewise.
119002         * lib/regex_internal.c (re_string_reconstruct):
119003         Don't assume UCHAR_MAX == 255.
119004         * lib/regex_internal.h (bitset_set_all): Likewise.
119005         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
119006         All uses changed.
119007         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
119008         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
119009         All uses changed.
119010         (BITSET_WORD_MAX): New macro.
119011         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
119012         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
119013         (bitset_empty, bitset_copy):
119014         Prefer sizeof (bitset) to multiplying it out ourselves.
119015         (bitset_not_merge): Remove; unused.
119016         (bitset_contain): Return bool, not unsigned int with one bit on.
119017         All callers changed.
119018         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
119019         alignment than re_node_set; do this by defining a new internal
119020         type struct dests_alloc and using it to allocate memory.
119022 2005-09-05  Bruno Haible  <bruno@clisp.org>
119024         * gnulib-tool (func_import): Fix comparison in handling of symbolic
119025         links.
119027 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
119029         * modules/size_max (Makefile.am): Add size_max.h
119031 2005-09-04  Derek Price  <derek@ximbiot.com>
119033         * gnulib-tool (func_import): Fix reversed $symbolic logic.
119035 2005-09-03  Simon Josefsson  <jas@extundo.com>
119037         * gnulib-tool: Fix typo.
119039 2005-09-03  Simon Josefsson  <jas@extundo.com>
119041         * config/srclist.txt: Add glibc bug 1293.
119043 2005-09-03  Derek Price  <derek@ximbiot.com>
119045         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
119046         From Larry Jones <lawrence.jones@ugs.com>.
119048 2005-09-02  Simon Josefsson  <jas@extundo.com>
119050         * modules/socklen: New file.
119052 2005-09-02  Simon Josefsson  <jas@extundo.com>
119054         * modules/havelib: New module.
119056         * modules/gettext, modules/iconv, modules/lock, modules/readline:
119057         Use havelib.
119059 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
119061         Check for arithmetic overflow when calculating sizes, to prevent
119062         some buffer-overflow issues.  These patches are conservative, in the
119063         sense that when I couldn't determine whether an overflow was possible,
119064         I inserted a run-time check.
119065         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
119066         macros.
119067         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
119068         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
119069         (re_xnrealloc, re_x2nrealloc): New inline functions.
119070         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
119071         parse_bracket_exp):
119072         (build_equiv_class, build_charclass): Check for arithmetic overflow
119073         in size expression calculations.
119074         * lib/regex_internal.c (re_string_realloc_buffers):
119075         (build_wcs_upper_buffer, re_node_set_add_intersect):
119076         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
119077         (re_dfa_add_node, register_state): Likewise.
119078         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
119079         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
119080         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
119081         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
119083 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
119085         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
119086         m4/ulonglong.m4.  Problem reported by Martin Lambers.
119088 2005-09-02  Bruno Haible  <bruno@clisp.org>
119090         Support for lib vs. lib64 distinction on biarch platforms.
119091         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
119092         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
119093         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
119095 2005-09-02  Bruno Haible  <bruno@clisp.org>
119097         * gnulib-tool (import): In the other first-use case, provide defaults
119098         as well.
119100 2005-09-02  Bruno Haible  <bruno@clisp.org>
119102         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
119103         patches not yet found in the latest gettext release.
119105 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
119107         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
119108         to avoid a collision with bits/local_lim.h in glibc.
119109         All uses changed.  Problem reported by Dmitry V. Levin in
119110         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
119112         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
119113         bugs in int versus size_t comparisons.
119114         (re_string_context_at): Fix bug where the code assumed that
119115         Idx is signed.
119117         Use bool where appropriate.
119118         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
119119         All callers changed.
119120         (calc_eclosure_iter): Likewise, for ROOT arg.
119121         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
119122         (build_charclass_op): Likewise, for NON_MATCH arg.
119123         * lib/regex_internal.c (re_string_allocate, re_string_construct):
119124         (re_string_construct_common): Likewise, for ICASE arg.
119125         * lib/regexec.c (re_search_2_stub, re_search_stub):
119126         Likewise, for RET_LEN arg.
119127         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
119128         (set_regs): Likewise, for FL_BACKTRACK arg.
119129         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
119130         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
119131         (calc_eclosure_iter, parse_bracket_exp):
119132         Use bool for internal variables that are booleans.
119133         * lib/regexec.c (re_search_internal, check_matching,
119134         proceed_next_node):
119135         (set_regs, build_sifted_states, sift_states_bkref):
119136         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
119137         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
119138         (find_collation_sequence_value):
119139         Likewise.
119140         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
119141         (re_node_set_compare):
119142         Return bool, not int. All callers changed.
119143         * lib/regexec.c (check_halt_node_context, check_dst_limits):
119144         (build_trtable, check_node_accept): Likewise.
119145         * lib/regex_internal.h: Include stdbool.h.
119147         Fix bugs uncovered when converting to bool.
119148         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
119149         failure instead of charging ahead blindly.
119150         * lib/regex_internal.c (register_state): Likewise.
119151         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
119152         for freeing internal storage.
119153         (group_nodes_into_DFA_states): Use unsigned int, not int, for
119154         bitset pieces used as boolean, to avoid undefined behavior
119155         on hosts that do int overflow checking.
119157 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
119159         * config/srclist.txt: Add glibc bugs 1285-1287.
119161 2005-09-01  Jim Meyering  <jim@meyering.net>
119163         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
119164         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
119165         Require gl_STAT_MACROS, too.
119167 2005-09-01  Bruno Haible  <bruno@clisp.org>
119169         * gnulib-tool (import): In the first-use case, provide defaults.
119171 2005-09-01  Bruno Haible  <bruno@clisp.org>
119173         * gnulib-tool (func_import): Remove the .tmp files.
119175 2005-09-01  Bruno Haible  <bruno@clisp.org>
119177         * gnulib-tool (func_import): Fix handling of symbolic links.
119179 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119181         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
119182         old glibc regex code mishandles strings longer than 2**31 bytes.
119183         This patch fixes this when the regex code is used in gnulib
119184         (i.e., outside glibc).
119186         This patch should not affect the use of the regex code inside
119187         glibc.  No doubt this problem also needs to be handled for glibc
119188         as well, but the result will be an incompatible change to the
119189         glibc ABI, and the old ABI will have to be supported too.  That
119190         can be the subject for another patch.
119192         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
119193         governing whether the rest of this patch is active.  By default,
119194         the macro is disabled and the patch has no effect.
119195         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
119196         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
119197         (struct re_pattern_buffer, re_search, re_search_2, re_match):
119198         (re_match_2, re_set_registers): Use the new types.
119199         * lib/regex_internal.h (Idx, re_hashval_t): New types.
119200         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
119201         New macros.
119202         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
119203         (re_string_context_at, bin_tree_t, re_dfastate_t):
119204         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
119205         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
119206         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
119207         (re_string_char_size_at, re_string_wchar_at):
119208         (re_string_elem_size_at):
119209         Use the new types and macros to port to 64-bit hosts.
119210         Use unsigned types for internal values, so that the code
119211         mostly works even for arrays larger than SSIZE_MAX.
119212         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
119213         (search_duplicated_node, calc_eclosure_iter, fetch_number):
119214         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
119215         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
119216         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
119217         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
119218         (calc_inveclosure, parse_dup_op, build_range_exp):
119219         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
119220         (fetch_number, create_token_tree, mark_opt_subexp):
119221         Likewise.
119222         * lib/regex_internal.c (re_string_construct_common,
119223         create_ci_newstate):
119224         (create_cd_newstate, re_string_allocate, re_string_construct):
119225         (re_string_realloc_buffers, build_wcs_upper_buffer):
119226         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
119227         (re_string_reconstruct, re_string_peek_byte_case):
119228         (re_string_fetch_byte_case, re_string_context_at):
119229         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
119230         (re_node_set_init_copy, re_node_set_add_intersect):
119231         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
119232         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
119233         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
119234         (re_acquire_state, re_acquire_state_context, register_state):
119235         Likewise.
119236         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
119237         search_cur_bkref_entry):
119238         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
119239         (re_search_internal, re_search_2_stub, re_search_stub)
119240         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
119241         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
119242         (update_cur_sifted_state, check_dst_limits):
119243         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
119244         (check_subexp_limits, sift_states_bkref, merge_state_array):
119245         (check_subexp_matching_top, get_subexp, get_subexp_sub):
119246         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
119247         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
119248         (expand_bkref_cache, check_node_accept_bytes):
119249         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
119250         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
119251         (acquire_init_state_context, check_halt_node_context):
119252         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
119253         (sift_states_backward, clean_state_log_if_needed):
119254         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
119255         (find_recover_state, transit_state_sb, transit_state_mb):
119256         (transit_state_bkref, build_trtable, match_ctx_clean):
119257         Likewise.
119258         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
119259         to work around an assumption that REG_MISSING is negative.
119261         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
119262         (seek_collating_symbol_entry) [defined _LIBC]:
119263         (lookup_collation_sequence_value) [defined _LIBC]:
119264         (build_range_exp, build_collating_symbol) [defined _LIBC]:
119265         Use prototypes rather than old-style function definitions.
119266         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
119267         (transit_state_sb) [0]:
119268         (find_collation_sequence_value) [defined _LIBC]: Likewise.
119270         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
119271         rm_eo.
119273         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
119274         (optimize_subexps, lower_subexp):
119275         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
119276         since the signed shift might overflow.  Use 1u<<31 instead.
119277         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
119278         Likewise.
119279         * lib/regexec.c (check_dst_limits_calc_pos_1,
119280         check_subexp_matching_top): Likewise.
119282         * lib/regcomp.c (optimize_subexps, lower_subexp):
119283         Use CHAR_BIT rather than 8, for clarity.
119284         * lib/regexec.c (check_dst_limits_calc_pos_1):
119285         (check_subexp_matching_top): Likewise.
119286         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
119287         have to worry about portability issues when shifting it left.
119288         Remove no-longer-needed test for table_size > 0.
119289         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
119290         in a word, as the resulting behavior is undefined.
119291         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
119292         in one case, a <= should have been an <, and in another case the
119293         whole test was missing.
119294         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
119295         the standard name CHAR_BIT.
119296         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
119297         this is not true on one's complement and signed-magnitude hosts.
119299         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
119300         next_last_offset.
119301         (struct re_dfa_t): Remove unused member states_alloc.
119302         * lib/regcomp.c (init_dfa): Don't initialize unused members.
119304 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119306         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
119307         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
119308         and large-file glibc and in 32-bit large-file Solaris.
119310 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119312         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
119313         lengths fit in regoff_t; this isn't true if regoff_t is the same
119314         width as size_t.
119315         * lib/regex.c (re_search_internal): 5th arg is LAST_START
119316         (= START + RANGE) instead of RANGE.  This avoids overflow
119317         problems when regoff_t is the same width as size_t.
119318         All callers changed.
119319         (re_search_2_stub): Check for overflow when adding the
119320         sizes of the two strings.
119321         (re_search_stub): Check for overflow when adding START
119322         to RANGE; if it occurs, substitute the extreme value.
119324 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
119326         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
119328 2005-08-31  Jim Meyering  <jim@meyering.net>
119330         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
119331         a pointer-to-const.
119332         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
119333         (register_state): Likewise.
119334         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
119335         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
119336         (group_nodes_into_DFAstates): Likewise.
119338 2005-08-31  Jim Meyering  <jim@meyering.net>
119340         * check-module: Add a FIXME comment.
119342 2005-08-31  Eric Blake  <ebb9@byu.net>
119344         * modules/unistd-safer (Files): Add unistd--.h.
119345         * modules/stdio-safer (Files): Add stdio--.h.
119347 2005-08-31  Derek Price  <derek@ximbiot.com>
119349         * lib/getdelim.c (getdelim): Return EOF on EOF.
119350         Reported by Larry Jones <lawrence.jones@ugs.com>.
119352 2005-08-31  Bruno Haible  <bruno@clisp.org>
119354         Avoid unnecessary diffs in the generated lib/Makefile.am.
119355         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
119356         the generated files.
119357         (func_import): Don't set cmd.
119359 2005-08-31  Bruno Haible  <bruno@clisp.org>
119361         * lib/strstr.c: Include <stddef.h>, for NULL.
119362         * lib/strcasestr.c: Likewise.
119363         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
119365 2005-08-31  Bruno Haible  <bruno@clisp.org>
119367         * gnulib-tool: New option --macro-prefix.
119368         (func_import): Use macro_prefix.
119369         (import): Handle option --macro-prefix.
119371 2005-08-31  Bruno Haible  <bruno@clisp.org>
119373         * gnulib-tool (import): Rename most ac_* variables to cached_*.
119374         Also use new variables cached_lgpl, cached_libtool.
119376 2005-08-31  Bruno Haible  <bruno@clisp.org>
119378         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
119379         always instantiating them.
119381 2005-08-31  Bruno Haible  <bruno@clisp.org>
119383         * gnulib-tool (func_import): Read the previous cached settings
119384         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
119385         earlier added by gnulib but are now dropped. Warn when a gnulib file
119386         overwrites a non-gnulib file.
119388 2005-08-31  Bruno Haible  <bruno@clisp.org>
119390         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
119391         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
119392         projects that don't keep autogenerated files in CVS. Put into
119393         actioncmd only the specified modules, not the transitive closure.
119395 2005-08-31  Bruno Haible  <bruno@clisp.org>
119397         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
119398         Create directories that shall be filled.
119399         (import): Don't look for gl_* macros in configure.ac. Recurse across
119400         all directories containing a gnulib-cache.m4 files, if meaningful.
119402 2005-08-31  Bruno Haible  <bruno@clisp.org>
119404         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
119405         (import): Set seen_libtool when we see gl_LIBTOOL.
119407 2005-08-31  Bruno Haible  <bruno@clisp.org>
119409         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
119410         declaration macro definitions from generated gnulib.m4.
119412 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
119414         * lib/iconvme.h: Add prototype for iconv_alloc.
119416 2005-08-29  Simon Josefsson  <jas@extundo.com>
119418         * lib/iconvme.c: Fix errno.
119420 2005-08-29  Bruno Haible  <bruno@clisp.org>
119422         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
119423         that it works when the directory contains spaces.
119425 2005-08-29  Bruno Haible  <bruno@clisp.org>
119427         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
119429 2005-08-29  Bruno Haible  <bruno@clisp.org>
119431         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
119432         Emit more advice.
119434 2005-08-29  Bruno Haible  <bruno@clisp.org>
119435         and Stepan Kasal  <kasal@ucw.cz>
119437         * check-module: If more parameters are given, check each of them
119438         separately; add more exceptions, as noted by Jim Meyering.
119439         (check_module): New procedure.
119440         (%exempt_header): Now contains all exceptions.
119442 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
119444         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
119446 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
119448         * lib/iconvme.c: Split iconv_string into iconv_alloc.
119450 2005-08-28  Bruno Haible  <bruno@clisp.org>
119452         * m4/gnulib-tool.m4: New file.
119454 2005-08-27  Jim Meyering  <jim@meyering.net>
119456         * modules/unistd-safer (Files): Add pipe-safer.c.
119457         * modules/fcntl-safer (Files): Add creat-safer.c.
119459 2005-08-27  Jim Meyering  <jim@meyering.net>
119461         * m4/stdlib-safer.m4: New file.  From coreutils.
119462         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
119463         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
119464         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
119465         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
119466         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
119468 2005-08-27  Jim Meyering  <jim@meyering.net>
119470         * lib/fopen-safer.c: Merge minor changes from coreutils.
119471         * lib/dup-safer.c: Likewise.
119472         * lib/fd-safer.c: Likewise.
119474         Merge from coreutils.
119475         * lib/stdio--.h: New file.
119476         * lib/stdlib--.h: New file.
119477         * lib/mkstemp-safer.c: New file.
119479         GNU tar needs these.
119480         * lib/pipe-safer.c: New file.
119481         * lib/creat-safer.c: New file.
119482         * lib/fcntl--.h (creat): Define to creat_safer.
119483         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
119484         * lib/unistd--.h (pipe): Define to pipe_safer.
119485         * lib/unistd-safer.h: Declare pipe_safer.
119487 2005-08-26  Simon Josefsson  <jas@extundo.com>
119489         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
119490         Haible <bruno@clisp.org>.
119492 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
119494         * lib/regex_internal.h: Remove all references to
119495         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
119496         or better.
119497         (bitset_not, bitset_merge, bitset_not_merge):
119498         (bitset_mask, re_string_allocate, re_string_construct):
119499         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
119500         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
119501         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
119502         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
119503         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
119504         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
119505         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
119506         (re_acquire_state_context):
119507         Remove unnecessary forward decls.
119508         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
119509         Put __attribute at function definition,
119510         now that the function decl has been removed.
119511         * lib/regex_internal.c (re_string_peek_byte_case):
119512         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
119513         Likewise.
119515 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
119517         * m4/regex.m4: Add AC_PREREQ(2.50).
119518         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
119520 2005-08-25  Simon Josefsson  <jas@extundo.com>
119522         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
119523         __fsetlocking.
119525 2005-08-25  Simon Josefsson  <jas@extundo.com>
119527         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
119528         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
119529         GLIBC specific code.
119531 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
119533         Make regex safe for g++.  This fixes one real bug (an "err"
119534         that should have been "*err").  g++ problem reported by
119535         Sam Steingold.
119536         * lib/regex_internal.h (re_calloc): New macro, consistent with
119537         re_malloc etc.  All callers of calloc changed to use re_calloc.
119538         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
119539         not int.  All callers changed.
119540         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
119541         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
119542         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
119543         (find_recover_state): Change "err" to "*err"; this fixes what
119544         appears to be a real bug.
119545         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
119546         versus int.
119548 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
119550         * modules/regex (Depends-on): Add malloc, since the code
119551         assumes that !malloc(0) means failure.
119553 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
119555         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
119557         alloca modernization/simplification for regex.
119558         * lib/regex.c: Remove portability cruft for alloca.  This no longer
119559         needs to be at the start of the file, and can be moved into
119560         regex_internal.h and simplified.
119561         * lib/regex_internal.h: Include <alloca.h>.
119562         (__libc_use_alloca) [!defined _LIBC]: New macro.
119563         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
119564         now works outside glibc.
119566 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
119568         * config/srclist.txt: Add glibc bugs 1241, 1245.
119570 2005-08-25  Jim Meyering  <jim@meyering.net>
119572         * lib/open-safer.c: Include <config.h>.
119573         Otherwise, we'd lose LARGEFILE support in any file using
119574         e.g. "fcntl--.h"
119576 2005-08-25  Bruno Haible  <bruno@clisp.org>
119578         * m4/minmax.m4: Require autoconf 2.52.
119579         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
119580         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
119581         alternatives of translit over the alphabet.
119582         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
119584 2005-08-24  Simon Josefsson  <jas@extundo.com>
119586         * tests/test-getpass.c: New file.
119588 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
119590         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
119591         for GNU regex features.
119593 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
119595         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
119596         * lib/regex.h (regerror): Likewise.
119598         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
119599         requires this.  (The code never needed it.)
119601         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
119602         All uses of recently-renamed identifiers changed to use the new,
119603         POSIX-compliant names.  The code will build and run just fine
119604         without these changes, but it's better to eat our own dog food
119605         and use the standard-conforming names.
119607         * lib/regex.h: Fix a multitude of POSIX name space violations.
119608         These changes have an effect only for programs that define
119609         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
119610         do not change anything for programs compiled in the normal way.
119611         Also, there is no effect on the ABI.
119613         (_REGEX_SOURCE): New macro.
119614         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
119615         defined and _GNU_SOURCE is not; this fixes a name space violation.
119617         Rename the following macros to obey POSIX requirements.
119618         The old names are still visible as macros if _REGEX_SOURCE is defined.
119619         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
119620         RE_BACKSLASH_ESCAPE_IN_LISTS.
119621         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
119622         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
119623         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
119624         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
119625         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
119626         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
119627         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
119628         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
119629         (REG_INTERVALS): renamed from RE_INTERVALS.
119630         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
119631         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
119632         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
119633         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
119634         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
119635         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
119636         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
119637         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
119638         RE_UNMATCHED_RIGHT_PAREN_ORD.
119639         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
119640         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
119641         (REG_DEBUG): renamed from RE_DEBUG.
119642         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
119643         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
119644         unusual, since we can't clash with the POSIX REG_ICASE.
119645         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
119646         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
119647         (REG_NO_SUB): renamed from RE_NO_SUB.
119648         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
119649         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
119650         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
119651         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
119652         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
119653         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
119654         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
119655         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
119656         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
119657         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
119658         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
119659         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
119660         RE_SYNTAX_POSIX_MINIMAL_BASIC.
119661         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
119662         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
119663         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
119664         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
119665         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
119666         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
119667         (REG_FIXED): Renamed from REGS_FIXED.
119668         (REG_NREGS): Renamed from RE_NREGS.
119670         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
119671         of other REG_* macros, since POSIX says the user is allowed to
119672         #undef these macros selectively.
119674         (reg_errcode_t): Update comment stating what other tables need
119675         to be consistent.
119677         Rename the following enum values to obey POSIX requirements.
119678         The old names are still visible as macros.
119679         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
119680         is not defined, since GNU is supposed to be a superset of POSIX as
119681         much as possible, and since we want reg_errcode_t to be a signed
119682         type for implementation consistency.
119683         (_REG_NOERROR): Renamed from REG_NOERROR.
119684         (_REG_NOMATCH): Renamed from REG_NOMATCH.
119685         (_REG_BADPAT): Renamed from REG_BADPAT.
119686         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
119687         (_REG_ECTYPE): Renamed from REG_ECTYPE.
119688         (_REG_EESCAPE): Renamed from REG_EESCAPE.
119689         (_REG_ESUBREG): Renamed from REG_ESUBREG.
119690         (_REG_EBRACK): Renamed from REG_EBRACK.
119691         (_REG_EPAREN): Renamed from REG_EPAREN.
119692         (_REG_EBRACE): Renamed from REG_EBRACE.
119693         (_REG_BADBR): Renamed from REG_BADBR.
119694         (_REG_ERANGE): Renamed from REG_ERANGE.
119695         (_REG_ESPACE): Renamed from REG_ESPACE.
119696         (_REG_BADRPT): Renamed from REG_BADRPT.
119697         (_REG_EEND): Renamed from REG_EEND.
119698         (_REG_ESIZE): Renamed from REG_ESIZE.
119699         (_REG_ERPAREN): Renamed from REG_ERPAREN.
119700         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
119701         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
119702         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
119703         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
119705         (_REG_RE_NAME, _REG_RM_NAME): New macros.
119706         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
119707         changed.  But support the old name if the new one is not defined
119708         and if _REGEX_SOURCE.
119710         Change the following member names in struct re_pattern_buffer.
119711         The old names are still supported if !_REGEX_SOURCE.
119712         The new names are always supported, regardless of _REGEX_SOURCE.
119713         (re_buffer): Renamed from buffer.
119714         (re_allocated): Renamed from allocated.
119715         (re_used): Renamed from used.
119716         (re_syntax): Renamed from syntax.
119717         (re_fastmap): Renamed from fastmap.
119718         (re_translate): Renamed from translate.
119719         (re_can_be_null): Renamed from can_be_null.
119720         (re_regs_allocated): Renamed from regs_allocated.
119721         (re_fastmap_accurate): Renamed from fastmap_accurate.
119722         (re_no_sub): Renamed from no_sub.
119723         (re_not_bol): Renamed from not_bol.
119724         (re_not_eol): Renamed from not_eol.
119725         (re_newline_anchor): Renamed from newline_anchor.
119727         Change the following member names in struct re_registers.
119728         The old names are still supported if !_REGEX_SOURCE.
119729         The new names are always supported, regardless of _REGEX_SOURCE.
119730         (rm_num_regs): Renamed from num_regs.
119731         (rm_start): Renamed from start.
119732         (rm_end): Renamed from end.
119734         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
119735         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
119736         Prepend __ to parameter names.
119738         Undo yesterday's changes.
119740 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
119742         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
119743         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
119744         lib/regex.c.
119746 2005-08-24  Jim Meyering  <jim@meyering.net>
119748         Sync from coreutils.
119749         * m4/fcntl-safer.m4: New file.
119751         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
119752         and object files for this module.
119754 2005-08-24  Jim Meyering  <jim@meyering.net>
119756         Sync from coreutils.
119757         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
119759 2005-08-24  Jim Meyering  <jim@meyering.net>
119761         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
119762         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
119764 2005-08-24  Jim Meyering  <jim@meyering.net>
119766         * modules/fcntl-safer: New module.
119767         * modules/fts (Depends-on): Add fcntl-safer.
119768         * MODULES.html.sh (File descriptor based Input/Output):
119769         Add fcntl-safer.
119771 2005-08-24  Bruno Haible  <bruno@clisp.org>
119773         Support for unit test modules.
119774         * modules/README: Mention tests modules.
119775         * modules/TEMPLATE-TESTS: New file.
119776         * gnulib-tool: New options --extract-tests-module, --with-tests and
119777         --tests-base (unused for the moment).
119778         (testsbase, inctests): New variables.
119779         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
119780         (func_verify_module): Exclude TEMPLATE-TESTS.
119781         (func_verify_nontests_module, func_verify_tests_module): New functions.
119782         (func_get_dependencies): Add implicit dependency for tests modules.
119783         (func_get_tests_module): New function.
119784         (func_modules_transitive_closure): When --with-tests was specified,
119785         include the unit tests as well, unless explicitly avoided.
119786         (func_emit_lib_Makefile_am): Ignore the tests modules here.
119787         (func_emit_tests_Makefile_am): New function.
119788         (func_create_testdir): When --with-tests was specified, emit a
119789         tests/ directory.
119790         * MODULES.html.sh (Future developments): Update.
119792 2005-08-24  Bruno Haible  <bruno@clisp.org>
119794         * modules/tls-tests: New file.
119795         * tests/test-tls.c: New file, from GNU gettext.
119797 2005-08-24  Bruno Haible  <bruno@clisp.org>
119799         * modules/lock-tests: New file.
119800         * tests/test-lock.c: New file, from GNU gettext.
119802 2005-08-24  Bruno Haible  <bruno@clisp.org>
119804         * lib/lock.h: Add multiple inclusion guard.
119805         * lib/tls.h: Add multiple inclusion guard.
119807 2005-08-24  Bruno Haible  <bruno@clisp.org>
119809         * gnulib-tool: Add support for the --aux-dir option to
119810         --create-testdir, --create-megatestdir, --test, --megatest.
119811         (func_create_testdir, func_create_megatestdir): Optionally emit a
119812         AC_CONFIG_AUX_DIR directive.
119813         (create-testdir, create-megatestdir, test, megatest): Provide a
119814         default value for $auxdir.
119816 2005-08-24  Bruno Haible  <bruno@clisp.org>
119818         * gnulib-tool (import): Use compound statement instead of subshell
119819         where possible.
119821 2005-08-24  Bruno Haible  <bruno@clisp.org>
119823         * gnulib-tool (import): Change --aux-dir default to "build-aux".
119825 2005-08-24  Bruno Haible  <bruno@clisp.org>
119827         * gnulib-tool (func_version): Update.
119829 2005-08-24  Bruno Haible  <bruno@clisp.org>
119831         * gnulib-tool (func_import, func_create_testdir,
119832         func_create_megatestdir): Quote all autoconf macro arguments.
119834 2005-08-24  Bruno Haible  <bruno@clisp.org>
119836         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
119837         option --force, because --force causes the aclocal.m4 of each
119838         subdirectory to be newer than the corresponding config.h.in.
119840 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
119842         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
119843         All contents moved to gl_REGEX.
119844         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
119845         assume that it does.
119847 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
119849         * lib/regex.h (REG_NOSYS)
119850         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
119851         Define, since POSIX requires it as of 2001.
119852         (_REG_ENOSYS)
119853         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
119854         New private symbol, used to keep the enum signed in all cases.
119855         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
119856         Youngman in
119857         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
119859         * lib/regex_internal.c (re_string_skip_chars, register_state):
119860         (calc_state_hash):
119861         Remove forward decls; no longer needed now that we use prototypes.
119862         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
119863         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
119864         (clean_state_log_if_needed): Likewise.
119866 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
119868         * config/srclist.txt: Add glibc bugs 1231-1233.
119870 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
119872         Fix problems reported by Sam Steingold in
119873         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
119874         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
119875         assumed that reg_errcode_t is a signed type, which is not
119876         necessarily true if _XOPEN_SOURCE is not defined.
119877         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
119878         since some compilers warn about it otherwise.
119880 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
119882         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
119883         (init_word_char, create_initial_state, duplicate_node_closure):
119884         (fetch_token, peek_token_bracket, build_range_exp):
119885         (build_collating_symbol): Remove forward decls; no longer needed
119886         now that we use prototypes.
119888         * lib/regcomp.c:
119889         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
119890         (re_compile_fastmap_iter, regcomp, regerror, regfree):
119891         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
119892         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
119893         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
119894         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
119895         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
119896         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
119897         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
119898         (build_range_exp, build_collating_symbol, parse_bracket_exp):
119899         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
119900         (build_charclass, build_charclass_op, fetch_number, create_tree):
119901         (create_token_tree, mark_opt_subexp, duplicate_tree):
119902         Use prototypes rather than old-style definitions.
119904         * lib/regex_internal.c:
119905         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
119906         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
119907         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
119908         (re_string_reconstruct, re_string_peek_byte_case):
119909         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
119910         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
119911         (re_node_set_init_copy, re_node_set_add_intersect):
119912         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
119913         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
119914         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
119915         (re_acquire_state, re_acquire_state_context, register_state):
119916         (create_ci_newstate, create_cd_newstate, free_state):
119917         Likewise.
119918         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
119919         re_search_2):
119920         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
119921         (re_search_internal, prune_impossible_nodes):
119922         (acquire_init_state_context, check_matching, static):
119923         (check_halt_node_context, check_halt_state_context, proceed_next_node):
119924         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
119925         (update_regs, sift_states_backward, build_sifted_states):
119926         (clean_state_log_if_needed, merge_state_array):
119927         (update_cur_sifted_state, add_epsilon_src_nodes):
119928         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
119929         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
119930         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
119931         (find_recover_state, check_subexp_matching_top, transit_state_mb):
119932         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
119933         (check_arrival, check_arrival_add_next_nodes):
119934         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
119935         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
119936         (check_node_accept_bytes, check_node_accept, extend_buffers):
119937         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
119938         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
119939         (sift_ctx_init):
119940         Likewise.
119942         * lib/regex_internal.h:
119943         (re_string_allocate, re_string_construct, re_string_reconstruct):
119944         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
119945         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
119946         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
119947         (re_string_context_at, re_string_peek_byte_case):
119948         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
119949         is defined, since we now use prototypes always.
119951         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
119952         C89 or better.  All uses removed.
119954 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
119956         * config/srclist.txt: Add glibc bugs 1220-1227.
119958 2005-08-20  Jim Meyering  <jim@meyering.net>
119960         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
119961         of unused local, dfa.
119963 2005-08-20  Bruno Haible  <bruno@clisp.org>
119965         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
119967 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
119969         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
119970         (re_node_set_insert_last, re_dfa_add_node):
119971         Rename local variables to avoid GCC shadowing warnings.
119973 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
119975         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
119976         [defined lint]: Suppress bogus uninitialized-variable warnings.
119978         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
119979         and let the caller return REG_ESPACE if out of space.  This
119980         removes an uninitialied-variable warning with GCC 4.0.1, and also
119981         avoids taking the address of a local variable.  All callers
119982         changed.
119984 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
119986         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
119987         $LIBCSRC/posix/regexec.c.
119988         Add glibc bug 1217 for regcomp.c.
119990 2005-08-19  Jim Meyering  <jim@meyering.net>
119992         * lib/regexec.c (proceed_next_node): Redo local variables to
119993         avoid GCC shadowing warnings.
119995 2005-08-18  Bruno Haible  <bruno@clisp.org>
119997         * lib/strstr.c (strstr): Fix return value in multibyte case.
119998         * lib/strcasestr.c (strcasestr): Likewise.
120000 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
120002         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
120004 2005-08-17  Jim Meyering  <jim@meyering.net>
120006         Make the %s format (seconds since the epoch) work for a negative
120007         number and when used with a zero-padded field width, e.g. %015s.
120009         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
120010         label so that it precedes the code to set `digits'.  Otherwise,
120011         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
120012         print `00-22'.  Now, it prints `-0022', as it should.
120014 2005-08-17  Bruno Haible  <bruno@clisp.org>
120016         * modules/strstr (Files): Add m4/mbrtowc.m4.
120017         (Depends-on): Add mbuiter.
120019 2005-08-17  Bruno Haible  <bruno@clisp.org>
120021         * modules/strcasestr: New file.
120022         * MODULES.html.sh (String handling, based on ANSI C 89): Add
120023         strcasestr.
120025 2005-08-17  Bruno Haible  <bruno@clisp.org>
120027         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
120029 2005-08-17  Bruno Haible  <bruno@clisp.org>
120031         * modules/mbuiter: New file.
120032         * MODULES.html.sh (Extended multibyte and wide character utilities):
120033         Add mbuiter.
120035 2005-08-17  Bruno Haible  <bruno@clisp.org>
120037         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
120038         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
120040 2005-08-17  Bruno Haible  <bruno@clisp.org>
120042         * m4/strcasestr.m4: New file.
120044 2005-08-17  Bruno Haible  <bruno@clisp.org>
120046         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
120047         * lib/strstr.c: Completely rewritten, with multibyte locale support.
120049 2005-08-17  Bruno Haible  <bruno@clisp.org>
120051         * lib/strcasestr.h: New file.
120052         * lib/strcasestr.c: New file.
120054 2005-08-17  Bruno Haible  <bruno@clisp.org>
120056         * lib/strcasecmp.c: Use mbuiter.h.
120058 2005-08-17  Bruno Haible  <bruno@clisp.org>
120060         * lib/mbuiter.h: New file.
120062 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
120064         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
120065         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
120066         and gl_GETOPT are both invoked via different paths (as happens
120067         with GNU tar CVS because it uses both argp and getopt), the former
120068         wins.
120070 2005-08-16  Bruno Haible  <bruno@clisp.org>
120072         * modules/tls: New file.
120073         * MODULES.html.sh (Multithreading): Add tls.
120075 2005-08-16  Bruno Haible  <bruno@clisp.org>
120077         * modules/strnlen1: New file.
120078         * MODULES.html.sh (String handling): Add strnlen1.
120080 2005-08-16  Bruno Haible  <bruno@clisp.org>
120082         * modules/strcase (Files): Add m4/mbrtowc.m4.
120083         (Depends-on): Add strnlen1, mbchar.
120085 2005-08-16  Bruno Haible  <bruno@clisp.org>
120087         * modules/mbiter: New file.
120088         * MODULES.html.sh (Extended multibyte and wide character utilities):
120089         Add mbiter.
120091 2005-08-16  Bruno Haible  <bruno@clisp.org>
120093         * modules/mbfile: New file.
120094         * MODULES.html.sh (Extended multibyte and wide character utilities):
120095         Add mbfile.
120097 2005-08-16  Bruno Haible  <bruno@clisp.org>
120099         * modules/mbchar: New file.
120100         * MODULES.html.sh (Extended multibyte and wide character utilities):
120101         New section.
120103 2005-08-16  Bruno Haible  <bruno@clisp.org>
120105         * m4/tls.m4: New file, from GNU gettext.
120107 2005-08-16  Bruno Haible  <bruno@clisp.org>
120109         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
120110         always.
120111         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
120113 2005-08-16  Bruno Haible  <bruno@clisp.org>
120115         * m4/mbiter.m4: New file.
120117 2005-08-16  Bruno Haible  <bruno@clisp.org>
120119         * m4/mbfile.m4: New file.
120121 2005-08-16  Bruno Haible  <bruno@clisp.org>
120123         * m4/mbchar.m4: New file.
120125 2005-08-16  Bruno Haible  <bruno@clisp.org>
120127         * lib/tls.h: New file, from GNU gettext.
120128         * lib/tls.c: New file, from GNU gettext.
120130 2005-08-16  Bruno Haible  <bruno@clisp.org>
120132         * lib/strnlen1.h: New file.
120133         * lib/strnlen1.c: New file.
120135 2005-08-16  Bruno Haible  <bruno@clisp.org>
120137         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
120138         (mbi_init): Update.
120139         (mbi_avail, mbi_advance): Let the iteration end before the terminating
120140         NUL byte, not after it.
120142 2005-08-16  Bruno Haible  <bruno@clisp.org>
120144         * lib/strcase.h (strcasecmp): Add note in comments.
120145         * lib/strncasecmp.c: Use code from strcasecmp.c.
120146         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
120147         (strcasecmp): Work correctly in multibyte locales.
120149 2005-08-16  Bruno Haible  <bruno@clisp.org>
120151         * lib/mbiter.h: New file.
120153 2005-08-16  Bruno Haible  <bruno@clisp.org>
120155         * lib/mbfile.h: New file.
120157 2005-08-16  Bruno Haible  <bruno@clisp.org>
120159         * lib/mbchar.h: New file.
120160         * lib/mbchar.c: New file.
120162 2005-08-16  Bruno Haible  <bruno@clisp.org>
120164         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
120165         the valid ones. Makes the comparison operations transitive:
120166         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
120167         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
120169 2005-08-15  Simon Josefsson  <jas@extundo.com>
120171         * modules/ssize_t (License): Change to 'unlimited'.
120173         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
120175 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
120177         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
120178         Add comments for each pending glibc patch.
120180 2005-08-15  Bruno Haible  <bruno@clisp.org>
120182         * lib/regex.h (__restrict_arr): Don't define to __restrict if
120183         __cplusplus is defined.
120185 2005-08-14  Jim Meyering  <jim@meyering.net>
120187         Sync from coreutils.
120189         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
120190         Use the hash-table-based cycle-detection code not just when
120191         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
120192         Reported by James Youngman in
120193         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
120194         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
120195         FTS_TIGHT_CYCLE_CHECK.
120196         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
120197         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
120198         once again.
120199         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
120200         * lib/fts.c (fd_safer): Remove decl.
120201         Include fcntl--.h rather than unistd-safer.h
120202         (fts_safe_changedir): Don't call fd_safer; no longer needed
120203         now that we include fcntl--.h.
120205 2005-08-12  Simon Josefsson  <jas@extundo.com>
120207         * modules/getndelim2: Use ssize_t module.
120208         * modules/getnline: Likewise.
120209         * modules/safe-read: Likewise.
120210         * modules/xreadlink: Likewise.
120212         * modules/ssize_t: New file.
120214 2005-08-12  Simon Josefsson  <jas@extundo.com>
120216         * m4/readline.m4: Look for termcap, curses or ncurses if required.
120218 2005-08-12  Simon Josefsson  <jas@extundo.com>
120220         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
120221         ssize_t.
120223 2005-08-12  Simon Josefsson  <jas@extundo.com>
120225         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
120226         readline, getdelim and check_version.
120227         (Support for systems lacking ISO C 99: Sizes of integer types):
120228         Add size_max.
120230 2005-08-12  Bruno Haible  <bruno@clisp.org>
120232         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
120234 2005-08-11  Simon Josefsson  <jas@extundo.com>
120236         * modules/readline: New file.
120238         * modules/strnlen (Files): Add strnlen.h.
120240 2005-08-11  Simon Josefsson  <jas@extundo.com>
120242         * m4/readline.m4: New file.
120244 2005-08-11  Simon Josefsson  <jas@extundo.com>
120246         * lib/readline.h, readline.c: New file.
120248 2005-08-11  Simon Josefsson  <jas@extundo.com>
120250         * doc/gnulib.texi (Initial import, Finishing touches): Mention
120251         gl_AVOID.
120253 2005-08-11  Bruno Haible  <bruno@clisp.org>
120255         * lib/strnlen.h (strnlen): Change parameter name to match comment.
120257 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
120259         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
120261 2005-08-10  Simon Josefsson  <jas@extundo.com>
120263         * tests/test-iconvme.c: New file.
120265 2005-08-10  Simon Josefsson  <jas@extundo.com>
120267         * m4/strnlen.m4: New file.
120269         * m4/strndup.m4: Don't check for strnlen declaration, done in
120270         strnlen.m4.
120272 2005-08-10  Simon Josefsson  <jas@extundo.com>
120274         * lib/strndup.c: Use strnlen.h.
120276         * lib/strnlen.h: New file.
120278 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
120280         * README: Typos.
120282 2005-08-02  Simon Josefsson  <jas@extundo.com>
120284         * modules/readline: New file.
120286 2005-08-02  Simon Josefsson  <jas@extundo.com>
120288         * modules/getdelim: New file.
120290         * modules/getline: Rewrite, don't use getndelim2.
120292 2005-08-02  Simon Josefsson  <jas@extundo.com>
120294         * m4/getline.m4: Separate out getdelim stuff into separate module.
120296         * m4/getdelim.m4: New file.
120298 2005-08-02  Simon Josefsson  <jas@extundo.com>
120300         * lib/getline.h, getline.c: Rewrite.
120302         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
120304 2005-07-31  Bruno Haible  <bruno@clisp.org>
120306         * lib/lock.h (gl_lock_initializer): New macro.
120307         (gl_lock_define_initialized): Use it.
120308         (gl_rwlock_initializer): New macro.
120309         (gl_rwlock_define_initialized): Use it.
120310         (gl_recursive_lock_initializer): New macro.
120311         (gl_recursive_lock_define_initialized): Use it.
120313 2005-07-30  Karl Berry  <karl@gnu.org>
120315         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
120316         Report from Ben Pfaff, regarding getopt.
120318 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
120320         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
120321         normal way.
120322         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
120323         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
120324         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
120325         (gl_GETOPT): Use the new macros.  Most of the implementation
120326         is moved to the new macros.  This is for programs like Emacs
120327         that don't want all the functionality of gl_GETOPT.
120329 2005-07-26  Bruno Haible  <bruno@clisp.org>
120331         * m4/lock.m4: Update from GNU gettext.
120333 2005-07-26  Bruno Haible  <bruno@clisp.org>
120335         * lib/lock.h: Update from GNU gettext.
120336         * lib/lock.c: Update from GNU gettext.
120338 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
120340         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
120341         obsolescent AC_TRY_RUN.  Include the default includes files, for
120342         'exit'.
120344 2005-07-24  Bruno Haible  <bruno@clisp.org>
120346         * modules/visibility: New file.
120347         * MODULES.html.sh (Misc): Add visibility.
120349 2005-07-24  Bruno Haible  <bruno@clisp.org>
120351         * m4/visibility.m4: New file.
120353 2005-07-24  Bruno Haible  <bruno@clisp.org>
120355         * doc/visibility.texi: New file.
120357 2005-07-22  Bruno Haible  <bruno@clisp.org>
120359         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
120360         $(ALLOCA_H), redundant through BUILT_SOURCES.
120361         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
120362         redundant through BUILT_SOURCES.
120363         * modules/byteswap (Makefile.am): Remove explicit dependency on
120364         $(BYTESWAP_H), redundant through BUILT_SOURCES.
120365         * modules/fnmatch (Makefile.am): Remove explicit dependency on
120366         $(FNMATCH_H), redundant through BUILT_SOURCES.
120367         * modules/getopt (Makefile.am): Remove explicit dependency on
120368         $(GETOPT_H), redundant through BUILT_SOURCES.
120369         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
120370         redundant through BUILT_SOURCES.
120371         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
120372         redundant through BUILT_SOURCES.
120373         * modules/stdbool (Makefile.am): Remove explicit dependency on
120374         $(STDBOOL_H), redundant through BUILT_SOURCES.
120375         * modules/stdint (Makefile.am): Remove explicit dependency on
120376         $(STDINT_H), redundant through BUILT_SOURCES.
120377         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
120378         Remove explicit dependency on $(SYSEXITS_H).
120379         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
120381 2005-07-18  Simon Josefsson  <jas@extundo.com>
120383         * lib/check-version.c (check_version): Accept identical versions too.
120385 2005-07-18  Bruno Haible  <bruno@clisp.org>
120387         * modules/lock: New file.
120388         * MODULES.html.sh (Multithreading): New section.
120390 2005-07-18  Bruno Haible  <bruno@clisp.org>
120392         * m4/lock.m4: New file, from GNU gettext.
120394 2005-07-18  Bruno Haible  <bruno@clisp.org>
120396         * lib/lock.h: New file, from GNU gettext.
120397         * lib/lock.c: New file, from GNU gettext.
120399 2005-07-18  Bruno Haible  <bruno@clisp.org>
120401         * lib/lock.h (gl_once_t): New type.
120402         (gl_once_define, gl_once): New macros.
120403         * lib/lock.c (fresh_once): New variable.
120404         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
120405         functions.
120407 2005-07-16  Simon Josefsson  <jas@extundo.com>
120409         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
120410         workaround, suggested by Bruno.
120412 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
120414         * modules/xalloc (Depends-on): Add xalloc-die.
120415         * modules/xvasprintf (Depends-on): Add xalloc-die.
120417 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
120419         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
120420         with a minor change.
120422 2005-07-15  Bruno Haible  <bruno@clisp.org>
120424         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
120425         When using lib/poll.c, define poll as rpl_poll.
120427 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
120429         * modules/argp (Depends-on): Remove unlocked-io.
120431 2005-07-14  Derek Price  <derek@ximbiot.com>
120433         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
120434         for glob symlink bug.
120436 2005-07-14  Bruno Haible  <bruno@clisp.org>
120438         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
120439         Instead, test for *_unlocked function declarations directly.
120441 2005-07-11  Simon Josefsson  <jas@extundo.com>
120443         * modules/size_max: New file.
120445         * modules/xsize: Depend on size_max module for size_max.m4.
120447 2005-07-11  Simon Josefsson  <jas@extundo.com>
120449         * lib/size_max.h: New file.
120451 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
120453         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
120454         copyright symbol and the year.
120455         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
120456         (version_etc_va): Use parameterized copyright notice.
120457         Reword to conform to the current GNU coding standards.
120459 2005-07-11  Karl Berry  <karl@gnu.org>
120461         * doc/gnulib.texi (Quoting): new node.
120462         (Initial import): more info, from Patrice.
120464 2005-07-11  Bruno Haible  <bruno@clisp.org>
120466         * gnulib-tool (func_usage): Document option --avoid.
120467         (Command line options): Handle --avoid.
120468         (func_acceptable): New function.
120469         (func_modules_transitive_closure): Use it.
120471 2005-07-11  Bruno Haible  <bruno@clisp.org>
120473         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
120474         Reported by Jim Meyering.
120476 2005-07-10  Bruno Haible  <bruno@clisp.org>
120478         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
120479         Needed when size_t is smaller than 'unsigned int'.
120480         Reported by Paul Eggert.
120482 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
120484         * modules/argp (Depends-on): Add unlocked-io
120486 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
120488         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
120489         block of defines.
120491 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
120493         * config/srclist.txt: Comment out regcomp.c, since we have a porting
120494         fix now.
120496 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
120497         and Paul Eggert  <eggert@cs.ucla.edu>
120499         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
120500         in wint_t, not wchar_t.  Remove now-unnecessary cast.
120502 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
120504         * modules/regex (Files): Add lib/regex_internal.c,
120505         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
120506         (Depends-on): Add extensions.
120507         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
120509 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
120511         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
120512         pathconf.
120513         * m4/same.m4 (gl_SAME): Likewise.
120514         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
120516         * m4/regex.m4: Adjust to new libc regex implementation.
120517         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
120518         all the .c and .h parts of (the new) regex.
120519         Quote the m4 stuff better.
120520         Check for RE_ICASE bug of old gnulib.
120521         Check for REG_STARTEND of recent libc.
120522         Rename local variables from jm_* to gl_*.
120523         Quote operand of "test -f".
120524         Say "recent enough" version of libc, not "version 2".
120525         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
120526         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
120527         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
120528         Remove check for btowc, isascii.
120529         Require AM_LANGINFO_CODESET.
120531 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
120533         * lib/regex.c, regex.h: Sync from libc.
120534         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
120535         * lib/regexec.c:
120536         New files, synced from libc, except that regex_internal.h
120537         currently has a small porting fix.
120539 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
120541         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
120542         regex_internal.c, regexec.c.
120543         Add regex_internal.h too, but as a comment, since the libc version
120544         is currently broken in gnulib mode.
120546 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
120548         Support programs like Emacs that use gnulib but not gettext.
120549         * MODULES.html.sh (Internationalization functions): Add gettext-h.
120550         * modules/gettext-h: New file.
120551         * modules/gettext (Files): Remove lib/gettext.h.
120552         (Depends-on): Add gettext-h.
120553         (Makefile.am): Remove lib_SOURCES.
120554         * modules/argmatch, modules/c-stack, modules/closeout:
120555         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
120556         * modules/execute, modules/file-type, modules/getaddrinfo:
120557         * modules/getopt, modules/human, modules/javacomp:
120558         * modules/javaexec, modules/mkdir-p, modules/obstack:
120559         * modules/openat, modules/pagealign_alloc, modules/pipe:
120560         * modules/quotearg, modules/regex, modules/rpmatch:
120561         * modules/unicodeio, modules/userspec, modules/version-etc:
120562         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
120563         * modules/xsetenv:
120564         Depend on gettext-h, not gettext.
120566 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
120568         * gnulib-tool (func_import): Add support for 'public domain' license.
120569         * modules/alloca, modules/atexit, modules/memmove:
120570         Now public domain, not GPL.
120571         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
120572         * modules/realloc, modules/strerror, modules/strtod:
120573         Now LGPL, not GPL.
120575 2005-07-05  Bruno Haible  <bruno@clisp.org>
120577         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
120578         autoconf CVS. Needed for mingw.
120580 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
120582         Remove the dependency of the strftime module on the tzset module.
120583         * modules/strftime (Depends-on): Remove dependency on tzset.
120585 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
120587         Remove the dependency of the strftime module on the tzset module.
120588         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
120589         gl_FUNC_TZSET_CLOBBER.
120591 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
120593         Remove the dependency of the strftime module on the tzset module.
120594         * lib/strftime.c (my_strftime)
120595         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
120596         Copy the input structure, to work around some of the bug with
120597         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
120598         Solaris releases, you should also use the tzset module, but we won't
120599         require it as a dependency any more since we don't want LGPLed code
120600         to depend on GPLed code.
120602 2005-07-02  Jim Meyering  <jim@meyering.net>
120604         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
120605         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
120606         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
120607         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
120609 2005-07-02  Jim Meyering  <jim@meyering.net>
120611         * lib/backupfile.c (backup_args): Change a `0' to NULL.
120613 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
120615         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
120616         declares only 'struct timespec;' (!).
120618 2005-07-01  Jim Meyering  <jim@meyering.net>
120620         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
120621         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
120622         * lib/save-cwd.c, tempname.c:
120623         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
120624         and don't include <sys/file.h>).
120626 2005-06-29  Jim Meyering  <jim@meyering.net>
120628         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
120629         type name.  Use the variable name instead.
120630         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
120631         Likewise.
120633 2005-06-28  Simon Josefsson  <jas@extundo.com>
120635         * modules/check-version (Files): Add check-version.m4.
120637 2005-06-28  Simon Josefsson  <jas@extundo.com>
120639         * m4/check-version.m4: New file, suggested by Jim Meyering
120640         <jim@meyering.net>.
120642 2005-06-28  Simon Josefsson  <jas@extundo.com>
120644         * lib/check-version.h, lib/check-version.c: New files.
120646 2005-06-28  Simon Josefsson  <jas@extundo.com>
120648         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
120649         collision with global variable.  Better indentation.  Don't
120650         increment buffer pointer beyond buffer end.  Based on comments
120651         from Paul Eggert <eggert@cs.ucla.edu>.
120653         * lib/base64.h: Indent.
120655 2005-06-28  Simon Josefsson  <jas@extundo.com>
120657         * doc/gnulib.texi (Library version handling): New section.
120659 2005-06-28  Jim Meyering  <jim@meyering.net>
120661         * check-module (find_included_lib_files): Hard-code another
120662         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
120663         but modules/fts-lgpl (correctly) does not list those files.
120665         * modules/canonicalize (Files): Add lib/pathmax.h.
120667 2005-06-25  Simon Josefsson  <jas@extundo.com>
120669         * modules/check-version: New file.
120671 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
120673         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
120674         initializer of struct addrinfo, as an indication that we don't
120675         care how many members the structure has.
120677 2005-06-24  Derek Price  <derek@ximbiot.com>
120678         and Bruno Haible  <bruno@clisp.org>
120680         Remove stat module & update lstat.
120681         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
120682         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
120683         * m4/stat.m4: Remove this file.
120685 2005-06-24  Derek Price  <derek@ximbiot.com>
120686         and Bruno Haible  <bruno@clisp.org>
120688         Remove stat module & update lstat.
120689         * lib/stat.c: Remove this file...
120690         (slash_aware_lstat): ...moving this content and its support...
120691         * lib/lstat.c (rpl_lstat): ...into here.
120692         * lib/lstat.h: New file.
120694 2005-06-24  Derek Price  <derek@ximbiot.com>
120695         and Bruno Haible  <bruno@clisp.org>
120697         Remove stat module & update lstat.
120698         * config/srclist.txt (libc sources): Remove stat.
120700 2005-06-24  Derek Price  <derek@ximbiot.com>
120701         and Bruno Haible  <bruno@clisp.org>
120703         Remove stat module & update lstat.
120704         * MODULES.html.sh (stat): Remove.
120705         * MODULES.html: Regenerated.
120706         * modules/lstat (Description): Correct function name.
120707         (Files): Add "lstat.h".
120708         (Depends-on): Remove stat, add xalloc, stat-macros.
120709         * modules/stat: Remove this file.
120710         (Include): Add "lstat.h", remove <sys/stat.h>.
120712 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
120714         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
120715         (ranged_convert): Don't save conversion in a temporary struct.
120716         This causes a warning with GCC 4.0.0, and anyway in the typical
120717         case it's not worth the extra 100 bytes or so of code.
120718         (ranged_convert, __mktime_internal): When calling a function via a
120719         pointer P, use P () rather than (*P) (), as we now assume C89 or
120720         better.
120722 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
120724         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
120725         "who -r" failed to give output.  Problem reported by Tim Waugh.
120727         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
120728         (xcalloc): Use it to avoid needless tests.
120729         Problem reported by Jim Meyering.
120731 2005-06-20  Derek Price  <derek@ximbiot.com>
120733         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
120734         unnecessary for Autoconfs > 2.59c.
120736 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
120738         * lib/argp.h (__option_is_short): Check upper limit of
120739         __key. Isprint() requires its argument to have the value
120740         of an unsigned char or EOF.
120742 2005-06-16  Jim Meyering  <jim@meyering.net>
120744         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
120745         when either N or S is zero.
120747 2005-06-16  Derek Price  <derek@ximbiot.com>
120749         * m4/bison.m4: Declare YACC & YFLAGS precious.
120751 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
120753         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
120754         multibyte string or pattern, fall back on unibyte matching.
120755         Problem reported by James Youngman.
120757 2005-06-08  Bruno Haible  <bruno@clisp.org>
120759         * modules/csharpcomp: New file.
120760         * MODULES.html.sh (C#): Add csharpcomp.
120762 2005-06-08  Bruno Haible  <bruno@clisp.org>
120764         * m4/csharpcomp.m4: New file, from GNU gettext.
120766 2005-06-08  Bruno Haible  <bruno@clisp.org>
120768         * lib/csharpcomp.h: New file, from GNU gettext.
120769         * lib/csharpcomp.c: New file, from GNU gettext.
120770         * lib/csharpcomp.sh.in: New file, from GNU gettext.
120772 2005-06-08  Bruno Haible  <bruno@clisp.org>
120774         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
120775         warning on mingw.
120777 2005-06-07  Derek Price  <derek@ximbiot.com>
120779         Sync from CVS.
120780         * lib/glob_.h: Indent nested #ifdef.
120782 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
120784         Sync from coreutils.
120785         Use "file name" when talking about file names, instead of "filename"
120786         or "path", as per the GNU coding standards.
120787         * lib/mkdir-p.c: Renamed from makepath.c.
120788         (make_dir_parents): Renamed from make_path.  All callers changed.
120789         * lib/mkdir-p.h: Likewise.  All includers changed.
120790         * lib/filenamecat.c: Renamed from path-concat.c.
120791         (file_name_concat): Renamed from path_concat.  All callers changed.
120792         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
120793         * lib/filenamecat.h: Likewise.  All includers changed.
120794         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
120795         in comments or local variable names.
120796         * lib/basename.c: Likewise.
120797         * lib/canonicalize.c, canonicalize.h: Likewise.
120798         * lib/dirname.c, dirname.h: Likewise.
120799         * lib/euidaccess.c: Likewise.
120800         * lib/exclude.c: Likewise
120801         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
120802         * lib/fsusage.c, fsuage.h: Likewise.
120803         * lib/fts.c, fts_.h: Likewise.
120804         * lib/getcwd.c: Likewise.
120805         * lib/getloadavg.c: Likewise.
120806         * lib/mkstemp.c: Likewise.
120807         * lib/mountlist.c, mountlist.h: Likewise.
120808         * lib/openat.c, openat.h: Likewise.
120809         * lib/readlink-stub.c: Likewise.
120810         * lib/readutmp.c, readutmp.h: Likewise.
120811         * lib/rename.c: Likewise.
120812         * lib/rmdir.c: Likewise.
120813         * lib/same.c: Likewise.
120814         * lib/savedir.c: Likewise.
120815         * lib/stripslash.c: Likewise.
120816         * lib/tempname.c: Likewise.
120817         * lib/xreadlink.c: Likewise.
120818         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
120819         All uses changed.
120820         * lib/exclude.h: Likewise.
120822         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
120823         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
120824         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
120825         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
120826         * lib/pathmax.h: Include <limits.h> unconditionally, since other
120827         files have been getting away with it for years (MORE/BSD 4.3
120828         is extinct now).
120829         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
120830         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
120832         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
120833         Define to 256, not 255, as per modern POSIX.
120835 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
120837         Sync from coreutils.
120838         Use "file name" when talking about file names, instead of "filename"
120839         or "path", as per the GNU coding standards.
120840         * MODULES.html.sh: mkdir-p renamed from makepath.
120841         filenamecat renamed from path-concat.
120842         * modules/filenamecat: Renamed from modules/path-concat.
120843         (Files): filenamecat.h and filenamecat.c renamed from
120844         path-concat.h and path-concat.c.
120845         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
120846         (Include): filenamecat.h, not path-concat.h.
120847         * modules/mkdir-p: Renamed from modules/makepath.
120848         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
120849         makepath.c.
120850         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
120851         (Include): mkdir-p.h, not makepath.h.
120853 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
120855         Sync from coreutils.
120856         * m4/mkdir-p.m4: Renamed from makepath.m4.
120857         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
120858         Rename files from makepath.c to mkdir-p.c, and from
120859         makepath.h to mkdir-p.h.
120860         * m4/filenamecat.m4: Renamed from path-concat.m4.
120861         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
120862         Rename files from path-concat.c to filenamecat.c,
120863         and from path-concat.h to filenamecat.h.
120864         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
120865         "file name" in local variables or comments.
120866         * m4/rename.m4: Likewise.
120868 2005-06-01  Bruno Haible  <bruno@clisp.org>
120870         * modules/csharpexec: New file.
120871         * MODULES.html.sh (C#): New section.
120873 2005-06-01  Bruno Haible  <bruno@clisp.org>
120875         * m4/csharp.m4: New file, from GNU gettext.
120876         * m4/csharpexec.m4: New file, from GNU gettext.
120878 2005-06-01  Bruno Haible  <bruno@clisp.org>
120880         * lib/csharpexec.h: New file, from GNU gettext.
120881         * lib/csharpexec.c: New file, from GNU gettext.
120882         * lib/csharpexec.sh.in: New file, from GNU gettext.
120884 2005-05-31  Derek Price  <derek@ximbiot.com>
120885             Paul Eggert  <eggert@cs.ucla.edu>
120887         Sync from cvs.
120888         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
120890 2005-05-31  Derek Price  <derek@ximbiot.com>
120891             Paul Eggert  <eggert@cs.ucla.edu>
120893         Sync from cvs.
120894         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
120896 2005-05-29  Derek Price  <derek@ximbiot.com>
120898         * config/srclist.txt (glob_.h, glob.c): Add these files.
120900 2005-05-29  Derek Price  <derek@ximbiot.com>
120902         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
120903         * modules/glob: New file.
120904         * modules/getlogin_r: Add link to POSIX spec in description.
120906 2005-05-29  Derek Price  <derek@ximbiot.com>
120907             Paul Eggert  <eggert@cs.ucla.edu>
120909         * m4/glob.m4: New file.
120911 2005-05-29  Derek Price  <derek@ximbiot.com>
120912             Paul Eggert  <eggert@cs.ucla.edu>
120914         * lib/glob_.h, lib/glob.c: New files.
120916 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
120918         * modules/fts (Files): Remove m4/inttypes-pri.m4.
120919         * modules/fts-lgpl (Depends-on): Remove gettext.
120921 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
120923         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
120924         and don't require gt_INTTYPES_PRI.
120926 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
120928         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
120930         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
120931         the configuration hassle isn't worth it.
120932         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
120933         (LONGEST_MODIFIER, PRIuMAX): Remove.
120935 2005-05-27  Bruno Haible  <bruno@clisp.org>
120937         * lib/getlogin_r.h: Remove second include of <stddef.h>.
120939 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
120941         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
120942         _POSIX_PTHREAD_SEMANTICS for Solaris.
120944 2005-05-25  Derek Price  <derek@ximbiot.com>
120946         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
120948 2005-05-25  Derek Price  <derek@ximbiot.com>
120949             Paul Eggert  <eggert@cs.ucla.edu>
120951         * modules/getlogin_r, m4/getlogin_r.m4: New files.
120952         * lib/getlogin_r.c, getlogin_r.h: New files.
120954 2005-05-25  Bruno Haible  <bruno@clisp.org>
120955             Derek Price  <derek@ximbiot.com>
120957         * lib/getlogin_r.h: Simplify API documentation.
120959 2005-05-23  Derek Price  <derek@ximbiot.com>
120961         * modules/minmax (Files): Add m4/minmax.m4.
120962         (configure.ac): Add gl_MINMAX.
120964 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
120966         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
120967         so that unistd-safer.h (GPL'ed code) need not be included.
120969 2005-05-22  Bruno Haible  <bruno@clisp.org>
120971         * m4/minmax.m4: New file.
120972         Based on a patch by Derek Price <derek@ximbiot.com>.
120974 2005-05-22  Bruno Haible  <bruno@clisp.org>
120976         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
120977         (INT64_MIN): Fix definition.
120978         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
120980         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
120981         NEED_SIGNED_INT_TYPES.
120983         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
120984         HAVE_SYSTEM_INTTYPES.
120986 2005-05-22  Bruno Haible  <bruno@clisp.org>
120988         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
120989         Also include <sys/param.h> if it defines MIN, MAX.
120990         Based on a patch by Derek Price <derek@ximbiot.com>.
120992 2005-05-21  Jim Meyering  <jim@meyering.net>
120994         * modules/fts (Files): Add m4/inttypes-pri.m4.
120995         (Depends-on): Add lstat and remove gettext.  Alphabetize.
120997 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
120999         New fts module.
121000         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
121001         (setup_dir, free_dir): New functions.
121002         (enter_dir, leave_dir): Define trivial
121003         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
121004         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
121005         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
121006         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
121007         Move to fts-cycle.c.
121008         (fts_open): Use setup_dir.
121009         (fts_close): Use free_dir.
121010         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
121011         This adds a label and some gotos, but the alternatives were messier.
121012         Check for memory allocation failure when entering a dir.
121013         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
121014         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
121015         (FTS): New member fts_cycle, that is a union that contains the
121016         old active_dir_ht and cycle_state.  All uses changed to mention
121017         fts_cycle.ht and fts_cycle.state.
121018         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
121019         fts.c, with the following changes:
121020         (setup_dir, free_dir): New functions.
121021         (enter_dir): Now returns bool.  Return true if successful, false
121022         if memory exhausted.  All callers changed.
121023         Do not bother partly cleaning up on
121024         memory allocation failure; that is free_dir's job.
121025         However, free ad if hash_insert fails, to avoid memory leak.
121026         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
121027         fts->fts_options to see which union member to use.
121029 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
121031         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
121032         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
121034 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
121036         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
121038 2005-05-20  Jim Meyering  <jim@meyering.net>
121040         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
121041         Now a macro, to pacify GCC.
121043 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
121045         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
121046         of -1.
121048 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
121050         * lib/chown.c (rpl_chown): Return -1 on failure.
121052 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
121054         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
121055         Don't check for stddef.h.
121056         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
121057         don't use its results.
121058         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
121059         since we include them unconditionally.  Don't require
121060         AM_STDBOOL_H, since stdbool is a prerequisite.
121061         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
121062         since we assume C89 or better.
121063         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
121064         as we don't use their results.
121065         Don't check for fchdir, memmove, memset, strrchr, as we use
121066         them unconditionally.
121067         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
121068         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
121070 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
121072         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
121073         Include <stddef.h> unconditionally, since we assume C89 now.
121074         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
121075         * lib/fts.c: Include fts_.h first, to check interface.
121076         Do not include intprops.h; no longer needed.
121077         Include cycle-check.h and hash.h, since fts_.h no longer does.
121078         Remove unnecessary casts of closedir to void.
121079         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
121080         decide whether to decrement nlinks.
121081         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
121082         (FTS): Use struct hash_table * instead of Hash_table, so that
121083         we no longer need to include hash.h here.
121085 2005-05-18  Jim Meyering  <jim@meyering.net>
121087         * modules/dirfd (License): Change to LGPL.  Most of the code
121088         is already in the public domain.
121090 2005-05-18  Jim Meyering  <jim@meyering.net>
121092         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
121093         Reported by Yoann Vandoorselaere.
121095 2005-05-17  Jim Meyering  <jim@meyering.net>
121097         * m4/fts.m4: New file, from coreutils.
121099 2005-05-17  Jim Meyering  <jim@meyering.net>
121101         * lib/fts.c, lib/fts_.h: New files, from coreutils.
121103 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
121105         Sync from coreutils.
121106         * m4/unlinkdir.m4: New file.
121108 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
121110         Sync from coreutils.
121111         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
121112         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
121113         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
121114         White space changes only.
121115         * lib/makepath.c (make_path): Port to hosts where leading "//" is
121116         special.
121117         * lib/yesno.c: Include getline.h, not ctype.h.
121118         (yesno): Don't remove leading white space; POSIX doesn't allow it.
121119         Use getline to remove arbitrary restriction on response length.
121121 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
121123         * config/srclist-update: Spell out "Street" in FSF postal
121124         mail address; this is the style the FSF seems to prefer.
121126         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
121127         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
121128         this updates FSF postal mail address.
121130         Sync from coreutils.
121131         * modules/unlinkdir: New file.
121132         * modules/yesno (Depends-on): Add getline.
121133         * MODULES.html.sh (File system functions): Add unlinkdir.
121135 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
121137         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
121138         lib/strsep.h:
121139         Change the initial comment to refer to GPL, not LGPL.
121140         gnulib-tool will change it to LGPL as needed.
121142         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
121143         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
121144         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
121145         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
121146         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
121147         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
121148         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
121149         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
121150         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
121151         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
121152         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
121153         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
121154         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
121155         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
121156         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
121157         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
121158         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
121159         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
121160         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
121161         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
121162         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
121163         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
121164         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
121165         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
121166         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
121167         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
121168         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
121169         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
121170         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
121171         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
121172         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
121173         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
121174         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
121175         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
121176         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
121177         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
121178         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
121179         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
121180         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
121181         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
121182         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
121183         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
121184         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
121185         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
121186         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
121187         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
121188         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
121189         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
121190         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
121191         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
121192         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
121193         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
121194         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
121195         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
121196         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
121197         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
121198         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
121199         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
121200         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
121201         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
121202         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
121203         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
121204         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
121205         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
121206         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
121207         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
121208         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
121209         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
121210         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
121211         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
121212         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
121213         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
121214         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
121215         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
121216         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
121217         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
121218         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
121219         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
121220         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
121221         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
121222         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
121223         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
121224         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
121225         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
121226         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
121227         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
121228         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
121229         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
121230         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
121231         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
121232         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
121233         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
121234         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
121235         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
121236         lib/yesno.c, lib/yesno.h:
121237         Update FSF postal mail address.
121239 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
121241         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
121242         tests/test-memmem.c, tests/test-stpncpy.c:
121243         Update FSF postal mail address.
121245 2005-05-13  Bruno Haible  <bruno@clisp.org>
121247         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
121248         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
121249         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
121250         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
121251         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
121252         Add support for 64-bit integers in the MSVC compiler.
121254 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
121256         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
121258 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
121260         * gnulib-tool (func_import): Sort and uniquify recommended includes.
121262 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
121264         * doc/getdate.texi (General date syntax): Don't say that date
121265         date --iso-8601=ns generates acceptable dates; it doesn't yet.
121266         Problem reported by Nic Ferrier.
121268 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121270         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
121271         specified in ai_socktype. Fix invalid ai_protocol
121272         check. ai_protocol is usually set to 0 or depending on
121273         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
121274         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
121275         ai_socktype / ai_protocol in the returned addrinfo structure.
121277 2005-05-10  Simon Josefsson  <jas@extundo.com>
121279         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
121280         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
121282 2005-05-10  Karl Berry  <karl@gnu.org>
121284         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
121285         (from http://www.gnu.org/licenses).
121286         * doc/COPYING.LIB: also rename to COPYING.LESSER.
121287         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
121288         fdl.texi suffices.
121290 2005-05-10  Karl Berry  <karl@gnu.org>
121292         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
121293         (COPYING.DOC): remove.
121295         * config/srclist-update: new FSF address.
121297 2005-05-10  Derek Price  <derek@ximbiot.com>
121299         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
121300         possible.
121302 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121303             Bruno Haible  <bruno@clisp.org>
121305         * modules/inet_ntop: New file.
121306         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
121307         inet_ntop.
121309 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121310             Bruno Haible  <bruno@clisp.org>
121312         * m4/inet_ntop.m4: New file.
121314 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
121315             Bruno Haible  <bruno@clisp.org>
121317         * lib/inet_ntop.h: New file.
121318         * lib/inet_ntop.c: New file, from glibc with modifications.
121320 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
121322         * modules/time_r (License): Change to LGPL.
121323         * modules/extensions (License): Change to LGPL.  Actually,
121324         the license is more permissive than that, but currently gnulib-tool
121325         doesn't know how to handle more-permissive licenses.
121327         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
121328         Problem reported by Dave Love.
121330 2005-05-08  Jim Meyering  <jim@meyering.net>
121332         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
121333         blank.
121335 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
121337         * modules/argmatch (Depends-on): Add stdbool.
121338         * modules/backupfile (Depends-on): Likewise.
121339         * modules/chdir-long (Depends-on): Likewise.
121340         * modules/closeout (Depends-on): Likewise.
121341         * modules/cycle-check (Depends-on): Likewise.
121342         * modules/dirname (Depends-on): Likewise.
121343         * modules/fnmatch (Depends-on): Likewise.
121344         * modules/fsusage (Depends-on): Likewise.
121345         * modules/fwriteerror (Depends-on): Likewise.
121346         * modules/getcwd (Depends-on): Likewise.
121347         * modules/getloadavg (Depends-on): Likewise.
121348         * modules/hard-locale (Depends-on): Likewise.
121349         * modules/makepath (Depends-on): Likewise.
121350         * modules/mountlist (Depends-on): Likewise.
121351         * modules/nanosleep (Depends-on): Likewise.
121352         * modules/posixtm (Depends-on): Likewise.
121353         * modules/quotearg (Depends-on): Likewise.
121354         * modules/readtokens (Depends-on): Likewise.
121355         * modules/readtokens0 (Depends-on): Likewise.
121356         * modules/readutmp (Depends-on): Likewise.
121357         * modules/save-cwd (Depends-on): Likewise.
121358         * modules/strftime (Depends-on): Likewise.
121359         * modules/userspec (Depends-on): Likewise.
121360         * modules/utimecmp (Depends-on): Likewise.
121361         * modules/xgetcwd (Depends-on): Likewise.
121362         * modules/xnanosleep (Depends-on): Likewise.
121363         * modules/xstrtod (Depends-on): Likewise.
121364         * modules/yesno (Depends-on): Likewise.
121366 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
121368         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
121369         needless checks.
121371 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
121373         Merge from coreutils.  Among other things,
121374         add bulletproofing for cases where stdin, stdout, or stderr are closed.
121375         * lib/fd-safer.c: New file.
121376         * lib/fcntl-safer.h, open-safer.c: Remove.
121377         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
121378         * lib/dup-safer.c: Include unistd-safer.h first.
121379         Don't include errno.h.
121380         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
121381         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
121382         * lib/file-type.c: Rely on file-type.h change.
121383         * lib/getloadavg.c: Include unistd-safer.h.
121384         (getloadavg): Use safer open.
121385         * lib/getusershell.c: Include "stdio-safer.h".
121386         (getusershell): Use safer fopen.
121387         * lib/long-options.c (long_options): Use NULL rather than 0.
121388         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
121389         'free'.
121390         * lib/modechange.c: Likewise.
121391         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
121392         (MODE_DONE): New constant.
121393         (struct mode_change): Remove 'next' member.
121394         (make_node_op_equals): New function; like the old one of the
121395         same name, except it allocates an array.
121396         (mode_compile, mode_create_from_ref): Use it.
121397         (mode_compile): Allocate result as an array, not a linked list.
121398         Parse octal string ourself, so that we catch mistakes like "+0".
121399         (mode_adjust): Arg is an array, not a linked list.
121400         * lib/modechange.c: Include stat-macros.h, xalloc.h.
121401         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
121402         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
121403         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
121404         Remove.  This is now stat-macros.h's job.
121405         (talloc): Remove.  All callers replaced by xalloc, so that
121406         our invokers don't have to worry about reporting memory failures.
121407         (make_node_op_equals): Remove.
121408         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
121409         New constants.
121410         (struct mode_change): Moved here from modechange.h.
121411         (mode_append_entry): Remove.
121412         (mode_compile): Remove MASKED_OPS arg, since it encouraged
121413         apps to have incorrect behavior.  Use simpler algorithm for head
121414         and tail.  Don't futz with umask; that's now the job of mode_adjust.
121415         Detect more invalid usages rather than having somewhat-random behavior.
121416         Don't insert an "a=" action, as that leads to incorrect behavior.
121417         (mode_compile, mode_create_from_ref): Return NULL on error instead
121418         of an enum, since now there's only one way to have an error.  All
121419         callers changed.
121420         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
121421         at the correct time.  Simplify calculation of "+u" and its ilk.
121422         Don't mishandle "+X".
121423         (mode_free): Remove "register" and localize decls.
121424         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
121425         (struct mode_change): Move to modechange.c; callers don't
121426         need to see this stuff.
121427         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
121428         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
121429         (mode_change, mode_adjust): Reflect the new signatures noted above.
121430         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
121431         that might redefine system include files.
121432         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
121433         (my_usleep): Use NULL rather than (void *) 0.
121434         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
121435         Use siginterrupt to specify that system calls should be interrupted.
121436         (rpl_nanosleep): Move initialization of suspended closer to call of
121437         my_usleep.
121438         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
121439         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
121440         (desirable_utmp_entry): New function.
121441         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
121442         using x2nrealloc, to simplify logic.
121443         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
121444         size calculation.  Do not assume utmp file is a regular file.
121445         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
121446         (READ_UTMP_CHECK_PIDS): New constant.
121447         * lib/save-cwd.c: Include unistd-safer.h.
121448         (save_cwd): Use fd_safer.
121449         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
121450         [!_LIBC] Include "stat-macros.h" instead.
121451         * lib/unistd-safer.h (fd_safer): New decl.
121453 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
121455         * modules/getloadavg (Depends-on): Add unistd-safer.
121456         * modules/getusershell (Depends-on): Add stdio-safer.
121457         * modules/lstat (Depends-on): Remove xalloc.
121458         * modules/mkstemp (Depends-on): Add stat-macros.
121459         * modules/modechange (Depends-on): Remove xstrtol.
121460         Add stat-macros, xalloc.
121461         * modules/save-cwd (Depends-on): Add unistd-safer.
121462         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
121463         * modules/unistd-safer (Files): Add lib/fd-safer.c
121464         (Makefile.am): Remove lib_SOURCES.
121466         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
121467         Remove fcntl-safer; unistd-safer supersedes it.
121469 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
121471         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
121472         AC_HEADER_STAT.
121473         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
121474         (gl_PREREQ_CHOWN): Remove.
121475         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
121476         it.  Don't require AC_HEADER_STAT.
121477         (gl_PREREQ_LSTAT): Remove.
121478         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
121479         Don't require AC_HEADER_STAT.
121480         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
121481         (gl_PREREQ_RMDIR): Remove.
121482         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
121483         mention stat-macros.h or AC_HEADER_STAT, since we'll make
121484         the stat-macros module a prerequisite.
121485         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
121486         * m4/filemode.m4 (gl_FILEMODE): Likewise.
121487         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
121488         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
121489         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
121490         variable names.
121491         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
121492         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
121493         variable prefixes.
121494         * m4/fcntl-safer.m4: Remove.
121495         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
121496         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
121497         Invoke gl_PREREQ_FD_SAFER.
121498         (gl_PREREQ_FD_SAFER): New macro.
121499         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
121500         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
121501         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
121502         Remove duplicate call to AC_LIBOBJ(readutmp).
121503         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
121505         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
121506         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
121508 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
121510         * MODULES.html.sh (Misc): Add byteswap.
121512 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
121514         * modules/getcwd (Depends-on): Add extensions.
121515         * modules/openat (Depends-on): Likewise.
121517 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
121519         * modules/byteswap: New file.
121521 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
121523         * m4/byteswap.m4: New file.
121525 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
121527         * lib/byteswap_.h: New file.
121529 2005-04-25  Karl Berry  <karl@gnu.org>
121531         * m4/gettext.m4: Update from GNU gettext 0.14.4.
121533 2005-04-25  Albert Chin  <china@thewrittenword.com>
121535         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
121536         Toolkit C bug.
121538 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
121540         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
121541         (func_ln_if_changed): Remove forcibly for no error message
121542         in case file does not exist.
121544 2005-04-19  Simon Josefsson  <jas@extundo.com>
121546         * gnulib-tool (Options): Make --symlink mean --symbolic.
121548 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
121550         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
121552 2005-04-16  Simon Josefsson  <jas@extundo.com>
121554         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
121556 2005-04-15  Simon Josefsson  <jas@extundo.com>
121558         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
121560 2005-04-15  Simon Josefsson  <jas@extundo.com>
121562         * gnulib-tool: Rename --symlink to --symbolic.
121564 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
121566         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
121567         symbolic links to files instead of copying/moving.  Add --aux-dir,
121568         specifying directory relative --dir where auxiliary build tools
121569         are placed.
121571 2005-04-14  Bruno Haible  <bruno@clisp.org>
121573         * modules/allocsa (License): Change to LGPL.
121574         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
121576 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
121578         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
121579         that "UTC +1 second" continues to work.  Problem reported
121580         by Dmitry V. Levin.
121581         (relunit_snumber): New rule.
121582         (relunit): Use it.
121584 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
121586         * lib/getdate.y (universal_time_zone_table): New constant.
121587         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
121588         universal_time_zone_table.
121589         (lookup_zone): Prefer universal_time_zone_table to
121590         local_time_zone_table, so that "GMT" time stamps are allowed in
121591         London during the summer.  Problem reported by Ian Abbott.
121593 2005-04-12  Jim Meyering  <jim@meyering.net>
121595         * lib/human.c (humblock): Set *options even when returning due to
121596         xstrtoumax conversion failure.  Thanks to a used-uninitialized
121597         warning from gcc-4.
121599 2005-04-09  Jim Meyering  <jim@meyering.net>
121601         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
121602         -Wuninitialized: initialize tm0.tm_year.
121604 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
121606         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
121607         count, since there's no maximum.  All uses changed.
121608         Add member dsts_seen.
121609         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
121610         not being INT_MAX.
121611         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
121612         Use pc_rels_seen to decide whether a date is absolute.
121614         * lib/getdate.y (number): Don't overwrite year.
121615         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
121616         check.
121618 2005-04-02  Simon Josefsson  <jas@extundo.com>
121620         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
121621         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
121623 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
121625         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
121626         where no absolute path name can be longer than PATH_MAX.
121628 2005-03-27  Jim Meyering  <jim@meyering.net>
121630         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
121632 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
121634         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
121635         "one's complement" -> "ones' complement" in comment, as per Knuth.
121636         "value of type" -> "type or expression" in comment.
121637         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
121639 2005-03-26  Jim Meyering  <jim@meyering.net>
121641         Comment nits.
121642         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
121643         Correct typos: s/or/of/.
121645 2005-03-26  Jim Meyering  <jim@meyering.net>
121647         * modules/check-include-files: Move to ../ and rename to...
121648         * check-module: ...this.
121650 2005-03-25  Jim Meyering  <jim@meyering.net>
121652         * modules/xvasprintf (Files): Add xalloc.h.
121654 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
121656         * modules/gettext (Files): config/config.rpath ->
121657         build-aux/config.rpath
121658         * modules/iconv (Files): Likewise.
121659         Problem reported by Oskar Liljeblad.
121661 2005-03-23  Jim Meyering  <jim@meyering.net>
121663         * modules/check-include-files: New script to check for
121664         missing dependencies, multiple includes, etc.
121666         * modules/c-strtold (Depends-on): Add xalloc.
121667         * modules/c-strtod (Depends-on): Add xalloc.
121668         * modules/hash (Depends-on): Add xalloc.
121669         (Files): Remove lib/xalloc.h.
121671         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
121672         * modules/userspec (Files): Add lib/inttostr.h.
121674 2005-03-23  Jim Meyering  <jim@meyering.net>
121676         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
121678 2005-03-22  Jim Meyering  <jim@meyering.net>
121680         * modules/stat-macros: New module.
121681         * modules/canonicalize, modules/euidaccess, modules/file-type,
121682         * modules/filemode, modules/lchown, modules/makepath,
121683         * modules/rmdir, modules/stat: Depend on new stat-macros module
121684         rather than listing lib/stat-macros.h manually.
121685         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
121687 2005-03-22  Jim Meyering  <jim@meyering.net>
121689         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
121691 2005-03-22  Bruno Haible  <bruno@clisp.org>
121693         * config/srclist.txt: Replace target directory 'config' with
121694         'build-aux'.
121695         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
121696         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
121697         ../build-aux/.
121699 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
121701         * modules/chdir-long (Depends-on): Add mempcpy.
121703         * modules/acl, modules/backupfile, modules/c-strtod,
121704         modules/c-strtold, modules/canon-host, modules/canonicalize,
121705         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
121706         modules/exclude, modules/exitfail, modules/file-type,
121707         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
121708         modules/getdate, modules/getline, modules/getpagesize,
121709         modules/getpass, modules/getugroups, modules/group-member,
121710         modules/hard-locale, modules/hash, modules/human, modules/idcache,
121711         modules/inttostr, modules/long-options, modules/makepath,
121712         modules/md5, modules/memcasecmp, modules/memcoll,
121713         modules/modechange, modules/mountlist, modules/path-concat,
121714         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
121715         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
121716         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
121717         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
121718         modules/strftime, modules/strndup, modules/strverscmp,
121719         modules/timespec, modules/unlocked-io, modules/userspec,
121720         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
121721         modules/yesno:
121722         Remove lib_SOURCES line from Makefile.am section, as this is now
121723         done automatically by the corresponding Autoconf macro.
121725 2005-03-21  Jim Meyering  <jim@meyering.net>
121727         Changes imported from coreutils.
121729         * lib/cycle-check.c: Don't include xalloc.h.
121731         * lib/path-concat.c: Don't include assert.h.
121732         (path_concat): Remove assertion that would have triggered
121733         for ABASE starting with more than one slash.
121734         Reported by Andreas Schwab.
121736         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
121737         properly when ABASE is an absolute file name.
121738         Correct the description of this function.
121739         Include <assert.h>.
121740         Add an assertion and a test driver.
121741         This fixes a bug introduced on 2004-07-02.
121742         Andreas Schwab reported the resulting failure of cp --parents:
121743         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
121745 2005-03-21  Jim Meyering  <jim@meyering.net>
121747         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
121748         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
121750 2005-03-21  Jim Meyering  <jim@meyering.net>
121751         and  Paul Eggert  <eggert@cs.ucla.edu>
121753         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
121754         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
121755         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
121756         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
121757         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
121758         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
121759         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
121760         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
121761         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
121762         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
121763         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
121764         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
121765         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
121766         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
121767         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
121768         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
121769         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
121770         for these modules.
121772 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
121774         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
121775         (which shouldn't happen), generate nothing instead of returning 0
121776         immediately, so that nstrftime (NULL, ...) doesn't return 0.
121778 2005-03-16  Bruno Haible  <bruno@clisp.org>
121780         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
121781         HAVE_LONGLONG_64BIT.
121783 2005-03-16  Bruno Haible  <bruno@clisp.org>
121785         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
121786         HAVE_LONGLONG_64BIT.
121788 2005-03-16  Bruno Haible  <bruno@clisp.org>
121790         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
121791         HAVE_LONGLONG_64BIT.
121793 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
121795         * lib/strftime.c (my_strftime): Prepend space to format so that we can
121796         reliably distinguish strftime failure from empty output on POSIX
121797         hosts.
121799 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
121801         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
121802         (iconv_string): Don't guess a size-zero buffer, as that might cause
121803         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
121804         result would be 'too large', where 'too large' is (heuristically)
121805         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
121806         overflow concerns.  This will prevent some unwanted malloc failures
121807         when the inputs are very large.
121809 2005-03-15  Karl Berry  <karl@gnu.org>
121811         * config/srclist.txt (config.rpath): from gettext.
121812         * config/config.rpath: update.
121814 2005-03-15  Bruno Haible  <bruno@clisp.org>
121816         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
121817         to 'negate'.
121819         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
121820         variable.
121822         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
121823         results.
121825 2005-03-14  Simon Josefsson  <jas@extundo.com>
121827         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
121828         <fx@gnu.org>.
121830 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
121832         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
121833         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
121834         intprops.h.
121835         * lib/strtol.c: Likewise.
121837 2005-03-14  Jim Meyering  <jim@meyering.net>
121839         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
121840         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
121841         to be nonzero so that we (and caller) can detect the difference
121842         between a valid zero-length expansion and an error return, even
121843         when the underlying strftime fails before writing anything into
121844         that location.
121846 2005-03-14  Bruno Haible  <bruno@clisp.org>
121848         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
121849         Update from GNU gettext 0.14.3.
121851 2005-03-10  Jim Meyering  <jim@meyering.net>
121853         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
121855 2005-03-10  Jim Meyering  <jim@meyering.net>
121857         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
121858         so that this module works on systems without fchdir.
121860 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
121862         Factor int-properties macros into a single file, except for
121863         glibc-related files.
121864         * lib/intprops.h: New file.
121865         * lib/getloadavg.c: Include it instead of limits.h.
121866         (INT_STRLEN_BOUND): Remove.
121867         * lib/human.c: Include intprops.h.
121868         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
121869         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
121870         302/1000.
121871         * lib/inttostr.h: Include intprops.h instead of limits.h.
121872         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
121873         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
121874         for consistency with intprops.h.
121875         (time_t_is_integer, twos_complement_arithmetic): Use them.
121876         * lib/sig2str.h: Include <signal.h>, intprops.h.
121877         (INT_STRLEN_BOUND): Remove.
121878         * lib/strftime.c (TYPE_SIGNED): Remove.
121879         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
121880         * lib/strtol.c: Adjust comments to match intprops.h.
121881         * lib/userspec.c: Include intprops.h.
121882         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
121883         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
121884         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
121885         instead of rolling our own expressions.
121886         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
121888         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
121889         instead of int.
121890         (my_strftime): Do not mishandle years close to INT_MAX, by doing
121891         the right thing even if adding 1900 would overflow.  Similarly
121892         for tm_mon + 1 and tm_yday + 1.
121893         Make %Y always equivalent to %C%y, and similarly for %G and %g.
121894         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
121895         (DO_SIGNED_NUMBER): New macro.
121896         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
121898 2005-03-07  Bruno Haible  <bruno@clisp.org>
121900         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
121902 2005-03-07  Bruno Haible  <bruno@clisp.org>
121904         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
121906 2005-03-04  Derek R. Price  <derek@ximbiot.com>
121908         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
121909         (func_import): Only replace files via --import when they have actually
121910         changed.
121912 2005-03-03  Derek R. Price  <derek@ximbiot.com>
121914         * m4/mmap-anon.m4: New file.
121915         * m4/pagealign_alloc.m4: New file.
121917 2005-03-03  Derek R. Price  <derek@ximbiot.com>
121918             Bruno Haible  <bruno@clisp.org>
121920         * modules/pagealign_alloc: New file.
121921         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
121923 2005-03-03  Derek R. Price  <derek@ximbiot.com>
121924             Bruno Haible  <bruno@clisp.org>
121926         * lib/pagealign_alloc.h: New file.
121927         * lib/pagealign_alloc.c: New file.
121929 2005-03-03  Bruno Haible  <bruno@clisp.org>
121931         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
121932         Use an all-permissive copyright notice, recommended by RMS.
121934 2005-03-02  Bruno Haible  <bruno@clisp.org>
121936         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
121937         of AIX, the replacement has to be done only after <string.h> is
121938         included, therefore not in config.h. stpncpy.h does the replacement,
121939         and stpncpy.c uses it.
121941 2005-03-02  Bruno Haible  <bruno@clisp.org>
121943         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
121944         stpncpy.c uses it.
121946 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
121948         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
121949         The workaround isn't strictly needed for POSIX conformance, and
121950         it's too much of a pain to configure and maintain.  We'll ask
121951         people to fix their kernels instead.
121952         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
121953         (NANOSLEEP_BUG_WORKAROUND): Remove.
121954         (xnanosleep): Remove the workaround.
121956 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
121958         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
121959         Reported by Derek Price.
121960         (Include): Add "timespec.h".
121962         * modules/xnanosleep (Depends-on): Remove gethrxtime.
121964 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
121966         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
121967         to detect nanosleep bug.
121969 2005-03-01  Bruno Haible  <bruno@clisp.org>
121971         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
121973 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
121975         * modules/gethrxtime: New file.
121976         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
121977         (Depends-on): Add gethrxtime.
121978         (configure.ac): Add gl_XNANOSLEEP.
121979         (Makefile.am): Remove lib_SOURCES line.
121981 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
121983         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
121984         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
121986 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
121988         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
121989         * lib/timespec.h (gettime): Return void, since it always
121990         succeeds now.  All uses changed.
121991         * lib/gettime.c (gettime): Likewise.
121992         [HAVE_NANOTIME]: Prefer nanotime.
121993         Assume gettimeofday succeeds, as POSIX requires.
121994         Assime time () succeeds, since other code already does.
121995         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
121996         (timespec_subtract): Remove.
121997         (NANOSLEEP_BUG_WORKAROUND): New constant.
121998         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
121999         things considerably.  Use it only on GNU/Linux hosts, since the
122000         workaround shouldn't be needed elsewhere.
122002 2005-02-24  Bruno Haible  <bruno@clisp.org>
122004         * modules/gettext (Files): Add m4/glibc2.m4.
122006 2005-02-24  Bruno Haible  <bruno@clisp.org>
122008         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
122009         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
122010         * m4/progtest.m4:
122011         Update from GNU gettext 0.14.2.
122012         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
122014 2005-02-24  Bruno Haible  <bruno@clisp.org>
122016         * lib/localcharset.c: Update from GNU gettext 0.14.2.
122017         * lib/config.charset: Update from GNU gettext 0.14.2.
122019 2005-02-24  Bruno Haible  <bruno@clisp.org>
122021         * lib/gettext.h: Update from GNU gettext 0.14.2.
122023 2005-02-23  Simon Josefsson  <jas@extundo.com>
122025         * m4/iconvme.m4: New file.
122027 2005-02-23  Jim Meyering  <jim@meyering.net>
122029         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
122030         change.
122031         Thanks to Bruno Haible for catching it.
122033 2005-02-22  Simon Josefsson  <jas@extundo.com>
122035         * modules/iconvme: New file.
122037         * MODULES.html.sh: Add iconvme.
122039 2005-02-22  Simon Josefsson  <jas@extundo.com>
122041         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
122043 2005-02-22  Simon Josefsson  <jas@extundo.com>
122045         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
122047 2005-02-22  Jim Meyering  <jim@meyering.net>
122049         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
122050         s/ifndef/ifdef/.
122052 2005-02-20  Neil Conway  <neilc@samurai.com>
122054         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
122055         returned by OSX/Darwin if the specified buffer is not large
122056         enough for the hostname.
122058 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122060         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
122061         pass it to _help, otherwise the latter coredumps trying to
122062         dereference state.root_argp.
122064 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
122066         * modules/chdir-long (Depends-on): Add memrchr.
122067         * modules/memrchr (Files): Add lib/memrchr.h.
122068         (Include): "memrchr.h".
122070 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
122072         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
122074 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
122076         * lib/memrchr.h: New file.
122077         * lib/chdir-long.c: Include it.
122078         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
122079         Don't bother including stddef.h.
122081 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
122083         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
122084         inclusion.
122085         Include <sys/types.h>, for dev_t.
122086         (ME_DUMMY, ME_REMOTE): Move from here....
122087         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
122088         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
122089         Dmitry V. Levin.
122090         Include mountlist.h first, to test the interface.
122092 2005-01-29  Bruno Haible  <bruno@clisp.org>
122094         * lib/progname.c (program_name): Initialize.
122095         Needed when linking statically on MacOS X.
122097 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
122099         Sync from coreutils.
122100         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
122101         (Depends-on): Add c-strtod.
122102         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
122104 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
122106         Sync from coreutils.
122107         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
122109         Remove files that are specific to coreutils.
122110         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
122112 2005-01-28  Bruno Haible  <bruno@clisp.org>
122114         * modules/javacomp: New file.
122115         * MODULES.html.sh (Java): Add javacomp.
122117 2005-01-28  Bruno Haible  <bruno@clisp.org>
122119         * m4/javacomp.m4: New file, from GNU gettext.
122121 2005-01-28  Bruno Haible  <bruno@clisp.org>
122123         * lib/javacomp.sh.in: New file, from GNU gettext.
122124         * lib/javacomp.h: New file, from GNU gettext.
122125         * lib/javacomp.c: New file, from GNU gettext.
122127 2005-01-26  Simon Josefsson  <jas@extundo.com>
122129         * lib/gai_strerror.c: Use GPL in header.
122131 2005-01-26  Bruno Haible  <bruno@clisp.org>
122133         * modules/javaexec: New file.
122134         * MODULES.html.sh (Java): Add javaexec.
122136 2005-01-26  Bruno Haible  <bruno@clisp.org>
122138         * m4/javaexec.m4: New file, from GNU gettext.
122140 2005-01-26  Bruno Haible  <bruno@clisp.org>
122142         * lib/javaexec.sh.in: New file, from GNU gettext.
122143         * lib/javaexec.h: New file, from GNU gettext.
122144         * lib/javaexec.c: New file, from GNU gettext.
122146 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122148         * modules/lchown (Depends-on): Remove lchown.h
122150 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122152         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
122153         must be defined if the header file was not found, in order
122154         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
122156 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122158         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
122159         initializers for struct pentry_state.
122160         (__argp_error): Check return value of __asprintf
122161         (__argp_failure): Translate error message
122163         * lib/argp-parse.c: Removed braces around the expansion of N_()
122165 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
122167         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
122168         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
122169         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
122170         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
122171         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
122172         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
122173         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
122174         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
122175         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
122176         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
122177         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
122178         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
122179         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
122180         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
122181         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
122182         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
122183         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
122184         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
122185         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
122186         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
122187         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
122188         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
122189         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
122190         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
122191         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
122192         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
122193         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
122194         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
122195         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
122196         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
122197         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
122198         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
122199         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
122200         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
122201         xstrtol.m4, xstrtoumax.m4, yesno.m4:
122202         Use an all-permissive copyright notice, recommended by RMS.
122204 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
122206         * modules/chdir-long (Depends-on): Remove mempcpy.
122208 2005-01-21  Jim Meyering  <jim@meyering.net>
122210         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
122211         same value as for Solaris 9.
122213         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
122214         component length.  This included changing the parameter to be
122215         of type `char *' rather than `char const *'.
122216         * lib/chdir-long.h (chdir_long): Update prototype.
122218         * lib/openat.c (fdopendir, fstatat): New functions.
122219         * lib/openat.h: Include headers required for use of DIR and struct
122220         stat.
122221         [AT_SYMLINK_NOFOLLOW]: Define.
122222         (fdopendir, fstatat): Add prototypes.
122224 2005-01-21  Bruno Haible  <bruno@clisp.org>
122226         * modules/classpath: New file.
122227         * MODULES.html.sh (Java): Add classpath.
122229 2005-01-21  Bruno Haible  <bruno@clisp.org>
122231         * lib/classpath.h: New file, from GNU gettext.
122232         * lib/classpath.c: New file, from GNU gettext.
122234 2005-01-20  Simon Josefsson  <jas@extundo.com>
122236         * modules/version-etc-fsf: New file.
122238 2005-01-20  Simon Josefsson  <jas@extundo.com>
122240         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
122241         * lib/version-etc.c: Remove version_etc_copyright.
122242         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
122243         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
122245 2005-01-20  Simon Josefsson  <jas@extundo.com>
122247         * lib/base64.h (isbase64): Add.
122249         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
122250         using a unsigned prototype, don't inline.
122251         (base64_decode): Use it.
122253 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
122255         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
122256         it.
122258 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
122260         * lib/save-cwd.c (save_cwd): Remove code to support the case
122261         where fchdir is missing or flaky.
122263 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
122265         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
122267 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
122269         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
122270         AC_LIBSOURCES now does this.
122271         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
122272         with new ullong_max module.
122274 2005-01-19  Bruno Haible  <bruno@clisp.org>
122276         * modules/sh-quote: New file.
122277         * MODULES.html.sh (Executing programs): Add sh-quote.
122279 2005-01-19  Bruno Haible  <bruno@clisp.org>
122281         * lib/sh-quote.h: New file, from GNU gettext.
122282         * lib/sh-quote.c: New file, from GNU gettext.
122284 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
122286         Merge from coreutils.
122287         * m4/ullong_max.m4: New file.
122288         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
122289         (gl_MACROS): Assume localeconv exists.
122291 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
122293         Merge changes from coreutils, as described below in several
122294         changelogs dated today.
122296         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
122297         (O_DIRECTORY): Remove; not needed here, since "." must be
122298         a directory.  All uses removed.
122299         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
122300         universal on Suns, and we also need to test for IRIX.
122301         Revamp code to use 'if' rather than '#if'.
122302         Avoid unnecessary comparison of cwd->desc to 0.
122304         * lib/utimens.c (futimens): Robustify the previous patch, by checking
122305         for known valid error numbers rather than observed invalid ones.
122307 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
122309         * modules/ullong_max: New file.
122311         * modules/chdir-long, modules/openat: New files.
122312         * modules/save-cwd (Depends-on): Depend on chdir-long.
122313         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
122315 2005-01-18  Jim Meyering  <jim@meyering.net>
122317         Merge from coreutils.
122318         * m4/chdir-long.m4, m4/openat.m4: New files.
122319         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
122320         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
122321         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
122322         is sane and DOES follow symlinks.  Besides, testing 20 different
122323         systems found no broken chown implementations.
122324         Prompted by a change in rsync's copy of this macro.
122325         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
122327         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
122329         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
122330         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
122331         NULL-means-set-to-current-time semantics.
122332         Remove temporary file immediately, rather than waiting
122333         for configure's at-exit trap code to do it.
122335 2005-01-18  Jim Meyering  <jim@meyering.net>
122337         * lib/version-etc.c (version_etc_copyright): Update copyright date.
122339         * lib/utimens.c (futimens): Account for the fact that futimes
122340         can also fail with errno == ENOSYS or errno == ENOENT.
122341         Patch from Dmitry V. Levin.
122343         Change the name of the robust chdir function from chdir to chdir_long.
122344         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
122345         (restore_cwd): Use chdir_long, not chdir.
122346         * lib/chdir-long.c: Renamed from chdir.c.
122347         * lib/chdir-long.h: Renamed from chdir.h.
122348         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
122349         Hurd.
122351 2005-01-18  Bruno Haible  <bruno@clisp.org>
122353         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
122354         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
122355         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
122356         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
122357         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
122358         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
122359         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
122360         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
122361         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
122362         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
122363         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
122364         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
122365         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
122366         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
122367         Use an all-permissive copyright notice, recommended by RMS.
122369 2005-01-18  Bob Proulx  <bob@proulx.com>
122371         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
122372         simplify offsetof() macro construct to avoid compile failure with
122373         native HP-UX 11.0 ANSI C compiler.
122375 2005-01-17  Bruno Haible  <bruno@clisp.org>
122377         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
122378         redundant because stpncpy.m4 takes care of it.
122380 2005-01-17  Bruno Haible  <bruno@clisp.org>
122382         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
122384 2005-01-17  Bruno Haible  <bruno@clisp.org>
122386         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
122387         used.
122389 2005-01-17  Bruno Haible  <bruno@clisp.org>
122391         * lib/fwriteerror.h (fwriteerror): Change specification to include
122392         fclose.
122393         * lib/fwriteerror.c: Include <stdbool.h>.
122394         (fwriteerror): At the end, close the file stream. Record whether
122395         stdout was already closed.
122397 2005-01-17  Bruno Haible  <bruno@clisp.org>
122399         * lib/execute.c (environ): Declare if needed.
122400         * lib/pipe.c (environ): Likewise.
122401         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
122403 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122405         * modules/argp: Depend on vsnprintf
122407 2005-01-10  Jim Meyering  <jim@meyering.net>
122409         * modules/closeout (Depends-on): Add atexit.
122411 2005-01-06  Bruno Haible  <bruno@clisp.org>
122413         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
122415 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
122417         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
122418         definitions to be after all include files, to avoid collisions.
122419         Problem reported by Bob Proulx.
122421 2005-01-04  Jim Meyering  <jim@meyering.net>
122423         Changes imported from coreutils.
122424         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
122425         as the mkstemp template, use a temporary directory and an
122426         8.3-friendly template to avoid trouble on systems like DJGPP.
122427         Reported by Juan M. Guerrero via Stepan Kasal.
122428         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
122429         close. Remove the temporary directory right away, rather than waiting
122430         for configure's at-exit trap code to do it.
122431         Suggestion from Stepan Kasal.
122433 2005-01-01  Simon Josefsson  <jas@extundo.com>
122435         * gnulib-tool: Print #include directives when --import'ing.
122437 2004-12-28  Simon Josefsson  <jas@extundo.com>
122439         * tests/test-base64.c: Include required header files.  Remove
122440         unused variables.
122442 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
122444         * modules/error (Depends-on): Remove gettext.
122446 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
122448         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
122449         not needed.  This removes a dependency on the gettext module.
122450         [defined _LIBC]: Do not include <libintl.h>; not needed.
122452 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
122454         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
122455         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
122457 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
122459         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
122460         HAVE_DECL_STRTOLD.
122462 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
122464         * modules/getdate (Depends-on): Remove alloca-opt.
122466 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
122468         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
122470 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
122472         * lib/argp-parse.c: Include <stddef.h>.
122473         (alignof, alignto): New macros.
122474         (parser_init): Don't assume that void * is aligned sufficiently
122475         for struct option.
122477         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
122478         need to extend the stack.
122479         (YYINITDEPTH): New macro, so that the initial stack isn't overly
122480         large.
122482 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122484         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
122486 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
122488         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
122489         (2004-10-24) change.  Apparently this was a false alarm.
122491         * modules/getdate: Depend on alloca-opt, not alloca.
122493 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
122495         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
122496         Remove now-obsolete comment about AIX.
122497         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
122498         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
122499         (YYMAXDEPTH): New macro.
122501 2004-12-18  Simon Josefsson  <jas@extundo.com>
122503         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
122505 2004-12-18  Bruno Haible  <bruno@clisp.org>
122507         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
122509 2004-12-18  Bruno Haible  <bruno@clisp.org>
122511         * lib/fatal-signal.c (fatal_signals): Make non-const.
122512         (init_fatal_signals): New function.
122513         (uninstall_handlers, install_handlers): Ignore signals that were set to
122514         SIG_IGN.
122515         (at_fatal_signal): Call init_fatal_signals.
122516         (init_fatal_signal_set): Likewise. Ignore signals that were set to
122517         SIG_IGN.
122518         Reported by Paul Eggert.
122520 2004-12-18  Bruno Haible  <bruno@clisp.org>
122522         * doc/alloca.texi: New file.
122523         * doc/alloca-opt.texi: New file.
122525 2004-12-17  Jim Meyering  <jim@meyering.net>
122527         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
122528         Otherwise, install-sh could exit with improper exit status when
122529         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
122531 2004-12-16  Simon Josefsson  <jas@extundo.com>
122533         * tests/test-base64.c: Add license.
122535 2004-12-15  Stepan Kasal  <address@hidden>
122537         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
122539 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
122541         * modules/getcwd (Files): Add m4/d-ino.m4.
122542         Suggested by Mark D. Baushke.
122544 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
122546         * lib/getdate.y (textint): New member "negative".
122547         (time_zone_hhmm): New function.
122548         Expect 14 shift-reduce conflicts, not 13.
122549         (o_colon_minutes): New rule.
122550         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
122551         (yylex): Set the "negative" member of signed numbers.
122553 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
122555         * doc/getdate.texi (Time of day items, Time zone items):
122556         Describe new formats +00:00, UTC+00:00.
122558 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
122560         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
122561         spurious "-l"s.  Problem reported by Stepan Kasal.
122563 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
122565         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
122566         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
122568 2004-12-04  Simon Josefsson  <jas@extundo.com>
122570         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
122571         Vandoorselaere <yoann@prelude-ids.org>.
122573 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
122575         Changes imported from coreutils.
122576         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
122577         exist.
122578         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
122580 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
122582         Changes imported from coreutils.
122583         * lib/hard-locale.c: Assume <locale.h> exists.
122584         Include "strdup.h".
122585         (GLIBC_VERSION): New macro.
122586         (hard_locale): Assume setlocale exists.
122587         Rewrite to avoid #ifdef.
122588         Use strdup rather than malloc + strcpy.
122589         * lib/human.c: Assume <locale.h> exists.
122590         (human_readable): Assume localeconv exists.
122592 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
122594         * modules/hard-locale (Depends-on): Add strdup.
122596 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
122598         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
122599         convert T2, not T.  (Imported from libc.)
122601 2004-11-30  Simon Josefsson  <jas@extundo.com>
122603         * modules/restrict (License): Change to LGPL.
122605 2004-11-30  Simon Josefsson  <jas@extundo.com>
122607         * m4/restrict.m4: Add copyright and copying conditions.
122609 2004-11-30  Simon Josefsson  <jas@extundo.com>
122611         * m4/base64.m4: New file.
122613 2004-11-30  Simon Josefsson  <jas@extundo.com>
122615         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
122616         base64.
122618         * tests/test-base64.c: New file.
122620         * modules/base64: New file.
122622 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
122624         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
122625         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
122627         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
122629 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
122631         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
122632         (__getcwd.c): Don't restore errno; glibc doesn't.
122633         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
122634         first, falling back to our code only if its results look suspicious.
122635         Ensure that the resulting buffer is only as large as necessary.
122637         * lib/readutmp.c: Include readutmp.h first.
122638         Include <errno.h>, since readutmp.h no longer does that.
122639         * lib/readutmp.h: Don't include <errno.h>,
122640         <sys/param.h>, <time.h>; not needed to establish interface.
122641         (errno): Remove decl.
122642         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
122643         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
122644         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
122646 2004-11-28  Simon Josefsson  <jas@extundo.com>
122648         * lib/base64.h, base64.c: New file.
122650 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
122652         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
122654 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
122656         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
122657         (Depends-on): Remove pathmax, same.  Add mempcpy.
122658         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
122659         (Makefile.am): Append getcwd.h to lib_SOURCES.
122660         (Include): Add getcwd.h.
122661         (Maintainer): Change from Jim Meyering to "all, glibc",
122662         since getdate now uses intended-for-glibc code.
122663         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
122664         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
122666 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
122668         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
122669         HP's ANSI C compiler.
122670         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
122671         Declaring int functions causes warnings on some modern systems and
122672         shouldn't be needed to compile on ancient ones.
122673         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
122674         defined.
122676         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
122677         with the following changes.
122678         (__set_errno): Parenthesize properly.
122679         Include <stdbool.h>.
122680         (MIN, MAX, MATCHING_INO): New macros.
122681         (__getcwd): Define with prototype, not K&R form.
122682         Use heuristics to allocate default buffer on stack if possible.
122683         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
122684         behavior, and to avoid the PATH_MAX limit when computing
122685         ../../../../...
122686         Use MATCHING_INO to compare inode number to file.
122687         Check for arithmetic overflow in size calculations.
122688         Fix bug in reallocation of dot array that caused getcwd to fail
122689         on directories nested deeper than 75.
122690         Be more careful about saving errno on error.
122691         Do not use realloc; use only free+malloc, as this is a bit
122692         more flexible and avoids a needless copy operation.
122693         Do not inspect st_dev and st_ino for symbolic links; POSIX
122694         doesn't specify the latter.
122695         Check for closedir errors.
122696         Avoid needless casts.
122697         Use "#ifdef weak_alias" around weak_alias, to be like other
122698         glibc code.
122699         The following changes to getcwd.c have effect only when used in
122700         gnulib; they have no effect inside glibc proper.
122701         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
122702         as alloca isn't used.
122703         (alloca, __alloca): Likewise.
122704         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
122705         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
122706         unconditionally, as gnulib assumes C89 or better.
122707         Do not include <sys/param.h>.
122708         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
122709         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
122710         better.
122711         (NULL) [!defined NULL]: Remove; we assume C89 or better.
122712         Include <dirent.h> in a way that is compatible with modern Autoconf.
122713         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
122714         New macros, if not already defined.
122715         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
122716         Use "_LIBC", not "defined _LIBC", for consistency.
122717         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
122718         a mempcpy module.
122719         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
122720         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
122721         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
122722         credit only to Jim Meyering and adjust the copyright dates.
122723         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
122724         <stdlib.h>, <unistd.h>, "pathmax.h".
122725         Instead, include "xgetcwd.h" (first) and "getcwd.h".
122726         (INITIAL_BUFFER_SIZE): Remove.
122727         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
122729 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
122731         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
122732         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
122733         Use the _ONCE methods, for efficiency.
122734         Check for fcntl.h.  In test program, include <errno.h>
122735         and <fcntl.h> if available.  Remove old K&R cruft from
122736         test program.  Check for common errors in GNU/Linux,
122737         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
122738         don't do AC_LIBOBJ, as that's getcwd.m4's job.
122739         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
122740         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
122741         name accordingly.
122742         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
122743         accommodate new getcwd.c.
122744         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
122745         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
122746         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
122747         that's all we need now.
122749 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122751         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
122752         argp-parse.c depends on getopt internals, that means we should
122753         always use our getopt, to be on the safe side.
122754         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
122755         order not to spoil the result of an eventual previous invocation
122756         of gl_GETOPT_SUBSTITUTE.
122758 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122760         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
122761         redefinition warnings. To avoid them, include the defines
122762         in `#if !defined __need_getopt ... #endif'. The only place
122763         where __getopt_argv_const is used is in definitions
122764         of getopt_long and getopt_long_only below, which are as well
122765         protected by `#ifndef __need_getopt'.
122766         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
122767         __need_getopt after including <stdio.h> and <unistd.h> These
122768         headers might have defined it.
122770 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
122772         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
122774 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
122776         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
122777         (futimens): New function, which uses futimes if available.
122778         (futimens, utimens): Support timespec==NULL, with same semantics
122779         as utime and utimens.
122780         * lib/utimens.h (futimens): New decl.
122782 2004-11-23  Jim Meyering  <jim@meyering.net>
122784         * lib/getopt_.h: Remove trailing blanks.
122786 2004-11-23  Jim Meyering  <jim@meyering.net>
122788         * lib/__fpending.c: Add comment.
122790 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
122792         * modules/canonicalize (Depends-on): Add xreadlink.
122793         Problem reported by James Youngman.
122795 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
122797         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
122798         New macros.
122799         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
122800         optopt): Use them instead of invoking ## directly; otherwise, the
122801         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
122803 2004-11-19  Bruno Haible  <bruno@clisp.org>
122805         * lib/strtok_r.c: Move comments from here...
122806         * lib/strtok_r.h: ... to here.
122808 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
122810         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
122811         implementations that mishandle size_t overflow.
122813 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
122815         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
122816         might fail.  Problem reported by Yoann Vandoorselaere.
122817         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
122818         implementations that mishandle size_t overflow.
122820 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
122822         * modules/canon-host (Depends-on): Add strdup.
122824 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
122826         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
122828 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
122830         * lib/canon-host.c: Include "strdup.h".
122831         (canon_host): Use getaddrinfo if available, so that IPv6 works.
122832         Use strdup instead of malloc/strcpy to duplicate strings.
122834         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
122835         (human_space_before_unit): New constant.
122836         * lib/human.c (human_readable): Support it.
122838         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
122839         (xgetcwd): Set errno correctly when failing.
122840         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
122841         the failure is actually due to a PATH_MAX problem.
122843         Further getopt changes to make it more likely that glibc will
122844         buy the changes back.
122845         * lib/getopt.c (POSIXLY_CORRECT): New constant.
122846         (getopt): Use it, so to preserve glibc semantic
122847         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
122848         when compiling for libc.
122849         * lib/getopt_.h (__getopt_argv_const): Bring it back.
122850         (getopt_long, getopt_long_only): Use it.
122852         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
122853         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
122854         (getopt): Argv is now char * const *, as per standard.
122855         (_getopt_internal_r, _getopt_internal): Argv is now char **,
122856         not char *__getopt_argv_const *.
122857         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
122858         _getopt_long_only_r): Likewise.
122859         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
122860         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
122861         _getopt_long_r, _getopt_long_only_r): Likewise.
122862         * lib/getopt_.h (__getopt_argv_const): Remove.
122863         (getopt): Argv is now char * const *, as per standard.
122865         * lib/getdate.y (tORDINAL): New token.
122866         (day, relunit): Allow it for relative times.
122867         (relative_time_table): Use tORDINAL for ordinals.
122869 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
122871         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
122872         Document that "second" isn't allowed as an ordinal number.
122874 2004-11-16  Jim Meyering  <jim@meyering.net>
122876         * modules/closeout (Depends-on): Add fpending.
122878 2004-11-15  Jim Meyering  <jim@meyering.net>
122880         * lib/closeout.c: Include "__fpending.h" once again.
122881         Include <stdbool.h>.
122882         (close_stdout): Don't fail just because stdout was closed initially,
122883         since some programs don't write to stdout in the normal course of
122884         operation (other than --version and --help), and we don't want this
122885         function to make e.g. `touch file >&-' fail.
122886         But do fail if it was closed and someone has tried to write to it.
122887         E.g., `printf foo >&-' must fail.
122889 2004-11-13  Jim Meyering  <jim@meyering.net>
122891         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
122893 2004-11-12  Simon Josefsson  <jas@extundo.com>
122895         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
122896         small doc fix is still pending.
122898 2004-11-11  Simon Josefsson  <jas@extundo.com>
122900         * modules/strtok_r: New file.
122902         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
122903         strtok_r.
122905 2004-11-11  Simon Josefsson  <jas@extundo.com>
122907         * m4/strtok_r.m4: New file.
122909         * m4/getopt.m4: Replace opterr.
122911 2004-11-11  Simon Josefsson  <jas@extundo.com>
122913         * lib/strtok_r.h, strtok_r.c: New file.
122915 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
122917         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
122918         of replacing opterr, getopt, etc.  This should handle the
122919         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
122921 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
122923         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
122924         we can stop lying to compilers about the constness of argv when we
122925         are compiled outside glibc.
122926         (getopt, getopt_long, getopt_long_only): Use it.
122927         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
122928         _getopt_internal, getopt): Likewise.
122929         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
122930         _getopt_long_only_r): Likewise.
122931         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
122932         _getopt_long_r, _getopt_long_only_r): Likewise.
122934         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
122935         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
122936         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
122937         the other external symbols.
122938         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
122939         declaration, since the above renaming now works around collisions.
122941 2004-11-11  Jim Meyering  <jim@meyering.net>
122943         * lib/linebreak.c: Remove trailing blanks.
122944         * lib/alloca_.h: Likewise.
122945         * lib/acosl.c: Likewise.
122946         * lib/euidaccess.c: Likewise.
122947         * lib/allocsa.h: Likewise.
122949 2004-11-10  Simon Josefsson  <jas@extundo.com>
122951         * m4/getaddrinfo.m4: New file.
122953 2004-11-10  Simon Josefsson  <jas@extundo.com>
122955         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
122957 2004-11-10  Simon Josefsson  <jas@extundo.com>
122959         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
122960         getaddrinfo.
122962         * modules/getaddrinfo: New file.
122964 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
122966         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
122968 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
122970         * lib/mktime.c (SHR): New macro, which is a portable
122971         substitute for >> that should work even on Crays.
122972         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
122973         Problem reported by Mark D. Baushke in
122974         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
122975         * lib/getdate.y (SHR): Likewise.
122976         (tm_diff): Use it.
122977         * lib/strftime.c (SHR): Likewise.
122978         (tm_diff): Use it.
122979         * lib/quotearg.c (struct quoting_options): Use unsigned int for
122980         quote_these_too, so that right shifts are well defined.  All uses
122981         changed.
122983 2004-11-10  Jim Meyering  <jim@meyering.net>
122985         Ensure that no close failure goes unreported.
122986         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
122987         return early when it seems there's nothing to flush.
122988         Don't include __fpending.h.
122990 2004-11-10  Jim Meyering  <jim@meyering.net>
122992         * modules/closeout (Depends-on): Remove fpending.
122994 2004-11-10  Jim Meyering  <jim@meyering.net>
122996         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
122998 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
123000         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
123001         gl_FUNC_STRFTIME.
123002         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
123003         and AC_REQUIRE when possible, to avoid duplicate checks.
123004         Check for <wchar.h>.
123006 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
123008         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
123010 2004-11-09  Bruno Haible  <bruno@clisp.org>
123012         * m4/sockpfaf.m4: New file.
123014 2004-11-05  Bruno Haible  <bruno@clisp.org>
123016         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
123017         Reported by Mark D. Baushke <mdb@cvshome.org>.
123019 2004-11-04  Bruno Haible  <bruno@clisp.org>
123021         2004-09-11  Bruno Haible  <bruno@clisp.org>
123022                 * allocsa.valgrind: New file.
123023         2004-02-06  Bruno Haible  <bruno@clisp.org>
123024                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
123025                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
123026                 Reported by Christopher Seip <chris.seip@hp.com>.
123028 2004-11-04  Bruno Haible  <bruno@clisp.org>
123030         * modules/allocsa (Files): Add lib/allocsa.valgrind.
123031         (Makefile.am): Distribute it.
123033 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
123035         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
123036         with errno == ERANGE if the buffer is too small.
123037         Problem reported by Mark D. Baushke.
123039 2004-11-03  Albert Chin  <china@thewrittenword.com>
123040             Paul Eggert  <eggert@cs.ucla.edu>
123042         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
123043         equivalent, substitute $ac_type for equivalent type rather than
123044         blindly using uint32_t *always* which won't work if uint32_t is not
123045         available.  Define _UINT32_T to work around typedef of uint32_t if
123046         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
123047         2.5.1.
123049 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
123051         * m4/jm-macros.m4: Sync from coreutils.
123052         (gl_MACROS): Check for mbrlen, for pathchk.
123053         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
123055 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
123057         * lib/xreadlink.c (MAXSIZE): New macro.
123058         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
123059         size does not exceed MAXSIZE.  Avoid cast.
123060         As suggested by Mark D. Baushke in
123061         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
123062         if readlink fails with buffer size just under MAXSIZE, try again
123063         with MAXSIZE.
123065 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
123067         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
123069 2004-11-02  Derek R. Price  <derek@ximbiot.com>
123070         and  Paul Eggert  <eggert@cs.ucla.edu>
123072         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
123073         (get_date): Overparenthesize to avoid GCC warning.
123075 2004-11-02  Bruno Haible  <bruno@clisp.org>
123077         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
123078         returns void.
123080 2004-11-02  Bruno Haible  <bruno@clisp.org>
123082         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
123083         function returns void.
123085 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
123087         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
123088         fflush_unlocked, flockfile, funlockfile, funlockfile,
123089         fputs_unlocked, putc_unlocked.
123091 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
123093         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
123094         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
123095         already declared.
123097 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
123099         * modules/getdate (Files): Add doc/getdate.texi.
123100         (Depends-on): Add setenv, xalloc.
123102 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
123104         * lib/getdate.y: Add support for TZ="foo" within a date string.
123105         Fix some bugs near time_t boundaries.  Reject dates with
123106         out-of-range components, e.g., "Sept 31".
123107         Include <stdlib.h>, "setenv.h", "xalloc.h".
123108         (ISDIGIT_LOCALE): Remove; unused.
123109         Note that the TZ and time functions used here are not reentrant.
123110         (mktime_ok, get_tz): New functions.
123111         (TZBUFSIZE): New constant.
123112         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
123113         This requires that we sometimes generate our own TZ="XXX..." setting.
123115 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
123117         * doc/getdate.texi: New file, from coreutils with modifications for
123118         the new TZ parsing.
123120 2004-10-27  Derek R. Price  <derek@ximbiot.com>
123122         * lib/mktime.c (not_equal_tm): Remove redundant check.
123124 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
123126         * modules/regex (lib_SOURCES): Add regex.c.
123127         Reported by James Youngman in
123128         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
123130 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
123132         * lib/getdate.y: Use Bison 1.875 features, and some minor
123133         code cleanups.  This change does not affect semantics.
123134         Don't include <stdlib.h>; no longer needed.
123135         Don't include unlocked-io.h; only the "#if TEST" code uses
123136         stdio, and performance isn't crucial there.
123137         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
123138         Bison 1.875 features as described below.
123139         All uses of "PC." replaced by "pc->".
123140         (YYSTYPE): Add a forward declaration.
123141         (yylex, yyerror): Use full prototypes in forward decls.
123142         Use "%pure-parser" rather than obsolescent "%pure_parser".
123143         Use %parse-param and %lex-param instead of obsolescent
123144         YYPARSE_PARAM and YYLEX_PARAM.
123145         (meridian_table, month_and_day_table, time_units_table,
123146         relative_time_table, time_zone_table, military_table,
123147         lookup_zone, lookup_word, get_date):
123148         Use NULL instead of 0 where appropriate.
123149         (to_hour): Avoid abort (), to avoid a dependency on
123150         stdlib.h.
123151         (yyerror, yylex): Now accepts parser_control * arg.
123152         (main) [TEST]: Use '\0' rather than 0 for char.
123154 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
123156         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
123158 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
123160         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
123161         It's now the caller's responsibility to handle the case where
123162         !HAVE_GETPAGESIZE && !defined getpagesize.
123164         * lib/mktime.c (leapyear): Arg is long int, not int.
123166 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
123168         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
123170 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
123172         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
123173         missing.  Problem reported by James Youngman.
123175 2004-10-16  Simon Josefsson  <jas@extundo.com>
123177         * gnulib-tool: Fix comments.  Fix parse problem.
123178         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
123180 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
123182         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
123183         implementation of getopt_long.  Problem reported by Alexander Taler in:
123184         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
123186 2004-10-15  Bruno Haible  <bruno@clisp.org>
123188         * gnulib-tool: Untabify. Initialize supplied_libname.
123189         (func_usage): More homogenous output.
123190         (func_modules_transitive_closure, func_modules_to_filelist,
123191         func_emit_lib_Makefile_am): New functions.
123192         (func_import): New function, extracted from big case statement. Use
123193         func_get_license, func_modules_transitive_closure,
123194         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
123195         opt_lgpl. Don't use test -a, as it's not portable.
123196         (func_create_testdir): Use func_modules_transitive_closure,
123197         func_modules_to_filelist, func_emit_lib_Makefile_am.
123199 2004-10-15  Bruno Haible  <bruno@clisp.org>
123201         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
123203 2004-10-15  Bruno Haible  <bruno@clisp.org>
123205         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
123206         the portions belonging to each module.
123207         Suggested by Derek Robert Price <derek@ximbiot.com>.
123209 2004-10-12  Simon Josefsson  <jas@extundo.com>
123211         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
123212         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
123213         to real functions.
123215 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123217         * modules/vsnprintf: New file.
123219 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123221         * m4/vsnprintf.m4: New file.
123223 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123225         * lib/vsnprintf.h: New file.
123226         * lib/vsnprintf.c: New file.
123228 2004-10-11  Bruno Haible  <bruno@clisp.org>
123230         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
123231         vsnprintf.
123233 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
123235         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
123237 2004-10-07  Bruno Haible  <bruno@clisp.org>
123239         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
123240         fits into the provided buffer.
123242 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
123244         * lib/diacrit.c, diacrit.h: Add GPL notice.
123246         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
123247         notice.
123248         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
123249         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
123250         This avoids a potential constant-folding bug.
123252 2004-10-05  Bruno Haible  <bruno@clisp.org>
123254         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
123255         for the declaration of strsep.
123257 2004-10-05  Bruno Haible  <bruno@clisp.org>
123259         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
123261 2004-10-04  Simon Josefsson  <jas@extundo.com>
123263         * modules/memmem: New file.
123264         * tests/test-memmem.c: New file.
123265         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
123267 2004-10-04  Simon Josefsson  <jas@extundo.com>
123269         * m4/memmem.m4: New file.
123271 2004-10-04  Simon Josefsson  <jas@extundo.com>
123273         * lib/memmem.h: New file.
123274         * lib/memmem.c: New file, taken from glibc.
123276 2004-10-04  Simon Josefsson  <jas@extundo.com>
123278         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
123279         '#ifdef USE_UNLOCKED_IO'.
123281 2004-10-04  Simon Josefsson  <jas@extundo.com>
123283         * config/srclist.txt: Add memmem from glibc.
123285 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123287         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
123289         * modules/argmatch, modules/argp, modules/closeout, modules/error,
123290         modules/exclude, modules/getdate, modules/getline,
123291         modules/getndelim2, modules/getpass, modules/getpass-gnu,
123292         modules/getusershell, modules/linebuffer, modules/md5,
123293         modules/mountlist, modules/posixtm, modules/readtokens,
123294         modules/readutmp, modules/regex, modules/sha1,
123295         modules/version-etc, modules/yesno:
123296         Remove dependency on unlocked-io.
123298 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123300         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
123302         * m4/unlocked-io.m4: Add copyright notice.
123303         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
123305 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123307         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
123308         * lib/xmalloc.c (xmemdup): Likewise.
123309         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
123310         XFREE): Remove these long-obsolescent macros.
123311         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
123312         * lib/xstrdup.c: Remove.
123314         * lib/regex.c (re_comp): Cast gettext return value to char *,
123315         Problem reported by Martin Neitzel via Mark D. Baushke.
123317 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
123319         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
123320         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
123321         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
123322         regex.c, sha1.c, version-etc.c, yesno.c:
123323         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
123324         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
123325         the includer's responsibility.
123327         Sync from coreutils.
123329         * lib/modechange.c (mode_compile): Don't decrement a pointer that
123330         points to the start of a string, as the C Standard says the
123331         resulting behavior is undefined.
123333         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
123334         simple -> simple_backups, numbered_existing ->
123335         numbered_existing_backups, numbered -> numbered_backups
123336         to avoid shadowing problems.  All uses changed.
123337         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
123338         * lib/backupfile.c (check_extension, numbered_backup):
123339         Rename locals to avoid shadowing 'basename'.
123340         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
123341         once.
123343         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
123344         * lib/.cvsignore: Add getopt.h.
123346 2004-10-04  Bruno Haible  <bruno@clisp.org>
123348         * modules/README: New file.
123349         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
123350         not a module.
123352 2004-10-02  Jim Meyering  <jim@meyering.net>
123354         * lib/dirfd.h, getpagesize.h: Add copyright notice.
123356 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123358         * modules/strsep: New file.
123360 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123362         * m4/strsep.m4: New file.
123364 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
123366         * lib/strsep.h: New file.
123367         * lib/strsep.c: New file.
123369 2004-10-01  Simon Josefsson  <jas@extundo.com>
123371         * lib/snprintf.c (snprintf): Handle size==0.
123373 2004-10-01  Simon Josefsson  <jas@extundo.com>
123374             Bruno Haible  <bruno@clisp.org>
123376         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
123377         (snprintf): Declare 'args'.
123379 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
123381         * lib/snprintf.c: Remove comments as to why each header is needed.
123383 2004-10-01  Bruno Haible  <bruno@clisp.org>
123385         * MODULES.html.sh: Add strsep.
123387 2004-09-30  Simon Josefsson  <jas@extundo.com>
123389         * modules/snprintf: New file.
123391 2004-09-30  Simon Josefsson  <jas@extundo.com>
123393         * m4/snprintf.m4: New file.
123395 2004-09-30  Simon Josefsson  <jas@extundo.com>
123397         * lib/snprintf.h, lib/snprintf.c: New files.
123399 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123401         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
123402         (hol_entry_help): Never translate an empty string.
123403         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
123404         * lib/argp.h (OPTION_NO_TRANS): New option.
123406 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
123408         * modules/argp (Maintainer): Replace Simon Josefsson
123409         by Sergey Poznyakoff.
123411 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
123413         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
123414         changes merged back into glibc.
123416 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
123418         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
123420 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
123422         * lib/xvasprintf.c: Include xalloc.h.
123423         (xvasprintf): Use xalloc_die, not xmalloc_die.
123425 2004-09-29  Bruno Haible  <bruno@clisp.org>
123427         * modules/alloca-opt: New file, derived from modules/alloca.
123428         * modules/allocsa: Depend on alloca-opt instead of alloca.
123429         * modules/setenv: Likewise.
123430         * modules/vasnprintf: Likewise.
123431         * MODULES.html.sh: Add alloca-opt.
123433 2004-09-28  Simon Josefsson  <jas@extundo.com>
123435         * gnulib-tool: New parameter --lgpl, to asseert that modules are
123436         LGPL, and to replace license template from GPL to LGPL.
123438 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
123440         * modules/dummy: Change license to LGPL.
123442 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
123444         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
123446 2004-09-24  Simon Josefsson  <jas@extundo.com>
123448         * modules/minmax (License): Change from GPL to LGPL.
123450 2004-09-23  Simon Josefsson  <jas@extundo.com>
123452         * gnulib-tool (--import): Typo.
123454 2004-09-23  Simon Josefsson  <jas@extundo.com>
123456         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
123458 2004-09-22  Bruno Haible  <bruno@clisp.org>
123460         * modules/*: Add 'License' field.
123461         * gnulib-tool: Accept --extract-license option.
123462         (func_get_license): New function.
123464 2004-09-21  Bruno Haible  <bruno@clisp.org>
123466         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
123467         Reported by Simon Josefsson.
123469 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
123471         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
123472         gl_AC_TYPE_LONG_LONG.
123474 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
123476         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
123478 2004-09-18  Simon Josefsson  <jas@extundo.com>
123479         and  Paul Eggert  <eggert@cs.ucla.edu>
123481         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
123482         calls with autoreconf.  Define GL_LIB.
123484 2004-09-14  Karl Berry  <karl@gnu.org>
123486         * config/srclist.txt: unsync setenv.c, sigh.
123488 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
123490         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
123491         Problem reported by Bruno Haible in:
123492         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
123494 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
123496         * config/srclist.txt: Comment out argp-pvh.c.
123498 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
123500         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
123501         in case some system header has #define'd it.  Problem reported by
123502         Soeren D. Schulze in
123503         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
123505 2004-09-09  Karl Berry  <karl@gnu.org>
123507         * regex.[ch]: delete from the root.  These were supposed to be
123508                 synced with emacs cvs, but this has not happened for about
123509                 a year, and anyway nothing else uses emacs regex.[ch].
123510                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
123511                 lib/regex[.ch] is untouched.
123513 2004-09-09  Bruno Haible  <bruno@clisp.org>
123515         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
123517 2004-09-09  Bruno Haible  <bruno@clisp.org>
123519         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
123520         modifications.
123521         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
123523 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
123525         * modules/xvasprintf: New file.
123526         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
123528 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
123530         * lib/xvasprintf.h: New file.
123531         * lib/xvasprintf.c: New file.
123532         * lib/xasprintf.c: New file.
123534 2004-09-08  Bruno Haible  <bruno@clisp.org>
123536         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
123538 2004-09-08  Bruno Haible  <bruno@clisp.org>
123540         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
123541         length is > INT_MAX.
123542         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
123543         more.
123545 2004-09-08  Bruno Haible  <bruno@clisp.org>
123547         * lib/stdint_.h: New file, taken from GNU clisp.
123549 2004-09-08  Bruno Haible  <bruno@clisp.org>
123550             Oskar Liljeblad  <oskar@osk.mine.nu>
123552         * modules/stdint: New file.
123553         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
123555 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
123557         Import from coreutils.
123558         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
123559         strings on unbounded length.  alloca's performance benefits aren't
123560         that important here.
123561         (V_STRDUP): Remove.
123562         (parse_with_separator): New function, with most of the internals
123563         of the old parse_user_spec.  Allow user to omit both user and group,
123564         for compatibility with FreeBSD.
123565         Clone only the user name, not the entire spec.
123566         Do not set *uid, *gid unless entirely successful.
123567         Avoid memory leak in some failing cases.
123568         Fix regression for USER.GROUP reported by Dmitry V. Levin in
123569         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
123570         (parse_user_spec): Rewrite to use parse_with_separator.
123572 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
123574         * modules/userspec: Don't depend on alloca.
123576 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
123578         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
123580 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
123582         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
123583         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
123584         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
123586 2004-08-16  Simon Josefsson  <jas@extundo.com>
123588         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
123589         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
123590         Add --dry-run for --import.
123591         Let user provided command line parameters override configure.ac
123592         settings.
123594 2004-08-12  Simon Josefsson  <jas@extundo.com>
123596         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
123597         as discussed with Paul Eggert in threads rooted at
123598         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
123599         and
123600         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
123601         Before, the test was empty, and relied on ELIDE_CODE in source
123602         code.)
123603         (gl_PREREQ_GETOPT): New macro.
123604         (gl_GETOPT): Use them.
123606 2004-08-12  Simon Josefsson  <jas@extundo.com>
123608         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
123609         * lib/getopt_.h: Renamed from getopt.h.
123611 2004-08-12  Simon Josefsson  <jas@extundo.com>
123613         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
123614         Change default library name from libfoo to libgnu.
123615         Now, if you have a configure.ac that says:
123616                 gl_SOURCE_BASE(gl)
123617                 gl_M4_BASE(gl/m4)
123618                 gl_MODULES(error getopt etcetera)
123619                 gl_INIT
123620         you can import all you need by running:
123621                 ../gnulib/gnulib-tool --import
123623         * modules/getopt (Files): Rename getopt.h to getopt_.h.
123624         (Makefile.am): Rewrite, use logic from argz.
123625         (Include): Use <getopt.h> instead of "getopt.h".
123627 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
123629         * modules/argp (Files): Add m4/unlocked-io.m4.
123630         (Depends-on): Add extensions.
123632 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
123634         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
123635         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
123636         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
123637         Check for program_invocation_name, program_invocation_short_name,
123638         flockfile, funlockfile, features.h, _getopt_long_only_r.
123640 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
123642         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
123643         its complicated substitute.
123644         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
123645         and program_invocation_name.
123646         (__argp_basename) [!_LIBC]: Remove; the only use was
123647         replaced by its body.
123648         (__argp_short_program_name): Change condition from
123649         !defined __argp_short_program_name to
123650         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
123651         to match argp-namefrob.h.
123652         (__argp_failure): Don't assume strerror_r returns char *.
123653         * lib/argp-parse.c (N_): Define unconditionally.
123654         (argp_default_options): Fill out initializers with 0 to avoid
123655         gcc warnings.
123657 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
123659         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
123660         getopt1.c.
123662 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
123664         Merge from coreutils.
123666         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
123668         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
123669         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
123671 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
123673         Merge from coreutils.
123675         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
123676         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
123677         for Reliant Unix 5.43.
123679         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
123680         (union fooround): Use uintmax_t, not long int.
123681         The rest is a merge from libc:
123682         [defined _LIBC]: Include <shlib-compat.h>.
123683         (_obstack) [defined _LIBC]: Remove after 2.3.4.
123685         * lib/settime.c (settime): Recode to avoid warning with
123686         Sun Forte C 6U2.
123688         * lib/strverscmp.c: Convert to UTF-8.
123690 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
123692         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
123693         m4/uintmax_t.m4.
123695 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
123697         * modules/xalloc-die: New file.
123698         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
123700         * modules/md5 (Files): Add m4/uint32_t.m4.
123701         * modules/sha1: Renamed from modules/sha.
123702         (Files):
123703         Rename lib/sha.h to lib/sha1.h.
123704         Rename lib/sha.c to lib/sha1.c.
123705         Rename m4/sha.m4 to m4/sha1.m4.
123706         (lib_SOURCES): Likewise.
123707         (configure.ac): Rename gl_SHA to gl_SHA1.
123708         (Include): sha.h -> sha1.h.
123710 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
123712         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
123713         * m4/sha1.m4: Renamed from sha.m4.
123714         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
123716 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
123718         * lib/obstack.h (obstack_empty_p):
123719         Don't assume that chunk->contents is suitably aligned.
123720         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
123721         Likewise. Problem reported by Benno in
123722         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
123724         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
123725         readable.  This could be improved further but it'd take some work.
123727 2004-08-08  Simon Josefsson  <jas@extundo.com>
123729         * modules/xgethostname (Depends-on): Remove exit and error (not
123730         used).
123732         * modules/getpass-gnu: Add getpass.h.
123733         (Depends-on): Add stdbool.
123734         * modules/getpass: Add getpass.h.
123736 2004-08-08  Simon Josefsson  <jas@extundo.com>
123738         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
123739         Check getpass declaration.
123741 2004-08-08  Simon Josefsson  <jas@extundo.com>
123743         * lib/xgethostname.c: Don't include error.h (not used).
123745         * lib/getpass.h: Add.
123746         * lib/getpass.c: Include getpass.h first.
123748 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
123750         * lib/xalloc-die.c: New file.
123751         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
123752         All uses removed.
123753         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
123754         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
123755         xalloc-die.c.
123756         (_, N_, xalloc_die): Move to xalloc-die.c.
123757         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
123758         so that we needn't mess with xalloc_msg_memory_exhausted.
123760         * lib/sha1.h: Renamed from sha.h.
123761         (SHA1_H): Renamed from _SHA_H.
123762         (sha1_ctx): Renamed from sha_ctx.
123763         (sha1_init_ctx): Renamed from sha_init_ctx.
123764         (sha1_process_block): Renamed from sha_process_block.
123765         (sha1_process_bytes): Renamed from sha_process_bytes.
123766         (sha1_finish_ctx): Renamed from sha_finish_ctx.
123767         (sha1_read_ctx): Renamed from sha_read_ctx.
123768         (sha1_stream): Renamed from sha_stream.
123769         (sha1_buffer): Renamed from sha_buffer.
123770         * lib/sha1.c: Likewise; renamed from sha.c.
123771         Do not include <sys/types.h>.
123772         Include <stddef.h> rather than <stdlib.h>.
123774 2004-08-08  Bruno Haible  <bruno@clisp.org>
123776         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
123777         FILESYSTEM_PREFIX_LEN.
123778         * lib/progreloc.c: Likewise.
123779         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
123781 2004-08-06  Simon Josefsson  <jas@extundo.com>
123783         * modules/progname (Depends-on): Don't depend on stdbool.
123785 2004-08-06  Simon Josefsson  <jas@extundo.com>
123787         * modules/getsubopt: New file.
123788         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
123789         getsubopt.
123791 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
123793         More merge from coreutils.
123795         * m4/utimens.m4, m4/utimecmp.m4: New files.
123796         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
123797         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
123798         prereq.m4, sha.m4: Import changes from coreutils.
123800 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
123802         More merge from coreutils.
123803         * modules/raise, modules/readtokens0, modules/utimens:
123804         * modules/utimecmp, module/xnanosleep: New files.
123805         * modules/strftime: Add lib/strftime.h.
123806         Change include from <time.h> to "strftime.h".
123807         * modules/yesno: Add lib/yesno.h.
123808         * modules/backupfile: Remove lib/addext.c.
123809         * modules/euidaccess: Add stat-macros.h.
123810         * modules/canonicalize, modules/euidaccess,
123811         modules/filemode, modules/lchown, modules/makepath,
123812         modules/rmdir, modules/stat: Likewise.
123814 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
123816         Merge from tar.
123817         * lib/argp-help.c (make_hol, hol_append): Don't assume that
123818         SIZE_MAX is a valid preprocessor constant.
123819         (__argp_basename): Change from "#ifndef _LIBC"
123820         to "#ifndef __argp_short_program_name", so that
123821         we don't compile these functions for tar.
123823         More merges from coreutils.
123824         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
123825         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
123826         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
123827         * lib/addext.c: Remove; no longer needed.
123828         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
123829         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
123830         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
123831         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
123832         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
123833         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
123834         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
123835         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
123836         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
123837         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
123838         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
123839         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
123840         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
123841         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
123842         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
123843         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
123844         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
123845         Import changes from coreutils.
123847 2004-08-05  Simon Josefsson  <jas@extundo.com>
123849         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
123851 2004-08-05  Simon Josefsson  <jas@extundo.com>
123853         * m4/getsubopt.m4: New file.
123855 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
123857         Merge from coreutils.
123859         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
123860         * m4/getcwd-path-max.m4: New files.
123862         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
123863         FILESYSTEM_PREFIX_LEN ->
123864         FILE_SYSTEM_PREFIX_LEN.
123865         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
123866         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
123867         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
123868         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
123870         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
123871         prerequisite modules now handle the DOS stuff.
123872         Don't check for unistd.h.
123874 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
123876         Merge from coreutils.
123878         * lib/.gdb-history: Remove; this doesn't belong here.
123880         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
123881         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
123882         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
123883         * lib/getcwd.c: New files.
123885         * lib/dirname.h: Include <stdbool.h>.
123886         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
123887         for consistency with POSIX terminology.  All uses changed.
123888         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
123889         (strip_trailing_slashes): Use bool for booleans.
123890         * lib/stripslash.c (strip_trailing_slashes): Likewise.
123892         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
123893         sometimes returns a positive errno value even when it succeeds.
123894         (print_errno_message) [!LIBC]: Fall back on strerror if
123895         __strerror_r fails.
123897         * lib/path-concat.c (mempcpy): Don't define if a system header defines
123898         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
123899         (longest_relative_suffix): New function.
123900         (path_concat): Use it.  Assume first argument is not NULL.
123901         Port to DOS.  Omit redundant separators.
123902         Report an error instead of returning NULL.
123903         Use mempcpy instead of memcpy.
123904         (xpath_concat): Remove: not declared or used.
123906         * lib/same.h: Include <stdbool.h>
123907         (same_name): Return bool, not int.
123908         * lib/same.c (same_name): Likewise.
123909         (errno): Don't declare; we assume C89 or better now.
123911         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
123912         if not already defined.
123914         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
123915         * lib/dup-safer.c (errno): Likewise.
123917 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
123919         Merge from coreutils.
123920         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
123921         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
123922         * modules/path-concat: Don't depend on strdup.
123924 2004-08-03  Simon Josefsson  <jas@extundo.com>
123926         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
123927         * lib/progname.h: Don't include stdbool.h.
123929 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
123931         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
123932         * MODULES.html.sh (func_all_modules): Remove fatal.
123934 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
123936         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
123938 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
123940         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
123941         working.
123943 2004-08-02  Simon Josefsson  <jas@extundo.com>
123945         * lib/getsubopt.h: New file, with comments from Bruno Haible.
123946         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
123947         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
123949 2004-08-01  Simon Josefsson  <jas@extundo.com>
123951         * lib/xgetdomainname.c: Include stdlib.h, for free().
123953 2004-07-19  Bruno Haible  <bruno@clisp.org>
123955         * MODULES.html.sh (func_all_modules): Add dummy.
123957 2004-07-16  Simon Josefsson  <jas@extundo.com>
123959         * modules/dummy: New file.
123961 2004-07-16  Simon Josefsson  <jas@extundo.com>
123963         * lib/dummy.c: New file.
123965 2004-07-16  Bruno Haible  <bruno@clisp.org>
123967         * lib/backupfile.h: Add extern "C" for C++.
123968         * lib/closeout.h: Likewise.
123969         * lib/copy-file.h: Likewise.
123970         * lib/findprog.h: Likewise.
123971         * lib/full-write.h: Likewise.
123972         * lib/pathname.h: Likewise.
123973         * lib/progname.h: Likewise.
123974         * lib/stpcpy.h: Likewise.
123975         * lib/stpncpy.h: Likewise.
123976         * lib/strcase.h: Likewise.
123977         * lib/strstr.h: Likewise.
123978         * lib/xalloc.h: Likewise.
123980         * lib/mbswidth.h: Add extern "C" for C++.
123981         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
123983 2004-07-13  Robert Millan  <robertmh@gnu.org>
123985         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
123987 2004-07-09  Simon Josefsson  <jas@extundo.com>
123989         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
123990         failed without this.)
123992 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
123994         * modules/chown (Files): Add lib/fchown-stub.c, since
123995         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
123997 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
123999         * lib/fchown-stub.c: New file.
124001 2004-06-24  Jim Meyering  <jim@meyering.net>
124003         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
124005 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
124007         * modules/argz: Omit "#include".
124009         * MODULES.html.sh (func_all_modules): Add calloc, to match
124010         2004-06-01 addition of calloc module.
124012 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
124014         * m4/argz.m4: New file, which is autoupdated from libtool.
124016 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
124018         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
124019         libtool.
124021 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
124023         * config/srclist-update: Don't insist on "USA." before the
124024         close-comment, as libtool omits the period and puts the */ on a
124025         separate line.
124026         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
124027         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
124029 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
124031         * modules/argz: New file.
124032         * MODULES.html.sh (func_all_modules): Add argz.
124034 2004-06-12  Jim Meyering  <jim@meyering.net>
124035         and  Paul Eggert  <eggert@cs.ucla.edu>
124037         * modules/hash (Files): Add lib/xalloc.h.
124038         * modules/pipe (Depends-on): Add wait-process.
124039         * modules/stat (Depends-on): Add xalloc.
124040         * modules/userspec (Files): Add lib/userspec.h.
124041         * modules/xstrto
124043         Upgrade from gettext-0.13.
124044         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
124045         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
124046         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
124048 2004-06-10  Jim Meyering  <jim@meyering.net>
124050         * lib/calloc.c: New file.
124052 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
124054         * lib/getdate.y (yylex): Allow space between sign and number.
124055         Problem reported by Dan Jacobson.
124057 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
124059         Merge from coreutils CVS.
124061         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
124062         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
124063         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
124064         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
124065         xstrtol.m4: Fix copyright date and/or serial number.
124067         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
124068         See if we need an fchown replacement.
124069         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
124070         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
124071         and use the replacement function if we detect either defect.
124073         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
124074         gl_UTIMECMP.
124076 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
124077         and  Jim Meyering  <jim@meyering.net>
124079         Merge from coreutils CVS.
124081         * lib/stat-macros.h: New file, with contents from file-type.h
124082         and coreutils' system.h.
124083         * lib/file-type.c: Include "stat-macros.h".
124084         * lib/file-type.h (file_type): Move all macro definitions to new file,
124085         stat-macros.h.
124087         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
124088         Wrap old code with this conditional.
124089         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
124090         function that does not dereference symlinks.
124091         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
124093         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
124094         dependency problems.
124095         (xreadlink): Accept new arg SIZE, for efficiency.
124096         All decls and uses changed.
124097         * lib/xreadlink.h: Include <stddef.h>, for size_t.
124099         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
124100         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
124102         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
124103         sysexits.h.
124105 2004-06-01  Jim Meyering  <jim@meyering.net>
124107         * m4/calloc.m4: New file.
124109 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
124111         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
124112         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
124113         Also, fix a typo in a diagnostic.
124115 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
124117         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
124118         or AC_FUNC_REALLOC.
124120 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
124122         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
124123         macros to be defined.
124124         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
124125         the allocator returns NULL because the requested size is zero.
124127 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
124129         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
124130         var.  Add comment explaining why libc still defines it.  This
124131         merges the following patch from glibc:
124132         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
124134 2004-05-20  Andreas Schwab  <schwab@suse.de>
124136         * m4/free.m4: Replace free if it not known to work, not the other
124137         way round.
124139 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
124141         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
124142         present in glibc since revision 1.1 of this file.
124143         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
124144         obstack_alignment_mask, obstack_alloc, obstack_base,
124145         obstack_blank, obstack_blank_fast, obstack_chunk_size,
124146         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
124147         obstack_grow0, obstack_init, obstack_int_grow,
124148         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
124149         obstack_next_free, obstack_object_size, obstack_ptr_grow,
124150         obstack_ptr_grow_fast, obstack_room): Remove declarations of
124151         nonexistent functions.
124153 2004-05-18  Karl Berry  <karl@gnu.org>
124155         * config/srclist.txt: break link for vasnprintf.c.
124157 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
124159         Port obstack to the AS/400, where pointers are 16 bytes wide and
124160         you cannot cast an integer to a valid pointer.  This patch is
124161         currently waiting to be integrated into glibc; see
124162         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
124164         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
124165         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
124166         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
124167         (struct obstack): temp member is now a union of a pointer and
124168         an integer, instead of an integer.  All integer uses changed.
124169         This does not affect the physical layout of struct obstack,
124170         except on hosts (like the AS/400) where the size or alignment of
124171         void * is greater than that of ptrdiff_t.
124172         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
124173         __STDC__)]: Store temporary in pointer member of union, not
124174         integer member.
124175         * lib/obstack.c: Include <stddef.h>, for offsetof.
124176         (struct fooalign): Remove; it doesn't need a name.
124177         (union fooround): Change double to long double, and add void *.
124178         (DEFAULT_ALIGNMENT): Use offsetof to compute.
124179         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
124180         not a macro.  Hence the values are always int; so remove all
124181         casts-to-int in uses.
124183 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
124185         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
124186         we can get this patch merged into glibc.
124188 2004-05-17  Derek R. Price  <derek@ximbiot.com>
124189             Paul Eggert  <eggert@cs.ucla.edu>
124191         * m4/argp: Depend on alloca.
124193 2004-05-17  Derek R. Price  <derek@ximbiot.com>
124194             Paul Eggert  <eggert@cs.ucla.edu>
124196         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
124197         freecoding.
124199 2004-05-17  Bruno Haible  <bruno@clisp.org>
124201         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
124202         precision that consists of a '.' followed by an empty digit string.
124203         Patch by Tor Lillqvist <tml@iki.fi>.
124205 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
124207         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
124208         for backward compatibility with older code.  We need our own
124209         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
124210         it under some other name, and our alloca.h will define it.
124212 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
124213             Derek Price  <derek@ximbiot.com>
124215         * lib/alloca.c: Include <alloca.h>, to get our interface.
124216         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
124217         include <alloca.h> first.  Use C89 prototype for alloca; this
124218         requires including <stddef.h> for size_t.  Use extern "C" if C++.
124219         Use #elif for simplicity, since we can assume C89 now.
124220         Don't try to source the system alloca.h since it will not be found
124221         and to prevent recursively including its replacement.
124222         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
124223         * lib/regex.c: Likewise.
124225 2004-05-16  Derek Price  <derek@ximbiot.com>
124226             Paul Eggert  <eggert@cs.ucla.edu>
124228         getline cleanup.  This changes the getndelim2 API: both order of
124229         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
124230         no delimiter).
124232         * lib/getline.c: Don't include stddef.h or stdio.h, since our
124233         interface does that.
124234         (getline): Always use getdelim, so that we don't have two
124235         copies of this code.
124236         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
124237         if available.
124238         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
124239         (GETNDELIM2_MAXIMUM): New macro.
124240         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
124241         instead of the old practice of delim2==0.  All callers changed.
124242         Return -1 on overflow, instead of returning junk.
124243         Do not set *linesize unless allocation succeeds.
124244         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
124245         that we include sys/types.h.
124246         * lib/getnline.h: Likewise.
124247         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
124248         (getndelim2): Reorder arguments.
124249         * lib/getnline.c (getnline, getndelim):
124250         Don't discard the NMAX argument.
124251         (getnline): Invoke getndelim, to avoid code duplication.
124252         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
124253         of (size_t) -1 by callers of the getnline family.
124255 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
124257         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
124258         Check for gettimeofday.
124259         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
124260         Check for settimeofday, stime.
124262 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
124264         * lib/nanosleep.c (suspended): Change its type from int to
124265         sig_atomic_t volatile.
124266         (first_call): Make it private to rpl_nanosleep, and have it
124267         be zero initially as that's a bit faster.
124268         (my_usleep): Round up fractional times instead of truncating them,
124269         as this is the usual meaning for 'sleep'.
124271         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
124272         doesn't work.
124273         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
124274         (ENOSYS): Define if not defined.
124275         (settime): Fall back on stime if it exists and settimeofday fails.
124276         But don't bother with fallbacks if a method fails with errno == EPERM.
124278 2004-05-11  Jim Meyering  <jim@meyering.net>
124280         Prior to this change, the save_cwd caller required read access to the
124281         current directory on most systems (ones with the fchdir function).
124283         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
124284         fails, try write-only, and finally, resort to using xgetcwd.
124286 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
124288         * lib/obstack.c, obstack.h: Import changes from libc.
124290 2004-04-28  Bruno Haible  <bruno@clisp.org>
124292         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
124293         also implicitly appends .exe to executables.
124294         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
124295         accepts Windows pathnames.
124296         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
124297         Treat Cygwin like Windows, since it now accepts Windows pathnames.
124298         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
124299         Treat Cygwin like Windows, since it now accepts Windows pathnames.
124300         Reported by Derek Robert Price <derek@ximbiot.com>.
124302 2004-04-21  Karl Berry  <karl@gnu.org>
124304         * config/srclist.txt (localcharset.c): break sync.
124306 2004-04-20  Paul Eggert  <eggert@twinsun.com>
124308         * m4/host-os.m4: Add a copyright notice.
124310 2004-04-20  Jim Meyering  <jim@meyering.net>
124312         Change UTILS_ to gl_ in AC_DEFINE'd names.
124313         Change utils_- and jm_-prefixed variables, too.
124314         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
124315         UTILS_FUNC_MKDIR_TRAILING_SLASH.
124316         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
124318         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
124319         Don't emit trailing blanks.
124320         Also rename jm_-prefixed variables to have gl_ prefix.
124322         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
124323         Also rename jm_-prefixed variables to have gl_ prefix.
124325         * m4/jm-macros.m4: Reflect the renamings.
124326         * m4/prereq.m4: Likewise.
124328 2004-04-20  Jim Meyering  <jim@meyering.net>
124330         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
124331         memory.
124333 2004-04-20  Jim Meyering  <jim@meyering.net>
124334             Bruno Haible  <bruno@clisp.org>
124336         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
124337         memory when realloc fails.
124339 2004-04-19  Jim Meyering  <jim@meyering.net>
124341         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
124342         now that readutmp.c may call `free (0)'.
124344 2004-04-19  Bruno Haible  <bruno@clisp.org>
124346         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
124347         * m4/inttypes_h.m4: Likewise.
124348         * m4/stdint_h.m4: Likewise.
124349         * m4/intmax_t.m4: Likewise.
124350         * m4/uintmax_t.m4: Likewise.
124352 2004-04-18  Jim Meyering  <jim@meyering.net>
124354         * m4/prereq.m4: Don't forbid jm_ prefix.
124356         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
124357         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
124358         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
124359         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
124360         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
124361         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
124362         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
124363         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
124364         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
124365         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
124366         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
124367         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
124368         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
124369         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
124370         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
124371         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
124372         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
124373         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
124374         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
124376 2004-04-18  Jim Meyering  <jim@meyering.net>
124378         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
124379         failure, don't leak memory and do call END_UTMP_ENT.
124381 2004-04-16  Jim Meyering  <jim@meyering.net>
124383         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
124384         coreutils' stat program.
124385         (gl_PREREQ): Don't require jm_PREREQ_STAT.
124387 2004-04-11  Paul Eggert  <eggert@twinsun.com>
124389         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
124390         C89.
124391         (CHAR_BIT): Remove, since we assume C89.
124392         Include <stdint.h> if available, as per current Autoconf CVS advice.
124394 2004-03-31  Jim Meyering  <jim@meyering.net>
124396         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
124397         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
124398         * m4/xalloc.m4: Likewise.
124400 2004-03-30  Paul Eggert  <eggert@twinsun.com>
124402         Merge from coreutils.
124404         * m4/inttostr.m4: New file.
124405         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
124406         Require AM_STDBOOL_H and gl_TIMESPEC instead.
124407         Require gl_CLOCK_TIME.
124408         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
124410 2004-03-30  Paul Eggert  <eggert@twinsun.com>
124412         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
124413         not bool, to be more consistent with Unix conventions.
124414         Suggested by Bruno Haible.
124416         Merge from coreutils.
124418         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
124419         * lib/umaxtostr.c: New files.
124421         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
124422         the usual <time.h> dance.
124423         (get_date): Change signature to support fractional time stamps.
124424         All callers changed.
124425         * lib/getdate.y: Include "getdate.h" first, as we can now
124426         assume C89 and don't need to worry about 'const'.
124427         Similarly, include "unlocked-io.h" near start, not in middle.
124428         Include <limits.h>.
124429         (textint.value): Use long int rather than int.
124430         (textint.digits): Use size_t rather than int.
124431         (BILLION, LOG10_BILLION): New constants.
124432         (parser_control): New member rel_ns.  Members day_ordinal,
124433         time_zone, month, day, hour, minutes, rel_year, rel_month,
124434         rel_day, rel_hour, rel_minutes, rel_seconds
124435         are now long int, not int.  Member seconds is now struct timespec,
124436         not int.  New member timespec_seen.  Members dates_seen, days_seen,
124437         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
124438         not int.
124439         (%union.intval): Now long int, not int.
124440         New member timespec.
124441         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
124442         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
124443         (spec): Now is a timespec or an item list.
124444         (timespec, items): New nonterminals.
124445         (time, rel, relunit, number, get_date):
124446         Add support for fractional seconds.
124447         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
124448         (gmtime, localtime, mktime): Remove decls; not needed with C89.
124449         (to_hour): First arg is now long int, not int.
124450         (to_year): Returns long int, not int.
124451         Don't treat year -70 like 70.
124452         (tm_diff): Returns long int, not int.
124453         (lookup_word): Use bool instead of int when appropriate.
124454         (yylex): Use size_t for count, not int.
124455         Detect overflow when parsing large integer constants.
124456         Add support for fractions.
124457         (get_date): Make pointers 'const' if possible.
124458         Use more-portable code to detect integer overflow.
124459         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
124460         Don't use ctime; it's not reliable if the year has >4 digits.
124462         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
124463         This is for compatibility with BSD.
124465         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
124466         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
124467         From coreutils' system.h.
124469         * lib/userspec.c: Don't include "posixver.h".
124470         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
124471         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
124472         compatible extension.  Simplify code by removing a boolean int
124473         that was always nonzero if a string was nonnull.
124475 2004-03-30  Jim Meyering  <jim@meyering.net>
124477         Merge from coreutils.
124479         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
124480         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
124481         on some systems one must include <grp.h> before it.
124482         Reported by Christian Krackowizer.
124484 2004-03-30  Jim Meyering  <jim@meyering.net>
124486         Merge from coreutils.
124488         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
124490         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
124491         an empty input stream.
124493         * lib/readtokens.c: Include <stdbool.h>.
124494         (readtoken): Use `size_t' rather than int/long.
124495         All callers adjusted.
124496         Use `bool' rather than `int' where appropriate.
124497         Use memset rather than an explicit loop.
124498         Use x2nrealloc rather than xrealloc.
124499         Allow the use of `\0' as a delimiter.
124500         (readtokens): Likewise.
124501         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
124503 2004-03-30  Jim Meyering  <jim@meyering.net>
124505         * m4/realloc.m4: Remove file, since now it does no more than
124506         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
124507         the `configure.ac' section of module/realloc.
124508         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
124510 2004-03-30  Bruno Haible  <bruno@clisp.org>
124512         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
124513         nonnull.
124515 2004-03-29  Paul Eggert  <eggert@twinsun.com>
124517         Merge changes to getloadavg.c from coreutils and Emacs.
124519         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
124520         Define to an expression, not to the empty string.
124521         Include cloexec.h and xalloc.h.
124522         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
124523         Use set_cloexec_flag rather than rolling our own.
124524         * lib/cloexec.c, lib/cloexec.h: New files.
124526 2004-03-29  Paul Eggert  <eggert@twinsun.com>
124528         * m4/cloexec.m4: New file.
124530 2004-03-18  Paul Eggert  <eggert@twinsun.com>
124532         * lib/getopt.h: Sync with libc CVS.
124534 2004-03-18  Paul Eggert  <eggert@twinsun.com>
124535             Bruno Haible  <bruno@clisp.org>
124537         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
124538         mbswidth.
124540 2004-03-18  Paul Eggert  <eggert@twinsun.com>
124541             Bruno Haible  <bruno@clisp.org>
124543         * lib/mbswidth.h: Include <wchar.h> only if
124544         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
124545         <wchar.h>.
124546         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
124548 2004-03-09  Paul Eggert  <eggert@twinsun.com>
124550         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
124551         Sync with libc CVS.
124552         * lib/getopt_int.h: New file, also synced from libc.
124554 2004-03-09  Paul Eggert  <eggert@twinsun.com>
124556         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
124557         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
124558         Bring back getopt.c, getopt.h, getopt1.c.
124560 2004-03-07  Paul Eggert  <eggert@twinsun.com>
124562         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
124563         All uses changed.  Check for sa_sigaction member; this fixes
124564         a bug first reported by Jason Andrade in
124565         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
124567 2004-03-07  Paul Eggert  <eggert@twinsun.com>
124569         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
124570         '#if' expressions.  Unlike the code it replaces, it does not
124571         depend on (defined _SC_PAGESIZE).  However, it does depend on
124572         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
124573         first reported by Jason Andrade in
124574         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
124576 2004-02-25  Simon Josefsson  <jas@extundo.com>
124578         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
124580 2004-02-25  Simon Josefsson  <jas@extundo.com>
124582         * lib/strdup.h: New file.
124583         * lib/strdup.c: Include it.
124584         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
124585         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
124587 2004-02-23  Karl Berry  <karl@gnu.org>
124589         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
124590         (from fencepost.gnu.org:/gd/gnuorg).
124592 2004-02-23  Karl Berry  <karl@gnu.org>
124594         * config/srclistvars.sh (GNUORG) [karl]: redefine.
124595         * config/srclist.txt: add maintain/standards documents.
124597 2004-02-18  Bruno Haible  <bruno@clisp.org>
124599         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
124600         Reported by Derek Robert Price <derek@ximbiot.com>.
124602 2004-02-16  Karl Berry  <karl@gnu.org>
124604         * config/mkinstalldirs, install-sh: update from automake.
124606 2004-02-06  Karl Berry  <karl@gnu.org>
124608         * m4/po.m4: update from gettext 0.14.1.
124610 2004-02-06  Karl Berry  <karl@gnu.org>
124612         * lib/config.charset: update from gettext 0.14.1.
124614 2004-02-05  Paul Eggert  <eggert@twinsun.com>
124616         Add comments and code, prompted by suggestions from Bruno Haible
124617         for sh-quote.
124618         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
124619         describing the enum quoting_style values.
124620         * lib/quotearg.c (quotearg_alloc): New function.
124621         (quotearg_buffer_restyled): Treat lone { and } as special.
124622         Treat = as special.  Work around bug with older shells
124623         that "see" a '\' that is really the 2nd byte of a multibyte char.
124624         Quote empty string with shell_quoting_style.
124626 2004-02-03  Bruno Haible  <bruno@clisp.org>
124628         * m4/pipe.m4: New file, from GNU gettext.
124630 2004-02-03  Bruno Haible  <bruno@clisp.org>
124632         * lib/pipe.h: New file, from GNU gettext.
124633         * lib/pipe.c: New file, from GNU gettext.
124635 2004-01-27  Bruno Haible  <bruno@clisp.org>
124637         * m4/execute.m4: New file, from GNU gettext.
124639 2004-01-27  Bruno Haible  <bruno@clisp.org>
124641         * lib/execute.h: New file, from GNU gettext.
124642         * lib/execute.c: New file, from GNU gettext.
124643         * lib/w32spawn.h: New file, from GNU gettext.
124645 2004-01-24  Paul Eggert  <eggert@twinsun.com>
124647         Merge from diffutils.
124649         * lib/file-type.c (file_type): Add typed memory objects.
124650         * lib/file-type.h (S_TYPEISTMO): New macro.
124652         * lib/c-stack.h (c_stack_action): Remove argv argument.
124653         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
124654         (die): Don't calculate message unless segv_action returns.
124655         (get_stack_location, min_address_from_argv, max_address_from_argv,
124656         volatile stack_base, volatile_stack_size): Remove.
124657         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
124658         that every segmentation violation is a stack overflow.  (Ouch!)
124659         See Debian bug 136249 (still outstanding) for more info about why
124660         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
124662 2004-01-24  Paul Eggert  <eggert@twinsun.com>
124664         Exit-status fix from coreutils.
124666         Use exit_failure consistently in place of EXIT_FAILURE,
124667         so that program exit statuses are consistent on failure.
124669         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
124670         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
124671         * lib/argmatch.h: Comment fix to match the above.
124672         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
124673         Now a macro referring to exit_failure, instead of a separate
124674         variable.  Include "exitfail.h" to get it.
124675         * lib/xstrtol.h: Include "exitfail.h".
124676         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
124678         * lib/long-options.c (parse_long_options): Use prototype
124679         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
124680         for clarity.
124682 2004-01-21  Jim Meyering  <jim@meyering.net>
124684         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
124685         so as not to conflict with a different-sized __mktime_internal
124686         function in GNU libc.
124687         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
124688         Problem building statically-linked `ls' reported by Michael Brunnbauer.
124690 2004-01-20  Karl Berry  <karl@gnu.org>
124692         * config/config.guess: update from config.
124694         * config/srclistvars.sh: GNUWWWLICENSES for karl.
124696 2004-01-20  Bruno Haible  <bruno@clisp.org>
124698         Safer stack allocation.
124699         * lib/setenv.c: Include allocsa.h.
124700         (alloca): Remove fallback definition.
124701         (freea): Remove macro.
124702         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
124703         instead of freea.
124705 2004-01-20  Bruno Haible  <bruno@clisp.org>
124707         * m4/eealloc.m4: New file, from GNU gettext.
124709 2004-01-20  Bruno Haible  <bruno@clisp.org>
124711         * m4/allocsa.m4: New file, from GNU gettext.
124713 2004-01-20  Bruno Haible  <bruno@clisp.org>
124715         * lib/xallocsa.h: New file, from GNU gettext.
124716         * lib/xallocsa.c: New file, from GNU gettext.
124718 2004-01-20  Bruno Haible  <bruno@clisp.org>
124720         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
124722 2004-01-20  Bruno Haible  <bruno@clisp.org>
124724         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
124725         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
124726         specially.
124728 2004-01-20  Bruno Haible  <bruno@clisp.org>
124730         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
124731         patch.
124733 2004-01-20  Bruno Haible  <bruno@clisp.org>
124735         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
124737 2004-01-20  Bruno Haible  <bruno@clisp.org>
124739         * lib/eealloc.h: New file.
124741 2004-01-20  Bruno Haible  <bruno@clisp.org>
124743         * lib/binary-io.h: Avoid warnings on Cygwin.
124745 2004-01-20  Bruno Haible  <bruno@clisp.org>
124747         * lib/allocsa.h: New file, from GNU gettext.
124748         * lib/allocsa.c: New file, from GNU gettext.
124750 2004-01-18  Karl Berry  <karl@gnu.org>
124752         * doc/gpl.texi, doc/lgpl.texi: new files.
124754 2004-01-18  Karl Berry  <karl@gnu.org>
124756         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
124757         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
124759 2004-01-15  Paul Eggert  <eggert@twinsun.com>
124761         Merge from coreutils.
124763         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
124764         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
124765         (gl_DEFAULT_POSIX2_VERSION): Move
124766         the documentation from 'configure' into 'config.hin',
124767         so that 'configure --help' isn't burdened by it and
124768         we don't have to worry about its formatting there.
124769         Reword the documentation so that it's more succinct
124770         and can be run together into a single paragraph.
124771         * m4/same.m4 (gl_SAME): Check for pathconf.
124773 2004-01-15  Paul Eggert  <eggert@twinsun.com>
124775         Merge from coreutils.
124777         * lib/posixver.c: Include posixver.h.
124779         * lib/same.c: Include <stdbool.h>, <limits.h>.
124780         (_POSIX_NAME_MAX): Define if not defined.
124781         (MIN): New macro.
124782         (same_name): If file names are silently truncated, report
124783         that the file names are the same if they are the same after
124784         the silent truncation.
124786         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
124787         conversion function.
124788         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
124789         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
124790         longer needed.
124792 2004-01-15  Jim Meyering  <jim@meyering.net>
124794         Merge from coreutils.
124796         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
124797         if no library is required.
124798         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
124799         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
124800         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
124801         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
124802         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
124803         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
124804         value, $ac_cv_search_crypt, if it's "none required".
124805         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
124806         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
124807         not gl_FUNC_GETLOADAVG.
124808         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
124809         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
124811 2004-01-15  Jim Meyering  <jim@meyering.net>
124813         Merge from coreutils.
124815         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
124816         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
124817         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
124819         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
124820         optional configure-time default.
124822         * lib/version-etc.c (version_etc_copyright): Update copyright date.
124824         * lib/xreadlink.c (xreadlink): Correct outdated comment.
124826 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
124828         Merge from coreutils.
124830         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
124831         value, $ac_cv_search_nanosleep, if it's "none required".
124833 2004-01-14  Paul Eggert  <eggert@twinsun.com>
124835         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
124836         with like-named macro in fnmatch.c.
124837         (EXT): Use an internal constant instead.
124839         Merge fnmatch patches from glibc.
124840         * lib/fnmatch.c (mbsinit): Remove define.
124841         Add libc_hidden_ver (__fnmatch, fnmatch).
124842         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
124843         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
124845 2004-01-14  Karl Berry  <karl@gnu.org>
124847         * config/install-sh: update from automake.
124849 2004-01-13  Karl Berry  <karl@gnu.org>
124851         * config/install-sh: update from automake.
124853 2004-01-09  Karl Berry  <karl@gnu.org>
124855         * config/install-sh: update from automake.
124857 2004-01-05  Karl Berry  <karl@gnu.org>
124859         * config/config.{sub,guess}: update from config.
124861 2003-12-31  Karl Berry  <karl@gnu.org>
124863         * config/depcomp: update from automake.
124865 2003-12-14  Karl Berry  <karl@gnu.org>
124867         * lib/config.charset: update from gettext-runtime.
124869 2003-12-03  Paul Eggert  <eggert@twinsun.com>
124871         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
124872         Bug reported by Alfred M. Szmidt.
124874 2003-12-03  Bruno Haible  <bruno@clisp.org>
124876         * m4/gettext.m4: Upgrade from gettext-0.13.
124877         * m4/po.m4: Upgrade from gettext-0.13.
124878         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
124879         * m4/intmax.m4: New file, from gettext-0.13.
124880         * m4/printf-posix.m4: New file, from gettext-0.13.
124882 2003-11-29  Karl Berry  <karl@gnu.org>
124884         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
124886 2003-11-25  Paul Eggert  <eggert@twinsun.com>
124887             Bruno Haible  <bruno@clisp.org>
124889         * lib/printf-parse.h: Don't include sys/types.h.
124890         (ARG_NONE): New macro.
124891         (char_directive): Change type of *arg_index fields to size_t.
124892         * lib/printf-parse.c: Don't include sys/types.h.
124893         (SSIZE_MAX): Remove macro.
124894         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
124895         Remove unnecessary overflow check.
124896         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
124897         fields.
124899 2003-11-25  Bruno Haible  <bruno@clisp.org>
124901         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
124903 2003-11-25  Bruno Haible  <bruno@clisp.org>
124905         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
124906         gt_TYPE_SSIZE_T.
124908 2003-11-24  Paul Eggert  <eggert@twinsun.com>
124910         * modules/alloca: Remove dependency on xalloc.
124912 2003-11-24  Paul Eggert  <eggert@twinsun.com>
124914         * lib/alloca.c: Remove dependency on xalloc module.
124915         (xalloc_die): Remove.
124916         (memory_full) [!defined emacs]: New macro.
124917         [!defined emacs]: Don't include xalloc.h.
124918         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
124919         address arithmetic overflows.  Change datatypes a bit to avoid
124920         unnecessary casts.
124922 2003-11-22  Jim Meyering  <jim@meyering.net>
124924         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
124925         s/size/size_t/.
124927 2003-11-21  Karl Berry  <karl@gnu.org>
124929         * config/config.{sub,guess}: update from config.
124931 2003-11-18  Karl Berry  <karl@gnu.org>
124933         * config/config.{sub,guess}: update from config.
124935         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
124937 2003-11-17  Paul Eggert  <eggert@twinsun.com>
124939         * README: Mention that S+T cannot overflow if S is the size of
124940         an existing object and T is sufficiently small.
124942 2003-11-17  Jim Meyering  <jim@meyering.net>
124944         On systems without utime and without a utimes function capable of
124945         dealing with a NULL struct utimbuf* argument, this utime replacement
124946         could -- in unusual circumstances -- leak a file descriptor.
124947         * lib/utime.c: Include <unistd.h> and <errno.h>.
124948         (utime_null): Be sure to close `fd' and to preserve errno.
124949         Reported by Geoff Collyer via Arnold Robbins.
124951 2003-11-17  Bruno Haible  <bruno@clisp.org>
124953         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
124954         (Depends-on): Add xsize.
124956 2003-11-17  Bruno Haible  <bruno@clisp.org>
124958         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
124960 2003-11-17  Bruno Haible  <bruno@clisp.org>
124962         * lib/vasnprintf.c (alloca): Remove fallback definition.
124963         (freea): Remove definition.
124964         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
124965         Reported by Paul Eggert.
124967 2003-11-16  Paul Eggert  <eggert@twinsun.com>
124968             Bruno Haible  <bruno@clisp.org>
124970         Protect against address arithmetic overflow.
124971         * lib/printf-args.h: Include stddef.h.
124972         (arguments): Change type of field 'count' to size_t.
124973         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
124974         'unsigned int' where appropriate.
124975         * lib/printf-parse.h: Include sys/types.h.
124976         (char_directive): Change type of *arg_index fields to ssize_t.
124977         (char_directives): Change type of fields 'count', max_*_length to
124978         size_t.
124979         * lib/printf-parse.c: Include sys/types.h and xsize.h.
124980         (SSIZE_MAX): Define fallback value.
124981         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
124982         instead of 'int' where appropriate. Check a_allocated, d_allocated
124983         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
124984         * lib/vasnprintf.c: Include xsize.h.
124985         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
124986         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
124987         overflow. Avoid wraparound when converting a width or precision from
124988         decimal to binary.
124990 2003-11-16  Bruno Haible  <bruno@clisp.org>
124992         Update from GNU gettext.
124993         * lib/printf-parse.c: Generalize to it can be compiled for wide
124994         strings.
124995         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
124996         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
124997         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
124998         SNPRINTF): New macros.
124999         Don't include <alloca.h> if the file is used inside libintl.
125000         (local_wcslen): New function, for Solaris 2.5.1.
125001         (VASNPRINTF): Use it instead of wcslen.
125003 2003-11-16  Bruno Haible  <bruno@clisp.org>
125005         * lib/xsize.h (xmax): New function.
125006         (xsum, xsum3, xsum4): Declare as "pure" functions.
125008 2003-11-12  Paul Eggert  <eggert@twinsun.com>
125010         * modules/xalloc (Files): Undo latest change, since xalloc.h
125011         no longer needs SIZE_MAX or PTRDIFF_MAX.
125013 2003-11-12  Paul Eggert  <eggert@twinsun.com>
125015         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
125016         gl_PTRDIFF_MAX.
125018 2003-11-12  Paul Eggert  <eggert@twinsun.com>
125020         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
125021         "return", to pacify some unknown compiler.  Problem reported
125022         by Joerg Schilling.
125024 2003-11-12  Paul Eggert  <eggert@twinsun.com>
125026         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
125027         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
125028         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
125029         heuristic is just as accurate as far as we know, and it removes a
125030         dependency on size_max.m4 and ptrdiff_max.m4.
125032 2003-11-11  Bruno Haible  <bruno@clisp.org>
125034         * modules/xsize (Files): Add m4/size_max.m4.
125035         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
125037 2003-11-11  Bruno Haible  <bruno@clisp.org>
125039         * m4/size_max.m4: New file.
125040         * m4/ptrdiff_max.m4: New file.
125041         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
125042         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
125043         (gl_XALLOC): Invoke it.
125045 2003-11-11  Bruno Haible  <bruno@clisp.org>
125047         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
125048         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
125049         defined.
125051 2003-11-10  Paul Eggert  <eggert@twinsun.com>
125053         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
125054         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
125055         rejected some allocations of exactly SIZE_MAX - 2 bytes.
125056         From Bruno Haible.
125057         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
125058         not (size_t) -1, since it's defined here.
125060 2003-11-09  Karl Berry  <karl@gnu.org>
125062         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
125064 2003-11-06  Paul Eggert  <eggert@twinsun.com>
125066         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
125067         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
125068         Reject sizes of exactly SIZE_MAX bytes.
125069         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
125070         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
125072 2003-11-05  Bruno Haible  <bruno@clisp.org>
125074         * lib/xsize.h: Include limits.h, to avoid a possible collision with
125075         SIZE_MAX defined in <limits.h> on Solaris.
125077 2003-11-04  Jim Meyering  <jim@meyering.net>
125079         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
125080         variable names, rather than @VAR@.
125081         * modules/poll: Likewise.
125083 2003-11-04  Bruno Haible  <bruno@clisp.org>
125085         * modules/xsize: New file.
125086         * modules/linebreak: Depend on xsize.
125087         * MODULES.html.sh (func_all_modules): Add xsize.
125089 2003-11-04  Bruno Haible  <bruno@clisp.org>
125091         * m4/xsize.m4: New file.
125093 2003-11-04  Bruno Haible  <bruno@clisp.org>
125095         * lib/xsize.h: New file.
125096         * lib/linebreak.c: Include xsize.h.
125097         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
125098         argument for overflow.
125099         Suggested by Paul Eggert.
125101 2003-11-03  Karl Berry  <karl@gnu.org>
125103         * config/config.{guess,sub}: update from config.
125105 2003-11-03  Jim Meyering  <jim@meyering.net>
125107         * modules/userspec (lib_SOURCES): Add userspec.h.
125108         (Include): Add "userspec.h".
125109         Improve description.
125111 2003-11-03  Jim Meyering  <jim@meyering.net>
125113         * lib/userspec.c: Include "userspec.h".
125114         * lib/userspec.h: New file.
125116 2003-11-03  Bruno Haible  <bruno@clisp.org>
125118         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
125120 2003-11-03  Bruno Haible  <bruno@clisp.org>
125122         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
125123         available, to avoid (extremely rare) race condition.
125124         Suggested by Paul Eggert.
125126 2003-11-02  Karl Berry  <karl@gnu.org>
125128         * config/srclist.txt (vasprintf.c): sync broken, sigh.
125130 2003-10-31  Paul Eggert  <eggert@twinsun.com>
125132         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
125133         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
125134         (read_filesystem_list): Set and use me_type_malloced.
125135         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
125136         whatever the type happens to be), for brevity and consistency.
125137         Check for size calculation overflow on Alphas running OSF/1.
125139 2003-10-31  Jim Meyering  <jim@meyering.net>
125141         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
125143         * lib/linebuffer.c: Include <string.h> for declaration of memset.
125145 2003-10-30  Paul Eggert  <eggert@twinsun.com>
125146             Bruno Haible  <bruno@clisp.org>
125148         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
125149         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
125151 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
125153         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
125154         netbsd*-gnu*.  Suggested by Robert Millan.
125156 2003-10-29  Paul Eggert  <eggert@twinsun.com>
125158         * modules/group-member: Depend on stdbool.
125160 2003-10-29  Paul Eggert  <eggert@twinsun.com>
125162         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
125164 2003-10-29  Paul Eggert  <eggert@twinsun.com>
125166         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
125167         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
125168         after the 'gnu' in these cases.  This fixes some bugs in the
125169         previous change, and is based on suggestions by Robert Millan.
125171 2003-10-29  Paul Eggert  <eggert@twinsun.com>
125173         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
125174         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
125175         no longer needed.
125176         * lib/quotearg.c (quotearg_n_options): Use it.
125177         * lib/group-member.c: Include <stdbool.h>.
125178         (free_group_info): Arg is now const *; don't free arg.
125179         (get_group_info): Now returns bool and accepts struct group_info *,
125180         rather than returning a malloc'ed struct group_info *.
125181         All uses changed.  Check for overflow in internal size calculation.
125183         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
125184         rather than xmalloc/xrealloc.
125185         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
125186         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
125187         conformance bug: the old code used a pointer after freeing the
125188         storage that it addressed.
125189         * lib/hash.c (hash_initialize): Simplify the code by using
125190         xalloc_oversized rather than doing it by hand.
125191         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
125192         the buffer preserved.  Use free and xmalloc instead.
125193         * lib/quotearg.c (quotearg_n_options): Likewise.
125194         Use a simpler test for size overflow.  Don't use xalloc_oversized
125195         because unsigned int might be wider than size_t (!); this suggests
125196         that we should switch from unsigned int to size_t for slot numbers.
125198 2003-10-28  Paul Eggert  <eggert@twinsun.com>
125200         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
125201         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
125202         NetBSD kernels.  Requested by Richard Stallman.
125204 2003-10-27  Paul Eggert  <eggert@twinsun.com>
125206         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
125207         to allocate the returned structure.  Do not allocate a subarray,
125208         as x2nrealloc will do that.
125209         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
125210         instead of xnrealloc.
125211         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
125213 2003-10-27  Bruno Haible  <bruno@clisp.org>
125215         * lib/stdbool_.h: Better support for BeOS.
125217 2003-10-26  Paul Eggert  <eggert@twinsun.com>
125219         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
125220         now uses inline.
125222 2003-10-26  Paul Eggert  <eggert@twinsun.com>
125224         * lib/xalloc.h (xalloc_oversized): New static inline function, for
125225         callers that want to do their own size-overflow checking.  Include
125226         <stdbool.h>, since xalloc_oversized returns bool.
125227         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
125228         to use xalloc_oversized.
125230         Add two functions x2realloc, x2nrealloc, for programs that grow
125231         arrays dynamically by doubling their sizes.
125232         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
125233         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
125234         New functions.
125236         Port to C99 semantics for 'inline' of external functions.
125237         Bug reported by Bruno Haible.
125238         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
125239         with the old contents of xnmalloc.
125240         (xnmalloc, xmalloc): Use it.
125241         (xnrealloc_inline): New static inline function,
125242         with the old contents of xnrealloc.
125243         (xnrealloc, xrealloc): Use it.
125245         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
125246         that.
125248 2003-10-26  Karl Berry  <karl@gnu.org>
125250         * config/srclist.txt (COPYING.DOC): no longer available from
125251         /gd/gnuorg; don't know where the ultimate source is.
125253 2003-10-25  Paul Eggert  <eggert@twinsun.com>
125255         Fix several address-calculation bugs in the hash modules,
125256         plus some minor code cleanup.
125258         * lib/hash.h: Include <stdbool.h>, for bool.
125259         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
125260         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
125261         hash_get_n_entries, hash_get_max_bucket_length,
125262         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
125263         hash_rehash): Use size_t rather than unsigned.
125264         * lib/hash.c (struct hash_table, hash_get_n_buckets,
125265         hash_get_n_buckets_used, hash_get_n_entries,
125266         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
125267         hash_get_entries, hash_do_for_each, hash_string, is_prime,
125268         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
125269         Likewise.
125270         (SIZE_MAX): Define if not defined.
125271         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
125272         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
125273         hash_print):
125274         Use const * when possible.
125275         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
125276         (check_tuning): Fix bug: if tuning parameters were very close to
125277         0 or 1, rounding errors could have caused subscript violations.
125278         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
125279         (hash_initialize): Add 'fail:' label
125280         to free table and return NULL, and use it to simplify code.
125281         Use calloc rather than clearing the storage ourself.
125282         (hash_initialize, hash_rehash): Check for arithmetic overflow in
125283         buffer size calculations.
125284         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
125285         Include <stddef.h>, for size_t.
125286         * lib/hash-pjw.c (hash_pjw): Likewise.
125287         Switch to method described by Bruno Haible.
125288         Include <limits.h>, for CHAR_BIT.
125289         (SIZE_BITS): New macro.
125291 2003-10-23  Paul Eggert  <eggert@twinsun.com>
125293         * m4/getline.m4 (AM_FUNC_GETLINE):
125294         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
125295         hosts.  Problem reported by Derek Robert Price in
125296         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
125297         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
125298         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
125300 2003-10-21  Paul Eggert  <eggert@twinsun.com>
125302         * lib/getndelim2.c (getndelim2): When size calculation overflows,
125303         ceiling the allocation at NMAX bytes rather than silently
125304         discarding input bytes before NMAX is reached.  This makes
125305         a difference only if NMAX exceeds SIZE_MAX / 2.
125307         * lib/obstack.c: Merge from glibc.
125308         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
125309         Add libc_hidden_def (_obstack_newchunk).
125310         (_obstack_free) [! defined _LIBC]: Remove.
125311         [defined _LIBC]: Make a strong alias from obstack_free, rather than
125312         a clone of the function body.
125313         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
125314         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
125316         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
125317         glibc.
125318         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
125319         arg to memcpy.
125321         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
125322         (obstack_ptr_grow_fast, obstack_int_grow_fast):
125323         Don't use lvalue casts, as GCC plans to remove support for them
125324         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
125325         was also present in the non-GCC version, indicating that this
125326         code had always been buggy and had never been widely used.
125327         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
125328         Use the fast variant of each macro, rather than copying the
125329         definiens of the fast variant; that way, we'll be more likely to
125330         catch future bugs in the fast variants.
125332 2003-10-20  Bruno Haible  <bruno@clisp.org>
125334         * modules/wait-process: New file.
125335         * MODULES.html.sh (func_all_modules): Add wait-process.
125337 2003-10-20  Bruno Haible  <bruno@clisp.org>
125339         * m4/wait-process.m4: New file.
125341 2003-10-20  Bruno Haible  <bruno@clisp.org>
125343         * lib/wait-process.h: New file, from GNU gettext.
125344         * lib/wait-process.c: New file, from GNU gettext.
125346 2003-10-19  Jim Meyering  <jim@meyering.net>
125348         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
125349         HPUX 10.20.
125351 2003-10-18  Karl Berry  <karl@gnu.org>
125353         * config/config.guess: update from config.
125355 2003-10-16  Paul Eggert  <eggert@twinsun.com>
125357         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
125358         (getgroups): First arg is int, not size_t.
125359         Don't let 'free' mangle errno.
125361 2003-10-16  Paul Eggert  <eggert@twinsun.com>
125363         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
125365 2003-10-16  Karl Berry  <karl@gnu.org>
125367         * config/config.{guess,sub}: update from config.
125369 2003-10-16  Jim Meyering  <jim@meyering.net>
125371         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
125372         memcpy.
125374 2003-10-15  Paul Eggert  <eggert@twinsun.com>
125376         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
125377         (SIZE_MAX): Remove.
125378         (new_exclude, add_exclude_file): Initial size no longer needs to
125379         be a power of 2.
125380         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
125381         our own address arithmetic overflow checking.
125383         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
125384         (fnmatch): Do not alloca more than 2000 wide characters;
125385         instead, use malloc for large buffers.
125386         Check for address arithmetic overflow, and return -1
125387         with errno set to ENOMEM in that case.
125388         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
125389         (NEW_PATTERN): Do not alloca more than 8000 bytes;
125390         instead, return -1.  Check for address arithmetic overflow.
125392 2003-10-14  Paul Eggert  <eggert@twinsun.com>
125394         Handle invalid suffixes and overflow independently, so that
125395         callers can treat them independently as needed.  Fix some bugs in
125396         suffix handling, e.g., "100k@" was not diagnosed as an invalid
125397         suffix for a human-readable blocksize.  The major caller-visible
125398         change is the addition of a new
125399         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
125400         that both overflow and suffix chars were found.
125402         * lib/human.c (humblock): Don't check separately for invalid suffix
125403         char; that is xstrtoumax's job (now that its bug is fixed).
125404         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
125405         INTMAX_MAX]: New macros.
125406         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
125407         TYPE_MAXIMUM): New macros.
125408         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
125409         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
125410         if overflow occurs, as it's what __strtol does and it's more useful
125411         in practice.
125412         (__xstrtol): If __strtol reports some error other than ERANGE,
125413         reflect it to the caller as LONGINT_INVALID.  If it reports
125414         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
125415         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
125416         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
125417         value.
125418         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
125419         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
125420         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
125421         [defined UINTMAX_MAX]: New macros.
125423 2003-10-14  Bruno Haible  <bruno@clisp.org>
125425         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
125427 2003-10-14  Bruno Haible  <bruno@clisp.org>
125429         * m4/sig_atomic_t: New file, from GNU gettext.
125430         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
125432 2003-10-14  Bruno Haible  <bruno@clisp.org>
125434         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
125435         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
125436         Also use volatile where needed.
125438 2003-10-12  Paul Eggert  <eggert@twinsun.com>
125440         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
125441         Change maintainer from Bruno Haible to 'all'.
125443 2003-10-12  Paul Eggert  <eggert@twinsun.com>
125445         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
125447 2003-10-12  Paul Eggert  <eggert@twinsun.com>
125449         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
125450         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
125451         and define in terms of the other primitives.
125452         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
125453         (SIZE_MAX): Define if not already defined.
125454         (array_size_overflow): New function.
125455         (xalloc_die): Abort instead of exiting if 'error' returns.
125456         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
125457         (xmalloc, xrealloc): Use them.
125458         (xcalloc): Check for address arithmetic overflow.
125459         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
125460         a bit faster than strcpy.
125462 2003-10-10  Simon Josefsson  <jas@extundo.com>
125464         * modules/argp (Depends-on): Add restrict and strcase.
125466 2003-10-10  Simon Josefsson  <jas@extundo.com>
125468         * m4/argp.m4: Add AC_C_INLINE.
125470 2003-10-08  Paul Eggert  <eggert@twinsun.com>
125472         Merge getpass from libc, plus a few fixes.
125474         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
125475         Include <stdbool.h>.
125476         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
125477         __fsetlocking to empty.
125478         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
125479         do include <bits/libc-lock.h>.
125480         Do not include <fcntl.h>; not needed.
125481         [_LIBC]: Include <wchar.h>.
125482         (NOTCANCEL_MODE): New macro.
125483         (flockfile, funlockfile) [_LIBC]: New macros.
125484         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
125485         [!_LIBC]: New macros.
125486         (call_fclose): New function.
125487         (getpass): Use it.  Save tty stream separately; this simplifies the
125488         code and makes it more reliable if stdin happens to equal stdout.
125489         Invoke __fsetlocking on tty.
125490         Handle thread cancellation if needed.
125491         Namespace cleanup (use __tcgetattr, __getline).
125492         Use bool for Booleans.
125493         [USE_IN_LIBIO]: Handle wide streams.
125494         [!_LIBC]: Unconditionally do the fseek, since we don't know what
125495         stream might go where.
125497         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
125498         doesn't have to include <stdio.h> before us.
125499         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
125500         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
125501         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
125502         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
125503         if not declared, so that we can use getpass.c code from libc without
125504         rewriting it.
125505         (flockfile, ftrylockfile, funlockfile): New macros.
125507 2003-10-08  Paul Eggert  <eggert@twinsun.com>
125509         * modules/getpass: Depend on stdbool.
125511 2003-10-08  Paul Eggert  <eggert@twinsun.com>
125513         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
125515 2003-10-07  Karl Berry  <karl@gnu.org>
125517         * config/config.{guess,sub}: update from config.
125519 2003-10-06  Jim Meyering  <jim@meyering.net>
125520             Bruno Haible  <bruno@clisp.org>
125522         This lets translators provide better translations for the
125523         "Written by ..." part of --version output.
125524         * lib/version-etc.h: Include stdarg.h.
125525         (version_etc_copyright): Declare as readonly.
125526         (version_etc): Make this function variadic with a NULL-terminated list
125527         of author name strings.
125528         (version_etc_va): New declaration.
125529         * lib/version-etc.c: Include stdarg.h, stdlib.h.
125530         (version_etc_copyright): Declare as readonly.
125531         (version_etc_va): New function. Provide a different translatable string
125532         for each possible number of authors < 10. Abbreviate when there are 10
125533         authors or more.
125534         (version_etc): Make this function variadic. Call version_etc_va.
125535         Suggestion from Gary V. Vaughan.
125537         * lib/long-options.h (parse_long_options): Change prototype: the
125538         authors string is moved to the end and becomes variadic.
125539         * lib/long-options.c: Include stdarg.h.
125540         (parse_long_options): Make this function variadic, too.
125541         Call version_etc_va, not version_etc.
125543 2003-10-06  Bruno Haible  <bruno@clisp.org>
125545         * modules/version-etc-2: Remove file.
125546         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
125548 2003-10-06  Bruno Haible  <bruno@clisp.org>
125550         * modules/fatal-signal: New file.
125551         * MODULES.html.sh (func_all_modules): Add fatal-signal.
125553 2003-10-06  Bruno Haible  <bruno@clisp.org>
125555         * m4/fatal-signal.m4: New file.
125556         * m4/signalblocking.m4: New file, from GNU gettext.
125558 2003-10-06  Bruno Haible  <bruno@clisp.org>
125560         * lib/version-etc-2.h: Remove file.
125561         * lib/version-etc-2.c: Remove file.
125563 2003-10-06  Bruno Haible  <bruno@clisp.org>
125565         * lib/fatal-signal.h: New file, from GNU gettext.
125566         * lib/fatal-signal.c: New file, from GNU gettext.
125568 2003-10-05  Paul Eggert  <eggert@twinsun.com>
125570         * README: Rework advice for preventing empty .o files.
125571         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
125572         not <sys/types.h>.
125574 2003-10-04  Karl Berry  <karl@gnu.org>
125576         * lib/argp*: update from libc.
125578 2003-10-04  Karl Berry  <karl@gnu.org>
125580         * config/config.{guess,sub}: update from config.
125582 2003-10-02  Bruno Haible  <bruno@clisp.org>
125584         * modules/lchown (Include): Add lchown.h.
125585         * modules/time_r (Include): Use "..." syntax.
125586         * modules/xgetdomainname (Include): Add xgetdomainname.h.
125588 2003-10-01  Simon Josefsson  <jas@extundo.com>
125590         * MODULES.html.sh (func_all_modules): Move gethostname from section
125591         'based on' to section 'lacking' POSIX:2001.
125593 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
125595         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
125596         to output mode on the same stream.
125598 2003-09-29  Paul Eggert  <eggert@twinsun.com>
125600         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
125601         Fix arg typo in previous patch.
125603 2003-09-28  Jim Meyering  <jim@meyering.net>
125605         * lib/error.c: Correct cpp indentation.
125607 2003-09-27  Paul Eggert  <eggert@twinsun.com>
125609         * modules/free: New file.
125611 2003-09-27  Paul Eggert  <eggert@twinsun.com>
125613         * m4/free.m4: New file.
125615 2003-09-27  Paul Eggert  <eggert@twinsun.com>
125617         * lib/minmax.h (MIN, MAX)
125618         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
125619         Omit the special code that used __typeof__, since we worry that
125620         it could be more trouble than it's worth.  See:
125621         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
125622         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
125624         * lib/free.c: New file.
125626 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
125628         Trivial fixes to Makefile.am parts of module listings.
125629         * modules/strstr: Append strstr.h to lib_SOURCES.
125630         * modules/strcase: Likewise, for strcase.h.
125632 2003-09-27  Karl Berry  <karl@gnu.org>
125634         * config/mkinstalldirs: update from automake.
125636 2003-09-26  Paul Eggert  <eggert@twinsun.com>
125638         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
125639         (error_tail): Do not loop, reallocating temporary buffer, since
125640         the output cannot contain more wide characters than the input
125641         contains bytes, the size must be big enough already.  This avoids
125642         one potential size overflow calculation.  Check for size overflow
125643         when calculating temporary buffer size.  Free temporary buffer
125644         when done, if it was allocated with malloc; this plugs a memory
125645         leak.  Remove casts from void * to pointers, that are no longer
125646         needed now that we're assuming C89 or better.
125648         Merge error changes from glibc.
125650         * lib/error.c, error.h: Update copyright notice header to match glibc.
125651         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
125652         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
125653         Disable cancellation while printing error.
125654         * lib/error.h: Prepend __ to parameter names.
125656 2003-09-26  Jim Meyering  <jim@meyering.net>
125658         * lib/error.c (error_tail): Move some declarations
125659         into inner scope where the local variables are used.
125661 2003-09-26  Bruno Haible  <bruno@clisp.org>
125663         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
125664         stpncpy().
125665         Don't define stpncpy through config.h; it's now done through stpncpy.h.
125667 2003-09-26  Bruno Haible  <bruno@clisp.org>
125669         * lib/stpncpy.h (gnu_stpncpy): New declaration.
125670         (stpncpy): Define as alias for gnu_stpncpy.
125671         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
125673 2003-09-25  Simon Josefsson  <jas@extundo.com>
125675         * lib/xgetdomainname.h: New file.
125676         * lib/xgetdomainname.c: New file.
125678 2003-09-25  Simon Josefsson  <jas@extundo.com>
125679             Bruno Haible  <bruno@clisp.org>
125681         * modules/getdomainname: New file.
125682         * modules/xgetdomainname: New file.
125683         * MODULES.html.sh (func_all_modules): Add getdomainname,
125684         xgetdomainname.
125686 2003-09-25  Simon Josefsson  <jas@extundo.com>
125687             Bruno Haible  <bruno@clisp.org>
125689         * m4/getdomainname.m4: New file.
125691 2003-09-25  Simon Josefsson  <jas@extundo.com>
125692             Bruno Haible  <bruno@clisp.org>
125694         * lib/getdomainname.h: New file.
125695         * lib/getdomainname.c: New file.
125697 2003-09-25  Karl Berry  <karl@gnu.org>
125699         * lib/argp-fmtstream.c, argp-help.c: update from libc.
125701 2003-09-25  Karl Berry  <karl@gnu.org>
125703         * config/install-sh: update from automake.
125705 2003-09-25  Bruno Haible  <bruno@clisp.org>
125707         * modules/version-etc-2: New file, from modules/version-etc with
125708         modifications.
125709         * MODULES.html.sh (func_all_modules): Add version-etc-2.
125711 2003-09-25  Bruno Haible  <bruno@clisp.org>
125713         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
125714         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
125716 2003-09-24  Simon Josefsson  <jas@extundo.com>
125718         * modules/xgethostname: Add xgethostname.h.
125720 2003-09-24  Paul Eggert  <eggert@twinsun.com>
125722         * lib/linebuffer.c (freebuffer): Don't free the argument, just
125723         the buffer associated with the argument.  Bug reported by
125724         Simon Josefsson.
125726 2003-09-24  Paul Eggert  <eggert@twinsun.com>
125728         * README: Document assumptions that 'int' is at least 32 bits
125729         wide, that integer arithmetic is 2's complement without overflow,
125730         that there are no holes in integer values, that adding sizes of
125731         two nonoverlapping objects can't overflow, and that all-bits-zero
125732         yields scalar zero.  Fix spelling and capitalization typos.
125734 2003-09-19  Karl Berry  <karl@gnu.org>
125736         * lib/argp.h: update from libc.
125738 2003-09-17  Paul Eggert  <eggert@twinsun.com>
125740         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
125741         to avoid spurious warnings like "AC_RUN_IFELSE was called before
125742         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
125744 2003-09-17  Paul Eggert  <eggert@twinsun.com>
125746         * gnulib-tool: Use "test -h", not "test -L", for portability
125747         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
125748         (tags_regexp): Remove, since \| doesn't conform to POSIX.
125749         (sed_extract_prog): Issue s commands one-by-one, rather than
125750         using \| in one s command.
125752 2003-09-16  Paul Eggert  <eggert@twinsun.com>
125754         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
125755         input error, instead of returning NULL the next time we are called
125756         (and therefore losing track of errno).
125758 2003-09-16  Bruno Haible  <bruno@clisp.org>
125760         * gnulib-tool (func_create_testdir): Warn about duplicated
125761         dependencies.
125763 2003-09-15  Paul Eggert  <eggert@twinsun.com>
125765         * modules/argmatch, modules/fatal, modules/obstack,
125766         modules/xalloc, modules/xgethostname: Sort dependencies by
125767         importance, not alphabetically.
125769 2003-09-15  Paul Eggert  <eggert@twinsun.com>
125771         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
125772         fails, so that the caller gets the proper errno.
125774         * lib/readutmp.c (read_utmp): Likewise.
125775         Check for fstat error.  Close stream and free storage
125776         when failing.
125778 2003-09-14  Karl Berry  <karl@gnu.org>
125780         * config/srclist.txt (strdup.c): disable for c89 changes.
125782 2003-09-14  Jim Meyering  <jim@meyering.net>
125784         * lib/getloadavg.c: Correct cpp indentation.
125785         * lib/strdup.c: Likewise.
125786         * lib/vasnprintf.c: Likewise.
125788 2003-09-14  Bruno Haible  <bruno@clisp.org>
125790         * modules/fwriteerror: New file.
125791         * MODULES.html.sh (func_all_modules): Add fwriteerror.
125793 2003-09-14  Bruno Haible  <bruno@clisp.org>
125795         * lib/fwriteerror.h: New file.
125796         * lib/fwriteerror.c: New file.
125798 2003-09-12  Paul Eggert  <eggert@twinsun.com>
125800         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
125801         modules/xgethostname, modules/xalloc: Depend on exit.
125803 2003-09-12  Paul Eggert  <eggert@twinsun.com>
125805         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
125807         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
125808         and AC_MINIX, too, so that their extensions are available.
125810         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
125811         This macro has been superseded by gl_BACKUPFILE.
125813         More patches to assume C89 or better.
125815         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
125817         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
125818         unconditionally.
125819         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
125820         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
125821         Include <string.h>, <stdlib.h> unconditionally.
125822         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
125823         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
125824         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
125825         headers or for string.h.
125826         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
125827         or strtoul.
125829         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
125830         headers.
125831         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
125832         * m4/userspec.m4 (gl_USERSPEC): Likewise.
125833         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
125834         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
125835         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
125836         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
125837         memcpy, memset.
125838         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
125839         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
125840         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
125841         strtol.
125842         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
125843         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
125844         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
125845         strtoul.
125847 2003-09-12  Paul Eggert  <eggert@twinsun.com>
125849         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
125850         * lib/obstack.c [!defined _LIBC]: Likewise.
125851         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
125852         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
125853         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
125855         More changes to assume C89 or better.
125857         * lib/error.c (error_tail): Assume vprintf.
125859         * lib/argmatch.c (getenv): Remove decl.
125860         * lib/progreloc.c (get_full_program_name): Define via prototype.
125861         * lib/setenv.c (clearenv): Likewise.
125862         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
125863         needed.
125864         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
125865         (malloc, memcpy): Remove decls.
125866         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
125867         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
125868         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
125869         (memcpy): Remove macro.
125870         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
125871         (__P): Remove.  All uses removed.
125872         (PTR): Remove.  All uses changed to void *.
125873         (CHAR_BIT, NULL): Remove.
125874         (spaces, zeros, memset_space, memset_zero)
125875         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
125876         Remove.
125877         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
125878         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
125879         Define with prototype.
125880         Remove now-unnecessary prototype decl.
125881         (extra_args_spec): Assume ANSI C.  All uses changed.
125882         (extra_args_spec_iso): Remove.
125883         (my_strftime, emacs_strftimeu): Define via prototype.
125884         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
125885         unconditionally.
125886         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
125887         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
125888         (strtoul, strtol): Remove decls.
125889         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
125890         LONG_MAX): Remove.
125891         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
125892         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
125893         (LOCALE_PARAM_PROTO): New macro.
125894         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
125895         (INTERNAL (strtol), strtol): Define with a prototype.
125896         (PARAMS): Remove.  All uses removed.
125897         * lib/tempname.c: Include <string.h> unconditionally.
125898         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
125899         * lib/xgethostname.c (main): Define with a prototype.
125900         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
125901         Include <stdlib.h> unconditionally.
125902         (calloc, malloc, realloc, free): Remove decls.
125903         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
125904         Include <stdlib.h> unconditionally.  Sort include file names.
125905         (strtod): Remove.
125906         (xstrtod): Define with a prototype.
125907         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
125908         (strtol, strtoul): Remove decls.
125910 2003-09-11  Paul Eggert  <eggert@twinsun.com>
125912         More patches to assume C89 or better.
125913         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
125914         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
125915         string.h, memchr, STDC_HEADERS.
125917 2003-09-11  Paul Eggert  <eggert@twinsun.com>
125919         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
125920         Include <stdlib.h>, <string.h> unconditionally.
125921         Remove now-unnecessary cast to char *.
125922         * lib/strnlen.c: Include <string.h> unconditionally.
125923         * lib/yesno.c (yesno): Define with a prototype.
125925 2003-09-11  Bruno Haible  <bruno@clisp.org>
125927         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
125929 2003-09-10  Jim Meyering  <jim@meyering.net>
125931         * lib/error.c: Correct indentation of cpp directives.
125933 2003-09-10  Bruno Haible  <bruno@clisp.org>
125935         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
125936         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
125937         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
125938         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
125939         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
125940         <stdlib.h> and <string.h> checks.
125941         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
125942         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
125944 2003-09-10  Bruno Haible  <bruno@clisp.org>
125946         * lib/strcspn.c: Include <string.h> unconditionally.
125947         * lib/strpbrk.c: Include <string.h> unconditionally.
125948         * lib/strstr.c: Include <string.h> unconditionally.
125949         * lib/unicodeio.c: Include <string.h> unconditionally.
125950         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
125951         * lib/unsetenv.c: Likewise.
125952         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
125953         * lib/yesno.c: Include <stdlib.h> unconditionally.
125954         (rpmatch): Add prototype.
125956 2003-09-09  Paul Eggert  <eggert@twinsun.com>
125958         More patches to assume C89 or better.
125959         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
125960         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
125961         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
125962         or for string.h.
125963         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
125964         stdlib.h.
125965         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
125966         C headers.
125967         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
125968         string.h.
125969         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
125970         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
125971         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
125972         or for string.h.
125973         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
125974         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
125975         C headers.
125976         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
125977         memcpy.
125978         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
125979         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
125980         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
125981         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
125982         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
125983         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
125984         string.h, free.
125985         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
125986         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
125987         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
125988         C headers, or for string.h.
125989         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
125990         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
125991         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
125992         headers, memory.h, stdlib.h, string.h, strings.h.
125993         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
125994         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
125995         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
125996         strchr.
125997         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
125998         headers, memory.h, string.h.
125999         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
126000         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
126001         free.
126002         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
126003         headers.
126004         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
126005         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
126006         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
126007         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
126008         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
126010 2003-09-09  Paul Eggert  <eggert@twinsun.com>
126012         More K&R removal.
126014         * lib/acosl.c (main): Use a prototype.
126015         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
126016         tanl.c: Likewise.
126018         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
126020         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
126021         (getopt, etopt_long, getopt_long_only, _getopt_internal)
126022         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
126023         with a prototype.
126024         * lib/getopt.c (const): Remove macro.
126025         Include <string.h> unconditionally.
126026         (my_index): Remove; all uses changed to strchr.
126027         (strlen): Remove decl.
126028         (exchange): Remove forward decl; no longer needed.
126029         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
126030         Define with prototype.
126031         * lib/getopt1.c (const): Remove macro.
126032         (getopt_long, getopt_long_only, main): Define with prototype.
126034         * lib/getugroups.c: Include <string.h> unconditionally.
126036         * lib/getusershell.c: Include <stdlib.h> unconditionally.
126037         (getusershell, setusershell, endusershell, readname, main):
126038         Define with prototypes.
126040         * lib/group-member.c: Include group-member.h first.
126041         Include <stdlib.h> unconditionally.
126043         * lib/hard-locale.c: Include hard-locale.h first.
126044         Include <stdlib.h>, <string.h> unconditionally.
126046         * lib/hash.c (free, malloc): Remove decls.
126047         Include <stdlib.h> unconditionally.
126049         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
126050         (getenv): Do not declare.
126052         * lib/idcache.c: Include <string.h> unconditionally.
126054         * lib/long-options.c: Include long-options.h first, to test interface.
126055         Include <stdlib.h> unconditionally.
126057         * lib/makepath.c: Include makepath.h first, to test interface.
126058         Include <stdlib.h> and <string.h> unconditionally.
126060         * lib/linebuffer.c: Include <stdlib.h>.
126061         (free): Remove decl.
126063         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
126064         stddef.h. rpl_malloc returns void *, not char *.
126065         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
126066         prototype.
126068         * lib/md5.h: Include <limits.h> unconditionally.
126069         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
126070         (__P): Remove; all uses removed.
126071         * lib/md5.c: Include "md5.h" first.
126072         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
126073         md5_buffer, md5_process_bytes, md5_process_block):
126074         Define with prototypes.
126075         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
126076         * lib/sha.c: Include "sha.h" first.
126077         Include <stdlib.h>, <string.h> unconditionally.
126079         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
126080         * lib/memcmp.c (__ptr_t): Likewise.
126081         * lib/memrchr.c (__ptr_t): Likewise.
126082         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
126083         Include <string.h> unconditionally.
126084         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
126085         * lib/memchr.c: Include <stdlib.h> unconditionally.
126086         * lib/memchr.c (LONG_MAX): Remove.
126087         * lib/memrchr.c (LONG_MAX): Likewise.
126088         * lib/memchr.c (__memchr): Define via a prototype.
126089         * lib/memrchr.c (__memrchr): Likewise.
126090         * lib/memcmp.c (__P): Remove, and remove all uses.
126091         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
126092         Remove forward decls; no longer needed.
126093         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
126094         Use types required by C89 in prototype.
126096         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
126097         * lib/savedir.c: Likewise.
126098         * lib/mkdir.c (free): Remove decl.
126099         * lib/rmdir.c (rmdir): Define with a prototype.
126100         * lib/savedir.c: Include savedir.h first, to test interface.
126102         * lib/mktime.c (STDC_HEADERS): Remove.
126103         Include <stdlib.h>, <string.h> unconditionally.
126105         * lib/modechange.c: Include <stdlib.h> unconditionally.
126106         (malloc): Remove decl.
126108         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
126109         (free): Remove decl.
126111         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
126112         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
126113         (This type really should be intptr_t, but that's a C99ism.)
126114         (_obstack_memcpy): Remove: all uses changed to memcpy.
126115         Include <string.h> unconditionally.
126116         (struct obstack): Assume __STDC__ for types of members
126117         chunkfun, freefun, extra_arg.
126118         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
126119         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
126120         obstack_begin, obstack_specify_allocation,
126121         obstack_specify_allocation_with_arg, obstack_chunkfun,
126122         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
126123         Remove unprototyped decls and the macros that use them.
126124         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
126125         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
126126         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
126127         (defined __STDC__ && __STDC__)]:
126128         Remove nonprototyped code.
126129         Include <stdlib.h> unconditionally.
126130         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
126131         _obstack_allocated_p, _obstack_free, obstack_free,
126132         _obstack_memory_used, print_and_abort):
126133         Define using prototypes.
126134         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
126135         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
126136         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
126137         obstack_next_free, obstack_object_size, obstack_room) [0]:
126138         Remove unused, unprototyped code.
126140         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
126142         * lib/physmem.c (physmem_total, physmem_available, main): Define
126143         with prototypes.
126145         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
126146         (main): Define with a prototype.
126148         * lib/posixver.c (getenv): Remove decl.
126150         * lib/putenv.c (malloc): Returns void *, not char *.
126151         Include <string.h> unconditionally.
126152         (strchr, memcpy, NULL): Do not define.
126154         * lib/readtokens.c: Include readtokens.h first, to test interface.
126155         Include <stdlib.h>, <string.h> unconditionally.
126156         (init_tokenbuffer): Define with a prototype.
126158         * lib/regex.c (PARAMS): Remove.  All uses removed.
126159         All uses of _RE_ARGS removed, too.
126160         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
126161         unconditionally.
126162         (bzero): Assume memset exists.
126163         (memcmp, memcpy, NULL): Remove.
126164         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
126165         char, or assignments to local vars of type signed char.
126166         (init_syntax_once, PREFIX(extract_number_and_incr),
126167         PREFIX(print_partial_compiled_pattern),
126168         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
126169         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
126170         PREFIX(regex_grow_registers), PREFIX(regex_compile),
126171         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
126172         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
126173         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
126174         wcs_compile_range, byte_compile_range, truncate_wchar,
126175         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
126176         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
126177         count_mbs_length, wcs_re_match_2_internal,
126178         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
126179         PREFIX(alt_match_null_string_p),
126180         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
126181         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
126182         regfree, PREFIX(extract_number)): Define with prototype.  Remove
126183         now-unnecessary declaration, if any.
126184         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
126185         regcomp, regexec):
126186         Remove now-unnecessary casts among pointer types.
126187         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
126189         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
126190         (free): Remove decl.
126192         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
126194         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
126195         (free): Remove decl.
126197         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
126198         * lib/xgetcwd.c: Likewise.
126200         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
126201         (free): Remove decl.
126203         * lib/strchrnul.c (strchrnul): Define with a prototype.
126204         Fix bug: c_in was not converted to char before searching.
126206         The following changes are not K&R related:
126208         * lib/group-member.h: Include <sys/types.h>, so that this file is
126209         self-contained.
126210         * lib/makepath.h: Likewise.
126212         * lib/getusershell.c (readname, default_index, line_size, readname):
126213         Use size_t, not int, for sizes.
126214         (readname): If the size overflows, report an error instead of
126215         looping forever.
126217 2003-09-09  Paul Eggert  <eggert@twinsun.com>
126219         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
126220         libc.
126222 2003-09-09  Paul Eggert  <eggert@twinsun.com>
126224         * README: New section: portability guidelines.
126226 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
126228         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
126229         C89 spec.
126231 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
126233         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
126235 2003-09-08  Paul Eggert  <eggert@twinsun.com>
126237         Assume C89 or better; remove K&R cruft.
126238         A few of these changes were first proposed by Derek Robert Price
126239         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
126241         * lib/addext.c: Include <string.h> unconditionally.
126242         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
126243         Don't declare getenv or malloc.
126245         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
126246         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
126247         (NULL): Remove.
126248         (find_stack_direction, alloca): Use prototypes.
126250         * lib/atexit.c (atexit): Define using a prototype.
126252         * lib/basename.c, dirname.c, stripslash.c:
126253         Include <string.h> unconditionally.
126255         * lib/bcopy.c: Include <stddef.h>.
126256         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
126258         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
126260         * lib/error.h (error, error_at_line, error_print_progname)
126261         [! (defined (__STDC__) && __STDC__)]: Remove decls.
126262         * lib/error.c: Include error.h first, to check interface.
126263         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
126264         (VA_START): Remove; all uses changeed to va_start.
126265         (exit, strerror): Remove decls.
126266         (error_print_progname): Prototype uncondionally.
126267         Don't include <errno.h>; no longer needed.
126268         (private_strerror): Remove.
126269         (error_tail): Always define.
126270         (error, error_at_line): Assume C89 or better; always use prototypes.
126271         * lib/fatal.c: Include "fatal.h" first, to test interface.
126272         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
126273         (VA_START): Remove; all uses changed to va_start.
126274         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
126275         this case.
126276         (exit): Remove decl.
126277         (fatal): Prototype unconditionally.  Assume va_start works.
126278         Abort at end, to pacify gcc.
126280         * lib/euidaccess.c (main): Define with a prototype.
126282         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
126284         * lib/exitfail.c: Include <stdlib.h> unconditionally.
126286         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
126287         prototypes.
126288         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
126289         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
126290         (getenv): Remove decl.
126291         (fnmatch): Define using a prototype.
126292         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
126293         (FCT): Define using a prototype.
126295         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
126297         * lib/gethostname.c: Include <stddef.h>.
126298         (gethostname): Define with prototype.  Length is size_t, not int.
126300 2003-09-08  Paul Eggert  <eggert@twinsun.com>
126302         Assume C89 or better; remove K&R cruft.
126303         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
126304         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
126305         string.h, getenv, malloc.
126306         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
126307         headers.
126308         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
126309         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
126310         do not check for strerror.
126311         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
126312         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
126313         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
126314         do not check for doprnt or vprintf.
126315         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
126316         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
126318 2003-09-08  Paul Eggert  <eggert@twinsun.com>
126320         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
126321         getversion.c should have been removed then, but was accidentally
126322         preserved.
126324         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
126325         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
126327 2003-09-08  Karl Berry  <karl@gnu.org>
126329         * config/config.sub, config.guess, srclistvars.sh: update from savannah
126330                 config, forget about prep.
126332         * config/depcomp, missing: update from automake.
126334 2003-09-07  Paul Eggert  <eggert@twinsun.com>
126336         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
126337         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
126339 2003-09-07  Paul Eggert  <eggert@twinsun.com>
126341         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
126342         copy_tm_result.  Bug reported by Simon Josefsson in
126343         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
126345 2003-09-06  Paul Eggert  <eggert@twinsun.com>
126347         * m4/time_r.m4: New file.
126348         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
126349         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
126350         is. Check for timegm declaration.
126351         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
126352         Do not check for gmtime_r.
126353         Replace mktime if __mktime_internal does not exist and if mktime
126354         hasn't been replaced already.
126356 2003-09-06  Paul Eggert  <eggert@twinsun.com>
126358         * lib/time_r.c, lib/time_r.h: New files.
126360         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
126361         __localtime_r.
126362         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
126363         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
126365         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
126366         __gmtime_r.
126367         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
126368         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
126369         Include <time_r.h>.
126371         * lib/timegm.c: Switch to glibc implementation, with the following
126372         changes:
126373         [defined HAVE_CONFIG_H]: Include <config.h>.
126374         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
126375         (__mktime_internal) [!defined _LIBC]: New decl.
126376         (__gmtime_r) [!defined _LIBC]: New macro and function.
126377         (timegm): Use a prototype, since gnulib assumes C89.
126378         Do not bother declaring tmp to be const, as it's not really usefu.
126379         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
126380         (timegm): Declare only if HAVE_DECL_TIMEGM.
126382 2003-09-06  Paul Eggert  <eggert@twinsun.com>
126384         * MODULES.html.sh (func_all_modules): Add time_r.
126385         * modules/time_r: New file.
126386         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
126387         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
126389 2003-09-03  Paul Eggert  <eggert@twinsun.com>
126391         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
126392         Bug reported by Lute Kamstra in
126393         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
126395         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
126396         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
126397         course with correspondingly smaller numbers for tomorrow and
126398         yesterday.  From Tadayoshi Funaba.  Originally installed into
126399         sh-utils on 1999-08-07, but the patch got lost (I guess during the
126400         coreutils merge?).
126402 2003-08-31  Simon Josefsson  <jas@extundo.com>
126404         * modules/timegm: New file.
126405         * MODULES.html.sh (func_all_modules): Add timegm.
126407 2003-08-31  Simon Josefsson  <jas@extundo.com>
126409         * m4/timegm.m4: New file.
126411 2003-08-31  Simon Josefsson  <jas@extundo.com>
126413         * lib/timegm.h: New file.
126414         * lib/timegm.c: New file.  Based on
126415         wget-1.8.2/src/http.c:mktime_from_utc.
126417 2003-08-31  Karl Berry  <karl@gnu.org>
126419         * lib/argp.h: update from libc.
126421 2003-08-28  Bruno Haible  <bruno@clisp.org>
126423         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
126424         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
126425         followed by '#define fnmatch fnmatch_posix' gives an error.
126427 2003-08-28  Bruno Haible  <bruno@clisp.org>
126429         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
126430         warning on QNX, which defines O_BINARY to 000000.
126432 2003-08-27  Jim Meyering  <jim@meyering.net>
126434         * m4/mkstemp.m4: Require that the system mkstemp be able to create
126435         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
126436         would fail after 32.  Reported by Danny Levinson.  Details here:
126437         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
126439 2003-08-24  Bruno Haible  <bruno@clisp.org>
126441         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
126442         MSVC7 <stdio.h> is included later.
126444 2003-08-22  Simon Josefsson  <jas@extundo.com>
126446         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
126448 2003-08-20  Karl Berry  <karl@gnu.org>
126450         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
126452 2003-08-20  Bruno Haible  <bruno@clisp.org>
126454         * modules/progname: New file.
126455         * MODULES.html.sh (func_all_modules): Add progname.
126457 2003-08-20  Bruno Haible  <bruno@clisp.org>
126459         * lib/progname.h: New file, from GNU gettext.
126460         * lib/progname.c: New file, from GNU gettext.
126461         * lib/progreloc.c: New file, from GNU gettext.
126463 2003-08-19  Jim Meyering  <jim@meyering.net>
126465         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
126466         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
126468 2003-08-19  Bruno Haible  <bruno@clisp.org>
126470         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
126471         more.
126473 2003-08-19  Bruno Haible  <bruno@clisp.org>
126475         * lib/xstrdup.c: Assume <string.h> exists.
126477 2003-08-18  Paul Eggert  <eggert@twinsun.com>
126479         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
126480         in makefile rules.
126482 2003-08-18  Jim Meyering  <jim@meyering.net>
126484         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
126485         * m4/lib-ld.m4: Likewise.
126487 2003-08-18  Jim Meyering  <jim@meyering.net>
126489         * lib/setenv.h: Indent nested cpp directive.
126490         * lib/vasnprintf.c: Remove trailing blanks.
126492 2003-08-17  Simon Josefsson  <jas@extundo.com>
126494         * modules/xstrndup: New file.
126495         * MODULES.html.sh (func_all_modules): Add xstrndup.
126497 2003-08-17  Simon Josefsson  <jas@extundo.com>
126499         * modules/argp: Fix autoconf macro name. Add more dependencies.
126501 2003-08-17  Simon Josefsson  <jas@extundo.com>
126503         * m4/xstrndup.m4: New file.
126505 2003-08-17  Simon Josefsson  <jas@extundo.com>
126507         * m4/argp.m4: New file.
126509 2003-08-17  Simon Josefsson  <jas@extundo.com>
126510             Bruno Haible  <bruno@clisp.org>
126512         * lib/xstrndup.h: New file.
126513         * lib/xstrndup.c: New file.
126515 2003-08-17  Bruno Haible  <bruno@clisp.org>
126517         * modules/strndup (Files, Include): Add lib/strndup.h.
126519 2003-08-17  Bruno Haible  <bruno@clisp.org>
126521         * modules/euidaccess (Files): Add lib/euidaccess.h.
126523 2003-08-17  Bruno Haible  <bruno@clisp.org>
126525         * lib/strndup.h: New file.
126527 2003-08-17  Bruno Haible  <bruno@clisp.org>
126529         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
126530         like AC_GNU_SOURCE.
126531         * modules/extensions (configure.ac): Comment out the invocation of
126532         gl_USE_SYSTEM_EXTENSIONS.
126534 2003-08-16  Paul Eggert  <eggert@twinsun.com>
126536         Merges from coreutils, etc.
126537         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
126538         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
126539         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
126540         fixing a typo.
126541         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
126542         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
126544 2003-08-16  Paul Eggert  <eggert@twinsun.com>
126546         Document merge from coreutils.
126547         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
126548         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
126549         * modules/utime: Add m4/utimes-null.m4.
126551 2003-08-16  Paul Eggert  <eggert@twinsun.com>
126553         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
126554         space, undoing this 2003-08-12 change:
126555         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
126557 2003-08-16  Paul Eggert  <eggert@twinsun.com>
126559         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
126560         strtoul.c from libc, undoing this 2003-08-12 change:
126561         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
126563 2003-08-16  Jim Meyering  <jim@meyering.net>
126565         Merges from coreutils.
126566         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
126567         prefix.  Adjust cache variables similarly.  Create 500 rather than
126568         just 300 files, to exercise bug on Darwin6.5, too.
126569         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
126570         $missing_dir.
126571         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
126572         AM_SYS_POSIX_TERMIOS.
126573         Reported by mkc@mathdogs.com.
126574         Also change use of $am_cv_sys_posix_termios
126575         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
126576         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
126577         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
126578         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
126579         in /proc/mounts until it finds one with matching device number.  This
126580         is unnecessary when the FILE argument *is* a mount point.  No stat call
126581         is necessary in that case.  So, disable the statvfs-testing code on
126582         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
126583         as RedHat bug# 84846.
126584         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
126585         to 1MB, so as not to render systems with no stack size limit (e.g.,
126586         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
126587         Include <unistd.h>.  On some systems,
126588         it is required for the definition of _SC_PAGESIZE.
126590 2003-08-16  Jim Meyering  <jim@meyering.net>
126592         Merge from coreutils.
126593         * lib/xstrtoimax.c: #else #if -> #elif.
126594         * lib/xstrtoumax.c: Likewise.
126596 2003-08-16  Jim Meyering  <jim@meyering.net>
126598         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
126599         * m4/utimes.m4: Removed.
126600         * m4/utimes-null.m4: Renamed from utimes.m4.
126602         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
126603         to 1MB, so as not to render systems with no stack size limit (e.g.,
126604         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
126605         Include <unistd.h>.  On some systems,
126606         it is required for the definition of _SC_PAGESIZE.
126608 2003-08-16  Jim Meyering  <jim@meyering.net>
126609         and Paul Eggert  <eggert@cs.ucla.edu>
126611         Merges from coreutils, etc.
126613         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
126614         using the latest version from cvs.  This avoids problems with #line
126615         directives using a vendor (Sun) compiler.
126616         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
126617         Don't set GETGROUPS_LIB here; now it's
126618         done via getgroups.m4's wrapper function.
126619         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
126620         rather than just in sh-util/configure.in, so that the
126621         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
126622         same.
126623         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
126624         AC_FUNC_GETLOADAVG where to find getloadavg.c.
126625         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
126626         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
126627         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
126628         Remove code that is now done by the newly-required macros.
126629         Append $(EXEEXT) to DF_PROG.
126630         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
126631         Do not invoke or require the following here,
126632         since prereq.m4 or some gnulib .m4 now does this for us:
126633         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
126634         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
126635         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
126636         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
126637         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
126638         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
126639         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
126640         AC_FUNC_OBSTACK.
126641         Do not replace the following functions, as this is now the job
126642         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
126643         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
126644         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
126645         atexit getpass, strdup, getpagesize.
126646         Replace 'raise'.
126647         Do not check for the following functions, as this is now the job
126648         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
126649         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
126650         setregid.
126651         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
126652         Check for sys/sysctl.h.
126653         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
126654         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
126655         of checking for ssize_t ourselves.
126657         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
126658         Require every macro that gnulib/modules/* suggests for us.
126659         (jm_PREREQ_ADDEXT): New macro.
126660         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
126661         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
126663         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
126664         (gl_PHYSMEM): Use it.
126665         Also check for `table' function.
126666         Check for new headers and functions.
126667         Add check for sys/sysmp.h.
126668         With suggestions from Kaveh Ghazi.
126669         Ignore headers that are present but cannot be compiled.  This
126670         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
126671         C 5.4.
126673 2003-08-15  Paul Eggert  <eggert@twinsun.com>
126675         Document merge from coreutils.
126676         * modules/userspec: Depend on posixver.
126677         * modules/strftime: Depend on tzset.
126679 2003-08-15  Paul Eggert  <eggert@twinsun.com>
126681         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
126682         rather than tab, after '#' in shell-script copyright notices.
126683         Suggested by Bruno Haible.
126685 2003-08-15  Paul Eggert  <eggert@twinsun.com>
126687         * config/srclist-update: Use three spaces, rather than tab, after '#'
126688         in shell-script copyright notices.  Suggested by Bruno Haible.
126689         Remove unnecessary parenthesization in regular expression.
126691 2003-08-15  Jim Meyering  <jim@meyering.net>
126693         Merge from coreutils.
126694         * lib/xgethostname.c: Include <stdlib.h>.
126695         (xghostname): Don't exit for anything other than memory-related
126696         failure; just return NULL.
126697         * lib/userspec.c: Include "posixver.h".
126698         (parse_user_spec): Accept `.' as a separator only
126699         in pre-POSIX-200112 mode.
126700         * lib/strtoimax.c: Use #elif rather than #else #if.
126701         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
126702         Remove function, now that we can rely on a working tzset function.
126703         [!_LIBC]: Ensure that the required autoconf test has been run.
126704         [!defined _NL_CURRENT && HAVE_STRFTIME]:
126705         Use underlying_strftime for %r.
126706         * lib/sha.c: Merge in some clean-up and optimization changes from
126707         glibc.
126708         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
126709         Ensure that it is a multiple of 64.
126710         Rearrange loop exit tests so as to avoid performing an
126711         additional fread after encountering an error or EOF.
126712         * lib/realloc.c: Update copyright date.
126714 2003-08-15  Jim Meyering  <jim@meyering.net>
126715         and Paul Eggert  <eggert@twinsun.com>
126717         Merge from coreutils.
126718         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
126719         member but strut utmpx does not.  Needed for AIX 4.3.3.
126720         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
126722 2003-08-15  Jim Meyering  <jim@meyering.net>
126723         and Paul Eggert  <eggert@cs.ucla.edu>
126725         Merges from coreutils, etc.
126726         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
126727         Require gl_FUNC_TZSET_CLOBBER.
126728         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
126729         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
126730         members.
126732 2003-08-14  Paul Eggert  <eggert@twinsun.com>
126734         Help the merge from coreutils.
126735         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
126736         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
126737         * m4/tzset.m4: Use it too.
126739 2003-08-14  Paul Eggert  <eggert@twinsun.com>
126741         * modules/tzset: New file.
126743 2003-08-14  Jim Meyering  <jim@meyering.net>
126745         Merges from coreutils.
126746         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
126747         variable names, rather than @FNMATCH_H@.
126748         * modules/alloca: Likewise for $(ALLOCA_H).
126750         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
126751         the three copies of the literal target, `fnmatch.h'.
126752         * modules/alloca (alloca.h): Likewise.
126754 2003-08-14  Jim Meyering  <jim@meyering.net>
126756         Merge from coreutils.
126757         * m4/tzset.m4: New file.
126758         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
126759         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
126760         otherwise, AIX 5.1 systems would end up using the latter.
126761         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
126762         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
126763         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
126764         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
126766 2003-08-14  Jim Meyering  <jim@meyering.net>
126768         Merge from coreutils.
126769         * lib/obstack.h: Whitespace changes.
126770         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
126771         and xcalloc return values.
126772         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
126773         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
126774         hang on OSF/1 5.1 for DIR on both local and remote file systems.
126775         Reported by (and fix confirmed by) Nelson H. F. Beebe.
126776         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
126777         error from mntctl.
126778         Use mntctl's return value to drive the entry-processing loop, since
126779         we can't rely on the value of the vmt_length member in the last
126780         entry.  On some systems doing so could result in exhausting
126781         virtual memory.  Based in part on a patch from Mike Jetzer.
126783 2003-08-14  Jim Meyering  <jim@meyering.net>
126784         and Paul Eggert  <eggert@twinsun.com>
126786         Merges from coreutils, plus other fixes.
126787         * lib/physmem.c: Merge in portability changes from gcc/libiberty
126788         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
126789         for credits and details.  Thanks to Kaveh Ghazi for helping
126790         to keep these files in sync.
126791         (ARRAY_SIZE): Define it.
126792         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
126793         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
126794         (memcasecmp): Don't assume size_t fits in unsigned int.
126795         Remove casts and duplicate code.
126796         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
126797         (memcpy): Remove definition.
126798         Merge in some clean-up and optimization changes from glibc.
126799         [BLOCKSIZE]: Move definition to top of file.
126800         Ensure that it is a multiple of 64.
126801         Rearrange loop exit tests so as to avoid performing an
126802         additional fread after encountering an error or EOF.
126803         * lib/md5.h (md5_uintptr): Define.
126804         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
126805         return to the initial working directory.  Preserve errno
126806         for caller.
126807         * lib/idcache.c: Include "xalloc.h".
126808         (xmalloc, xrealloc): Remove decls.
126809         (getuser): Remove casts no longer required in C89.
126810         * lib/human.c: Include stdio.h, for sprintf.
126811         * lib/group-member.c: Include "xalloc.h".
126812         (xmalloc, xrealloc): Remove decls.
126813         (get_group_info): Remove casts no longer required in C89.
126814         * lib/getusershell.c (readname): Remove casts no longer required in
126815         C89.
126816         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
126817         * lib/getline.c: Whitespace fix, from coreutils.
126819 2003-08-13  Paul Eggert  <eggert@twinsun.com>
126821         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
126822         Check for isascii.
126824         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
126825         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
126826         Undo previous (whitespace-only) change.
126828 2003-08-13  Paul Eggert  <eggert@twinsun.com>
126830         * lib/exclude.c: Include <ctype.h>
126831         (IN_CTYPE_DOMAIN): New macro.
126832         (is_space): New fn.
126833         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
126834         and empty lines.
126836         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
126837         Undo previous (whitespace-only) change.
126839 2003-08-13  Paul Eggert  <eggert@twinsun.com>
126841         * config/srclist-update: Change update back to the old behavior,
126842         leaving whitespace alone.  Use one 'sed' command rather than a
126843         pipeline.
126844         (fixlicense): Now a variable, not a function.
126845         (remove_trailing_blanks): Remove.
126846         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
126847         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
126848         Undo previous (whitespace-only) change.
126850 2003-08-12  Paul Eggert  <eggert@twinsun.com>
126852         Merge from coreutils.
126853         * modules/euidaccess: Add lib_SOURCES, include for new
126854         file euidaccess.h
126856 2003-08-12  Paul Eggert  <eggert@twinsun.com>
126858         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
126859         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
126860         Normalize leading white space and remove trailing white space.
126862         Merge from coreutils
126863         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
126865         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
126866         0.12.1.  These files are now being upgraded automatically by
126867         ../config/srclist-update.
126869 2003-08-12  Paul Eggert  <eggert@twinsun.com>
126871         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
126872         Normalize leading white space and remove trailing white space.
126873         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
126874         notice, as per ../config/srclist-update.
126876         Merge from coreutils.
126877         * lib/euidaccess.h: New file.
126878         * lib/euidaccess.c: Include it.
126879         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
126880         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
126881         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
126883 2003-08-12  Paul Eggert  <eggert@twinsun.com>
126885         * config/srclist-update: Add copyright notice.
126886         (remove_id_lines, remove_trailing_blanks): New constants.
126887         (fixfile): Use them to normalize spacing a bit in copied files.
126888         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
126889         Normalize leading white space and remove trailing white space.
126891         * config/texinfo.tex: Sync with texinfo.
126893         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
126894         strtoul.c from libc, to merge coreutils whitespace changes.
126896         * config/srclist.txt: Get the following m4 files from gettext:
126897         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
126898         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
126899         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
126900         wint_t.m4.
126902 2003-08-12  Karl Berry  <karl@gnu.org>
126904         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
126905         been made.
126907 2003-08-11  Paul Eggert  <eggert@twinsun.com>
126909         * modules/gnu-source, m4/gnu-source.m4:
126910         Remove; we're assuming Autoconf 2.54 or later now.
126911         Suggested by Bruno Haible.
126912         * MODULES.html.sh (func_all_modules): Remove gnu-source.
126914 2003-08-11  Bruno Haible  <bruno@clisp.org>
126916         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
126918 2003-08-11  Bruno Haible  <bruno@clisp.org>
126920         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
126921         (vasnprintf): Use it instead of wcslen.
126923 2003-08-11  Bruno Haible  <bruno@clisp.org>
126925         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
126926         value to ensure that _Bool promotes to int. Use #define for _Bool when
126927         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
126929 2003-08-10  Karl Berry  <karl@gnu.org>
126931         * lib/regex.h: update from libc (whitespace fix).
126933 2003-08-09  Paul Eggert  <eggert@twinsun.com>
126935         Merge some files from coreutils.  These changes were
126936         originally made by Jim Meyering.
126937         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
126938         many older Unixes require this.
126939         * lib/alloca.c (alloca): Remove cast to argument of free;
126940         no longer needed in C89.
126941         * lib/alloca_.h, regex.h: Fix white space to match
126942         what GNU indent does.
126944 2003-08-09  Paul Eggert  <eggert@twinsun.com>
126946         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
126947         apparently Emacs's Unicode mode got confused before my 2003-08-05
126948         checkin.
126950 2003-08-08  Paul Eggert  <eggert@twinsun.com>
126952         * m4/extensions.m4: New file.
126953         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
126954         Require gl_USE_SYSTEM_EXTENSIONS.
126955         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
126956         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
126958 2003-08-08  Paul Eggert  <eggert@twinsun.com>
126960         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
126961         * modules/extensions, modules/gnu-source: New files.
126962         * modules/timespec, modules/unlocked-io: Depend on extensions.
126964 2003-08-07  Paul Eggert  <eggert@twinsun.com>
126966         * modules/restrict: New file.
126967         * MODULES.html.sh (func_all_modules): Add restrict.
126968         * modules/regex: Depend on restrict.
126970 2003-08-07  Paul Eggert  <eggert@twinsun.com>
126972         * m4/restrict.m4: New file.
126973         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
126975 2003-08-07  Bruno Haible  <bruno@clisp.org>
126977         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
126978         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
126980 2003-08-07  Bruno Haible  <bruno@clisp.org>
126982         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
126983         makes the module 'getndelim2' compatible with the module 'getline'.
126985 2003-08-05  Paul Eggert  <eggert@twinsun.com>
126987         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
126988         byte with "\201" to avoid glitches when editing that source file
126989         with multi-gnome-terminal.
126991 2003-08-05  Paul Eggert  <eggert@twinsun.com>
126993         * lib/bumpalloc.h: Remove.
126995 2003-08-05  Paul Eggert  <eggert@twinsun.com>
126997         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
126998         * modules/bumpalloc: Remove.
127000 2003-08-04  Paul Eggert  <eggert@twinsun.com>
127002         * lib/getloadavg.c: Change copyright notice and spacing to conform to
127003         GNU coding style.
127005         Merge from coreutils.
127006         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
127007         1. From glibc.
127008         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
127009         from Karl Berry, implemented by Jim Meyering.
127010         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
127011         from Dmitry V. Levin.
127012         Remove anachronistic cast of xrealloc.
127013         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
127014         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
127015         type. Otherwise, it wouldn't compile with at least /bin/cc on
127016         ymp-cray-unicos9.0.2.X.
127017         Combine two mostly-identical uses of alloca into one.
127018         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
127020 2003-08-04  Dave Love  <d.love@dl.ac.uk>
127022         [From Emacs.]
127024         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
127025         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
127026         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
127027         obsolete NLIST_NAME_UNION.
127028         [__GNU__]: Undef BSD and FSCALE.
127029         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
127031 2003-08-03  Paul Eggert  <eggert@twinsun.com>
127033         * lib/stdbool_.h (_Bool): Make it signed char, instead of
127034         an enum type, so that it's guaranteed to promote to int.  See:
127035         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
127037 2003-08-03  Karl Berry  <karl@gnu.org>
127039         * config/depcomp: update from automake.
127041 2003-07-31  Paul Eggert  <eggert@twinsun.com>
127043         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
127044         (strerror): Don't assume that a printable int fits in 14 bytes.
127046 2003-07-31  Bruno Haible  <bruno@clisp.org>
127048         * modules/getpass-gnu: New file.
127049         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
127051 2003-07-31  Bruno Haible  <bruno@clisp.org>
127053         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
127055 2003-07-24  Karl Berry  <karl@gnu.org>
127057         * config/missing: update from automake.
127059 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
127060             Bruno Haible  <bruno@clisp.org>
127062         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
127063         * lib/getline.c (getline, getdelim): Likewise.
127064         Remove _GNU_SOURCE define; now it's defined in config.h through
127065         m4/getline.m4.
127067 2003-07-23  Karl Berry  <karl@gnu.org>
127069         * config/config.sub: update from prep.
127071 2003-07-22  Paul Eggert  <eggert@twinsun.com>
127073         * modules/xalloc (Depends-on): Add exitfail.
127074         * modules/xmemcoll: Likewise.
127076 2003-07-22  Paul Eggert  <eggert@twinsun.com>
127078         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
127079         over-parenthesization in macros.
127081         Sync with coreutils.
127083         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
127084         required by C99.
127086         Use `exit_failure' for xalloc and xmemcoll instead of their own
127087         private exit-failure variables.
127088         * lib/xalloc.h (xalloc_exit_failure): Remove.
127089         * lib/xmalloc.c: Likewise.  Include exitfail.h.
127090         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
127091         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
127092         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
127093         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
127095 2003-07-20  Jim Meyering  <jim@meyering.net>
127097         * modules/closeout (Depends-on): Add exitfail.
127098         Suggestion from Bruno Haible.
127100 2003-07-19  Karl Berry  <karl@gnu.org>
127102         * config/config.sub: update from prep.
127104 2003-07-18  Paul Eggert  <eggert@twinsun.com>
127106         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
127107         Remove.
127108         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
127109         to test that it can stand by itself.  Include "exitfail.h".
127110         Clients should set exit_failure instead.
127111         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
127113 2003-07-18  Bruno Haible  <bruno@clisp.org>
127115         * modules/getndelim2: New file.
127116         * modules/getline: Share files with module getndelim2.
127117         * modules/getnline: Depend on getndelim2 instead of sharing files with
127118         it. Add getnline.c to lib_SOURCES.
127119         * MODULES.html.sh (func_all_modules): Add getndelim2.
127121 2003-07-18  Bruno Haible  <bruno@clisp.org>
127123         * m4/getndelim2.m4: New file.
127124         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
127125         invoke gl_PREREQ_GETNDELIM2.
127126         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
127127         gl_PREREQ_GETNDELIM2.
127128         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
127129         gl_GETNDELIM2.
127131 2003-07-18  Bruno Haible  <bruno@clisp.org>
127133         * lib/getndelim2.h: New file.
127134         * lib/getndelim2.c: Make into a module of its own. Include config.h,
127135         getndelim2.h.
127136         (getndelim2): Make non-static. Change return type to ssize_t.
127137         * lib/getline.h: Change argument names.
127138         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
127139         * lib/getnline.c: Include getndelim2.h.
127141 2003-07-18  Andreas Schwab  <schwab@suse.de>
127143         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
127145 2003-07-17  Karl Berry  <karl@gnu.org>
127147         * config/config.sub: update from prep.
127149 2003-07-17  Bruno Haible  <bruno@clisp.org>
127151         * modules/getnline: New file.
127152         * modules/getline: Add lib/getndelim2.c to source file list.
127153         * MODULES.html.sh (func_all_modules): Add getnline.
127155 2003-07-17  Bruno Haible  <bruno@clisp.org>
127157         * m4/getnline.m4: New file.
127159 2003-07-17  Bruno Haible  <bruno@clisp.org>
127161         * m4/Makefile.am.in: Remove file.
127162         * m4/Makefile.am: Remove file.
127163         * m4/Makefile.in: Remove file.
127165 2003-07-17  Bruno Haible  <bruno@clisp.org>
127167         * lib/getnline.h: New file.
127168         * lib/getnline.c: New file.
127169         * lib/getndelim2.c: New file, extracted from getline.c.
127170         (getndelim2): Renamed from getdelim2, with added nmax argument.
127171         * lib/getline.c: Include getndelim2.c.
127172         (getdelim2): Moved out to getndelim2.c.
127173         (getline, getdelim): Update.
127175 2003-07-17  Bruno Haible  <bruno@clisp.org>
127177         * lib/Makefile.am: Remove file.
127178         * lib/Makefile.in: Remove file.
127180 2003-07-17  Bruno Haible  <bruno@clisp.org>
127182         * configure.in: Remove file.
127183         * Makefile.in: Remove file.
127185 2003-07-17  Bruno Haible  <bruno@clisp.org>
127187         * MODULES.html.sh: Put the </BODY> right before </HTML>.
127189 2003-07-16  Karl Berry  <karl@gnu.org>
127191         * config/srclist-update: was running fixlicense twice, which caused
127192                 texinfo.tex to be nullified for some reason.  Simplify,
127193                 $gplsrc is no longer needed as far as I can see?
127195 2003-07-16  Jim Meyering  <jim@meyering.net>
127197         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
127199 2003-07-15  Paul Eggert  <eggert@twinsun.com>
127201         * config/srclist.txt: Get the following files from gettext-runtime/intl
127202         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
127203         ref-del.sin.  From Bruno Haible.
127204         * config/srclist-update (fixfile): Change grep pattern again, since the
127205         previous fix didn't work (there was another trailing $).  Use
127206         '[$]' to escape the $s.
127208 2003-07-15  Karl Berry  <karl@gnu.org>
127210         * lib/vasnprintf.c: update from gettext.
127212 2003-07-15  Karl Berry  <karl@gnu.org>
127214         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
127215         gets expanded when surrounded by '$'.
127217 2003-07-15  Jim Meyering  <jim@meyering.net>
127219         * modules/save-cwd: Don't depend on error.  From Derek Price.
127221 2003-07-15  Jim Meyering  <jim@meyering.net>
127223         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
127225 2003-07-14  Simon Josefsson  <jas@extundo.com>
127227         * modules/mempcpy: New file.
127228         * MODULES.html.sh (func_all_modules): Add mempcpy.
127230 2003-07-14  Simon Josefsson  <jas@extundo.com>
127232         * m4/mempcpy.m4: New file.
127234 2003-07-14  Simon Josefsson  <jas@extundo.com>
127236         * lib/mempcpy.h: New file.
127237         * lib/mempcpy.c: New file.
127239 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127241         * modules/getdate, modules/posixtm: Depend on mktime.
127243 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127245         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
127246         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
127247         unicodeio.c, unicodeio.h, unlocked-io.h:
127248         Switch from LGPL to GPL.
127250 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127252         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
127253         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
127254         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
127255         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
127256         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
127257         updated automatically by ../config/srclist-update.  This changes
127258         their license from LPGL to GPL.
127260 2003-07-14  Paul Eggert  <eggert@twinsun.com>
127262         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
127263         assumed to refer to the root of the most recent stable gettext version.
127264         * config/srclistvars.sh: Add defaults for eggert.
127265         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
127266         Match "This program" as well as "The program".  This is needed
127267         for gettext.
127269 2003-07-14  Jim Meyering  <jim@meyering.net>
127271         Don't emit diagnostics.  Let callers do that.
127272         * lib/save-cwd.c: Don't include "error.h".
127273         (save_cwd): Don't call error.  Ensure that errno is valid
127274         when returning nonzero.
127276         * lib/save-cwd.h (restore_cwd): Update prototype.
127277         * lib/save-cwd.c (restore_cwd): Remove two parameters.
127278         Simplify.  Don't call error upon failure.  Let callers do that.
127279         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
127280         when auditing is enabled.  But don't bother updating the #if.
127282 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
127284         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
127285         it breaks C++ compilation.
127286         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
127288 2003-07-10  Simon Josefsson  <jas@extundo.com>
127290         * modules/strchrnul (Makefile.am): Add strchrnul.h.
127292 2003-07-10  Jim Meyering  <jim@meyering.net>
127294         * m4/clock_time.m4: Remove trailing blank.
127295         * m4/intmax_t.m4: Likewise.
127297 2003-07-10  Jim Meyering  <jim@meyering.net>
127299         * lib/vasnprintf.c: Remove trailing blanks.
127300         Make cpp indentation consistent.
127302 2003-07-09  Paul Eggert  <eggert@twinsun.com>
127304         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
127305         posixver.c, strftime.c, strnlen.c, strverscmp.c:
127306         Switch from LGPL to GPL.
127308 2003-07-09  Paul Eggert  <eggert@twinsun.com>
127310         * config/srclist.txt: Sort sublists.  Add
127311         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
127312         that differ from gnulib for one reason or another; we'd like this list
127313         to be smaller but for now let's document what we have.
127315 2003-07-08  Paul Eggert  <eggert@twinsun.com>
127317         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
127318         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
127319         and sweeter "eval x=$x".
127320         * config/srclist.txt: Get lib/argp* from glibc.
127322 2003-07-07  Paul Eggert  <eggert@twinsun.com>
127324         * lib/mktime.c: Fix some boundary cases and remove need for floating
127325         point.
127327         Issue a compile-time diagnostic if time_t is floating point, or if
127328         two's complement arithmetic is not in effect, or if arithmetic
127329         right shift does not propagate the sign.  These assumptions were
127330         all in the original code but they weren't checked.
127332         (TIME_T_MIDPOINT, verify): New macros.
127333         (__isleap): Remove; it has integer overflow problems.
127334         (leapyear): New function, without those problems.
127335         (ydhms_tm_diff): Remove; splitting into two parts.
127336         (ydhms_diff): New function, containing the arithmetic part of
127337         the old ydhms_tm_diff function.  Issue a compile-time
127338         diagnostic if we are not using C99 integer division.
127339         Avoid casts when possible.
127340         (guess_time_tm): New function, containing the checking part of
127341         the old ydhms_tm_diff function.  Return the new value, rather than
127342         the difference between it and the old.  Accept a new argument T
127343         so that *T specifies the old value.  Check for overflow in the result.
127345         (__mktime_internal): Use a time_t offset, not a long int offset.
127346         This undoes the 2003-06-04 change, which is no longer needed now
127347         that we have better overflow checking.
127348         (localtime_offset): Likewise.
127350         (__mktime_internal): Avoid harmful overflow on hosts where time_t
127351         and long are 64-bit but int is only 32-bit.
127352         (ydhms_diff): Use long int to store year1 and yday1.
127353         Issue a compile-time diagnostic if long int is not wide enough.
127355         (__mktime_internal): Use long int to store adjusted year and yday.
127356         Use plain C rather than preprocessor commands, if that doesn't
127357         affect efficiency.
127358         Check for overflow (and try to repair) after each probe
127359         rather than checking only at the very end.  This avoids some bugs
127360         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
127361         does not equal GMT offset at maximum time).
127362         Use integer to check for overflow rather than floating point; this
127363         is more portable to non-IEEE hosts, and is a tad faster.
127364         When we detect that we are oscillating between two values,
127365         don't check whether tm_isdst has the requested value, since
127366         we already know the answer.  When tm_isdst has the wrong value,
127367         use a different heuristic to find the right one, based on the
127368         extreme values actually observed in practice in tz2003a,
127369         rather than the (overly optimistic) "previous 3 calendar quarters".
127371         (not_equal_tm, print_tm, check_result): Use "const T" rather than
127372         "T const" to accommodate glibc style.
127373         (check_result): Use less-confusing report format.  "long" -> "long int.
127374         (main): Likewise.
127375         Don't loop if the iteration overflows time_t.
127376         Allow a negative step in the iteration.
127378 2003-07-06  Karl Berry  <karl@gnu.org>
127380         * config/depcomp: update from automake.
127381         * config/config.sub: update from prep.
127383 2003-07-03  Karl Berry  <karl@gnu.org>
127385         * config/config.guess: update from prep.
127387 2003-07-01  Paul Eggert  <eggert@twinsun.com>
127389         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
127390         xreadlink.c now includes it unconditionally.
127392 2003-07-01  Paul Eggert  <eggert@twinsun.com>
127394         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
127395         having it depend on HAVE_SYS_TYPES_H.
127397 2003-07-01  Bruno Haible  <bruno@clisp.org>
127399         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
127400         <sys/types.h> should be sufficient.
127401         Reported by Paul Eggert.
127403 2003-06-26  Karl Berry  <karl@gnu.org>
127405         * config/depcomp: update from automake.
127407 2003-06-26  Bruno Haible  <bruno@clisp.org>
127409         * modules/human: Depend on module stdbool.
127411 2003-06-25  Bruno Haible  <bruno@clisp.org>
127413         * modules/readlink: New file.
127414         * modules/xreadlink: Depend on it.
127415         * MODULES.html.sh (func_all_modules): Add readlink.
127417 2003-06-25  Bruno Haible  <bruno@clisp.org>
127419         * m4/readlink.m4: New file.
127421 2003-06-25  Bruno Haible  <bruno@clisp.org>
127423         * lib/readlink.c: New file.
127425 2003-06-22  Karl Berry  <karl@gnu.org>
127427         * config/srclist.txt: update mkinstalldirs from automake.
127428         * config/mkinstalldirs: update.
127430 2003-06-22  Bruno Haible  <bruno@clisp.org>
127432         Portability to mingw32.
127433         * m4/ssize_t.m4: New file, from GNU gettext.
127434         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
127435         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
127437 2003-06-22  Bruno Haible  <bruno@clisp.org>
127439         * modules/safe-read: Add m4/ssize_t.m4.
127440         * modules/xreadlink: Add m4/ssize_t.m4.
127442 2003-06-20  Bruno Haible  <bruno@clisp.org>
127444         Assume C89, so PARAMS isn't needed.
127445         * lib/unicodeio.h (PARAMS): Remove.
127446         * lib/unicodeio.c: Don't use PARAMS.
127448 2003-06-18  Karl Berry  <karl@gnu.org>
127450         * config/config.{guess,sub}: update from prep.
127452 2003-06-18  Jim Meyering  <jim@meyering.net>
127454         Merge changes from coreutils.
127455         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
127456         Remove explicit declarations of xmalloc and realloc.
127457         Include xalloc.h.
127458         (read_utmp): Remove anachronistic cast of xmalloc.
127460 2003-06-17  Paul Eggert  <eggert@twinsun.com>
127462         Assume C89, so PARAMS isn't needed.
127463         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
127464         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
127465         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
127466         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
127467         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
127468         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
127469         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
127470         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
127471         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
127472         lib/xstrtod.h, lib/xstrtol.h: Likewise.
127473         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
127474         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
127475         no longer needed. Anyway, config.h should always be included before any
127476         other file.
127478 2003-06-11  Simon Josefsson  <jas@extundo.com>
127480         * modules/sysexits: New file.
127481         * MODULES.html.sh (func_all_modules): Add sysexits.
127483 2003-06-11  Simon Josefsson  <jas@extundo.com>
127485         * lib/sysexit_.h: New file.
127487 2003-06-11  Derek Price  <derek@ximbiot.com>
127489         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
127490         necessary.
127492 2003-06-11  Bruno Haible  <bruno@clisp.org>
127494         * m4/sysexits.m4: New file.
127496 2003-06-10  Simon Josefsson  <jas@extundo.com>
127498         * lib/argp.h: New file, from glibc.
127499         * lib/argp-ba.c: New file, from glibc.
127500         * lib/argp-eexst.c: New file, from glibc.
127501         * lib/argp-fmtstream.c: New file, from glibc.
127502         * lib/argp-fmtstream.h: New file, from glibc.
127503         * lib/argp-fs-xinl.c: New file, from glibc.
127504         * lib/argp-help.c: New file, from glibc.
127505         * lib/argp-namefrob.h: New file, from glibc.
127506         * lib/argp-parse.c: New file, from glibc.
127507         * lib/argp-pv.c: New file, from glibc.
127508         * lib/argp-pvh.c: New file, from glibc.
127509         * lib/argp-xinl.c: New file, from glibc.
127511 2003-06-10  Simon Josefsson  <jas@extundo.com>
127513         * modules/strchrnul: New file.
127515 2003-06-10  Simon Josefsson  <jas@extundo.com>
127517         * modules/argp: New file.
127519 2003-06-10  Simon Josefsson  <jas@extundo.com>
127521         * m4/strchrnul.m4: New file.
127523 2003-06-10  Simon Josefsson  <jas@extundo.com>
127525         * lib/strchrnul.h: New file.
127526         * lib/strchrnul.c: New file.
127528 2003-06-10  Bruno Haible  <bruno@clisp.org>
127530         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
127532 2003-06-07  Karl Berry  <karl@gnu.org>
127534         * config/config.{guess,sub}: update from prep.
127536 2003-06-07  Jim Meyering  <jim@meyering.net>
127538         * modules/strtod: Use $(...) notation, not @...@ for
127539         AC_REPLACE'd variables.
127540         * modules/localcharset: Likewise.
127542 2003-06-07  Jim Meyering  <jim@meyering.net>
127544         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
127545         in place of my name in the copyright comment.
127546         Remove definition and uses of __P.
127548         From coreutils.
127549         * lib/stat.c: Don't declare xmalloc explicitly.
127550         Instead, include "xalloc.h".
127551         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
127552         xrealloc, and xcalloc return values.
127553         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
127554         Improve comment.
127555         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
127557 2003-06-07  Bruno Haible  <bruno@clisp.org>
127559         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
127560         avoid AC_CONFIG_LINKS.
127561         * modules/fnmatch (Makefile.am): Use explicit creation rule for
127562         fnmatch.h, to avoid AC_CONFIG_LINKS.
127563         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
127565 2003-06-07  Bruno Haible  <bruno@clisp.org>
127567         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
127568         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
127569         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
127570         directory.
127571         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
127572         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
127573         directory.
127575 2003-06-06  Jim Meyering  <jim@meyering.net>
127577         Merge from coreutils.
127578         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
127579         Consolidate declarations and initializations of *_base* locals.
127581         Merge from coreutils.
127582         This avoids a core dump on systems without GNU putenv,
127583         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
127584         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
127585         (unsetenv): New static function, from GNU libc.
127586         (rpl_putenv): Use it.
127588         * lib/modechange.c: Remove trailing blanks.
127590         Merge from coreutils.
127591         * lib/fsusage.c: Remove declaration of statfs.
127592         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
127594         * lib/posixtm.c: Include <stdbool.h> unconditionally.
127596 2003-06-06  Jim Meyering  <jim@meyering.net>
127598         * lib/stdbool_.h: Renamed from stdbool.h.in.
127600 2003-06-06  Jim Meyering  <jim@meyering.net>
127601             Bruno Haible  <bruno@clisp.org>
127603         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
127604         Adjust Makefile.am snippet not to redirect directly to target.
127605         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
127607 2003-06-05  Paul Eggert  <eggert@twinsun.com>
127609         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
127610         mismatch, look in future quarters as well as past.  This fixes a
127611         bug when processing fall-backwards gaps immediately after a long
127612         period of daylight-saving time.
127614         * lib/mktime.c: Assume freestanding C89 or better.
127615         (HAVE_LIMITS_H): Remove.  Assume it's 1.
127616         (__P): Remove; not used.
127617         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
127618         (mktime, not_equal_tm, print_tm, check_result,
127619         main): Use prototypes.  Use const * where appropriate.
127620         (main): Fix typo in testing code that uncovered by above changes.
127621         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
127623 2003-06-04  Paul Eggert  <eggert@twinsun.com>
127625         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
127626         locale.h, localeconv.  This merges changes from coreutils.
127628         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
127629         It can be removed after the next Autoconf is released.
127630         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
127631         needed.
127633 2003-06-04  Paul Eggert  <eggert@twinsun.com>
127635         * lib/mktime.c: Fix Debian bug 177940
127636         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
127637         (localtime_offset): Now long int, not time_t, because we want it
127638         to be guaranteed to be signed.  All uses changed.
127639         (__mktime_internal): If overflow would occur when adding offset,
127640         don't add it.
127642         Merge 'human' changes from coreutils.  Rewrite to support
127643         locale-specific notations like thousands separators.
127644         * lib/human.c: Simplify authorship notice.
127645         Include human.h immediately after config.h.
127646         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
127647         <limits.h>: Do not include, since human.h does.
127648         (SIZE_MAX, UINTMAX_MAX): New macros.
127649         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
127650         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
127651         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
127652         (power_letter): Renamed from suffixes.
127653         (generate_suffix_backwards): Remove.
127654         (adjust_value): Now takes int style (because of human.h changes)
127655         and long double value (for greater precision on some platforms).
127656         (group_number): New function.
127657         (human_readable): Use it.  Use integer options, not enum.
127658         Put the options before the sizes in the arg list.
127659         Support all the new options.
127660         The old human_readable function has been removed;
127661         use inttostr.h instead.
127662         (human_readable, default_block_size, humblock):
127663         Use uintmax_t, not int, for block sizes.
127664         (human_readable_inexact, block_size_types): Remove.
127665         (block_size_opts): New constant.
127666         (human_options): Renamed from human_block_size, with new signature
127667         that allows block sizes up to UINTMAX_MAX.  All callers changed.
127668         * lib/human.h: Add copyright and authorship notice.
127669         Include <limits.h> and <stdbool.h> unconditionally.
127670         (PARAMS): Remove.  All uses removed.
127671         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
127672         (enum human_inexact_style): Remove tag; now a nameless enum.
127673         (human_floor, human_ceiling, human_round_to_even): Now have
127674         values 2, 0, 1 rather than -1, 1, 0.
127675         (human_group_digits, human_suppress_point_zero, human_autoscale,
127676         human_base_1024, human_SI, human_B): New constants.
127677         (human_readable_inexact, human_block_size): Remove.
127678         (human_readable): Size args are now uintmax_t, not int.
127679         (human_options): New decl.
127681         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
127682         unnecessary now that we assume C89 or better.  This change
127683         imported from coreutils.
127685         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
127686         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
127687         in the 2003-05-30 sync from glibc.
127689         .h files should stand alone, but we shouldn't include <sys/types.h>
127690         if we can get away with just <stddef.h>.
127692         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
127693         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
127694         rather than <sys/types.h>, as we merely need size_t.
127695         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
127696         to get size_t.
127697         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
127698         Include <stdio.h>, to get FILE.
127699         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
127700         memcasecmp.h has included <stddef.h> and all we need is size_t.
127701         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
127702         our interface, instead of including <sys/types.h>
127704 2003-06-04  Paul Eggert  <eggert@twinsun.com>
127706         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
127707         now, as glibc mktime is buggy on non-glibc systems.
127709 2003-06-03  Karl Berry  <karl@gnu.org>
127711         * config/config.sub: update from prep.
127713 2003-06-02  Paul Eggert  <eggert@twinsun.com>
127715         [from coreutils]
127716         Fix some minor time-related bugs with POSIX time arguments.
127717         Some valid time stamps were being rejected (notably -1, and
127718         time stamps before 1900 on 64-bit hosts).  And some invalid
127719         time stamps were being accepted, e.g. September 31.
127721         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
127722         that we can return (time_t) -1 successfully.
127723         * lib/posixtm.c: Likewise.
127724         [HAVE_STDBOOL_H]: Include <stdbool.h>.
127725         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
127726         (t): Remove static var.
127727         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
127728         of static var.  All uses changed.
127729         (year): Do not reject years before 1900; they can occur with
127730         64-bit time_t.
127731         (posix_time_parse): Do not check for out-of-range components;
127732         that is now the caller's responsibility, since our checks were
127733         only approximations.
127734         (posixtime): Use mktime to check for out-of-range components,
127735         since it knows them exactly.
127736         If mktime returns (time_t) -1, check whether an error actually occurred
127737         by invoking localtime on -1.
127738         (main) [TEST_POSIXTIME]: Check for input data errors, and report
127739         posixtime failures better.
127740         Improve the test data (in comments only).
127742 2003-06-02  Karl Berry  <karl@gnu.org>
127744         * config/mkinstalldirs (version): new variable.
127745         (--version): new option.
127746         (usage): improve message.
127748 2003-05-30  Karl Berry  <karl@gnu.org>
127750         * lib/mktime.c: update from libc.
127752 2003-05-30  Bruno Haible  <bruno@clisp.org>
127754         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
127755         * config/config.rpath: Upgrade to gettext-0.12.1.
127757 2003-05-30  Bruno Haible  <bruno@clisp.org>
127759         * m4/gettext.m4: Upgrade to gettext-0.12.1.
127760         * m4/nls.m4: New file, from gettext-0.12.1.
127761         * m4/po.m4: New file, from gettext-0.12.1.
127762         * m4/progtest.m4: Upgrade to gettext-0.12.1.
127764 2003-05-30  Bruno Haible  <bruno@clisp.org>
127766         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
127767         * lib/localcharset.h: Likewise.
127768         * lib/localcharset.c: Likewise.
127770 2003-05-29  Karl Berry  <karl@gnu.org>
127772         * config/config.rpath: update from gettext.
127774 2003-05-28  Paul Eggert  <eggert@twinsun.com>
127776         Assume the headers required for C89 freestanding compilers.
127777         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
127778         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
127779         * m4/human.m4 (gl_HUMAN): Likewise.
127780         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
127781         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
127782         * m4/userspec.m4 (gl_USERSPEC): Likewise.
127783         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
127784         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
127785         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
127787 2003-05-28  Paul Eggert  <eggert@twinsun.com>
127789         Assume the headers required for C89 freestanding compilers.
127790         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
127791         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
127792         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
127793         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
127794         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
127795         define, since <limits.h> is guaranteed to do that.
127796         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
127797         * lib/exclude.c: Include <stdbool.h> unconditionally.
127798         * lib/tempname.c: Include <stddef.h> unconditionally.
127799         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
127800         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
127801         <stddef.h> does that.
127802         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
127803         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
127804         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
127805         needed.
127806         * lib/xstrtol.c: Likewise.
127807         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
127808         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
127810         * lib/addext.c (addext): Use assignment rather than cast, to avoid
127811         warnings on some platforms.
127813         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
127814         arbitrarily.
127816 2003-05-26  Jim Meyering  <jim@meyering.net>
127818         Merge in a change from coreutils:
127819         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
127820         that is guaranteed to be `no'.  Use `no_such_member' to indicate
127821         that condition, rather than `-1' which is slightly misleading.
127822         Change the name of the cache variable to have the gl_ prefix.
127823         Prompted by a patch from Richard Dawe for DJGPP.
127825 2003-05-24  Karl Berry  <karl@gnu.org>
127827         * config/config.guess: update from prep.
127829 2003-05-22  Karl Berry  <karl@gnu.org>
127831         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
127833 2003-05-20  Karl Berry  <karl@gnu.org>
127835         * config/config.guess: update from prep.
127837 2003-05-18  Karl Berry  <karl@gnu.org>
127839         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
127840         might actually be set by the user.
127842         * config/depcomp, install-sh, mdate-sh: update from automake.
127844 2003-05-17  Bruno Haible  <bruno@clisp.org>
127846         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
127847         invalid expansion for AC_EGREP_CPP.
127848         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
127849         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
127850         Suggested by Akim Demaille <akim@epita.fr> in
127851         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
127853 2003-05-12  Jim Meyering  <jim@meyering.net>
127855         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
127856         the space-padded-by-default conversion specifiers, %e, %k, %l.
127858 2003-05-12  Bruno Haible  <bruno@clisp.org>
127860         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
127861         the string is longer than 4 KB.
127863 2003-05-11  Karl Berry  <karl@gnu.org>
127865         * config/config.{guess,sub}: update from prep.
127867 2003-05-09  Bruno Haible  <bruno@clisp.org>
127869         * modules/error: Add m4/strerror_r.m4 to file list.
127871 2003-05-03  Bruno Haible  <bruno@clisp.org>
127873         Upgrade to Unicode-4.0.
127874         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
127875         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
127876         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
127877         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
127878         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
127879         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
127880         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
127881         Change width of U+E0100..U+E01EF from 1 to 0.
127883 2003-04-25  Jim Meyering  <jim@meyering.net>
127885         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
127886         of type size_t, not int.
127888 2003-04-25  Bruno Haible  <bruno@clisp.org>
127890         * lib/copy-file.c: Include <stddef.h>, for size_t.
127892 2003-04-21  Paul Eggert  <eggert@twinsun.com>
127894         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
127895         code which expansion is under static control.  Patch imported from
127896         Akim Demaille's patch to Bison; see
127897         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
127899 2003-04-14  Bruno Haible  <bruno@clisp.org>
127901         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
127903 2003-04-11  Jim Meyering  <jim@meyering.net>
127905         Merge changes from Coreutils.
127907         2003-03-22  Jim Meyering  <jim@meyering.net>
127909         * lib/strftime.c (widen): Cast alloca return value to proper type.
127911         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
127913         From GNU libc.
127914         * lib/strftime.c (my_strftime): Handle very large width
127915         specifications for numeric values correctly.  Improve checks for
127916         overflow.
127918         2003-01-19  Jim Meyering  <jim@meyering.net>
127920         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
127921         definitions.
127922         (nl_get_alt_digit) [! defined my_strftime]: Define.
127923         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
127924         _nl_get_alt_digit and _nl_get_walt_digit.
127926         * lib/strftime.c (my_strftime): Merge in locale-related changes from
127927         libc. These changes have no effect outside of _LIBC.
127929 2003-04-10  Bruno Haible  <bruno@clisp.org>
127931         * modules/findprog: New file.
127932         * MODULES.html.sh (func_all_modules): Add it.
127934 2003-04-10  Bruno Haible  <bruno@clisp.org>
127936         * m4/findprog.m4: New file.
127937         * m4/eaccess.m4: New file.
127939 2003-04-10  Bruno Haible  <bruno@clisp.org>
127941         * lib/findprog.h: New file, from GNU gettext.
127942         * lib/findprog.c: New file, from GNU gettext.
127944 2003-04-05  Jim Meyering  <jim@meyering.net>
127946         Merge changes from Coreutils.
127948         * lib/exclude.h (PARAMS): Remove definition and uses.
127949         * lib/exclude.c: Remove uses of `PARAMS'.
127951         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
127952         Add test-cases for DOS filenames. Declare program_name.
127953         (main): Set up program_name.  Patch by Rich Dawe.
127955         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
127956         error from mntctl.
127957         Use mntctl's return value to drive the entry-processing loop, since
127958         we can't rely on the value of the vmt_length member in the last
127959         entry.  On some systems doing so could result in exhausting
127960         virtual memory.  Based in part on a patch from Mike Jetzer.
127962 2003-04-04  Bruno Haible  <bruno@clisp.org>
127964         * modules/linebreak: New file.
127965         * MODULES.html.sh (func_all_modules): Add it.
127967 2003-04-04  Bruno Haible  <bruno@clisp.org>
127969         * m4/linebreak.m4: New file.
127971 2003-04-04  Bruno Haible  <bruno@clisp.org>
127973         * lib/linebreak.h: New file, from GNU gettext.
127974         * lib/linebreak.c: New file, from GNU gettext with slight
127975         modifications.
127976         * lib/lbrkprop.h: New file, from GNU gettext.
127978 2003-04-03  Bruno Haible  <bruno@clisp.org>
127980         * modules/utf8-ucs4: New file.
127981         * modules/utf16-ucs4: New file.
127982         * modules/ucs4-utf8: New file.
127983         * modules/ucs4-utf16: New file.
127984         * MODULES.html.sh (func_all_modules): Add them.
127986 2003-04-03  Bruno Haible  <bruno@clisp.org>
127988         * m4/utf-ucs4.m4: New file.
127989         * m4/ucs4-utf.m4: New file.
127991 2003-04-03  Bruno Haible  <bruno@clisp.org>
127993         * lib/utf8-ucs4.h: New file, from GNU gettext.
127994         * lib/utf16-ucs4.h: New file, from GNU gettext.
127995         * lib/ucs4-utf8.h: New file, from GNU gettext.
127996         * lib/ucs4-utf16.h: New file, from GNU gettext.
127998 2003-04-02  Bruno Haible  <bruno@clisp.org>
128000         * modules/binary-io: New file.
128001         * MODULES.html.sh (func_all_modules): Add it.
128003 2003-04-02  Bruno Haible  <bruno@clisp.org>
128005         * lib/binary-io.h: New file, from GNU gettext.
128007 2003-04-01  Bruno Haible  <bruno@clisp.org>
128009         * modules/pathname: New file.
128010         * MODULES.html.sh (func_all_modules): Add it.
128012 2003-04-01  Bruno Haible  <bruno@clisp.org>
128014         * lib/pathname.h: New file, from GNU gettext.
128015         * lib/concatpath.c: New file, from GNU gettext.
128017 2003-03-30  Bruno Haible  <bruno@clisp.org>
128019         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
128021 2003-03-30  Bruno Haible  <bruno@clisp.org>
128023         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
128024         function chown() doesn't exist.
128026 2003-03-28  Bruno Haible  <bruno@clisp.org>
128028         * modules/copy-file: New file.
128029         * MODULES.html.sh (func_all_modules): Add it.
128031 2003-03-28  Bruno Haible  <bruno@clisp.org>
128033         * m4/copy-file.m4: New file.
128035 2003-03-28  Bruno Haible  <bruno@clisp.org>
128037         * lib/copy-file.h: New file, from GNU gettext.
128038         * lib/copy-file.c: New file, from GNU gettext.
128040 2003-03-18  Jim Meyering  <jim@meyering.net>
128042         * lib/quote.c (quote_n): Fix typo in comment.
128044 2003-03-18  Bruno Haible  <bruno@clisp.org>
128046         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
128047         checking.
128048         * m4/onceonly_2_57.m4: Likewise.
128050 2003-03-17  Bruno Haible  <bruno@clisp.org>
128052         * m4/onceonly.m4: Require autoconf 2.54 or newer.
128053         (m4_quote): Remove macro.
128054         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
128056 2003-03-14  Jim Meyering  <jim@meyering.net>
128058         Merge changes from Coreutils.
128059         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
128060         to be const, in order to avoid warnings.
128061         (obstack_room): Likewise.
128062         (obstack_empty_p): Likewise.
128064 2003-03-14  Bruno Haible  <bruno@clisp.org>
128066         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
128067         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
128069 2003-03-13  Paul Eggert  <eggert@twinsun.com>
128071         Merge changes from Bison.
128072         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
128073         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
128074         when compiling Bison 1.875's `bitset bset = obstack_alloc
128075         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
128076         * lib/hash.c: Include <stdbool.h> unconditionally.
128078 2003-03-13  Paul Eggert  <eggert@twinsun.com>
128080         * m4/onceonly.m4 (m4_quote): New macro.
128081         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
128082         Quote AC_FOREACH variable-expansions properly.
128084 2003-03-13  Paul Eggert  <eggert@twinsun.com>
128086         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
128088 2003-03-09  Paul Eggert  <eggert@twinsun.com>
128090         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
128091         Reported by Bruce Becker; see:
128092         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
128094 2003-03-03  Paul Eggert  <eggert@twinsun.com>
128095             Bruno Haible  <bruno@clisp.org>
128097         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
128098         Reported by John Hughes, see
128099         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
128101 2003-02-20  Bruno Haible  <bruno@clisp.org>
128103         * MODULES.html.sh (func_all_modules): Add poll.
128105 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
128107         * modules/poll: New file.
128109 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
128111         * lib/poll_.h: New file.
128112         * lib/poll.c: New file.
128114 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
128116         * m4/poll.m4: New file.
128118 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
128120         * modules/mathl: New file.
128122 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
128124         * lib/mathl.h: New file.
128125         * lib/acosl.c: New file.
128126         * lib/asinl.c: New file.
128127         * lib/atanl.c: New file.
128128         * lib/ceill.c: New file.
128129         * lib/cosl.c: New file.
128130         * lib/expl.c: New file.
128131         * lib/floorl.c: New file.
128132         * lib/frexpl.c: New file.
128133         * lib/ldexpl.c: New file.
128134         * lib/logl.c: New file.
128135         * lib/sincosl.c: New file.
128136         * lib/sinl.c: New file.
128137         * lib/sqrtl.c: New file.
128138         * lib/tanl.c: New file.
128139         * lib/trigl.c: New file.
128140         * lib/trigl.h: New file.
128142 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
128144         * m4/mathl.m4: New file.
128146 2003-02-18  Bruno Haible  <bruno@clisp.org>
128148         * MODULES.html.sh (func_all_modules): Add mathl.
128150 2003-02-17  Bruno Haible  <bruno@clisp.org>
128152         * modules/mkdtemp: New module.
128153         * MODULES.html.sh (func_all_modules): Add it.
128155 2003-02-17  Bruno Haible  <bruno@clisp.org>
128157         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
128159 2003-02-17  Bruno Haible  <bruno@clisp.org>
128161         * lib/mkdtemp.h: New file, from GNU gettext.
128162         * lib/mkdtemp.c: New file, from GNU gettext.
128164 2003-02-02  Jim Meyering  <jim@meyering.net>
128166         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
128167         e.g. glibc-2.2.93.
128169 2003-01-31  Bruno Haible  <bruno@clisp.org>
128171         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
128172         'rpl_rename'.
128173         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
128174         'rpl_strnlen'.
128175         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
128176         'rpl_strtod'.
128177         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
128178         'rpl_utime'.
128180 2003-01-31  Bruno Haible  <bruno@clisp.org>
128182         * lib/rename.c: #undef rename before defining rpl_rename.
128183         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
128185 2003-01-30  Bruno Haible  <bruno@clisp.org>
128187         * modules/vasnprintf, modules/vasprintf: New modules.
128188         * MODULES.html.sh (func_all_modules): Add them.
128190 2003-01-30  Bruno Haible  <bruno@clisp.org>
128192         * m4/signed.m4: New file, from GNU gettext.
128193         * m4/longdouble.m4: New file, from GNU gettext.
128194         * m4/wchar_t.m4: New file, from GNU gettext.
128195         * m4/wint_t.m4: New file, from GNU gettext.
128196         * m4/vasnprintf.m4: New file.
128197         * m4/vasprintf.m4: New file.
128199 2003-01-30  Bruno Haible  <bruno@clisp.org>
128201         * lib/printf-args.h: New file, from GNU gettext.
128202         * lib/printf-args.c: New file, from GNU gettext.
128203         * lib/printf-parse.h: New file, from GNU gettext.
128204         * lib/printf-parse.c: New file, from GNU gettext.
128205         * lib/vasnprintf.h: New file, from GNU gettext.
128206         * lib/vasnprintf.c: New file, from GNU gettext.
128207         * lib/asnprintf.c: New file, from GNU gettext.
128208         * lib/vasprintf.h: New file, from GNU gettext with modifications.
128209         * lib/vasprintf.c: New file, from GNU gettext.
128210         * lib/asprintf.c: New file, from GNU gettext.
128212 2003-01-29  Bruno Haible  <bruno@clisp.org>
128214         * modules/stpncpy: New module.
128215         * MODULES.html.sh (func_all_modules): Add it.
128217 2003-01-29  Bruno Haible  <bruno@clisp.org>
128219         * m4/stpncpy.m4: New file.
128221 2003-01-29  Bruno Haible  <bruno@clisp.org>
128223         * lib/stpncpy.h: New file, from GNU gettext with modifications.
128224         * lib/stpncpy.c: New file, from GNU gettext with modifications.
128226 2003-01-28  Bruno Haible  <bruno@clisp.org>
128228         * modules/c-ctype: New module.
128229         * MODULES.html.sh (func_all_modules): Add it.
128231 2003-01-28  Bruno Haible  <bruno@clisp.org>
128233         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
128234         Paul Eggert.
128235         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
128236         Paul Eggert.
128238 2003-01-27  Bruno Haible  <bruno@clisp.org>
128240         * modules/xsetenv: New module.
128241         * MODULES.html.sh (func_all_modules): Add it.
128243 2003-01-27  Bruno Haible  <bruno@clisp.org>
128245         * lib/xsetenv.h: New file, from GNU gettext.
128246         * lib/xsetenv.c: New file, from GNU gettext.
128248 2003-01-23  Jim Meyering  <jim@meyering.net>
128250         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
128251         from working on systems without dirfd (at least Irix and OSF1/Tru64).
128253 2003-01-23  Bruno Haible  <bruno@clisp.org>
128255         * modules/minmax: New module.
128256         * MODULES.html.sh (func_all_modules): Add it.
128258 2003-01-23  Bruno Haible  <bruno@clisp.org>
128260         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
128261         Eggert.
128263 2003-01-22  Bruno Haible  <bruno@clisp.org>
128265         * modules/exit: New module.
128266         * MODULES.html.sh (func_all_modules): Add it.
128268 2003-01-22  Bruno Haible  <bruno@clisp.org>
128270         * lib/exit.h: New file, from GNU gettext.
128272 2003-01-19  Bruno Haible  <bruno@clisp.org>
128274         * gnulib-tool: Recognize option --extract-maintainer.
128275         (func_get_maintainer): New function.
128276         * modules/*: Add Maintainer entry.
128278 2003-01-16  Jim Meyering  <jim@meyering.net>
128280         * m4/regex.m4: The `regex' struct is both input and output.
128281         Initialize it before each use.  Patch by Tim Waugh.
128283 2003-01-16  Bruno Haible  <bruno@clisp.org>
128285         * MODULES.html.sh: Add a table of contents. Add the module name as
128286         leftmost column. Add hyperlinks.
128288 2003-01-15  Bruno Haible  <bruno@clisp.org>
128290         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
128292 2003-01-15  Bruno Haible  <bruno@clisp.org>
128294         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
128295         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
128296         suffix.
128298 2003-01-15  Bruno Haible  <bruno@clisp.org>
128300         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
128302 2003-01-15  Bruno Haible  <bruno@clisp.org>
128304         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
128305         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
128307 2003-01-14  Jim Meyering  <jim@meyering.net>
128309         * lib/same.c (same_name): Tweak a comment.
128311 2003-01-14  Bruno Haible  <bruno@clisp.org>
128313         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
128314         when a string comparison is sufficient.
128316 2003-01-14  Bruno Haible  <bruno@clisp.org>
128318         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
128319         'unsigned int'.
128321 2003-01-14  Bruno Haible  <bruno@clisp.org>
128323         * lib/hash-pjw.c: Add comment about low quality of this function.
128325 2003-01-13  Bruno Haible  <bruno@clisp.org>
128327         * modules/stpcpy: Distribute lib/stpcpy.h.
128328         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
128330 2003-01-13  Bruno Haible  <bruno@clisp.org>
128332         * modules/*: Add a description.
128333         * modules/strpbrk: Fix Makefile.am snippet.
128334         * modules/strtoimax: Fix dependencies.
128335         * modules/strtoumax: Likewise.
128337 2003-01-13  Bruno Haible  <bruno@clisp.org>
128339         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
128340         * modules/alloca (Makefile.am): All object files depend on alloca.h.
128341         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
128343 2003-01-13  Bruno Haible  <bruno@clisp.org>
128345         * gnulib-tool (func_create_testdir): Store config/* files in the main
128346         directory.
128347         * config.rpath: Move to ...
128348         * config/config.rpath: ... here.
128349         * modules/gettext: Contains config/config.rpath, not config.rpath.
128350         * modules/iconv: Likewise.
128352 2003-01-12  Paul Eggert  <eggert@twinsun.com>
128354         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
128355         to avoid collisions with libcurses and libreadline.
128357         * m4/getstr.m4: Remove.
128358         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
128360 2003-01-12  Paul Eggert  <eggert@twinsun.com>
128362         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
128363         to avoid collisions with libcurses and libreadline.
128365         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
128366         * lib/getstr.h, getstr.c: Remove.
128367         * lib/getline.c: Include "getline.h", to check interface.
128368         Move body of old getstr.c here: this defines MIN_CHUNK and
128369         declares getdelim2, which is renamed from getstr.
128370         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
128372         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
128373         All uses changed.
128374         * lib/linebuffer.h: Likewise.
128375         (readline): Remove backward-compatibility macro.
128377 2003-01-12  Paul Eggert  <eggert@twinsun.com>
128379         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
128380         to avoid collisions with libcurses and libreadline.
128381         * getstr: Remove.
128382         * MODULES.html.sh: Remove getstr.
128383         * modules/getline: Depend on unlocked-io, not getstr.
128385 2003-01-12  Jim Meyering  <jim@meyering.net>
128387         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
128389 2003-01-10  Bruno Haible  <bruno@clisp.org>
128391         * modules/alloca: Change Makefile.am requirements. Simplify Include
128392         requirements. Add lib/alloca_.h to file list.
128394 2003-01-10  Bruno Haible  <bruno@clisp.org>
128396         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
128398 2003-01-10  Bruno Haible  <bruno@clisp.org>
128400         * lib/alloca_.h: New file.
128401         * lib/getdate.y: Unconditionally include alloca.h.
128402         * lib/makepath.c: Likewise.
128403         * lib/setenv.c: Likewise.
128404         * lib/userspec.c: Likewise.
128406 2003-01-09  Karl Berry  <karl@gnu.org>
128408         * MODULES.html.sh: include `dirname $0` in PATH, to find
128409         gnulib-tool.
128411 2003-01-09  Bruno Haible  <bruno@clisp.org>
128413         * modules/stdbool: Change configure.ac, Makefile.am requirements.
128414         Simplify Include requirements. Add lib/stdbool.h.in to file list.
128416 2003-01-09  Bruno Haible  <bruno@clisp.org>
128418         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
128420 2003-01-09  Bruno Haible  <bruno@clisp.org>
128422         * lib/stdbool.h.in: New file.
128424 2003-01-09  Bruno Haible  <bruno@clisp.org>
128426         * gnulib-tool (func_all_modules): Ignore files ending in ~.
128427         * MODULES.html.sh: Likewise.
128429 2003-01-08  Jim Meyering  <jim@meyering.net>
128431         * lib/full-write.c: Undefine and define-away `const' after inclusion
128432         of errno.h, not before.  Suggestion from Bruno Haible.
128434 2003-01-08  Bruno Haible  <bruno@clisp.org>
128436         * modules/full-read: Depend on full-write.
128438 2003-01-08  Bruno Haible  <bruno@clisp.org>
128440         * lib/safe-read.c: Include specification header first, to ensure its
128441         selfcontainedness.
128442         * lib/full-write.c: Likewise.
128444 2003-01-07  Jim Meyering  <jim@meyering.net>
128446         * lib/full-write.c: Rework so that it may serve to define full_read,
128447         too.
128448         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
128450 2003-01-07  Bruno Haible  <bruno@clisp.org>
128452         * lib/strtoimax.c: Include <stdint.h> as an alternative to
128453         <inttypes.h>.
128454         * lib/xstrtol.h: Likewise.
128455         * lib/xstrtoimax.c: Likewise.
128456         * lib/xstrtoumax.c: Likewise.
128457         * lib/human.h: Likewise.
128459         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
128460         on systems that have <inttypes.h> but not <stdint.h>.
128462 2003-01-07  Bruno Haible  <bruno@clisp.org>
128464         * MODULES.html.sh: Add copyright notice.
128465         (missed_files): Omit CVS directory entries.
128466         (func_module): Make it work with sed-3.02.
128467         * MODULES.txt: Remove file.
128469 2003-01-06  Jim Meyering  <jim@meyering.net>
128471         * lib/version-etc.c: Update year in translatable copyright string.
128473 2003-01-03  Karl Berry  <karl@gnu.org>
128475         * config/config.{guess,sub}: update from prep.
128477 2003-01-02  Karl Berry  <karl@gnu.org>
128479         * doc/COPYING.DOC: belatedly updated to 1.2.
128481 2003-01-01  Karl Berry  <karl@gnu.org>
128483         * gnulib-tool (func_verify_module): report module name $module in
128484         error message, not $1.
128485         * gnulib-tool (create-testdir): don't complain if destdir couldn't
128486         be created, only if it doesn't exist.
128487         * gnulib-tool (last_checkin_date): don't expand the $Date here.
128489 2002-12-31  Paul Eggert  <eggert@twinsun.com>
128491         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
128493 2002-12-31  Paul Eggert  <eggert@twinsun.com>
128495         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
128496         memcmp if strcoll doesn't work.
128498 2002-12-31  Bruno Haible  <bruno@clisp.org>
128500         * lib/utime.c (utime_null): No need to call ftruncate if the file was
128501         nonempty.
128503 2002-12-31  Bruno Haible  <bruno@clisp.org>
128505         * lib/memcoll.c (STRCOLL): New macro.
128506         (memcoll): Use it.
128508 2002-12-31  Bruno Haible  <bruno@clisp.org>
128510         * lib/localcharset.h: New file.
128511         * lib/localcharset.c: Include it.
128512         * lib/unicodeio.c: Likewise.
128514 2002-12-31  Bruno Haible  <bruno@clisp.org>
128516         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
128517         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
128519 2002-12-31  Bruno Haible  <bruno@clisp.org>
128521         * lib/getline.h: Include <stddef.h>, for size_t.
128523         * lib/unicodeio.h: Include <stddef.h>, for size_t.
128524         * lib/unicodeio.c: Don't include <stddef.h>.
128526 2002-12-31  Bruno Haible  <bruno@clisp.org>
128528         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
128529         HAVE_TM_ZONE.
128531 2002-12-24  Karl Berry  <karl@gnu.org>
128533         * config/config.guess: update from prep.
128535 2002-12-24  Bruno Haible  <bruno@clisp.org>
128537         General infrasructure.
128538         * m4/README: Rewritten.
128539         * m4/onceonly.m4: New file.
128540         * m4/onceonly_2_57.m4: New file.
128542         Module atexit.
128543         * m4/atexit.m4: New file.
128545         Module strtod.
128546         * m4/strtod.m4: New file.
128548         Module strtol.
128549         * m4/strtol.m4: New file.
128551         Module strtoul.
128552         * m4/strtoul.m4: New file.
128554         Module memchr.
128555         * m4/memchr.m4: New file.
128557         Module memcmp.
128558         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
128559         (jm_FUNC_MEMCMP): Invoke it.
128561         Module memcpy.
128562         * m4/memcpy.m4: New file.
128564         Module memmove.
128565         * m4/memmove.m4: New file.
128567         Module memset.
128568         * m4/memset.m4: New file.
128570         Module strcspn.
128571         * m4/strcspn.m4: New file.
128573         Module strpbrk.
128574         * m4/strpbrk.m4: New file.
128576         Module strstr.
128577         * m4/strstr.m4: New file.
128579         Module strerror.
128580         * m4/strerror.m4: New file.
128582         Module mktime.
128583         * m4/mktime.m4: Renamed from jm-mktime.m4.
128584         (gl_PREREQ_MKTIME): New macro.
128585         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
128587         Module malloc.
128588         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
128589         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
128590         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
128592         Module realloc.
128593         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
128594         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
128595         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
128597         Module strftime.
128598         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
128599         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
128600         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
128601         gl_TM_GMTOFF.
128602         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
128604         Module xalloc.
128605         * m4/xalloc.m4: New file.
128607         Module alloca.
128608         * m4/alloca.m4: New file.
128610         Module putenv.
128611         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
128612         (jm_FUNC_PUTENV): Invoke it.
128614         Module setenv.
128615         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
128616         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
128617         when invoked twice.
128618         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
128619         gt_FUNC_SETENV.
128621         Module memrchr.
128622         * m4/memrchr.m4: New file.
128624         Module stpcpy.
128625         * m4/stpcpy.m4: New file.
128627         Module strcase.
128628         * m4/strcase.m4: New file.
128630         Module strdup.
128631         * m4/strdup.m4: New file.
128633         Module strnlen.
128634         * m4/strnlen.m4: New file.
128636         Module strndup.
128637         * m4/strndup.m4: New file.
128639         Module xstrtod.
128640         * m4/xstrtod.m4: New file.
128642         Module xstrtol.
128643         * m4/xstrtol.m4: New file.
128645         Module getdate.
128646         * m4/getdate.m4: New file.
128648         Module unlocked-io.
128649         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
128650         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
128651         * m4/jm-glibc-io.m4n: Remove file.
128653         Module long-options.
128654         * m4/long-options.m4: New file.
128656         Module md5.
128657         * m4/md5.m4: New file.
128659         Module sha.
128660         * m4/sha.m4: New file.
128662         Module getstr.
128663         * m4/getstr.m4: New file.
128665         Module getline.
128666         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
128667         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
128668         <sys/types.h>, for size_t. Use the function name gnu_getline, not
128669         simply getline. Infoke gl_PREREQ_GETLINE.
128671         Module obstack.
128672         * m4/obstack.m4: New file.
128674         Module hash.
128675         * m4/hash.m4: New file.
128677         Module readtokens.
128678         * m4/readtokens.m4: New file.
128680         Module strverscmp.
128681         * m4/strverscmp.m4: New file.
128683         Module stdbool.
128684         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
128685         OSF/1.
128687         Module strtoll.
128688         * m4/strtoll.m4: New file.
128690         Module strtoull.
128691         * m4/strtoull.m4: New file.
128693         Module strtoimax.
128694         * m4/strtoimax.m4: New file.
128696         Module strtoumax.
128697         * m4/strtoumax.m4: New file.
128699         Module xstrtoimax.
128700         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
128701         jm_AC_PREREQ_XSTRTOIMAX.
128702         Moved the strtol prerequisites to strtol.m4.
128703         Moved the strtoll prerequisites to strtoll.m4.
128704         Moved the strtoimax prerequisites to strtoimax.m4.
128706         Module xstrtoumax.
128707         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
128708         jm_AC_PREREQ_XSTRTOUMAX.
128709         Moved the strtoul prerequisites to strtoul.m4.
128710         Moved the strtoull prerequisites to strtoull.m4.
128711         Moved the strtoumax prerequisites to strtoumax.m4.
128713         Module chown.
128714         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
128715         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
128717         Module dup2.
128718         * m4/dup2.m4: New file.
128720         Module ftruncate.
128721         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
128722         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
128724         Module getgroups.
128725         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
128726         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
128728         Module gettimeofday.
128729         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
128730         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
128731         gl_PREREQ_GETTIMEOFDAY.
128733         Module mkdir.
128734         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
128735         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
128737         Module mkstemp.
128738         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
128739         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
128740         jm_AC_TYPE_UINTMAX_T.
128741         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
128743         Module stat.
128744         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
128745         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
128747         Module lstat.
128748         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
128749         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
128751         Module timespec.
128752         * m4/timespec.m4 (gl_TIMESPEC): New macro.
128753         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
128754         * m4/st_mtim.m4: Indentation.
128756         Module nanosleep.
128757         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
128758         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
128759         gl_PREREQ_NANOSLEEP.
128761         Module regex.
128762         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
128763         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
128764         (gl_REGEX): New macro.
128766         Module rename.
128767         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
128768         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
128770         Module rmdir.
128771         * m4/rmdir.m4: New file.
128773         Module utime.
128774         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
128775         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
128776         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
128778         Module dirname.
128779         * m4/dirname.m4: New file.
128781         Module getopt.
128782         * m4/getopt.m4: New file.
128784         Module unistd-safer.
128785         * m4/unistd-safer.m4: New file.
128787         Module fnmatch.
128788         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
128789         declaration.
128790         (gl_PREREQ_FNMATCH_EXTRA): New macro.
128791         (gl_FUNC_FNMATCH_POSIX): New macro.
128792         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
128793         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
128794         simply fnmatch.
128796         Module exclude.
128797         * m4/exclude.m4: New file.
128799         Module human.
128800         * m4/human.m4: New file.
128802         Module acl.
128803         * m4/acl.m4: Nop.
128805         Module backupfile.
128806         * m4/backupfile.m4: New file.
128807         * m4/d-ino.m4: Indentation.
128809         Module fsusage.
128810         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
128811         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
128812         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
128814         Module dirfd.
128815         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
128816         requirements.
128818         Module euidaccess.
128819         * m4/euidaccess.m4: New file.
128821         Module file-type.
128822         * m4/file-type.m4: New file.
128824         Module fileblocks.
128825         * m4/fileblocks.m4: New file.
128827         Module filemode.
128828         * m4/filemode.m4: New file.
128830         Module isdir.
128831         * m4/isdir.m4: New file.
128833         Module lchown.
128834         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
128835         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
128837         Module makepath.
128838         * m4/makepath.m4: New file.
128840         Module modechange.
128841         * m4/modechange.m4: New file.
128843         Module mountlist.
128844         * m4/mountlist.m4: New file.
128845         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
128846         Indentation.
128848         Module path-concat.
128849         * m4/path-concat.m4: New file.
128851         Module pathmax.
128852         * m4/pathmax.m4: New file.
128854         Module same.
128855         * m4/same.m4: New file.
128857         Module save-cwd.
128858         * m4/save-cwd.m4: New file.
128860         Module savedir.
128861         * m4/savedir.m4: New file.
128863         Module xgetcwd.
128864         * m4/xgetcwd.m4: New file.
128865         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
128867         Module xreadlink.
128868         * m4/xreadlink.m4: New file.
128870         Module safe-read.
128871         * m4/safe-read.m4: New file.
128873         Module safe-write.
128874         * m4/safe-write.m4: New file.
128876         Module closeout.
128877         * m4/closeout.m4: New file.
128879         Module stdio-safer.
128880         * m4/stdio-safer.m4: New file.
128882         Module getpass.
128883         * m4/getpass.m4: New file.
128885         Module getugroups.
128886         * m4/getugroups.m4: New file.
128888         Module group-member.
128889         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
128890         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
128892         Module idcache.
128893         * m4/idcache.m4: New file.
128895         Module userspec.
128896         * m4/userspec.m4: New file.
128898         Module gettime.
128899         * m4/clock_time.m4: New file.
128900         * m4/gettime.m4: New file.
128902         Module settime.
128903         * m4/settime.m4: New file.
128905         Module posixtm.
128906         * m4/posixtm.m4: New file.
128908         Module gethostname.
128909         * m4/gethostname.m4: New file.
128911         Module canon-host.
128912         * m4/canon-host.m4: New file.
128914         Module gettext.
128915         * m4/codeset.m4: New file, from gettext-0.11.5.
128916         * m4/gettext.m4: New file, from gettext-0.11.5.
128917         * m4/glibc21.m4: New file, from gettext-0.11.5.
128918         * m4/iconv.m4: New file, from gettext-0.11.5.
128919         * m4/intdiv0.m4: New file, from gettext-0.11.5.
128920         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
128921         * m4/inttypes.m4: New file, from gettext-0.11.5.
128922         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
128923         * m4/isc-posix.m4: New file, from gettext-0.11.5.
128924         * m4/lcmessage.m4: New file, from gettext-0.11.5.
128925         * m4/lib-ld.m4: New file, from gettext-0.11.5.
128926         * m4/lib-link.m4: New file, from gettext-0.11.5.
128927         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
128928         * m4/progtest.m4: New file, from gettext-0.11.5.
128929         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
128930         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
128931         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
128933         Module localcharset.
128934         * m4/localcharset.m4: New file.
128936         Module hard-locale.
128937         * m4/hard-locale.m4: New file.
128939         Module mbswidth.
128940         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
128941         onceonly macros.
128942         * m4/mbrtowc.m4: Add comment.
128944         Module memcasecmp.
128945         * m4/memcasecmp.m4: New file.
128947         Module memcoll.
128948         * m4/memcoll.m4: New file.
128950         Module unicodeio.
128951         * m4/unicodeio.m4: New file.
128953         Module rpmatch.
128954         * m4/rpmatch.m4: New file.
128956         Module yesno.
128957         * m4/yesno.m4: New file.
128959         Module exitfail.
128960         * m4/exitfail.m4: New file.
128962         Module c-stack.
128963         * m4/c-stack.m4 (gl_C_STACK): New macro.
128964         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
128966         Module error.
128967         * m4/error.m4 (gl_ERROR): New macro.
128968         (jm_PREREQ_ERROR): Use onceonly macros.
128970         Module fatal.
128971         * m4/fatal.m4: New file.
128973         Module getloadavg.
128974         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
128975         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
128977         Module getpagesize.
128978         * m4/getpagesize.m4: New file.
128980         Module getusershell.
128981         * m4/getusershell.m4: New file.
128983         Module physmem.
128984         * m4/physmem.m4: New file.
128986         Module posixver.
128987         * m4/posixver.m4: New file.
128989         Module quotearg.
128990         * m4/quotearg.m4: New file.
128992         Module quote.
128993         * m4/quote.m4: New file.
128995         Module readutmp.
128996         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
128998         Module sig2str.
128999         * m4/sig2str.m4: New file.
129001         Other.
129002         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
129003         ulonglong.m4.
129004         * m4/intmax_t.m4: New file.
129005         * m4/d-type.m4: Indentation.
129006         * m4/jm-macros.m4: Update.
129007         * m4/prereq.m4 (jm_PREREQ): Update.
129008         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
129009         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
129010         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
129011         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
129012         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
129013         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
129014         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
129015         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
129016         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
129017         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
129018         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
129019         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
129020         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
129021         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
129022         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
129023         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
129024         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
129025         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
129026         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
129028 2002-12-24  Bruno Haible  <bruno@clisp.org>
129030         * MODULES.txt: Update according to m4/ changes.
129032         Module gettext.
129033         * config.rpath: New file, from gettext-0.11.5.
129035         * modules/*: New module descriptions.
129036         * gnulib-tool: New file.
129037         * MODULES.html.sh: New file.
129039 2002-12-21  Karl Berry  <karl@gnu.org>
129041         * doc/fdl.texi: update to version 1.2.
129043 2002-12-19  Karl Berry  <karl@gnu.org>
129045         * config/config.guess: update from prep.
129047 2002-12-18  Bruno Haible  <bruno@clisp.org>
129049         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
129050         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
129052 2002-12-17  Bruno Haible  <bruno@clisp.org>
129054         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
129055         stdlib.h, string.h.
129057 2002-12-17  Bruno Haible  <bruno@clisp.org>
129059         * lib/canon-host.c (strdup): Remove unused declaration.
129061         * lib/fsusage.c: Include full_read.h.
129062         (get_fs_usage): Use full_read instead of safe_read.
129064         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
129066 2002-12-12  Karl Berry  <karl@gnu.org>
129068         * config/config.guess: update from prep.
129070 2002-12-11  Bruno Haible  <bruno@clisp.org>
129072         * m4/setenv.m4: New file, from gettext-0.11.5.
129074 2002-12-11  Bruno Haible  <bruno@clisp.org>
129076         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
129077         not unsetenv().
129078         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
129079         modifications:
129081         2002-12-11  Bruno Haible  <bruno@clisp.org>
129083                 * setenv.c (alloca): Fall back to malloc.
129084                 (freea): New macro.
129085                 (setenv): Use freea() to free memory allocated with alloca().
129087         2002-11-13  Bruno Haible  <bruno@clisp.org>
129089                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
129090                 function declarations.
129091                 * unsetenv.c (unsetenv): Likewise.
129093         2002-03-04  Bruno Haible  <bruno@clisp.org>
129095                 Portability to AIX 4.3.3.
129096                 * unsetenv.c: New file, extracted from setenv.c.
129097                 * setenv.c: Move the unsetenv() function to unsetenv.c.
129099         2001-12-20  Bruno Haible  <bruno@clisp.org>
129101                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
129102                 use malloc instead. For SunOS 4.
129104         2001-12-11  Bruno Haible  <bruno@clisp.org>
129106                 * setenv.c: Declare alloca.
129107                 (compar_fn_t): New typedef.
129108                 (KNOWN_VALUE, STORE_VALUE): Use it.
129110         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
129111         setenv.h.
129113 2002-12-10  Paul Eggert  <eggert@twinsun.com>
129115         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
129116         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
129117         Choose values that are less likely to collide with system fnmatch
129118         options.
129119         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
129120         defined (e.g., a pure POSIX system).
129121         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
129122         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
129124 2002-12-06  Paul Eggert  <eggert@twinsun.com>
129126         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
129127         a pain in practice to deal with generated m4 files.  This change
129128         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
129130         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
129131         and jm-glibc-io.m4, as they are no longer a special case.
129132         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
129133         kludge and the auto-generation stuff.  Check only whether the
129134         functions are declared, not whether they exist, since older hosts
129135         that don't declare the functions can't use the optimization anyway.
129137 2002-12-06  Jim Meyering  <jim@meyering.net>
129139         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
129141         Merge in changes from libc's misc/error.c, in preparation
129142         for the merge of gnulib's changes back into libc.
129144         * lib/error.c (_): Define only if not already defined.
129145         Move definition to follow all #include directives.
129146         Include unlocked-io.h only if !_LIBC.
129147         [_LIBC]: Include <libio/libioP.h>.
129148         [USE_IN_LIBIO]: Include <libio/iolibio.h>
129149         (fflush): Tweak definition to use INTUSE.
129150         (putc): Define.
129152 2002-12-05  Paul Eggert  <eggert@twinsun.com>
129154         * lib/alloca.c [defined emacs]: Include "lisp.h".
129155         (xalloc_die) [defined emacs]: New macro.
129156         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
129157         [! defined emacs]: Include <xalloc.h>.
129158         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
129159         (pointer): Typedef to POINTER_TYPE *.
129160         (malloc): Remove decl; we now always use xmalloc.
129161         (alloca): Use old-style definition, since Emacs needs this.
129162         Check for arithmetic overflow when computing combined size.
129164 2002-12-04  Paul Eggert  <eggert@twinsun.com>
129166         Do not generate unlocked-io.h automatically, since it's easier to
129167         maintain it by hand.
129169         * lib/unlocked-io.h: New file, from GNU diffutils,
129170         but with proper copyright notice and attribution.
129171         * lib/gen-uio: Remove.
129172         * lib/Makefile.am: Add copyright notice.
129173         (libfetish_a_SOURCES): Add unlocked-io.h.
129174         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
129175         (DISTCLEANFILES, io_functions): Remove macros.
129176         (EXTRA_DIST): Remove gen_uio.
129177         (unlocked-io.h): Remove rule.
129179 2002-12-04  Jim Meyering  <jim@meyering.net>
129181         Reflect the fact that stat.c and lstat.c are no longer generated.
129182         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
129183         (DISTCLEANFILES): Likewise.
129184         (EXTRA_DIST): Likewise.
129185         (all_local): Don't depend on stat.c or lstat.c.
129186         (stat.c, lstat.c): Remove rules.
129187         (EXTRA_DIST): Remove xstat.in.
129189         * lib/xstat.in: Remove file.  Contents moved into stat.c.
129190         * lib/stat.c: New file.  Contents mostly from xstat.in.
129191         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
129192         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
129194         * lib/safe-read.c: Rework so that it may serve to define safe_write,
129195         too.
129196         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
129198 2002-12-03  Jim Meyering  <jim@meyering.net>
129200         * lib/safe-read.c, safe-write.c: Change variable names and comments,
129201         but not semantics, to minimize the differences between these two files.
129202         (safe_read): Change comment to mention SAFE_READ_ERROR.
129204         * lib/safe-read.c (IS_EINTR): Define.
129205         (safe_read): Use IS_EINTR in place of in-function cpp directives.
129207 2002-12-02  Jim Meyering  <jim@meyering.net>
129209         * lib/safe-read.c (EINTR): Define.
129210         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
129211         (INT_MAX): Provide fallback.
129212         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
129214         * lib/safe-read.h (SAFE_READ_ERROR): Define.
129216 2002-12-02  Bruno Haible  <bruno@clisp.org>
129218         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
129219         Define, taken from safe-read.c.
129220         (INT_MAX): Provide fallback.
129221         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
129222         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
129224         * lib/safe-read.c (EINTR): Remove definition.
129225         (safe_read): Don't use EINTR if it is absent.
129227 2002-12-01  Jim Meyering  <jim@meyering.net>
129229         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
129230         zero.
129231         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
129233 2002-11-27  Paul Eggert  <eggert@twinsun.com>
129235         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
129236         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
129237         with `if (! (value < limit)) abort ();', for readability.
129239 2002-11-26  Karl Berry  <karl@gnu.org>
129241         * lib/strdup.c: copy from libc again, with jim's ok.
129242         * lib/.cppi-disable: re-add strdup.c
129244 2002-11-25  Karl Berry  <karl@gnu.org>
129246         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
129247         instead of "strtol.c".
129249 2002-11-25  Karl Berry  <karl@gnu.org>
129251         * config/install-sh: update from automake for variable quoting, $0 in
129252         error msgs, etc.
129254         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
129255         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
129256         entry.
129258 2002-11-25  Jim Meyering  <jim@meyering.net>
129260         * lib/mktime.c: Sync from libc, now that it has the latest fix.
129262 2002-11-24  Karl Berry  <karl@gnu.org>
129264         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
129265         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
129267 2002-11-24  Jim Meyering  <jim@meyering.net>
129269         Update from coreutils:
129271         * lib/mktime.c: Merge in changes from libc.
129273         Avoid a link-time failure on some Linux systems.
129274         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
129275         (otherwise).
129276         (__mon_yday): Declare with the STATIC attribute.
129277         (__mktime_internal): Likewise.
129278         Based on a report from Greg Schafer.
129280 2002-11-23  Jim Meyering  <jim@meyering.net>
129282         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
129283         Use `unsigned', not `int', as type of index.
129285         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
129287         * lib/fsusage.c: Remove unneeded parentheses around operands of
129288         `defined'.
129290 2002-11-22  Paul Eggert  <eggert@twinsun.com>
129292         * lib/quotearg.h: Allow multiple inclusion by surrounding with
129293         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
129294         so that we can be included first.
129295         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
129296         * lib/quotearg.c: Include quotearg.h immediately after config.h.
129297         No need to include stddef.h or sys/types.h any more.
129298         Surround local include files with "", not "<>".
129299         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
129300         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
129301         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
129302         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
129303         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
129304         (ISPRINT): Remove; no longer needed now that we assume C89.
129306         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
129307         Preserve errno.
129309         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
129310         quotearg_char): Use SIZE_MAX rather than
129311         (size_t) -1 when we are talking about "infinity".
129313         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
129315 2002-11-22  Paul Eggert  <eggert@twinsun.com>
129317         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
129318         hint that one should use `if (! x) abort ();' rather than `assert
129319         (x);', and anyway it's one less thing to worry about configuring.
129320         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
129321         hash_rehash, hash_insert): Use abort rather than assert.
129323 2002-11-22  Bruno Haible  <bruno@clisp.org>
129325         * lib/safe-read.h: Assume C89. Add comments.
129326         (safe_read): Change return type to size_t.
129327         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
129328         byte counts > SSIZE_MAX correctly.
129329         * lib/safe-write.h: New file.
129330         * lib/safe-write.c: New file.
129331         * lib/full-read.h: New file.
129332         * lib/full-read.c: New file.
129333         * lib/full-write.h: Assume C89. Add comments.
129334         * lib/full-write.c: Include safe-write.h.
129335         (full_write): Rewritten to use safe_write.
129336         Suggested by Jim Meyering and Paul Eggert.
129338 2002-11-21  Jim Meyering  <jim@meyering.net>
129340         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
129342         Merge in changes from the coreutils.
129344         2002-09-25  Paul Eggert  <eggert@twinsun.com>
129345         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
129346         <stdint.h>.
129347         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
129348         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
129349         int.  Work more efficiently if X is the same width as uintmax_t.
129350         Do not compare X to -1, to avoid bogus compiler warning.
129351         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
129352         Don't assume that f_frsize and f_bsize are the same type.
129354         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
129355         warning on FreeBSD.
129357         * lib/makepath.c (make_path): Restore umask *before* creating the final
129358         component.
129359         (make_path): Minor reformatting.
129361         * lib/xmalloc.c: Adjust to work with new autoconf macros,
129362         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
129363         HAVE_MALLOC/HAVE_REALLOC.
129365         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
129366         dummy ones.  At least on GNU/Linux systems, `auto' means something
129367         else.
129368         From Michael Stone.
129370 2002-11-21  Bruno Haible  <bruno@clisp.org>
129372         Remove case insensitive option matching.
129373         * lib/argmatch.h (argcasematch): Remove declaration.
129374         (ARGCASEMATCH): Remove macro.
129375         (__xargmatch_internal): Remove case_sensitive argument.
129376         (XARGMATCH): Update.
129377         (XARGCASEMATCH): Remove macro.
129378         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
129379         case_sensitive argument.
129380         (argcasematch): Remove function.
129381         (__xargmatch_internal): Remove case_sensitive argument.
129382         (main): Use XARGMATCH instead of XARGCASEMATCH.
129384         * lib/xmalloc.c: Change compile-time error message. Add comment about
129385         required autoconf version.
129387 2002-11-20  Paul Eggert  <eggert@twinsun.com>
129389         Merge argmatch cleanups from Bison.  Assume C89.
129391         * lib/argmatch.c: Include config.h here, not in argmatch.h.
129392         Include stdlib.h, for EXIT_FAILURE.
129393         Always include <string.h>, since we assume C89.
129394         (EXIT_FAILURE): Remove pre-C89 bug workaround.
129395         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
129396         Include <stddef.h> instead, since it's all we need for size_t.
129397         (PARAMS): Remove.  All uses removed.
129398         (ARRAY_CARDINALITY): Do not bother to #undef.
129399         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
129400         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
129401         Remove unnecessary parentheses.
129402         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
129403         Insert necessary parentheses.
129404         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
129405         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
129407 2002-11-19  Bruno Haible  <bruno@clisp.org>
129409         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
129410         * lib/mbswidth.h: Include <stddef.h>, for size_t.
129412         * lib/mbswidth.h (PARAMS): Remove macro.
129413         (mbswidth, mbsnwidth): Use ANSI C function declarations.
129414         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
129416         * lib/gcd.h (PARAMS): Remove macro.
129417         (gcd): Use ANSI C function declarations.
129418         * lib/gcd.c (gcd): Likewise.
129420 2002-11-15  Bruno Haible  <bruno@clisp.org>
129422         * lib/strcspn.c: Include <stddef.h>.
129423         (strcspn): Use ANSI C function declaration. Change return type to
129424         size_t. Use NULL.
129425         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
129426         (strpbrk): Use NULL.
129427         * lib/strpbrk.h (PARAMS): Remove macro.
129428         (strpbrk): Use ANSI C function declaration.
129429         * lib/strstr.c: Don't include <sys/types.h>.
129430         * lib/strstr.h (PARAMS): Remove macro.
129431         (strstr): Use ANSI C function declarations.
129433 2002-11-14  Karl Berry  <karl@gnu.org>
129435         * config/mkinstalldirs: `do' on separate line, instead of
129436         `for var; do'.
129438 2002-11-06  Bruno Haible  <bruno@clisp.org>
129440         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
129441         * lib/gcd.c (gcd): Likewise.
129443 2002-11-05  Bruno Haible  <bruno@clisp.org>
129445         * lib/gcd.h: New file, from gettext-0.11.5.
129446         * lib/gcd.c: New file, from gettext-0.11.5.
129448 2002-11-05  Bruno Haible  <bruno@clisp.org>
129450         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
129451         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
129452         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
129453         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
129455         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
129456         <libintl.h>.
129457         * lib/makepath.c: Include gettext.h instead of <locale.h> and
129458         <libintl.h>.
129460         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
129461         * lib/human.c: Include gettext.h instead of <libintl.h>.
129462         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
129463         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
129464         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
129465         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
129466         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
129467         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
129468         (textdomain): Remove definition.
129469         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
129471         * lib/long-options.c: Remove include of <libintl.h> and definition of
129472         _.
129473         * lib/same.c: Remove include of <libintl.h> and definition of _.
129475 2002-11-04  Owen Taylor  <otaylor@redhat.com>
129477         * lib/config.charset: A few additions for Solaris.
129479 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
129481         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
129482         * lib/localcharset.c (locale_charset): Declare as extern "C".
129484 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
129486         * lib/config.charset: msdos in uk_UA uses CP1125.
129488 2002-11-04  Bruno Haible  <bruno@clisp.org>
129490         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
129491         * lib/strcase.h: New file, from GNU gettext-0.11.5.
129492         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
129493         * lib/strstr.h: New file, from GNU gettext-0.11.5.
129494         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
129496 2002-11-04  Bruno Haible  <bruno@clisp.org>
129498         * lib/localcharset.c (locale_charset): Don't return an empty string.
129500 2002-11-04  Bruno Haible  <bruno@clisp.org>
129502         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
129503         aliases.
129505 2002-11-04  Bruno Haible  <bruno@clisp.org>
129507         * lib/config.charset: Update for newest glibc. Add canonical names
129508         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
129510 2002-11-04  Bruno Haible  <bruno@clisp.org>
129512         * lib/config.charset: Add support for NetBSD.
129514 2002-11-04  Bruno Haible  <bruno@clisp.org>
129516         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
129518 2002-11-01  Bruno Haible  <bruno@clisp.org>
129520         * configure.in: Add AC_CONFIG_AUX_DIR call.
129521         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
129522         test/Makefile.
129523         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
129525 2002-09-28  Karl Berry  <karl@gnu.org>
129527         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
129528         installed automake until the next release, since changes have been
129529         made.
129531 2002-09-25  Karl Berry  <karl@gnu.org>
129533         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
129534         * lib/getopt*: copy from libc/posix.
129535         * lib/gettext.h: copy from gettext.
129536         * lib/.cppi-disable: add strdup.c, gettext.h.
129538 2002-09-25  Karl Berry  <karl@gnu.org>
129540         * config/srclist.txt: enable gettext.h check.
129541         * config/config.{guess,sub}: update from prep.
129542         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
129543                 from automake 1.6.3.
129544         See srclist*.
129546 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
129548         * regex.c (PATFETCH): Remove the translating fetch.
129549         (PATFETCH_RAW): Rename to PATFETCH.
129550         (set_image_of_range): New fun.
129551         (SET_RANGE_TABLE_WORK_AREA): Use it.
129552         (regex_compile): Don't translate the pattern chars so eagerly.
129553         Only do it when inserting an `exactn' bytecode or when handling
129554         a char-range.
129555         (mutually_exclusive_p): Avoid empty statement.
129557 2002-07-06  Jim Meyering  <meyering@lucent.com>
129559         * m4/README: Don't mention Makefile.am.in.
129560         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
129562 2002-07-01  Jim Meyering  <meyering@lucent.com>
129564         * lib/c-stack.c: Include sys/time.h.
129565         From Volker Borchert.
129567 2002-06-26  Paul Eggert  <eggert@twinsun.com>
129569         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
129571 2002-06-26  Paul Eggert  <eggert@twinsun.com>
129573         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
129574         New macro.  Use it uniformly instead of
129575         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
129576         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
129577         reported by Vin Shelton.
129579 2002-06-22  Paul Eggert  <eggert@twinsun.com>
129581         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
129582         Do not assume SA_SIGINFO behavior.
129583         Bug reported by Jim Meyering on NetBSD 1.5.2.
129585 2002-06-22  Jim Meyering  <meyering@lucent.com>
129587         * m4/c-stack.m4: New file, from diffutils-2.8.2.
129588         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
129590         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
129591         now that configure.ac uses AC_GNU_SOURCE.
129592         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
129593         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
129595         Update to latest tools.  Suggestions from Paul Eggert.
129596         * m4/stdbool.m4: New file, from diffutils-2.8.2.
129597         * m4/gnu-source.m4: Update from diffutils-2.8.2.
129598         * m4/fnmatch.m4: Likewise.
129599         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
129600         to AC_HEADER_STDBOOL
129602 2002-06-22  Jim Meyering  <meyering@lucent.com>
129604         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
129605         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
129607 2002-06-22  Jim Meyering  <meyering@lucent.com>
129609         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
129611         * lib/exitfail.c, exitfail.h: Likewise.
129612         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
129614         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
129615         of fnmatch.h.
129616         (EXTRA_DIST): Add fnmatch_loop.c.
129617         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
129619         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
129620         * lib/fnmatch.c: Update from diffutils-2.8.2.
129621         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
129622         * lib/fnmatch.h: Remove file.
129624 2002-06-21  Jim Meyering  <meyering@lucent.com>
129626         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
129627         * m4/mbrtowc.m4: Likewise.
129629         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
129630         * m4/mbswidth.m4: Reflect name change:
129631         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
129632         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
129634         * m4/lib-link.m4: Update from gettext-0.11.2.
129635         * m4/gettext.m4: Likewise.
129637         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
129638         From Alfred M. Szmidt.
129640 2002-06-18  Paul Eggert  <eggert@twinsun.com>
129642         * lib/file-type.h: Report an error if neither S_ISREG nor
129643         S_IFREG is defined, instead of using a test specific to glibc
129644         2.2.  This should be safe, since POSIX requires S_ISREG and
129645         Unix Version 7 had S_IFREG.  We don't need to check for
129646         <sys/types.h> since we don't use any symbols that it defines.
129648 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
129650         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
129651         $@-t, so that each temporary file name is unique and valid in the first
129652         8 characters, for operation under DOS.
129654 2002-06-15  Paul Eggert  <eggert@twinsun.com>
129656         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
129658 2002-06-15  Jim Meyering  <meyering@lucent.com>
129660         Work even with DJGPP 2.03, which lacks support for symlinks.
129661         From Richard Dawe.
129662         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
129663         is defined.
129664         * lib/lchown.c (S_ISLNK): Likewise.
129666 2002-06-15  Jim Meyering  <meyering@lucent.com>
129668         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
129669         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
129670         have been included before this file.
129672 2002-06-14  Jim Meyering  <meyering@lucent.com>
129674         * lib/file-type.h: Use the version from diffutils-2.8.2.
129675         * lib/file-type.c: Likewise.
129677 2002-06-07  Jim Meyering  <meyering@lucent.com>
129679         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
129680         They're needed at least for NetBSD 1.5.2.
129681         ($statxfs_includes): Include those same headers.
129682         ($statxfs_includes): Include sys/vfs.h if available.
129683         ($statxfs_includes): Likewise for sys/statvfs.h.
129684         Check for the following members in both structs statfs and statvfs:
129685         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
129687 2002-06-01  Jim Meyering  <meyering@lucent.com>
129689         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
129690         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
129692 2002-05-28  Jim Meyering  <meyering@lucent.com>
129694         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
129695         Reported by Volker Borchert.
129697 2002-05-27  Jim Meyering  <meyering@lucent.com>
129699         Fix a problem seen only on nonconforming systems whereby ls.c's
129700         use of localtime, and then of gettimeofday would cause trouble:
129701         the localtime call used to initialize rpl_gettimeofday's save
129702         mechanism would clobber ls's current local time information so
129703         that in any long listing the first file would always be listed
129704         with date 1970-01-01.  Analysis by Volker Borchert.
129706         * lib/gettimeofday.c (localtime): Undefine.
129707         (rpl_localtime): New function.
129709 2002-05-27  Jim Meyering  <meyering@lucent.com>
129711         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
129712         localtime.
129714         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
129715         use the replacement function; it wouldn't resolve at link time.
129716         Reported by Volker Borchert.
129718 2002-05-22  Jim Meyering  <meyering@lucent.com>
129720         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
129721         file-type.h.
129722         * lib/file-type.h: New file.
129723         * lib/file-type.c (file_type): New file/function.  Extracted from
129724         diffutils.
129726 2002-04-30  Jim Meyering  <meyering@lucent.com>
129728         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
129730 2002-04-29  Paul Eggert  <eggert@twinsun.com>
129732         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
129734 2002-04-29  Paul Eggert  <eggert@twinsun.com>
129736         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
129737         Do not check for alloca.h (no longer used) or stdbool.h (was never
129738         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
129740 2002-04-29  Paul Eggert  <eggert@twinsun.com>
129742         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
129744 2002-04-29  Jim Meyering  <meyering@lucent.com>
129746         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
129747         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
129748         Use AC_FUNC_STRNLEN here instead.
129750         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
129751         With autoconf-2.53a, it's part of AC_PROG_CC.
129753 2002-04-28  Paul Eggert  <eggert@twinsun.com>
129755         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
129756         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
129758 2002-04-28  Paul Eggert  <eggert@twinsun.com>
129760         * lib/sig2str.h, lib/sig2str.c: New files.
129761         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
129763 2002-04-28  Paul Eggert  <eggert@twinsun.com>
129765         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
129766         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
129767         of 127, since 64 is the largest conceivable number for ancient
129768         nonstandard hosts.
129769         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
129771 2002-04-28  Jim Meyering  <meyering@lucent.com>
129773         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
129775 2002-04-24  Jim Meyering  <meyering@lucent.com>
129777         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
129778         (jm_PREREQ): Use it.
129780         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
129781         mach/mach.h fcntl.h.
129782         Check for this function: setlocale.
129784 2002-04-24  Jim Meyering  <meyering@lucent.com>
129786         * lib/gettext.h: New file, from Gettext.
129787         * lib/Makefile.am (INCLUDES): Remove -I../intl.
129788         (libfetish_a_SOURCES): Add gettext.h.
129790 2002-04-16  Jim Meyering  <meyering@lucent.com>
129792         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
129793         ut_pid, ut_id, ut_exit.
129795 2002-04-16  Jim Meyering  <meyering@lucent.com>
129797         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
129798         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
129799         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
129801 2002-04-12  Jim Meyering  <meyering@lucent.com>
129803         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
129804         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
129805         existence of the getmntinfo function.  Needed for Darwin 5.3.
129807         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
129808         This is necessary at least on Darwin 5.3.
129810         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
129811         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
129812         strnlen.o in the library, and that makes some versions of ranlib
129813         object.
129815 2002-04-12  Jim Meyering  <meyering@lucent.com>
129817         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
129819 2002-04-09  Jim Meyering  <meyering@lucent.com>
129821         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
129822         to be more precise.  Rather than saying we're checking whether the
129823         function `works', say what we're testing.
129824         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
129825         Reported by Bruno Haible.
129827 2002-03-10  Jim Meyering  <meyering@lucent.com>
129829         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
129830         Suggestion from Santiago Vila.
129832 2002-03-08  Jim Meyering  <meyering@lucent.com>
129834         * lib/rename.c: Mention that this wrapper is needed also on
129835         mips-dec-ultrix4.4 systems.
129837 2002-03-02  Jim Meyering  <meyering@lucent.com>
129839         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
129840         not HAVE_CLOCK_SETTIME.
129842 2002-02-27  Paul Eggert  <eggert@twinsun.com>
129844         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
129845         Check for clock_settime.
129847 2002-02-27  Paul Eggert  <eggert@twinsun.com>
129849         * lib/nanosleep.h: Rename to....
129850         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
129852         * lib/gettime.c: New file.
129853         * lib/settime.c: New file.
129854         * lib/stime.c: Remove.
129856         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
129857         timespec.h.  Remove nanosleep.h.
129859 2002-02-25  Paul Eggert  <eggert@twinsun.com>
129861         * m4/acl.m4: New file.
129862         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
129863         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
129865 2002-02-25  Paul Eggert  <eggert@twinsun.com>
129867         * lib/acl.c, lib/acl.h: New files.
129868         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
129870 2002-02-24  Jim Meyering  <meyering@lucent.com>
129872         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
129873         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
129874         cause trouble.  Reported by Nelson Beebe.
129876 2002-02-23  Paul Eggert  <eggert@twinsun.com>
129878         * lib/path-concat.c (xpath_concat): Reorder code to pacify
129879         compilers that don't know that xalloc_die never returns.
129881 2002-02-20  Jim Meyering  <meyering@lucent.com>
129883         * lib/getdate.c: Regenerate using bison-1.33.
129885 2002-02-17  Jim Meyering  <meyering@lucent.com>
129887         * config/config.guess (main): Don't use `head -1'; it's no longer
129888         portable. Use `sed 1q' instead.
129890 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
129892         * m4/codeset.m4: Upgrade to gettext-0.11.
129893         * m4/gettext.m4: Upgrade to gettext-0.11.
129894         * m4/glibc21.m4: Upgrade to gettext-0.11.
129895         * m4/iconv.m4: Upgrade to gettext-0.11.
129896         * m4/isc-posix.m4: Upgrade to gettext-0.11.
129897         * m4/lcmessage.m4: Upgrade to gettext-0.11.
129898         * m4/lib-ld.m4: New file, from gettext-0.11.
129899         * m4/lib-link.m4: New file, from gettext-0.11.
129900         * m4/lib-prefix.m4: New file, from gettext-0.11.
129901         * m4/progtest.m4: Upgrade to gettext-0.11.
129903 2002-02-15  Paul Eggert  <eggert@twinsun.com>
129905         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
129906         (jm_PREREQ): Use it.
129908 2002-02-15  Paul Eggert  <eggert@twinsun.com>
129910         * lib/posixver.c, lib/posixver.h: New files.
129911         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
129913 2002-02-02  Paul Eggert  <eggert@twinsun.com>
129914             Bruno Haible  <bruno@clisp.org>
129916         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
129917         (fwrite_success_callback): New declaration.
129918         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
129919         print_unicode_char. Call failure callback instead of error.
129920         (fwrite_success_callback): New function.
129921         (exit_failure_callback): New function.
129922         (fallback_failure_callback): New function.
129923         (print_unicode_char): Call unicode_to_mb.
129925 2002-01-26  Jim Meyering  <meyering@lucent.com>
129927         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
129928         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
129930 2002-01-26  Jim Meyering  <meyering@lucent.com>
129932         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
129934 2002-01-22  Paul Eggert  <eggert@twinsun.com>
129936         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
129938 2002-01-22  Jim Meyering  <meyering@lucent.com>
129940         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
129941         Otherwise, some versions of automake would omit the rule that makes
129942         Makefile from Makefile.in.
129944 2002-01-21  Paul Eggert  <eggert@twinsun.com>
129946         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
129947         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
129948         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
129949         (memcoll): Set errno to zero if there is no error.
129951         * lib/quotearg.c (quotearg_buffer_restyled):
129952         Fix bug with quoting buffers containing NUL when backslashing escapes.
129953         This bug was exposed by the other changes in this patch.
129954         (quotearg_n_options): New arg ARGSIZE.
129955         All callers changed.
129956         (quoting_options_from_style): New function.
129957         (quotearg_n_style): Use it.
129958         (quotearg_n_style_mem): New function.
129960         * lib/quotearg.h (quotearg_n_style_mem): New function.
129962 2002-01-19  Jim Meyering  <meyering@lucent.com>
129964         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
129965         Remove useless quotes: DF_PROG="df".
129966         * m4/strnlen.m4: New file.
129968 2002-01-16  Paul Eggert  <eggert@twinsun.com>
129970         * lib/backupfile.c (ISDIGIT): Comment fix.
129971         * lib/getdate.y (ISDIGIT): Likewise.
129972         * lib/posixtm.c (ISDIGIT, year): Likewise.
129973         * lib/strverscmp.c (ISDIGIT): Likewise.
129974         * lib/userspec.c (ISDIGIT): Likewise.
129976 2002-01-16  Jim Meyering  <meyering@lucent.com>
129978         * lib/getdate.y: Add three semicolons, each just before a closing
129979         brace. Bison (as of version 1.31) no longer papers over that mistake.
129981 2002-01-05  Jim Meyering  <meyering@lucent.com>
129983         * lib/version-etc.c (version_etc_copyright): Update copyright year.
129985 2001-12-19  Paul Eggert  <eggert@twinsun.com>
129987         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
129988         not silently exit merely because the output buffer happens to
129989         have nothing pending.
129991 2001-12-18  Paul Eggert  <eggert@twinsun.com>
129993         See the big note in ../ChangeLog.
129994         * lib/human.c (suffixes): Prefer K to k for 1024.
129995         (generate_suffix_backwards): New function.
129996         (human_readable_inexact): Use it.
129997         * lib/xstrtol.c (__xstrtol): If there is no number but there
129998         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
129999         Accept 'K' as well as 'k'.
130001 2001-12-15  Jim Meyering  <meyering@lucent.com>
130003         * lib/regex.h (__restrict_arr): Update from libc.
130005         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
130006         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
130007         (STREQ): Define.
130009 2001-12-14  Jim Meyering  <meyering@lucent.com>
130011         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
130012         Suggestion from Bruno Haible.
130014 2001-12-10  Jim Meyering  <meyering@lucent.com>
130016         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
130017         xrealloc, Instead, include "xalloc.h".
130018         (initbuffer): Don't cast xmalloc return value to char*.
130019         (readline): Reword comment.
130020         Don't cast xrealloc return value to char*
130021         Return NULL, not 0.
130023 2001-12-09  Jim Meyering  <meyering@lucent.com>
130025         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
130026         about `signed and unsigned type in conditional expression'.
130027         * lib/posixtm.c (posix_time_parse): Likewise.
130029         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
130031         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
130032         to avoid a pedantic warning.
130034         * lib/getstr.c: Don't include assert.h.
130035         (getstr): Remove warning-evoking assertions.
130036         Return -1 if offset parameter is out of bounds.
130037         Change the type of a local from int to size_t.
130039         * lib/strftime.c (my_strftime_localtime_r): Include this function
130040         definition in the `#if ! HAVE_TM_GMTOFF' block.
130042         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
130043         Include xalloc.h instead.
130045 2001-12-02  Jim Meyering  <meyering@lucent.com>
130047         * lib/tempname.c: Don't declare getenv, thus reverting the change of
130048         2001-11-18.  It's no longer necessary, now that stdlib.h is always
130049         included.
130051         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
130052         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
130054 2001-11-30  Akim Demaille  <akim@epita.fr>
130056         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
130057         before being defined.
130059 2001-11-27  Paul Eggert  <eggert@twinsun.com>
130061         * lib/quotearg.h (quotearg_n, quotearg_n_style):
130062         First arg is int, not unsigned.
130063         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
130064         (SIZE_MAX, UINT_MAX): New macros.
130065         (quotearg_n_options): Abort if N is negative.
130066         Avoid overflow check on hosts where size_t is 64 bits and int
130067         is 32 bits, as overflow is impossible there.
130068         Fix off-by-one typo that caused unnecessary reallocation.
130070 2001-11-27  Jim Meyering  <meyering@lucent.com>
130072         * lib/tempname.c: Merge with version from libc.
130073         * lib/regex.c: Likewise.
130075         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
130076         systems for which STDC_HEADERS is 0, it was not included, resulting in
130077         a warning about an integer-to-pointer conversion problem with getenv.
130078         Reported by Volker Borchert.
130080 2001-11-26  Jim Meyering  <meyering@lucent.com>
130082         * lib/gtod.h: Remove file.
130083         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
130084         * lib/gettimeofday.c: Don't include gtod.h.
130085         (GTOD_init): Remove function.
130086         (rpl_gettimeofday): Do its job here instead, rather than aborting.
130087         Suggestion from Volker Borchert.
130089 2001-11-23  Jim Meyering  <meyering@lucent.com>
130091         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
130092         it.
130093         * lib/hash.c (struct hash_table): Define it here instead.
130095 2001-11-22  Jim Meyering  <meyering@lucent.com>
130097         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
130099 2001-11-20  Jim Meyering  <meyering@lucent.com>
130101         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
130102         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
130104 2001-11-19  Jim Meyering  <meyering@lucent.com>
130106         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
130107         directory.  Use "conftestXXXXXX" as the template.
130108         Suggestion from Paul Eggert.
130110         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
130111         immediately, so the test doesn't mistakenly hit the max-open-files
130112         limit.
130114 2001-11-18  Paul Eggert  <eggert@twinsun.com>
130116         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
130117         (TEMPORARIES): New macro.
130118         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
130119         removes an artificial limitation (e.g. HP-UX 10.20, where
130120         TMP_MAX is 17576).
130122 2001-11-18  Jim Meyering  <meyering@lucent.com>
130124         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
130126 2001-11-18  Jim Meyering  <meyering@lucent.com>
130128         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
130129         on SunOS 4.
130131         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
130132         files will be created before anything else.
130134 2001-11-17  Paul Eggert  <eggert@twinsun.com>
130136         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
130137         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
130139 2001-11-17  Jim Meyering  <meyering@lucent.com>
130141         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
130142         Prompted by a report from Bob Proulx.
130144         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
130145         Instead, require UTILS_FUNC_MKSTEMP.
130147 2001-11-17  Jim Meyering  <meyering@lucent.com>
130149         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
130150         Now, that's done as part of AC_FUNC_STRTOD.
130152 2001-11-17  Jim Meyering  <meyering@lucent.com>
130154         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
130155         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
130156         rather than group writable.  Patch by Juan F. Codagnone.
130158         * lib/readtokens.c: Remove explicit declarations of xmalloc and
130159         xrealloc, Instead, include "xalloc.h".
130161         * lib/mountlist.c: Include unlocked-io.h after all system headers.
130162         Remove explicit declarations of xmalloc, xrealloc,
130163         and xstrdup.  Instead, include "xalloc.h".
130165         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
130166         unlocked-io.h.
130167         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
130168         Likewise.
130169         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
130171         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
130172         Reported by Padraig Brady.
130174         * lib/mkstemp.c: #undef mkstemp.
130175         Include config.h.
130176         (rpl_mkstemp): Rename from mkstemp.
130177         Protoize.
130179 2001-11-16  Jim Meyering  <meyering@lucent.com>
130181         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
130182         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
130183         determine the amount of total physical memory, use pstat_getstatic.
130184         HPUX-11 doesn't define _SC_PHYS_PAGES.
130185         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
130186         If sysconf couldn't be used to determine the amount of available
130187         physical memory, use both pstat_getstatic and pstat_getdynamic.
130188         Based on a patch from Bob Proulx.
130190 2001-11-10  Jim Meyering  <meyering@lucent.com>
130192         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
130193         (jm_PREREQ): Use it.
130195 2001-11-09  Jim Meyering  <meyering@lucent.com>
130197         * m4/jm-macros.m4: Require autoconf-2.52f.
130198         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
130199         Use these AC_-prefixed names, not the AM_-prefixed ones.
130201         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
130203 2001-11-05  Jim Meyering  <meyering@lucent.com>
130205         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
130207 2001-11-04  Jim Meyering  <meyering@lucent.com>
130209         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
130210         $DEFS.
130212 2001-11-03  Jim Meyering  <meyering@lucent.com>
130214         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
130215         of AC_DEFUN.
130217         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
130218         know the name of the variable in the macro definition.
130220 2001-11-03  Jim Meyering  <meyering@lucent.com>
130222         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
130223         in argmatch_to_argument call.
130225         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
130226         argument.
130228         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
130229         e.g., a fault due to an attempt to free a NULL pointer.
130231 2001-11-01  Jim Meyering  <meyering@lucent.com>
130233         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
130234         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
130236 2001-11-01  Jim Meyering  <meyering@lucent.com>
130238         * lib/dirfd.c, lib/dirfd.h: New files.
130239         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
130241         * lib/hash.c (hash_print) [TESTING]: Clean up.
130243 2001-10-22  Paul Eggert  <eggert@twinsun.com>
130245         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
130246         to avoid a warning if -Wall.
130248 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
130250         * README: New file
130251         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
130252         (per RMS's instructions, this is now the canonical source)
130253         * lgpl/, gpl/: New directories.
130255 2001-10-21  Paul Eggert  <eggert@twinsun.com>
130257         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
130259 2001-10-21  Jim Meyering  <meyering@lucent.com>
130261         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
130262         this code would end up calling gettext even in packages built
130263         with --disable-nls.
130264         * lib/getopt.c (_): Likewise.
130265         * lib/regex.c (_): Likewise.
130267 2001-10-20  Paul Eggert  <eggert@twinsun.com>
130269         * m4/error.m4 (jm_PREREQ_ERROR):
130270         Do not invoke AC_CHECK_FUNCS with strerror_r, as
130271         AC_FUNC_STRERROR_R does that.
130272         Check for strerror declaration.
130274         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
130275         are supposed to have them these days.
130276         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
130277         Merge changes from latest Autoconf CVS.
130278         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
130279         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
130280         POSIX decided to standardize on the int flavor of strerror_r.
130282 2001-10-20  Paul Eggert  <eggert@twinsun.com>
130284         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
130285         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
130286         Use strerror_r that is only a macro, even if it is not a function.
130287         (strerror): Check for HAVE_DECL_STRERROR before declaring.
130288         (private_strerror): Use prototypes, not old-style function definition.
130289         (print_errno_message): New function.
130290         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
130291         char*-flavored one.
130292         (error_tail, error, error_at_line): Use it.
130294 2001-10-11  Jim Meyering  <meyering@lucent.com>
130296         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
130297         and quote_n (1, ... to avoid clobbering a buffer.
130299 2001-10-05  Jim Meyering  <meyering@lucent.com>
130301         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
130302         hash-pjw.h.
130303         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
130304         * lib/hash-pjw.h: New file.
130306 2001-09-30  Jim Meyering  <meyering@lucent.com>
130308         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
130309         `struct fsstat' has the `f_fstypename' member.
130310         Use that to define FS_TYPE, which is now used to make
130311         the getfsstat link test tighter.
130313 2001-09-30  Jim Meyering  <meyering@lucent.com>
130315         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
130316         Include <sys/ucred.h>, for Apple Darwin.
130317         Include sys/mount.h and sys/fs_types.h only if available.
130318         (FS_TYPE): Define.
130319         (read_filesystem_list): Use FS_TYPE.
130321 2001-09-29  Paul Eggert  <eggert@twinsun.com>
130323         * lib/exclude.c (excluded_filename): 0 -> false, since it's
130324         a boolean context.
130326 2001-09-29  Jim Meyering  <meyering@lucent.com>
130328         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
130329         [one-argument getmntent function]): Include stdio.h before mntent.h.
130330         SunOS 4.1.x needs it for the declaration of `FILE'.
130331         Patch by Volker Borchert.
130333         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
130334         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
130335         sys/fs_types.h, and make the link-test for getfsstat guard #include
130336         directives with appropriate #if HAVE_*_H tests so that we can
130337         detect getfsstat on Apple Darwin1.3.7 systems.
130338         Reported by Nelson Beebe.
130339         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
130341 2001-09-28  Paul Eggert  <eggert@twinsun.com>
130343         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
130344         #defines strtoimax.  Also treat the other strto* functions
130345         like strtoimax.
130347         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
130348         Check for strtoul and strtoumax,
130349         as those declarations are made even in the signed case.
130350         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
130351         Likewise, for strtol and strtoimax.
130353 2001-09-28  Paul Eggert  <eggert@twinsun.com>
130355         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
130356         #defines strtoimax.  Also treat the other strto* functions
130357         like strtoimax.
130359         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
130360         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
130361         (strtoimax, strtoumax): Do not declare if already defined as a macro.
130363 2001-09-26  Jim Meyering  <meyering@lucent.com>
130365         Most macros in unlocked-io.h had the wrong number of arguments.
130366         * lib/gen-uio: New script.
130367         (USE_UNLOCKED_IO): Define to 1 if not already defined.
130368         * lib/unlocked-io.hin: Remove file.
130369         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
130370         rather than trying to embed it here.
130371         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
130372         Reported by Padraig Brady.
130374 2001-09-25  Volker Borchert  <bt@teknon.de>
130376         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
130377         `result'.
130379 2001-09-24  Jim Meyering  <meyering@lucent.com>
130381         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
130383 2001-09-23  Jim Meyering  <meyering@lucent.com>
130385         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
130386         instead of the mere test for existence of mntent.h.  The latter
130387         would get a false-positive on AIX 3.4 systems.
130388         In the outer getmntent if-block, don't die if neither of the getmntent
130389         tests succeeds.  Instead, just fall through and continue with the
130390         remaining tests.
130392 2001-09-23  Jim Meyering  <meyering@lucent.com>
130394         * lib/mountlist.c: Remove useless parentheses in #if directives.
130395         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
130396         the deprecated MOUNTED symbol is no longer defined in mntent.h.
130398 2001-09-22  Jim Meyering  <meyering@lucent.com>
130400         * m4/gettext.m4: New file.  From gettext.
130401         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
130402         * m4/progtest.m4: Likewise
130403         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
130404         * m4/glibc21.m4: Likewise.
130406         * m4/libintl.m4: Remove.  No longer used.
130408 2001-09-22  Jim Meyering  <meyering@lucent.com>
130410         * lib/localcharset.c: Update from latest gettext.
130411         * lib/config.charset: Likewise.
130413 2001-09-20  Jim Meyering  <meyering@lucent.com>
130415         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
130416         strtoimax.
130417         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
130418         strtoumax.
130420 2001-09-20  Jim Meyering  <meyering@lucent.com>
130422         * lib/xstrtol.c (strtoimax): Guard declaration with
130423         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
130424         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
130425         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
130426         (strtoumax): Likewise, for completeness (it wasn't necessary).
130428 2001-09-17  Paul Eggert  <eggert@twinsun.com>
130430         * lib/strtoimax.c (HAVE_LONG_LONG):
130431         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
130432         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
130433         to work around bug in IBM C compiler.
130435 2001-09-17  Jim Meyering  <meyering@lucent.com>
130437         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
130438         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
130439         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
130440         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
130441         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
130442         whenever the right hand side need not be expanded by the shell.
130444 2001-09-16  Paul Eggert  <eggert@twinsun.com>
130446         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
130447         library.  It's not correct, as some older glibcs are buggy.
130448         fnmatch wasn't fixed until glibc 2.2.
130450         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
130451         special shell magic here.
130453 2001-09-16  Jim Meyering  <meyering@lucent.com>
130455         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
130456         * m4/jm-macros.m4: Require it.
130458 2001-09-16  Jim Meyering  <meyering@lucent.com>
130460         * lib/mkdir.c: New file.
130462 2001-09-15  Jim Meyering  <meyering@lucent.com>
130464         * m4/jm-macros.m4: Check for help2man.
130466 2001-09-11  Jim Meyering  <meyering@lucent.com>
130468         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
130469         The body, by Paul Eggert, was moved here from configure.in.
130470         * m4/jm-macros.m4: Require UTILS_HOST_OS.
130472 2001-09-04  Paul Eggert  <eggert@twinsun.com>
130474         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
130475         (jm_PREREQ): Use it.
130477 2001-09-04  Paul Eggert  <eggert@twinsun.com>
130479         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
130480         Use ssize_t, not int, to store result of readlink.
130481         Check for ssize_t overflow as well as size_t overflow,
130482         as POSIX says the result of readlink is implementation-defined
130483         when ssize_t overflows.
130484         Remove unnecessary cast to char*.
130485         Use free+malloc instead of realloc, as the storage doesn't need
130486         to be preserved and it's clearer and can be more efficient that way.
130487         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
130488         * lib/xreadlink.h (xreadlink): Update prototype.
130490 2001-09-04  Paul Eggert  <eggert@twinsun.com>
130492         * lib/xgetcwd.c: Revert some of the previous change; intead,
130493         fix the HAVE_GETCWD_NULL code to behave more like the
130494         !HAVE_GETCWD_NULL code used to.
130496         Include "xalloc.h".
130497         (xgetcwd): Do not return NULL when memory is exhausted; instead,
130498         invoke xalloc_die.
130500 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130502         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
130503         sys/param.h, as pathmax.h includes them.
130505 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130507         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
130508         (jm_PREREQ_XGETCWD): New macro.
130510         * m4/getcwd.m4: New file.
130512 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130514         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
130515         like the HAVE_GETCWD_NULL code.
130516         Include pathmax.h if not HAVE_GETCWD.
130517         Do not include xalloc.h.
130518         (INITIAL_BUFFER_SIZE): New symbol.
130519         Do not use xmalloc / xrealloc, since the caller is responsible for
130520         handling errors.  Preserve errno around `free' during failure.
130521         Do not overrun buffer when using getwd.
130523 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130525         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
130526         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
130527         getcwd (NULL, 0).
130529 2001-09-03  Paul Eggert  <eggert@twinsun.com>
130531         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
130532         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
130533         spotted by Jim Meyering.
130535 2001-09-03  Jim Meyering  <meyering@lucent.com>
130537         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
130538         failure.
130540 2001-09-02  Jim Meyering  <meyering@lucent.com>
130542         * lib/error.c: Update from GNU libc.
130544 2001-09-01  Jim Meyering  <meyering@lucent.com>
130546         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
130547         Used by df.
130549 2001-09-01  Jim Meyering  <meyering@lucent.com>
130551         * lib/xreadlink.c: New file.
130552         * lib/xreadlink.h: New file.
130553         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
130554         xreadlink.h.
130556         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
130557         doesn't conflict with sparc Solaris 7's definition in
130558         /usr/include/sys/int_types.h.
130560         * lib/exclude.c: Use `""', not `<>' to #include non-system header
130561         files.
130562         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
130563         and strncasecmp as r-values.  Unixware didn't have declarations.
130565 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130567         * lib/xstrtol.h: Add copyright notice.
130568         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
130569         LONGINT_INVALID_SUFFIX_CHAR.
130571 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130573         * lib/xstrtol.c (strtoimax): New decl.
130575 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130577         * lib/xgetcwd.c: Don't include pathmax.h.
130578         Include stdlib.h and unistd.h if available.
130579         Include xalloc.h.
130580         (xmalloc, xstrdup, free): Remove decls.
130581         (xgetcwd): Don't assume sizes fit in unsigned.
130582         Check for overflow when computing sizes.
130583         Simplify reallocation code.
130585 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130587         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
130588         a directory's st_size can have an arbitrary value, so the old
130589         usage could waste an arbitrary amount of memory.  All uses
130590         changed.
130591         * lib/savedir.h: Update prototype.
130593 2001-08-31  Paul Eggert  <eggert@twinsun.com>
130595         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
130597         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
130598         old strtoimax.c.
130600         Also, make the following further changes to make this file's
130601         configuration more similar to that of strtol.c:
130602         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
130603         (strtoumax, uintmax_t, strtoull, strtol): Remove.
130604         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
130605         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
130606         changed to signed values.
130608         And make the following changes as well:
130609         Fix copyright notice, as 1999 was missing.
130610         (verify): New macro.
130611         (strtoimax): Check sizes at compile-time, not run-time.
130612         Prefer strtol to strtoll if both work.
130613         (main): Remove; it was not that useful and was a pain to maintain.
130615         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
130617 2001-08-31  Jim Meyering  <meyering@lucent.com>
130619         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
130620         Use an initial, malloc'd, buffer of length 128 rather than
130621         a statically allocated one of length 1024.
130623 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130625         Simplify code, partly by assuming autoconf 2.52 semantics.
130627         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
130629         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
130630         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
130631         All uses removed.
130632         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
130633         Move AC_REQUIRE to next-to-top level, to avoid confusion.
130634         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
130635         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
130636         jm_AC_HEADER_INTTYPES_H.
130637         * m4/jm-macros.m4 (jm_MACROS): Likewise.
130639         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
130641         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
130642         Quote first arg of AC_DEFUN.
130643         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
130644         since they are needed to parse the include file even if we need
130645         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
130646         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
130647         but with opposite signedness.
130649 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130651         Merge 'exclude' changes from tar 1.13.22.
130652         This fixes one or two unlikely storage allocation overflow bugs,
130653         but doesn't change user-visible behavior otherwise.
130655 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130657         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
130658         (jm_PREREQ_EXCLUDE): New macro.
130660 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130662         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
130663         tm to be declared.
130665 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130667         * lib/hash.c: Remove '2001' from copyright notice.
130669 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130671         * lib/full-write.h: New file.
130672         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
130673         * lib/full-write.c: Correct credits, as cccp.c no longer
130674         exists and anyway it was so heavily changed from the old cccp
130675         code as to be unrecognizable.  Include full-write.h.
130676         (full_write): Return size_t, with short writes meaning failure.
130677         All callers changed.  This fixes a bug with large buffers
130678         on 64-bit hosts.
130679         * lib/utime.c: Include full-write.h.
130681 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130683         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
130684         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
130685         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
130686         Include if available.
130687         (<xalloc.h>): Include
130688         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
130689         (verify): New macro.  Use it to verify that EXCLUDE macros do not
130690         collide with FNM macros.
130691         (struct patopts): New struct.
130692         (struct exclude): Use it, as exclude patterns now come with options.
130693         (new_exclude): Support above changes.
130694         (new_exclude, add_exclude_file):
130695         Initial size must now be a power of two to simplify overflow checking.
130696         (free_exclude, fnmatch_no_wildcards): New function.
130697         (excluded_filename): No longer requires options arg, as the options
130698         are determined by add_exclude.  Now returns bool, not int.
130699         (excluded_filename, add_exclude):
130700         Add support for the fancy new exclusion options.
130701         (add_exclude, add_exclude_file): Now takes int options arg.
130702         Check for arithmetic overflow when computing sizes.
130703         (add_exclude_file): xrealloc might modify errno, so don't
130704         realloc until after errno might be used.
130706         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
130707         New macros.
130708         (free_exclude): New decl.
130709         (add_exclude, add_exclude_file): Now takes int options arg.
130710         (excluded_filename): No longer requires options arg, as the options
130711         are determined by add_exclude.  Now returns bool, not int.
130713 2001-08-30  Paul Eggert  <eggert@twinsun.com>
130715         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
130717 2001-08-27  Jim Meyering  <meyering@lucent.com>
130719         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
130721         * lib/version-etc.c (N_): Remove definition.
130722         Revert most of last change.
130723         Instead, simply don't mark the `Copyright...' string for translation.
130724         Based on advice from Paul Eggert.
130726         * lib/strtoxmax.c: Tweak comment.
130728 2001-08-26  Jim Meyering  <meyering@lucent.com>
130730         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
130732         * m4/xstrtoimax.m4: New file.
130733         * m4/xstrtoumax.m4: Add comments explaining why we
130734         AC_REPLACE_FUNCS(strtol).
130736 2001-08-26  Jim Meyering  <meyering@lucent.com>
130738         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
130739         of copyright with `%s' so translators don't get an untranslated
130740         message in 2002.
130741         (COPYRIGHT_YEAR): Define.
130742         (version_etc): Use fprintf rather than fputs.
130743         Suggestion from Ulrich Drepper.
130745         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
130747         * lib/strtoll.c: New file, from GNU libc.
130748         * lib/xstrtoimax.c: New file.
130750         * lib/xstrtol.h: Add xstrtoimax.
130751         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
130752         * lib/strtoimax.c: New file.  Likewise, but first define
130753         STRTOUXMAX_SIGNED.
130755         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
130756         ...
130757         * lib/strtoxmax.c: ... then renamed to this.
130759 2001-08-18  Paul Eggert  <eggert@twinsun.com>
130761         * m4/inttypes.m4: Add AC_PREREQ(2.13).
130762         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
130763         (jm_AC_TYPE_INTMAX_T): New macro.
130764         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
130766         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
130768         * m4/longlong.m4: Renamed from ulonglong.m4.
130769         * m4/inttypes.m4: Renamed from inttypes_h.m4.
130770         * m4/uintmax_t.m4: Removed.
130772 2001-08-13  Paul Eggert  <eggert@twinsun.com>
130774         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
130775         Port to Solaris 8, where 'sed' requires a space after the 'r'
130776         command, and where sh dislikes "$/".  Clean up the spacing a bit.
130777         Redirect output to $tmp just once.
130779 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
130781         * lib/addext.c (<errno.h>): Include.
130782         (errno): Declare if not defined.
130783         (addext): Work correctly when pathconf returns -1 and leaves
130784         errno alone because there is no limit.  Also, work even if
130785         pathconf returns a value greater than SIZE_MAX.
130787 2001-08-12  Jim Meyering  <meyering@lucent.com>
130789         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
130790         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
130791         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
130792         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
130793         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
130794         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
130795         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
130796         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
130797         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
130798         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
130799         utime.m4, utimes.m4, xstrtoumax.m4:
130800         Quote the first argument in each use of AC_DEFUN.
130802 2001-08-12  Jim Meyering  <meyering@lucent.com>
130804         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
130805         Simply `return getcwd (NULL, 0);'.
130806         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
130807         Use 1300 as initial value for length, not PATH_MAX.
130809         * lib/pathmax.h: Clean up cpp syntax.
130811 2001-08-12  Jim Meyering  <meyering@lucent.com>
130813         * lib/gettimeofday.c: New file.
130814         * lib/gtod.h: New file.
130815         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
130817 2001-08-05  Jim Meyering  <meyering@lucent.com>
130819         * m4/jm-macros.m4: Require autoconf-2.52.
130821 2001-08-04  Jim Meyering  <meyering@lucent.com>
130823         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
130824         stmt, to get in sync with glibc.
130826 2001-08-03  Paul Eggert  <eggert@twinsun.com>
130828         The following changes are from gettext 0.10.39 as maintained by
130829         Bruno Haible.
130831         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
130832         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
130833         with inverted sense.  All uses changed.
130835         * lib/mbswidth.c: Don't include <limits.h>.
130836         Include <stdlib.h> and <string.h> unconditionally.
130837         (iswcntrl, mbsinit, ISCNTRL): New macros.
130838         (mbsnwidth): Use K&R style function declarations.
130839         Don't bother checking for MB_LEN_MAX == 1, since the compiler
130840         can optimize it when MB_CUR_MAX == 1.
130841         The width of control characters is zero, not 1.
130843 2001-08-03  Paul Eggert  <eggert@twinsun.com>
130845         The following changes are from gettext 0.10.39 as maintained by
130846         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
130848         * m4/codeset.m4: Upgrade to serial AM1.
130849         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
130850         all uses changed.  Quote first arg of AC_DEFUN.
130851         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
130853         * m4/iconv.m4: Upgrade to serial AM2.
130854         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
130855         Add --with-libconv-prefix.
130856         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
130857         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
130858         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
130859         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
130860         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
130862         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
130863         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
130864         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
130865         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
130866         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
130867         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
130868         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
130869         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
130870         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
130872         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
130873         string.h any more.
130875         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
130876         not the default value.
130878         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
130879         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
130880         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
130881         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
130882         Also check for iswcntrl, used for wcwidth fallback.
130883         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
130884         to Autoconf 2.13.
130886 2001-08-03  Jim Meyering  <meyering@lucent.com>
130888         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
130889         as it was in the original.  Reported by Paul Eggert.
130891 2001-07-16  Jim Meyering  <meyering@lucent.com>
130893         * m4/gettimeofday.m4: New file.
130894         Prompted by a report from Bernhard Baehr.
130896 2001-07-15  Jim Meyering  <meyering@lucent.com>
130898         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
130899         stuff. Now it's in ../Makefile.cfg.
130901 2001-07-15  Jim Meyering  <meyering@lucent.com>
130903         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
130904         (BUILT_SOURCES): Add unlocked-io.h.
130905         (io_functions): Define.
130906         (unlocked-io.h): New rule.
130907         (DISTCLEANFILES): Add unlocked-io.h.
130908         (all-local): Depend on unlocked-io.h, to ensure it is created.
130910         * lib/unlocked-io.hin: New file
130912         * lib/regex.c: Update from glibc.
130914 2001-07-05  Jim Meyering  <meyering@lucent.com>
130916         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
130917         recommendation.
130918         (libfetish_a_SOURCES): Put all .h files here instead.
130919         Remove a thus-exposed (better checks in automake) duplicate and
130920         two unnecessary .h files.
130922 2001-07-04  Jim Meyering  <meyering@lucent.com>
130924         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
130925         that generates jm-glibc-io.m4 so that it doesn't trigger any make
130926         distcheck failure.
130928 2001-07-02  Jim Meyering  <meyering@lucent.com>
130930         The following changes were prompted by suggestions from Bruno Haible.
130932         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
130933         is now generated.
130934         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
130935         definition of EXTRA_DIST.
130936         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
130937         ensure that the generated file is created/updated whenever the list
130938         of $(unlocked_functions) is changed.
130939         (jm-glibc-io.m4): New rule.
130940         (unlocked-io.h): New rule -- currently unused.
130942 2001-06-24  Jim Meyering  <meyering@lucent.com>
130944         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
130945         unmatched right bracket, rather than kludging it with an extra,
130946         falsely-matching quote in a comment.  Patch by Akim Demaille.
130948 2001-06-11  Jim Meyering  <meyering@lucent.com>
130950         * lib/regex.c: Update from GNU libc.
130952 2001-05-27  Jim Meyering  <meyering@lucent.com>
130954         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
130955         Check for ut_type in struct utmp.
130957 2001-05-27  Jim Meyering  <meyering@lucent.com>
130959         * lib/readutmp.h (UT_TYPE): Define.
130961 2001-05-24  Jim Meyering  <meyering@lucent.com>
130963         * lib/argmatch.c: Include "quote.h".
130964         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
130965         quote function.  Reported by Göran Uddeborg.
130967 2001-05-22  Jim Meyering  <meyering@lucent.com>
130969         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
130970         now that we use the package-supplied version unconditionally.
130971         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
130973 2001-05-21  Jim Meyering  <meyering@lucent.com>
130975         * m4/regex.m4: Change a couple backticks to single quotes to avoid
130976         shell syntax errors.
130978 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
130980         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
130982 2001-05-20  Paul Eggert  <eggert@twinsun.com>
130984         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
130985         Don't bother to check library strftime, since
130986         we'll be using our own my_strftime function anyway.
130987         Define my_strftime instead of strftime.
130989 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
130991         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
130992         which is not yet declared.
130994 2001-05-15  Jim Meyering  <meyering@lucent.com>
130996         * m4/regex.m4: Use proper quoting so brackets appear in the test
130997         program.
130998         Reported by, and with help from, Bruno Haible.
131000 2001-05-13  Jim Meyering  <meyering@lucent.com>
131002         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
131003         undefined.
131005 2001-05-11  Paul Eggert  <eggert@twinsun.com>
131007         dirname code cleanup.  base_name now behaves more compatibly
131008         with POSIX basename when given file names that have trailing
131009         slashes, and similarly for dir_name.  Add new primitives
131010         base_len and dir_len.  Put the directory-name-related decls
131011         into dirname.h.
131013         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
131014         * lib/backupfile.c (base_name): Likewise.
131015         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
131016         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
131017         * lib/makepath.c (strip_trailing_slashes): Likewise.
131018         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
131019         ISSLASH): Likewise.
131020         * lib/rename.c (strip_trailing_slashes): Likewise.
131021         * lib/same.c (base_name): Likewise.
131022         * lib/stripslash.c (ISSLASH): Likewise.
131024         * lib/addext.c: Include <dirname.h> after size_t is defined.
131025         * lib/backupfile.c: Likewise.
131027         * lib/addext.c (addext): Use base_len to trim redundant
131028         trailing slashes instead of doing it ourselves.
131029         But do not trim the last slash if it is not redundant.
131031         * lib/backupfile.c (find_backup_file_name,
131032         max_backup_version): Use base_len instead of rolling it ourselves.
131033         Handle the case of "" and (on DOS) "C:" correctly.
131035         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
131036         needed. Include <string.h>, <dirname.h>.
131037         (base_name): Allow file names ending in slashes, other than names
131038         that are all slashes.  In this case, return the basename followed
131039         by the slashes.  This is more general, and can be used in places
131040         where the original base_name purposely had an assertion failure.
131041         (base_len): New function.
131043         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
131044         Do not include <assert.h>; no longer needed.
131045         Include xalloc.h.
131046         (memrchr): Remove decl.
131047         (dir_name_r): Remove.
131048         (dir_len): Renamed from dirlen.  All callers changed.
131049         Rewrite in terms of base_name, for simplicity and consistency.
131050         (dir_name): Never return NULL.  All callers changed.
131051         Do not include <stdlib.h> in test program; no longer needed.
131052         return 0; is fine for test program.
131054         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
131055         New macros.
131056         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
131058         * lib/path-concat.c (path_concat): Use base_len to compute
131059         base length, not strlen; this means we cannot rely on memcpy
131060         to null-terminate.
131062         * lib/same.c (STREQ): Remove.
131063         (same_name): Handle the case where the basename ends in trailing '/'.
131065         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
131066         a slash was stripped.  Do not strip the last slash after a
131067         file system prefix.
131069 2001-05-11  Paul Eggert  <eggert@twinsun.com>
131071         * lib/Makefile.am (libfetish_a_SOURCES):
131072         Add strftime.c, since we now compile it on all hosts.
131074         * lib/strftime.c (my_strftime):
131075         Define to nstrftime if emacs, but only if my_strftime is not defined.
131076         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
131077         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
131078         Add one more extra argument: a nanoseconds value.
131079         All uses changed.
131080         (ns): New macro.
131081         (my_strftime function): Add %N format.
131082         (emacs_strftimeu): Renamed from emacs_strftime,
131083         with extra ut argument.
131085 2001-05-09  Paul Eggert  <eggert@twinsun.com>
131087         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
131089 2001-04-21  Jim Meyering  <meyering@lucent.com>
131091         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
131092         doesn't interfere.
131094 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
131096         * m4/ftruncate.m4: Check for chsize.
131097         Link with ftruncate.o unconditionally if ftruncate is missing.
131098         This was required when cross-compiling to i586-mingw32msvc.
131100 2001-04-08  Jim Meyering  <meyering@lucent.com>
131102         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
131103         recomputed; that's necessary when the offset spans a DST transition.
131104         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
131106 2001-04-02  Jim Meyering  <meyering@lucent.com>
131108         * lib/regex.h, regex.c: Update from GNU libc.
131110 2001-03-24  Jim Meyering  <meyering@lucent.com>
131112         * m4/jm-macros.m4: Require autoconf-2.49d.
131114 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
131116         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
131118 2001-03-19  Paul Eggert  <eggert@twinsun.com>
131120         * lib/version-etc.c (version_etc_copyright): Update to 2001.
131122 2001-03-17  Jim Meyering  <meyering@lucent.com>
131124         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
131125         now that the version in autoconf is equivalent.
131126         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
131128         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
131129         Suggestion from Akim Demaille.
131131         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
131132         (jm_PREREQ_TEMPNAME): New function.
131134 2001-03-16  Paul Eggert  <eggert@twinsun.com>
131136         * lib/tempname.c (uint64_t): Define to uintmax_t if
131137         not defined, and if UINT64_MAX is not defined.
131138         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
131139         Reported by John David Anglin.
131141 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
131143         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
131144         resolve alias if codeset is empty.
131145         * lib/config.charset (BeOS): Use wildcard syntax.
131147 2001-03-13  Jim Meyering  <meyering@lucent.com>
131149         * lib/path-concat.c (path_concat)
131150         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
131151         concatenating e.g., `C:' and `foo'.
131152         From Bruno Haible.
131154 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
131156         * lib/localcharset.c (locale_charset): Don't use
131157         setlocale(LC_CTYPE,NULL). Don't return NULL.
131158         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
131160 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
131162         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
131163         support for DOS/DJGPP.
131165 2001-03-01  Paul Eggert  <eggert@twinsun.com>
131167         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
131168         lacks mkstemp.  Compile our own tempname.c if we compile our own
131169         mkstemp.c, as mkstemp relies on tempname.
131171 2001-03-01  Jim Meyering  <meyering@lucent.com>
131173         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
131174         AH_VERBATIM really does output its argument verbatim.
131176 2001-02-28  Paul Eggert  <eggert@twinsun.com>
131178         * lib/Makefile.am (libfetish_a_SOURCES):
131179         Add dup-safer.c, fopen-safer.c.
131180         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
131182         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
131183         * lib/unistd-safer.h: New files.
131185 2001-02-25  Paul Eggert  <eggert@twinsun.com>
131187         The mkstemp replacement is taken from glibc 2.2.2, with some
131188         portability fixes for use outside glibc, as follows:
131190         * lib/tempname.c (struct_stat64): New macro.
131191         (direxists, __gen_tempname): Use it.
131192         This avoids a portability problem with Solaris 8.
131194         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
131195         (<stddef.h>, <stdint.h>, <string.h>):
131196         Include only if STDC_HEADERS || _LIBC.
131197         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
131198         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
131199         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
131200         (__set_errno): Define this macro if <errno.h> doesn't.
131201         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
131202         Define these macros if <stdio.h> doesn't.
131203         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
131204         Define these macros if <sys/stat.h>
131205         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
131206         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
131207         __xstat64): Define if not _LIBC.
131208         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
131209         (__gen_tempname): Invoke gettimeofday only if
131210         HAVE_GETTIMEOFDAY || _LIBC;
131211         otherwise, fall back on plain "time".
131212         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
131214         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
131216         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
131218 2001-02-18  Paul Eggert  <eggert@twinsun.com>
131220         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
131222 2001-02-17  Paul Eggert  <eggert@twinsun.com>
131224         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
131225         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
131226         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
131227         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
131229 2001-02-17  Paul Eggert  <eggert@twinsun.com>
131231         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
131232         Remove workaround macros for hosts that have mbrtowc but not
131233         mbstate_t, as we now insist on proper declarations for both
131234         before using mbrtowc.
131236 2001-02-17  Jim Meyering  <meyering@lucent.com>
131238         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
131239         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
131240         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
131241         UnixWare 7.1.1.
131243         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
131244         rather than AC_CACHE_VAL.
131246 2001-02-17  Jim Meyering  <meyering@lucent.com>
131248         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
131249         around included file name.
131251         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
131253         * lib/strftime.c: Update from GNU libc (the only changes were to
131254         comments).
131256 2001-02-17  Jim Meyering  <meyering@lucent.com>
131258         * lib/regex.c: Update from libc.
131260 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
131262         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
131263         clash.
131265 2001-02-16  Paul Eggert  <eggert@twinsun.com>
131267         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
131268         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
131269         Reported by Mark Hounschell via Paul Eggert.
131271 2001-02-07  Jim Meyering  <meyering@lucent.com>
131273         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
131275 2001-02-05  Jim Meyering  <meyering@lucent.com>
131277         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
131278         it includes the patch required for `large file' support with at least
131279         HP-UX's 10.20 /bin/cc.
131281 2001-02-03  Jim Meyering  <meyering@lucent.com>
131283         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
131284         AS_IF, now that it works once again (mysteriously).
131285         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
131287 2001-01-30  Jim Meyering  <meyering@lucent.com>
131289         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
131290         * m4/chown.m4: Rename conftestchown to conftest.chown.
131291         * m4/rename.m4: s/conftestdir/conftest.d1/ and
131292         s/conftestdir2/conftest.d2/.
131293         * m4/utimes.m4: s/conftestdata/conftest.data/
131294         Inspired by Pavel Roskin's change in autoconf.
131296 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
131298         * lib/config.charset: Update for FreeBSD 4.2.
131300 2001-01-27  Jim Meyering  <meyering@lucent.com>
131302         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
131303         a use of AS_IF.
131304         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
131306 2001-01-26  Jim Meyering  <meyering@lucent.com>
131308         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
131309         quotearg.c includes it.
131311 2001-01-26  Jim Meyering  <meyering@lucent.com>
131313         * lib/quotearg.c: Include stddef.h.
131314         * lib/quote.c: Include stddef.h.
131315         Reported by Axel Kittenberger.
131317         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
131318         line in double quotes so that it evokes a better diagnostic.
131319         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
131320         Reported by Axel Kittenberger.
131322 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
131324         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
131325         as if it was a `charset'.
131327 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
131329         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
131330         has const.
131332 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
131334         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
131335         to avoid a warning.  Add back 'const' to inptr.
131337 2001-01-20  Jim Meyering  <meyering@lucent.com>
131339         Be sure that headers are checked before used in code compiled
131340         for the type checks.
131341         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
131342         In place of that, invoke jm_CHECK_ALL_TYPES.
131343         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
131344         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
131345         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
131346         The check for ssize_t was mistakenly run before the test for unistd.h.
131348         The configure-time check for stdbool.h was missing.
131349         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
131350         (jm_PREREQ_HASH): New function.
131352 2001-01-17  Jim Meyering  <meyering@lucent.com>
131354         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
131355         for autoconf-2.49c.
131356         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
131358 2001-01-16  Jim Meyering  <meyering@lucent.com>
131360         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
131361         From Bruno Haible.
131363 2001-01-14  Jim Meyering  <meyering@lucent.com>
131365         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
131366         foo and bar.  Create conftestdir/ in the script, not in the C code.
131367         Remove directories in the script, not in the C code.
131368         Remove conftestdir{,2} before trying to create the directory.
131369         Make the entire configure script fail if the mkdir fails.
131371 2001-01-14  Jim Meyering  <meyering@lucent.com>
131373         * lib/rename.c: New file.  From Volker Borchert.
131374         Include stdlib.h, string.h or strings.h, and xalloc.h.
131375         Use strip_trailing_slashes rather than open-coding it.
131377 2001-01-03  Paul Eggert  <eggert@twinsun.com>
131379         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
131381 2001-01-03  Jim Meyering  <meyering@lucent.com>
131383         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
131384         of local `inptr' to avoid warning with some system declarations of
131385         iconv.
131387 2001-01-02  Volker Borchert  <bt@teknon.de>
131389         * m4/rename.m4: New file.
131390         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
131392 2001-01-01  Jim Meyering  <meyering@lucent.com>
131394         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
131395         even on systems with utmpx.h.  It's necessary for the declaration of
131396         utmp's ut_user member.  Reported by Andreas Jaeger.
131398         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
131399         available. They are required for the declarations of getgrgid and
131400         getpwuid resp.
131401         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
131402         Reported by Andreas Jaeger.
131404 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
131406         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
131407         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
131408         so `make install' also works in VPATH builds.
131410 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
131412         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
131413         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
131414         can be used in subdirectories.
131416 2000-12-29  Paul Eggert  <eggert@twinsun.com>
131418         * lib/modechange.c: Do not assume that mode_t uses the
131419         traditional octal encoding.  E.g. "chmod 1 FOO" should set
131420         the other-execute bit of FOO even if S_IXOTH != 1.
131422         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
131423         WOTH, XOTH, ALLM): New macros.
131424         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
131425          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
131426         Use them.
131427         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
131428         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
131429         (mode_compile):
131430         No need to use uintmax_t; unsigned long is long enough.
131431         Don't bother to get suffix since we don't use it.
131433 2000-12-26  Jim Meyering  <meyering@lucent.com>
131435         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
131436         better with autoheader.
131438 2000-12-24  Jim Meyering  <meyering@lucent.com>
131440         * lib/hash.c (is_prime): Return explicit boolean values.
131441         (hash_get_first): Return NULL to appease Irix5.6's 89.
131442         Reported by Nelson Beebe.
131444 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
131446         * lib/localcharset.c (locale_charset): Add support for Win32.
131448 2000-12-18  Paul Eggert  <eggert@twinsun.com>
131450         * lib/physmem.h, lib/physmem.c: New files.
131452         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
131453         (noinst_HEADERS): Add physmem.h.
131455         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
131456         't' for compatibility with Solaris 8 sort.
131458 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
131460         * lib/config.charset: Add support for BeOS.
131462 2000-12-17  Jim Meyering  <meyering@lucent.com>
131464         * m4/dos.m4 (jm_AC_DOS): New file and macro.
131465         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
131467 2000-12-16  Jim Meyering  <meyering@lucent.com>
131469         This bug had a serious impact on chown: `chown N:M FILE' (for integer
131470         N and M) would have treated it like `chown N:N FILE'.
131472         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
131474 2000-12-16  Jim Meyering  <meyering@lucent.com>
131476         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
131477         SHELLS_FILE to a file name that's useful on djgpp systems.
131478         Include stdlib.h.
131479         (ADDITIONAL_DEFAULT_SHELLS): Define.
131480         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
131481         Based mostly on a patch from Prashant TR.
131483 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
131485         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
131486         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
131487         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
131489 2000-12-08  Andreas Schwab  <schwab@suse.de>
131491         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
131492         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
131494 2000-12-07  Jim Meyering  <meyering@lucent.com>
131496         * lib/stripslash.c (ISSLASH): Define.
131497         (strip_trailing_slashes): Use ISSLASH rather than comparing against
131498         `/'.
131499         From Prashant TR.
131501         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
131502         (dir_name_r): Declare this function as static.
131503         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
131504         manifest itself on a name containing a mix of slashes and
131505         backslashes.
131506         Make this function work with names starting with a DOS-style
131507         drive letter and colon prefix.
131508         (dir_name): Append `.' if necessary.
131509         Based mostly on patches from Prashant TR and Eli Zaretskii.
131511         * lib/dirname.h (dir_name_r): Remove prototype.
131513 2000-12-06  Paul Eggert  <eggert@twinsun.com>
131515         * m4/off_t-format.m4: Remove this file.
131516         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
131518 2000-12-06  Jim Meyering  <meyering@lucent.com>
131520         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
131521         replacement strtoull, we may well need the replacement strtoul, too.
131522         Check for declarations of strtoul and strtoull.
131523         Check for strtol.  Mainly as a cue to cause automake to include
131524         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
131525         Check for limits.h -- strtol.c needs it.
131527 2000-12-05  Jim Meyering  <meyering@lucent.com>
131529         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
131531 2000-12-04  Jim Meyering  <meyering@lucent.com>
131533         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
131534         Also include memory.h, stdlib.h, unistd.h if appropriate.
131535         Reported by Andreas Jaeger (conflicting declaration of malloc).
131537 2000-12-02  Jim Meyering  <meyering@lucent.com>
131539         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
131540         * m4/jm-macros.m4 (jm_MACROS): require it.
131542 2000-12-02  Jim Meyering  <meyering@lucent.com>
131544         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
131546 2000-12-01  Paul Eggert  <eggert@twinsun.com>
131548         * lib/memrchr.c: Include <config.h> before any system include file.
131550 2000-11-30  Jim Meyering  <meyering@lucent.com>
131552         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
131554 2000-11-30  Jim Meyering  <meyering@lucent.com>
131556         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
131558 2000-11-29  Paul Eggert  <eggert@twinsun.com>
131560         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
131562 2000-11-26  Jim Meyering  <meyering@lucent.com>
131564         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
131566 2000-11-22  Paul Eggert  <eggert@twinsun.com>
131568         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
131569         size of (size_t) -1; it's not portable.
131571 2000-11-17  Jim Meyering  <meyering@lucent.com>
131573         * lib/strstr.c: Update from GNU libc.
131575 2000-11-17  Akim Demaille  <akim@epita.fr>
131577         * lib/obstack.h: Formatting changes.
131578         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
131579         prevent type checking.
131580         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
131581         cast the value to (void *): assigning a `foo *' to a `void *'
131582         variable is valid.
131583         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
131585 2000-11-16  Jim Meyering  <meyering@lucent.com>
131587         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
131589 2000-11-11  Jim Meyering  <meyering@lucent.com>
131591         * lib/error.c: Add a couple #includes, merging from GNU libc version.
131593 2000-11-10  Jim Meyering  <meyering@lucent.com>
131595         * lib/obstack.h: Update from GNU libc.
131596         * lib/obstack.c: Likewise.
131598 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
131600         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
131602 2000-11-06  Paul Eggert  <eggert@twinsun.com>
131604         * lib/getusershell.c (setusershell): Use rewind rather than
131605         fseek/fseeko, to avoid configuration hassles with fseeko.
131606         Don't bother opening SHELLS_FILE if shellstream is NULL;
131607         it's not necessary.
131609 2000-11-05  Jim Meyering  <meyering@lucent.com>
131611         * lib/makepath.h (make_dir): Declare.
131612         * lib/makepath.c (make_dir): Remove `static' attribute.
131613         Tweak a comment.
131615 2000-11-04  Jim Meyering  <meyering@lucent.com>
131617         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
131619 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
131621         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
131622         last one in a bucket, advance to the next bucket.
131624 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
131626         * lib/fnmatch.c: Do not comment out all the code if we are using
131627         the GNU C library, because in some cases we are replacing buggy
131628         code in the GNU C library itself.
131630 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
131632         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
131633         (regex_compile): Catch bogus \(\1\).
131635 2000-10-30  Paul Eggert  <eggert@twinsun.com>
131637         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
131638         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
131639         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
131641 2000-10-30  Paul Eggert  <eggert@twinsun.com>
131643         * lib/error.h, getline.h, modechange.h:
131644         Remove "2000" from Copyright line, as the file hasn't been
131645         changed this year other than in the copyright notice.
131647         * lib/xalloc.h: Add "2000" to Copyright line, as this file
131648         was changed this year.
131650 2000-10-29  Jim Meyering  <meyering@lucent.com>
131652         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
131653         renaming.
131654         * m4/ls-mntd-fs.m4: Likewise
131656 2000-10-29  Jim Meyering  <meyering@lucent.com>
131658         * lib/xstat.in: Fix grammar in comment.
131660 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
131662         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
131663         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
131664         doesn't define __restrict_arr.
131666 2000-10-28  Jim Meyering  <meyering@lucent.com>
131668         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
131669         (jm_PREREQ_MEMCHR): New function.
131671 2000-10-28  Jim Meyering  <meyering@lucent.com>
131673         * lib/memchr.c: Update from libc.
131674         Adjust for portability:
131675         [HAVE_STDLIB_H]: Include stdlib.h.
131676         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
131677         Undef __memchr, too.
131678         [!weak_alias]: Define __memchr to memchr.
131680         * lib/regex.c: Update from libc.
131681         * lib/regex.h: Likewise.
131682         * lib/getopt1.c: Likewise.
131683         * lib/memcmp.c: Likewise.
131685         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
131686         Avoid using fseek, when possible -- it's broken by design.
131687         Patch by Ulrich Drepper.
131689 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
131691         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
131692         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
131693         Giving in to popular pressure to shut up the compiler with casts.
131695 2000-10-26  Jim Meyering  <meyering@lucent.com>
131697         * lib/strftime.c: Update from libc.
131699 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
131701         * regex.c: More `unsigned char' -> `re_char' changes.
131702         Also change several `int' into `re_wchar_t'.
131703         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
131704         (PUSH_FAILURE_POINTER): Don't cast any more.
131705         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
131706         We want GCC to complain, since this piece of code makes
131707         re_match non-reentrant, which *should* be fixed.
131708         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
131709         (EXTEND_BUFFER): Use RETALLOC.
131710         (SET_LIST_BIT): Don't cast.
131711         (re_wchar_t): New type.
131712         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
131713         that those two functions will always properly return.
131714         (IMMEDIATE_QUIT_CHECK): Cast to void.
131715         (analyse_first): Use recursion rather than an explicit stack.
131716         (re_compile_fastmap): Can't fail anymore.
131717         (re_search_2): Don't check re_compile_fastmap for failure.
131718         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
131719         Now also sets the new value (passed in a new argument).
131720         (re_match_2_internal): Use it.
131721         Also, use a new var `reg' of type size_t when looping through regs
131722         rather than reuse the inappropriate `mcnt'.
131724 2000-10-25  Jim Meyering  <meyering@lucent.com>
131726         * lib/obstack.c: Update from libc.
131728 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
131730         * regex.c (regex_compile): Change the way of handling a range from
131731         a char less than 256 to a char not less than 256.
131733 2000-10-24  Andrew Innes  <andrewi@gnu.org>
131735         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
131736         NT-Emacs only.
131737         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
131738         so that re_search functions only quit when callers expect them to.
131740 2000-10-23  Jim Meyering  <meyering@lucent.com>
131742         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
131743         wrong.  That set_locale call must not have any side effects.
131744         From Paul Eggert.
131746 2000-10-22  Jim Meyering  <meyering@lucent.com>
131748         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
131749         [CYCLIC]: Remove now-unused definition.
131751         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
131752         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
131753         Suggestion from Ulrich Drepper.
131755 2000-10-21  Jim Meyering  <meyering@lucent.com>
131757         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
131758         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
131759         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
131761 2000-10-21  Jim Meyering  <meyering@lucent.com>
131763         * lib/dirname.c (memrchr): Declare if necessary.
131764         (dir_name): Remove the restriction that there be no
131765         trailing slashes.  Now, this code skips past them, effectively
131766         ignoring them.
131767         [TEST_DIRNAME] (main): New unit tests.
131769         * lib/memrchr.c: New file from GNU libc.
131770         Undef __memrchr, too.
131771         [!weak_alias]: Define __memrchr to memrchr.
131772         Guard weak_alias use with `#ifdef weak_alias'.
131774 2000-10-21  Jim Meyering  <meyering@lucent.com>
131776         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
131777         (dir_name): Use dir_name_r.
131778         * lib/dirname.h (dir_name_r): Declare it.
131780 2000-10-17  Jim Meyering  <meyering@lucent.com>
131782         * lib/quote.h (PARAMS): Define and use.
131783         Reported by Akim Demaille.
131785         * lib/getopt.c: Update from libc.
131787 2000-10-16  Jim Meyering  <meyering@lucent.com>
131789         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
131790         setlocale.
131791         From Jan Fedak.
131793 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
131795         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
131797 2000-09-25  Jim Meyering  <meyering@lucent.com>
131799         * lib/md5.h (rol): Define (from GnuPG).
131801         * lib/sha.c: Give credit (GnuPG) where due.
131802         (M): Use rol rather than open-coding it.
131803         Add a FIXME comment.
131805 2000-09-21  Jim Meyering  <meyering@lucent.com>
131807         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
131808         Reported by Michael Stone.
131810 2000-09-20  Jim Meyering  <meyering@lucent.com>
131812         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
131813         (noinst_HEADERS): Add sha.h.
131814         Based on code from Scott G. Miller and from GnuPG.
131816 2000-09-18  Jim Meyering  <meyering@lucent.com>
131818         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
131819         LIBS. Otherwise, everyone ends up linking with -lelf for some
131820         configurations.
131821         Reported by Mike Stone.
131823 2000-09-15  Jim Meyering  <meyering@lucent.com>
131825         * lib/regex.c: Update from libc.
131827 2000-09-10  Jim Meyering  <meyering@lucent.com>
131829         * lib/getopt.c (_getopt_internal): Update from glibc.
131831 2000-09-09  Jim Meyering  <meyering@lucent.com>
131833         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
131834         think it should be used as a general replacement for isascii.
131835         * lib/fnmatch.c: Likewise.
131836         * lib/mbswidth.c: Likewise
131837         * lib/regex.c: Likewise.
131839         Don't use atoi.
131840         * lib/userspec.c: Include sys/param.h and limits.h.
131841         Include xstrtol.h.
131842         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
131843         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
131844         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
131845         UID, GID.  Check range.
131847 2000-09-06  Jim Meyering  <meyering@lucent.com>
131849         * lib/getopt.c (_getopt_internal): Update from glibc.
131851 2000-08-30  Jim Meyering  <meyering@lucent.com>
131853         * lib/strftime.c: Merge in changes from GNU libc.
131855 2000-08-26  Jim Meyering  <meyering@lucent.com>
131857         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
131858         * m4/fpending.m4: New file.
131860 2000-08-26  Jim Meyering  <meyering@lucent.com>
131862         * lib/closeout.c: Include "__fpending.h".
131863         (close_stdout_status): Return right away if there's nothing to flush.
131865         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
131866         * lib/__fpending.c: New file.
131867         * lib/__fpending.h: New file.
131869 2000-08-20  Jim Meyering  <meyering@lucent.com>
131871         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
131872         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
131873         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
131875 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
131877         Improve fileutils installation on systems where running
131878         programs (like install) can't be unlinked.
131879         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
131880         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
131882 2000-08-07  Paul Eggert  <eggert@twinsun.com>
131884         Standardize on "memory exhausted" instead of "Memory exhausted"
131885         or "virtual memory exhausted".
131886         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
131887         "virtual memory exhausted".
131888         * lib/same.c (same_name): Invoke xalloc_die instead of printing
131889         our own message.
131890         * lib/userspec.c (parse_user_spec): Likewise.
131891         * lib/bumpalloc.h: comment fix
131892         * lib/same.c, userspec.c: Include xalloc.h.
131894         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
131895         not char *const and pointing to a constant array.
131896         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
131897         (xrealloc): Comment fix.
131899         * lib/userspec.c (parse_user_spec):
131900         Don't translate a message until just before returning,
131901         to avoid unnecessary translation.
131903 2000-08-07  Jim Meyering  <meyering@lucent.com>
131905         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
131906         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
131907         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
131908         getgroups.c, gethostname.c, getopt.h, group-member.c,
131909         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
131910         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
131911         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
131912         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
131913         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
131914         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
131915         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
131916         yesno.c: Back out Copyright date changes for each file with no change
131917         this year.  This eases coordination with other programs using the same
131918         source code modules.  From Paul Eggert.
131920 2000-08-06  Paul Eggert  <eggert@twinsun.com>
131922         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
131923         not char, for compatibility with glibc 2.1.3 strftime.c.
131925 2000-08-03  Greg McGary  <greg@mcgary.org>
131927         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
131928         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
131929         (EXTEND_BUFFER): Use them.
131931 2000-08-01  Jim Meyering  <meyering@lucent.com>
131933         * lib/dirname.c (ISSLASH): Define.
131934         (BACKSLASH_IS_PATH_SEPARATOR): Define.
131935         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
131936         both `\' and `/' may be use as path separators.
131937         Based on a patch from Prashant TR.
131939 2000-07-31  Paul Eggert  <eggert@twinsun.com>
131941         * lib/quotearg.c (quotearg_n_options): Don't make the initial
131942         slot vector a constant, since it might get modified.
131944 2000-07-31  Jim Meyering  <meyering@lucent.com>
131946         * lib/xmalloc.c: Use `virtual memory exhausted', not
131947         `Memory exhausted'.
131948         * lib/obstack.c (print_and_abort): Likewise.
131950 2000-07-30  Paul Eggert  <eggert@twinsun.com>
131952         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
131953         buffer, so that the caller can always quote one small
131954         component of a "memory exhausted" message in slot 0.
131955         From a suggestion by Jim Meyering.
131957 2000-07-30  Jim Meyering  <meyering@lucent.com>
131959         * lib/makepath.c (make_path): Quote the other instance, too.
131961         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
131962         (STATIC_BUF_SIZE): Define.
131963         (quotearg_n_options): Use only statically allocated storage when
131964         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
131965         than STATIC_BUF_SIZE.
131967 2000-07-29  Jim Meyering  <meyering@lucent.com>
131969         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
131970         * lib/dirname.c (dir_name): Likewise.
131972         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
131973         `/'.
131975         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
131976         (dir_name): Assert that there are no trailing slashes.
131978 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
131980         * lib/mbswidth.h (mbswidth): Add a flags argument.
131981         (mbswidth): New declaration.
131982         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
131983         * lib/mbswidth.c (mbswidth): Add a flags argument.
131984         (mbsnwidth): New function.
131986 2000-07-24  Jim Meyering  <meyering@lucent.com>
131988         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
131990 2000-07-23  Paul Eggert  <eggert@twinsun.com>
131992         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
131994 2000-07-23  Paul Eggert  <eggert@twinsun.com>
131996         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
131997         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
131998         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
131999         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
132000         invoke multibyte primitives.
132002 2000-07-23  Paul Eggert  <eggert@twinsun.com>
132004         * lib/quotearg.c:
132005         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
132006         so that mbstate_t is always defined.
132008         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
132009         be 1 in at least one GCC installation, and this configuration
132010         error is likely to be common.  Ignoring MB_LEN_MAX hurts
132011         performance on hosts that have mbrtowc but have only unibyte
132012         locales, but I assume these hosts are rare.
132014 2000-07-23  Paul Eggert  <eggert@twinsun.com>
132016         * lib/mbswidth.c (_XOPEN_SOURCE):
132017         Don't define; this causes problems on Solaris 7.
132018         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
132020 2000-07-23  Jim Meyering  <meyering@lucent.com>
132022         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
132023         too: getgrgid, getpwuid, getuid.
132025 2000-07-23  Jim Meyering  <meyering@lucent.com>
132027         * lib/basename.c (base_name): Add an assertion.
132029 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
132031         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
132032         shadow its mbsinit function.
132034 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
132036         * lib/mbswidth.h: New file.
132037         * lib/mbswidth.c: New file.
132038         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
132039         (noinst_HEADERS): Add mbswidth.h.
132041 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
132043         * lib/config.charset: Add support for FreeBSD. Improve support for
132044         HP-UX and IRIX 6.
132046 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
132048         * m4/mbswidth.m4: New file.
132049         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
132051 2000-07-15  Jim Meyering  <meyering@lucent.com>
132053         * lib/makepath.c: Include quote.h.
132054         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
132055         corresponding argument in a `quote (...)' call.
132056         Give better diagnostics.
132058         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
132059         (noinst_HEADERS): Add quote.h.
132061         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
132062         from tar's src/misc.c.
132063         * lib/quote.h: New file.  Prototypes for same.
132065 2000-07-14  Paul Eggert  <eggert@twinsun.com>
132067         From a suggestion by Bruno Haible.
132068         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
132069         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
132070         to decide whether to define the BeOS workaround macro;
132071         this adjusts to the change to AC_MBSTATE_T.
132073 2000-07-14  Jim Meyering  <meyering@lucent.com>
132075         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
132076         jm_AC_TYPE_UINTMAX_T.
132078 2000-07-13  Paul Eggert  <eggert@twinsun.com>
132080         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
132082         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
132083         quotearg_buffer_restyled): Add support for
132084         clocale_quoting_style.  Undo previous change to
132085         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
132086         and "{RIGHT QUOTATION MARK}" msgids.
132088 2000-07-10  Paul Eggert  <eggert@twinsun.com>
132090         From a suggestion by Bruno Haible.
132091         * m4/mbstate_t.m4 (AC_MBSTATE_T):
132092         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
132093         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
132094         and mbstate_t, to a single-part test that simply defines mbstate_t.
132095         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
132096         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
132098 2000-07-10  Jim Meyering  <meyering@lucent.com>
132100         * m4/strerror_r.m4: Mirror the correction made in autoconf.
132102         * m4/gnu-source.m4: Output to confdefs.h directly.
132103         Suggestion from Akim Demaille.
132105 2000-07-09  Paul Eggert  <eggert@twinsun.com>
132107         The old behavior of quoting `like this' doesn't look good with
132108         newer, ISO-style fonts.  See:
132109         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
132111         Instead, quote "like this" by default.  Let the translator
132112         tailor the locale-specific quoting behavior by providing
132113         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
132115         * lib/quotearg.c (N_): New macro.
132116         (gettext_default): New function.
132117         (quotearg_buffer_restyled): Use
132118         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
132119         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
132121 2000-07-09  Jim Meyering  <meyering@lucent.com>
132123         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
132124         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
132126         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
132127         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
132129 2000-07-09  Jim Meyering  <meyering@lucent.com>
132131         * lib/Most files: Update copyright dates to include 2000.
132133 2000-07-08  Jim Meyering  <meyering@lucent.com>
132135         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
132136         if not defined.
132137         (xgethostname): Remove now-unnecessary #ifdef.
132138         Move declaration of `err' into loop where it's used.
132140 2000-07-05  Paul Eggert  <eggert@twinsun.com>
132141         and Bruno Haible  <haible@clisp.cons.org>
132143         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
132144         only if the test for an object-type mbstate_t fails.  This
132145         prevents us from mistakenly reporting that mbstate_t is a
132146         system object type after we "#define mbstate_t int" to work
132147         around its lack.
132149 2000-07-05  Paul Eggert  <eggert@twinsun.com>
132150         and Bruno Haible  <haible@clisp.cons.org>
132152         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
132154 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
132156         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
132157         to strerror_r.
132158         Include <ctype.h> for use of isalpha.
132160 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
132162         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
132163         by allocating a larger buffer. Test the gethostname return value for
132164         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
132165         returns an error and ENAMETOOLONG isn't defined.
132167 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
132169         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
132170         dimension.
132172 2000-07-04  Jim Meyering  <meyering@lucent.com>
132174         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
132175         of the deprecated AC_CHECKING.
132177 2000-07-04  Jim Meyering  <meyering@lucent.com>
132179         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
132180         Reported by Bruno Haible.
132182 2000-07-04  Jim Meyering  <meyering@lucent.com>
132184         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
132185         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
132186         lacks mbrtowc.
132188 2000-07-03  Paul Eggert  <eggert@twinsun.com>
132190         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
132191         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
132193 2000-07-03  Paul Eggert  <eggert@twinsun.com>
132194         and Bruno Haible  <haible@clisp.cons.org>
132196         * lib/quotearg.c (mbrtowc):
132197         Assign to *pwc, and return 1 only if result is nonzero.
132198         (iswprint): Use ISPRINT when substituting our own mbrtowc.
132200 2000-07-03  Jim Meyering  <meyering@lucent.com>
132202         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
132204 2000-07-03  Jim Meyering  <meyering@lucent.com>
132206         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
132207         This is necessary to get a definition of e.g., UTMP_FILE on
132208         HP-UX 10.20.
132209         From Bob Proulx.
132211 2000-07-02  Jim Meyering  <meyering@lucent.com>
132213         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
132215         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
132216         AC_LIBOBJ(function_name).
132217         * m4/chown.m4: Likewise.
132218         * m4/fnmatch.m4: Likewise.
132219         * m4/ftruncate.m4: Likewise.
132220         * m4/getgroups.m4: Likewise.
132221         * m4/getline.m4: Likewise.
132222         * m4/group-member.m4: Likewise.
132223         * m4/jm-macros.m4: Likewise.
132224         * m4/lstat.m4: Likewise.
132225         * m4/malloc.m4: Likewise.
132226         * m4/memcmp.m4: Likewise.
132227         * m4/nanosleep.m4: Likewise.
132228         * m4/putenv.m4: Likewise.
132229         * m4/realloc.m4: Likewise.
132230         * m4/regex.m4: Likewise.
132231         * m4/stat.m4: Likewise.
132232         * m4/strftime.m4: Likewise.
132234 2000-07-02  Jim Meyering  <meyering@lucent.com>
132236         * lib/quotearg.c (mbstate_t): Don't define here.
132238 2000-07-02  Jim Meyering  <meyering@lucent.com>
132240         * lib/nanosleep.c (SIGCONT): Define if not already defined.
132242 2000-07-01  Jim Meyering  <meyering@lucent.com>
132244         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
132246 2000-07-01  Jim Meyering  <meyering@lucent.com>
132248         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
132249         problem.
132251 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
132253         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
132254         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
132256 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
132258         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
132259         per change in ../m4/ls-mntd-fs.m4.
132260         (read_filesystem_list): Ignore symbolic links.
132262 2000-06-29  Jim Meyering  <meyering@lucent.com>
132264         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
132265         for declaration of strcmp.
132267         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
132269         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
132270         Avoid warning by casting result to `char *' to remove `const'.
132272 2000-06-28  Jim Meyering  <meyering@lucent.com>
132274         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
132275         included by quotearg.c, for which we perform this test.  From
132276         Bruno Haible.
132278 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
132280         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
132281         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
132282         <utmpx.h> exists, put readutmp.o into LIBOBJS.
132284 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
132286         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
132288 2000-06-26  Paul Eggert  <eggert@twinsun.com>
132290         savedir now sets errno on failure and invokes xmalloc to get memory.
132291         Fix a couple of other minor bugs while we're at it.
132293         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
132294         (NAMLEN): Remove macro.
132295         (malloc, realloc): Remove decls.
132296         (stpcpy): Likewise.
132297         ("xalloc.h"): Include.
132298         (NAME_SIZE_DEFAULT): New macro.
132299         (savedir): Use xmalloc / xrealloc to allocate memory.
132300         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
132301         Skip "" directory entries.
132302         Use strlen to calculate directory entry length, since the old method
132303         is rarely used these days and isn't worth supporting.
132304         Don't use a pointer after freeing it.
132305         Check for integer overflow when calculating allocation size.
132306         Use memcpy to copy entries, instead of stpcpy.
132307         Set errno properly when returning NULL.
132308         Check for readdir error.
132310 2000-06-26  Jim Meyering  <meyering@lucent.com>
132312         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
132314 2000-06-25  Jim Meyering  <meyering@lucent.com>
132316         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
132317         Linux header bug when _XOPEN_SOURCE is defined to 500.
132319 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
132321         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
132322         deficiency.
132324 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
132326         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
132327         Include xalloc.h.
132328         Don't include <stdlib.h>.  Don't declare malloc, realloc.
132330 2000-06-24  Jim Meyering  <meyering@lucent.com>
132332         * m4/strerror_r.m4: Revive this file -- to try out an experimental
132333         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
132334         for which strerror does return char*, but which lacks a conveniently
132335         accessible declaration of the function.  If the compile-test says
132336         strerror_r doesn't work, then resort to a `run'-test that works on
132337         BeOS and segfaults on DEC Unix.
132339 2000-06-24  Jim Meyering  <meyering@lucent.com>
132341         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
132343 2000-06-23  Paul Eggert  <eggert@twinsun.com>
132345         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
132346         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
132348 2000-06-23  Paul Eggert  <eggert@twinsun.com>
132350         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
132351         (mbrtowc, mbstate_t): Define substitutes if
132352         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
132353         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
132354         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
132356 2000-06-23  Jim Meyering  <meyering@lucent.com>
132358         * m4/afs.m4: Add missing AC_MSG_RESULT.
132359         Reported by Bruno Haible.
132361         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
132362         Suggestion from Bruno Haible.
132364 2000-06-23  Jim Meyering  <meyering@lucent.com>
132366         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
132368 2000-06-21  Jim Meyering  <meyering@lucent.com>
132370         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
132372 2000-06-21  Jim Meyering  <meyering@lucent.com>
132374         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
132375         (noinst_HEADERS): Add getstr.h.
132377         * lib/getline.c (getstr): Move into a separate file.
132378         * lib/getstr.c (getstr): New file, extracted from getline.c, with
132379         the following changes: new parameter, delim2; both delim[12]
132380         parameters have type `int', not `char'.  The latter would lose
132381         with 8-bit delimiters.
132382         * lib/getstr.h: New file.
132384 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
132386         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
132387         than 1024, return a memory chunk of least possible size, instead
132388         of size PATH_MAX + 2. In the loop, increment the size proportionally.
132389         Use free/xmalloc instead of xrealloc to avoid copying for very long
132390         paths.
132392 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
132394         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
132395         the empty string.
132397 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
132399         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
132400         address, not strdup.  Include <stdlib.h> and don't declare free().
132402 2000-06-19  Jim Meyering  <meyering@lucent.com>
132404         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
132406 2000-06-18  Jim Meyering  <meyering@lucent.com>
132408         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
132410         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
132411         `checking whether...' message to be consistent with that of the
132412         lstat test.
132414 2000-06-18  Jim Meyering  <meyering@lucent.com>
132416         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
132417         Besides, these days every porting target provides a mkdir function.
132419         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
132420         needed. (this snippet comes from src/system.h).
132422 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
132424         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
132426 2000-06-15  Paul Eggert  <eggert@twinsun.com>
132428         * lib/human.c (adjust_value): New function.
132429         (human_readable_inexact): Apply rounding style even when
132430         printing approximate values.
132432 2000-06-14  Paul Eggert  <eggert@twinsun.com>
132434         * lib/human.c (human_readable_inexact): Allow an input block
132435         size that is not a multiple of the output block size, and vice versa.
132436         Reported by Piergiorgio Sartor.
132438 2000-06-14  Paul Eggert  <eggert@twinsun.com>
132440         * lib/getdate.y (get_date): Apply relative times after time
132441         zone indicator, not before.  Reported by Todd A. Jacobs.
132443 2000-06-13  Jim Meyering  <meyering@lucent.com>
132445         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
132447         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
132449 2000-06-12  Paul Eggert  <eggert@twinsun.com>
132451         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
132453 2000-06-12  Jim Meyering  <meyering@lucent.com>
132455         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
132456         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
132457         optional argument.
132458         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
132459         the optional argument, `lib'.
132461 2000-06-08  Jim Meyering  <meyering@lucent.com>
132463         * m4/largefile.m4: Remove file (now that it's part of autoconf).
132465 2000-06-04  Paul Eggert  <eggert@twinsun.com>
132467         Rewrite largefile configuration so that we don't need to run
132468         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
132469         AC_CANONICAL_HOST in configure.in -- jmm]
132471         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
132472         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
132473         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
132474         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
132475         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
132476         All uses changed.
132477         Instead of inspecting the output of getconf, try to compile the
132478         test program without and with the macro definition.
132479         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
132480         for getconf.  Instead, check for the needed flags by compiling
132481         test programs.
132483 2000-06-04  Paul Eggert  <eggert@twinsun.com>
132485         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
132487 2000-06-04  Jim Meyering  <meyering@lucent.com>
132489         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
132490         SunOS 4.1.4 for which gid_t is an unsigned type.
132492 2000-06-03  Jim Meyering  <meyering@lucent.com>
132494         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
132495         now that autoconf requires that.
132497         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
132498         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
132499         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
132501 2000-06-03  Jim Meyering  <meyering@lucent.com>
132503         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
132505 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
132507         * m4/glibc21.m4: New file.
132508         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
132510 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
132512         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
132513         newer, don't install charset.alias.
132514         * lib/config.charset: Change the Linux/glibc rules so they become empty
132515         on glibc-2.1 or newer.
132517 2000-06-02  Jim Meyering  <meyering@lucent.com>
132519         * lib/mountlist.c: Back out last change.  Instead, do this...
132520         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
132521         me_dummy member using the same `ignore'-testing code.
132522         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
132523         fs_type strings.
132524         From Mark D. Roth.
132526 2000-05-29  Jim Meyering  <meyering@lucent.com>
132528         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
132529         mounts with the `ignore' attribute.  Based on a patch from
132530         Mark D. Roth.
132532 2000-05-28  Jim Meyering  <meyering@lucent.com>
132534         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
132535         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
132536         * m4/stat.m4: Likewise.
132537         * m4/lstat.m4: Likewise.
132538         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
132540         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
132541         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
132543 2000-05-26  Jim Meyering  <meyering@lucent.com>
132545         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
132547 2000-05-24  Jim Meyering  <meyering@lucent.com>
132549         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
132550         autoconf requires that.
132551         * m4/lib-check.m4: Likewise.
132552         * m4/jm-macros.m4: Likewise.
132553         * m4/strftime.m4: Likewise.
132555         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
132556         AC_CHECK_DECLS, now that autoconf requires that.
132558 2000-05-22  Jim Meyering  <meyering@lucent.com>
132560         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
132561         * m4/lstat.m4: Likewise.
132563 2000-05-22  Jim Meyering  <meyering@lucent.com>
132565         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
132567 2000-05-20  Jim Meyering  <meyering@lucent.com>
132569         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
132570         (jm_PREREQ): Use it.
132572 2000-05-18  Jim Meyering  <meyering@lucent.com>
132574         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
132575         back, too, since it may have been modified by allocate_entry.
132576         (hash_delete): Rewrite to use neither the assignment operator
132577         nor the comma operator in an if-expression.
132579 2000-05-15  Paul Eggert  <eggert@twinsun.com>
132581         * lib/closeout.c:
132582         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
132583         Remove; no longer needed.
132584         "quotearg.h": Add include.
132585         (file_name): Do not bother to explicitly initialize to NULL; it's less
132586         efficient on some hosts.
132587         (close_stdout_status): Remove test as to whether stdout was already
132588         closed; it breaks for the case "echo x | sort >&-".
132589         Quote file name colons.
132590         Do not assume that _("write error") lacks format strings.
132592 2000-05-15  Jim Meyering  <meyering@lucent.com>
132594         * lib/version-etc.c (version_etc_copyright): Update the copyright
132595         string used in all --version output.
132597 2000-05-14  Jim Meyering  <meyering@lucent.com>
132599         * lib/closeout.c (close_stdout_set_file_name): New function.
132600         (close_stdout_status): Use new file-scoped global.
132601         Return right away if fstat says the stdout file descriptor is invalid.
132602         * lib/closeout.h (close_stdout_set_file_name): Declare.
132604 2000-05-10  Jim Meyering  <meyering@lucent.com>
132606         * lib/closeout.c [default_exit_status]: New file-scoped variable.
132607         (close_stdout_set_status): New function.
132608         * lib/closeout.h (close_stdout_set_status): Declare.
132610 2000-05-09  Jim Meyering  <meyering@lucent.com>
132612         * m4/gettext.m4: Rename this...
132613         * m4/libintl.m4: ...to this.
132615 2000-05-08  Jim Meyering  <meyering@lucent.com>
132617         * lib/long-options.c: Don't include closeout.h.
132618         (parse_long_options): Don't call close_stdout for --version.
132620 2000-05-06  Paul Eggert  <eggert@twinsun.com>
132622         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
132623         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
132624         2.1.3 bug.  This avoids a clash when files like regex.c define
132625         _GNU_SOURCE.
132627 2000-05-06  Jim Meyering  <meyering@lucent.com>
132629         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
132630         (AC_REPLACE_FUNCS): Add strnlen.
132632         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
132633         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
132635         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
132636         AC_SEARCH_LIBS call for nanosleep.
132637         (LIB_NANOSLEEP): Set and AC_SUBST.
132639 2000-05-06  Jim Meyering  <meyering@lucent.com>
132641         * lib/strnlen.c: Undefine __strnlen and strnlen.
132642         [!weak_alias]: Define __strnlen to strnlen.
132644         * lib/atexit.c: New file, from libiberty.
132646 2000-05-06  Jim Meyering  <meyering@lucent.com>
132648         * lib/closeout.c (close_stdout_status): Also check for errors on the
132649         stderr stream.
132651 2000-05-05  Jim Meyering  <meyering@lucent.com>
132653         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
132654         AC_SEARCH_LIBS call for clock_gettime.
132655         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
132657         * m4/search-libs.m4: Update from autoconf.
132659         su doesn't work on Solaris 2.6.
132660         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
132661         <shadow.h>.  Reported by Dragos Harabor.
132663 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
132665         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
132666         memcpy instead of xmalloc, xrealloc, path_concat.
132667         (locale_charset): Treat empty environment variables as absent.
132668         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
132670 2000-05-04  Jim Meyering  <meyering@lucent.com>
132672         * lib/getopt.c: Update from glibc.
132673         * lib/obstack.c: Likewise.
132674         * lib/obstack.h: Likewise.
132675         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
132676         file
132678         * lib/regex.h: Likewise.
132679         * lib/strndup.c: Likewise.
132680         * lib/strnlen.c: New file, from glibc.
132682 2000-05-03  Jim Meyering  <meyering@lucent.com>
132684         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
132686 2000-05-02  Paul Eggert  <eggert@twinsun.com>
132688         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
132689         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
132690         compile-time test, rather than inspecting host and OS, to
132691         decide whether to define _LARGEFILE_SOURCE.
132693 2000-05-01  Jim Meyering  <meyering@lucent.com>
132695         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
132697         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
132698         Based on a patch from Bruno Haible.
132700 2000-05-01  Jim Meyering  <meyering@lucent.com>
132702         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
132704 2000-04-29  Jim Meyering  <meyering@lucent.com>
132706         * lib/path-concat.c: Declare strdup only if it's not defined.
132707         * lib/canon-host.c: Likewise.
132709 2000-04-28  Jim Meyering  <meyering@lucent.com>
132711         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
132712         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
132713         is included first, then limits.h is included by locale.h by libintl.h.
132714         From John David Anglin.
132716 2000-04-25  Jim Meyering  <meyering@lucent.com>
132718         * lib/makepath.c (S_IRWXUGO): Define.
132719         (make_path): Always perform explicit chmod if MODE specifies any
132720         of the `special' permission bits.  Prompted by a bug report against
132721         install from Mate Wierdl and Joost van Baal.
132723 2000-04-18  Jim Meyering  <meyering@lucent.com>
132725         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
132726         (jm_PREREQ): Use it.
132728 2000-04-18  Jim Meyering  <meyering@lucent.com>
132730         * lib/README: New file.
132732         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
132733         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
132735 2000-04-17  Jim Meyering  <meyering@lucent.com>
132737         Get it right :-)
132738         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
132739         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
132740         Suggestion from Akim Demaille.
132742 2000-04-17  Jim Meyering  <meyering@lucent.com>
132744         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
132745         the definition of it to rpl_strftime also defined-away the system's
132746         declaration.
132748 2000-04-15  Jim Meyering  <meyering@lucent.com>
132750         Use `C' to denote so-called `contiguous' files, the same way
132751         that tar does.
132752         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
132753         (ftypelet): Use S_ISCTG.
132754         From Michael Deutschmann.
132756 2000-04-14  Jim Meyering  <meyering@lucent.com>
132758         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
132759         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
132760         clobbered.
132762 2000-04-14  Jim Meyering  <meyering@lucent.com>
132764         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
132766 2000-04-13  Jim Meyering  <meyering@lucent.com>
132768         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
132769         AH_VERBATIM to insert required #ifndef into config.h.in.
132770         Suggestion from Akim Demaille.
132772 2000-04-12  Jim Meyering  <meyering@lucent.com>
132774         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
132775         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
132776         Christian Krackowizer.
132778         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
132779         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
132780         (AC_SYS_LARGEFILE): Require.
132781         (AM_C_PROTOTYPES): Require.
132783 2000-04-08  Jim Meyering  <meyering@lucent.com>
132785         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
132786         names don't conflict.  Reported by Eli Zaretskii.
132788 2000-04-07  Jim Meyering  <meyering@lucent.com>
132790         * lib/putenv.c: Move inclusion of errno.h so it follows that of
132791         sys/types.h, to work around system header problems on AIX 3.2.5.
132792         From Bruno Haible.
132794 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
132796         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
132797         bug.  Deal with the different error behavior of Irix iconv.
132799 2000-04-05  Paul Eggert  <eggert@twinsun.com>
132801         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
132802         IRIX if the installer said otherwise.
132804 2000-04-05  Jim Meyering  <meyering@lucent.com>
132806         Portability tweaks required for ultrix4.3.
132807         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
132808         (jm_CHECK_DECLS): Add getutent to the list of functions.
132809         (_jm_DECL_HEADERS): Add utmpx.h.
132810         From John David Anglin.
132812         * m4/strftime.m4: Back out the 2000-04-02 change.
132813         Instead of that change, simply undefine putenv in the test program.
132815 2000-04-05  Jim Meyering  <meyering@lucent.com>
132817         Portability tweaks required for ultrix4.3.
132818         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
132819         getutent.
132820         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
132821         * lib/canon-host.c: Declare strdup.
132822         * lib/path-concat.c: Likewise.
132823         From John David Anglin.
132825 2000-04-04  Jim Meyering  <meyering@lucent.com>
132827         Be more DOS 8.3-friendly.
132828         * lib/ref-add.sin: Renamed from ref-add.sed.in.
132829         * lib/ref-del.sin: Renamed from ref-del.sed.in.
132830         * lib/Makefile.am: Reflect renaming.
132831         Reported by Eli Zaretskii.
132833         Use a temporary file name that won't clash with `charset.alias'
132834         in the DOS 8.3 name space.
132835         * lib/Makefile.am (charset_tmp): Define.
132836         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
132837         (uninstall-local): Likewise.
132838         Reported by Eli Zaretskii.
132840 2000-04-03  Jim Meyering  <meyering@lucent.com>
132842         * m4/gettext.m4: Fix typo in comment.
132844         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
132845         textutils/configure.in).  Suggestion from Paul Eggert.
132846         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
132848 2000-04-02  Paul Eggert  <eggert@twinsun.com>
132850         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
132851         variable in the shell rather than using putenv, which isn't
132852         portable.  This avoids the configure-time inter-test dependency
132853         on the potentially-renamed putenv function.
132855 2000-03-30  Paul Eggert  <eggert@twinsun.com>
132857         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
132858         before checking struct stat.st_blksize, so that
132859         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
132861 2000-03-29  Paul Eggert  <eggert@twinsun.com>
132863         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
132864         since strftime.c uses HAVE_STRFTIME to decide whether to use
132865         the underlying strftime.
132867 2000-03-29  Paul Eggert  <eggert@twinsun.com>
132869         * lib/time/strftime.c (my_strftime): Make sure we call the system
132870         strftime, not ourselves, when invoking the underlying strftime.
132872 2000-03-24  Jim Meyering  <meyering@lucent.com>
132874         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
132875         (charset_alias): Define.
132876         (install-exec-local): Factor out common code.
132877         (uninstall-local): Split lines longer than 80.
132878         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
132879         (SUFFIXES): Define.
132880         (.sed.in.sed): New rule.  Don't redirect directly to $@.
132881         (CLEANFILES): Add ref-add.sed and ref-del.sed.
132883 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
132885         * lib/config.charset: Output a line containing "Packages using this
132886         file".
132887         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
132888         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
132889         ref-del.sed): New rules.
132891 2000-03-17  Jim Meyering  <meyering@lucent.com>
132893         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
132894         Otherwise, include <strings.h>
132896 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
132898         * lib/unicodeio.c (utf8_wctomb): New function.
132899         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
132900         format instead of in UCS-4 with platform dependent endianness.
132902 2000-03-10  Jim Meyering  <meyering@lucent.com>
132904         * m4/lib-check.m4: Look for getspnam in -lgen, too.
132905         From Marco Franzen.
132907 2000-03-07  Paul Eggert  <eggert@twinsun.com>
132909         * lib/savedir.c (savedir): Work even if directory size is
132910         negative; this can happen with some screwy NFS configurations.
132912 2000-03-06  Jim Meyering  <meyering@lucent.com>
132914         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
132915         if it's NULL (because we ran out of memory).  From Bruno Haible.
132917 2000-03-05  Jim Meyering  <meyering@lucent.com>
132919         * lib/localcharset.c ("path-concat.h"): Include.
132920         (get_charset_aliases): Use path_concat instead of ANSI string
132921         concatenation.
132923         * lib/unicodeio.h (PARAMS): Define.
132924         Use it to guard prototype.
132926 2000-03-04  Jim Meyering  <meyering@lucent.com>
132928         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
132929         for lib/localcharset.c.
132931 2000-03-04  Jim Meyering  <meyering@lucent.com>
132933         * lib/Makefile.am (install-exec-local): Create $(libdir) before
132934         installing into it.
132935         (uninstall-local): Uncomment this rule so `make distcheck' works
132936         once again.
132938         * lib/unicodeio.c (<errno.h>): Include it.
132939         (errno): Declare if not defined.
132941         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
132943         * lib/config.charset: New version, incorporating remarks from a linux
132944         i18n mailing list.  From Bruno Haible.
132946 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
132948         * m4/codeset.m4: New file.
132949         * m4/iconv.m4: New file.
132950         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
132952 2000-03-03  Jim Meyering  <meyering@lucent.com>
132954         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
132956 2000-03-02  Jim Meyering  <meyering@lucent.com>
132958         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
132959         the messages come out on separate lines.
132961         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
132962         rather than jm_CHECK_DECLARATIONS.
132963         * m4/decl.m4: Remove now-unused file.
132965         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
132966         geteuid.
132968 2000-03-02  Jim Meyering  <meyering@lucent.com>
132970         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
132972 2000-03-01  Jim Meyering  <meyering@lucent.com>
132974         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
132975         * lib/unicodeio.c: Likewise.
132977 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
132979         * lib/config.charset: New file.
132980         * lib/localcharset.c: New file.
132981         * lib/unicodeio.h, lib/unicodeio.c: New files.
132982         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
132983         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
132984         (noinst_HEADERS): Add unicodeio.h.
132985         (all-local, install-exec-local, charset.alias): New targets.
132987 2000-02-28  Paul Eggert  <eggert@twinsun.com>
132989         * lib/quotearg.c (ALERT_CHAR): New macro.
132990         (quotearg_buffer_restyled): Use it.
132992 2000-02-27  Jim Meyering  <meyering@lucent.com>
132994         * m4/check-decl.m4: Add getenv to the list.
132996 2000-02-27  Jim Meyering  <meyering@lucent.com>
132998         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
132999         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
133001         * lib/backupfile.c: Guard inclusion of stdlib.h with
133002         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
133003         Declare malloc if needed.
133005         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
133006         `#ifndef HAVE_DECL..'
133007         now that autoconf always defines the HAVE_DECL_ symbols.
133008         * lib/human.c: Likewise.
133009         * lib/same.c: Likewise.
133010         * lib/strtoumax.c: Likewise.
133012         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
133013         declaration check was not run.
133014         * lib/hash.c: Likewise.
133015         * lib/human.c: Likewise.
133016         * lib/same.c: Likewise.
133017         * lib/strtoumax.c: Likewise.
133019         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
133020         `.', then first look up the entire `.'-containing string as a login
133021         name.
133023 2000-02-23  Jim Meyering  <meyering@lucent.com>
133025         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
133026         in place of my hack.
133028 2000-02-18  Paul Eggert  <eggert@twinsun.com>
133030         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
133031         (textint): New typedef.
133032         (parser_control): Member year changed from int to textint.
133033         All uses changed.
133034         (YYSTYPE): Removed; replaced by %union with int and textint members.
133035         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
133036         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
133037         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
133038         (tSNUMBER, tUNUMBER): Now of type <textintval>.
133039         (date, number, to_year): Use width of number in digits, not its value,
133040         to determine whether it's a 2-digit year, or a 2-digit time.
133041         (yylex): Store number of digits of numeric tokens.
133042         Reported by John Kendall.
133044         (parser_control): Changed from struct parser_control to typedef (for
133045         consistency).  All uses changed.
133047         (tID): Removed; not used.
133048         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
133050 2000-02-14  Paul Eggert  <eggert@twinsun.com>
133052         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
133053         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
133055 2000-02-12  Jim Meyering  <meyering@lucent.com>
133057         * lib/userspec.c (ISDIGIT): Define it.
133058         (isdigit): Remove definition.
133059         (is_number): Use ISDIGIT, not isdigit.
133060         <libintl.h>: Include.
133061         (_ and N_): Define.
133062         (parse_user_spec): Mark translatable strings.
133064 2000-02-10  Jim Meyering  <meyering@lucent.com>
133066         With these changes, nanosleep.[ch] are finally enough like the other
133067         lib/* replacement files to compile on a few more losing systems.
133069         * lib/nanosleep.h: Don't include config.h.
133070         Remove prototype from declaration of nanosleep.
133071         (PARAMS): Remove now-unneeded definition.
133072         * lib/nanosleep.c: #undef nanosleep.
133073         (rpl_nanosleep): Rename from nanosleep.
133075 2000-02-10  Jim Meyering  <meyering@lucent.com>
133077         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
133078         gnu_nanosleep to rpl_nanosleep.
133080 2000-02-09  Jim Meyering  <meyering@lucent.com>
133082         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
133083         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
133085 2000-02-08  Akim Demaille  <akim@epita.fr>
133087         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
133088         `[' and `]' and remove uses of `changequote'.
133089         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
133090         (AC_SYS_LARGEFILE): Likewise.
133091         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
133092         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
133093         of changequote.
133094         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
133095         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
133096         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
133097         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
133099 2000-02-05  Jim Meyering  <meyering@lucent.com>
133101         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
133102         Remove explicit use of AC_HEADER_TIME.  It is required by
133103         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
133104         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
133105         in autoconf whereby the expansion of the latter ended up preceding
133106         the expansion of its prerequisite, AC_HEADER_TIME.
133107         Reported by Volker Borchert.
133109 2000-02-03  Jim Meyering  <meyering@lucent.com>
133111         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
133113 2000-02-03  Jim Meyering  <meyering@lucent.com>
133115         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
133116         rather than with `#if HAVE_UTMPNAME'.
133118 2000-02-02  Jim Meyering  <meyering@lucent.com>
133120         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
133121         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
133122         Reported by Eli Zaretskii.
133124 2000-02-01  Jim Meyering  <meyering@lucent.com>
133126         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
133128 2000-01-31  Jim Meyering  <meyering@lucent.com>
133130         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
133131         functions.  Add the time.h and sys/time.h headers along with the
133132         AC_REQUIRE'ment of AC_HEADER_TIME.
133134 2000-01-31  Jim Meyering  <meyering@lucent.com>
133136         * lib/nanosleep.h (nanosleep): Guard declaration with
133137         `#if ! HAVE_DECL_NANOSLEEP'.
133138         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
133139         the declaration in that vendor's sys/timers.h.
133140         Reported by Christian Krackowizer.
133142         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
133143         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
133144         (ISPRINT): Likewise.
133145         Reported by Tom Tromey.
133147 2000-01-30  Jim Meyering  <meyering@lucent.com>
133149         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
133151         * m4/prereq.m4 (utmp_includes): Define.
133152         Check for ut_user and ut_name members in both struct utmpx
133153         and struct utmp.
133155 2000-01-30  Jim Meyering  <meyering@lucent.com>
133157         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
133158         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
133159         header files where only utmpx.ut_user is declared.
133161         * lib/readutmp.h (UT_USER): Define.
133163 2000-01-29  Jim Meyering  <meyering@lucent.com>
133165         * m4/lib-check.m4: New file containing library-related checks from
133166         fileutils and sh-utils (textutils had none).
133168 2000-01-28  Jim Meyering  <meyering@lucent.com>
133170         * m4/perl.m4: Change format of warning message to look more like that
133171         from the missing script.  Suggestion from François Pinard.
133173 2000-01-25  Jim Meyering  <meyering@lucent.com>
133175         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
133176         well as time.h in the compile check.
133177         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
133178         Fix typo in cross-compiling case: s/yes/no/.
133180 2000-01-23  Jim Meyering  <meyering@lucent.com>
133182         * m4/jm-macros.m4: Move df-related tests here from
133183         fileutils/configure.in
133185         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
133186         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
133188         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
133189         s/space/ac_fsusage_space/.
133190         (jm_FILE_SYSTEM_USAGE): Take two parameters.
133192         * m4/ftruncate.m4: New file (derived from part of
133193         fileutils/configure.in).
133194         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
133195         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
133197         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
133198         AC_SUBST these here, rather than just in sh-util/configure.in, so
133199         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
133200         all the same.
133201         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
133202         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
133203         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
133204         (AC_SUBST(POW_LIBM)): Likewise.
133205         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
133207 2000-01-23  Jim Meyering  <meyering@lucent.com>
133209         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
133210         obstack.c.
133212 2000-01-22  Jim Meyering  <meyering@lucent.com>
133214         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
133216         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
133218         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
133219         configure.in
133220         (AC_CHECK_HEADERS): Likewise for sh-utils.
133221         (AC_CHECK_HEADERS): Likewise for textutils.
133222         Merge the three lists of headers.
133224         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
133225         from fileutils' configure.in.
133227         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
133228         code. Moved tests into their own function (_jm_DECL_HEADERS) in
133229         check-decl.m4.
133231         * m4/check-decl.m4: Use #if rather than #ifdef.
133232         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
133233         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
133234         (_jm_DECL_HEADERS): Define new function.
133235         (jm_CHECK_DECLARATIONS): Require it.
133237 2000-01-22  Jim Meyering  <meyering@lucent.com>
133239         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
133240         [! HAVE_DECL_STRTOULL]: Declare strtoull.
133241         Required for some AIX systems.  Reported by Christian Krackowizer.
133242         [TESTING] (main): New function.
133244         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
133245         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
133246         letters.
133248         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
133249         iswprint.
133251         * lib/strverscmp.c (ISDIGIT): Define.
133252         (strverscmp): Use ISDIGIT, not isdigit.
133254 2000-01-19  Jim Meyering  <meyering@lucent.com>
133256         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
133257         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
133258         defines `struct timespec' in <sys/time.h>
133260         * m4/c-bs-a.m4: Remove uses of changequote altogether.
133261         Thanks to Akim for explaining.
133263 2000-01-17  Paul Eggert  <eggert@twinsun.com>
133265         * lib/nanosleep.c (nanosleep):
133266         Don't use SA_INTERRUPT to decide whether to call sigaction, as
133267         POSIX.1 doesn't require SA_INTERRUPT and some systems
133268         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
133269         it's been part of POSIX.1 since day 1 (in 1988).
133271 2000-01-17  Jim Meyering  <meyering@lucent.com>
133273         * lib/interlock: Remove unused file.  Reported by François Pinard.
133275 2000-01-16  Paul Eggert  <eggert@twinsun.com>
133277         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
133278         alert, backslash, formfeed, and vertical tab unnecessarily in
133279         shell quoting style.
133281 2000-01-16  Jim Meyering  <meyering@lucent.com>
133283         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
133284         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
133285         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
133286         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
133288 2000-01-16  Jim Meyering  <meyering@lucent.com>
133290         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
133291         because the latter didn't work.
133293 2000-01-15  Jim Meyering  <meyering@lucent.com>
133295         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
133296         (AC_REPLACE_FUNCS): Add memcpy and memset.
133297         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
133298         Add strpbrk.
133299         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
133301 2000-01-12  Jim Meyering  <meyering@lucent.com>
133303         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
133304         (jm_PREREQ): Use it.
133305         (jm_PREREQ_READUTMP): New macro.
133306         (jm_PREREQ): Use it.
133308 2000-01-11  Paul Eggert  <eggert@twinsun.com>
133310         Quote multibyte characters correctly.
133311         * m4/c-bs-a.m4: New file.
133312         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
133313         (jm_PREREQ): Use it.
133315 2000-01-11  Paul Eggert  <eggert@twinsun.com>
133317         * m4/uintmax_t.m4: Port to autoconf 2.13.
133319 2000-01-08  Jim Meyering  <meyering@ascend.com>
133321         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
133322         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
133324 2000-01-04  Jim Meyering  <meyering@ascend.com>
133326         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
133327         jm_STRUCT_DIRENT_D_TYPE.
133328         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
133329         jm_STRUCT_DIRENT_D_INO.
133330         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
133331         jm_STRUCT_UTIMBUF.
133332         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
133333         renamings.
133334         * m4/utime.m4: Likewise.
133336         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
133337         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
133339 2000-01-03  Paul Eggert  <eggert@twinsun.com>
133341         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
133342         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
133344 2000-01-02  Jim Meyering  <meyering@ascend.com>
133346         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
133347         remember if this is necessary.
133349 1999-12-26  Jim Meyering  <meyering@ascend.com>
133351         * m4/jm-macros.m4: Use it here.
133352         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
133354 1999-12-23  Jim Meyering  <meyering@ascend.com>
133356         * m4/jm-macros.m4: Check for clock_gettime (moved from
133357         fileutils/configure.in)
133358         Check for gettimeofday.
133360 1999-12-20  Jim Meyering  <meyering@ascend.com>
133362         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
133363         autoconf-2.14a-1999-12-20.
133365 1999-12-19  Jim Meyering  <meyering@ascend.com>
133367         * m4/lstat-slash.m4: New file.
133368         * m4/jm-macros.m4: Use the new macro:
133369         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
133371 1999-12-07  Jim Meyering  <meyering@ascend.com>
133373         * m4/perl.m4: Require that File::Compare be available, too.
133374         Too many systems seem to lack it.
133376         * m4/strftime.m4: Add checks for most of the cpp macros tested in
133377         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
133379 1999-11-18  Paul Eggert  <eggert@twinsun.com>
133381         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
133382         problem with the QNX 4.25 shell, which doesn't propagate exit
133383         status of failed commands inside shell assignments.
133385 1999-11-17  Jim Meyering  <meyering@ascend.com>
133387         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
133389 1999-11-07  Jim Meyering  <meyering@ascend.com>
133391         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
133393 1999-11-06  Jim Meyering  <meyering@ascend.com>
133395         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
133396         * m4/jm-macros.m4 (jm_MACROS): Use it here.
133398 1999-11-05  Jim Meyering  <meyering@ascend.com>
133400         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
133401         configure.in of textutils, fileutils, and sh-utils into this one
133402         (shared between those packages) file.
133403         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
133404         AC_STRUCT_ST_BLKSIZE.
133406 1999-11-03  Jim Meyering  <meyering@ascend.com>
133408         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
133409         of AC_CHECK_TYPE checks includes unistd.h.
133410         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
133411         Suggestion from Akim Demaille.
133413 1999-10-30  Jim Meyering  <meyering@ascend.com>
133415         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
133416         m4-quoted string.
133417         * m4/ls-mntd-fs.m4: Likewise.
133418         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
133419         * m4/jm-winsz1.m4: Likewise.
133421         * m4/const.m4: Remove file, since the fix made it into the experimental
133422         version of autoconf.
133423         * m4/mktime.m4: Likewise.
133425         * m4/check-type.m4: Remove file, now that the latest version of
133426         AC_CHECK_TYPE takes a third arg to specify additional #includes.
133428         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
133429         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
133430         AC_CHECK_TYPE.
133432 1999-10-04  Jim Meyering  <meyering@ascend.com>
133434         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
133436 1999-09-22  Paul Eggert  <eggert@twinsun.com>
133438         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
133439         2.95.1 bug with HP-UX 10.20.
133441 1999-09-17  Jim Meyering  <meyering@ascend.com>
133443         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
133444         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
133445         due to missing strdup (against sh-utils-2.0).
133447 1999-08-29  Jim Meyering  <meyering@ascend.com>
133449         * m4/jm-macros.m4: Require jm_BISON.
133450         * m4/bison.m4: New file.
133452 1999-08-17  Paul Eggert  <eggert@twinsun.com>
133454         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
133455         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
133457 1999-08-05  Jim Meyering  <meyering@ascend.com>
133459         * m4/getline.m4: Rename test file from conftestdata to conftest.data
133460         to avoid conflicts with `conftest' on 8+3 filesystems.
133461         Suggestion from Eli Zaretskii.
133463 1999-08-04  Jim Meyering  <meyering@ascend.com>
133465         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
133466         fileutils and sh-utils (textutils's getline test was inadequate).
133467         (AM_FUNC_GETLINE): Run this test.
133468         (AC_CHECK_FUNCS): Check for getdelim.
133469         Reported by Bob Proulx.
133471 1999-08-02  Jim Meyering  <meyering@ascend.com>
133473         * m4/jm-macros.m4: Add a comment.
133475 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133477         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
133478         <inttypes.h> defines strtoumax as a macro (and not as a
133479         function).
133481 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133483         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
133484         that we can shift, multiply and divide unsigned long long
133485         values; Ultrix cc can't do it.
133487 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133489         * m4/mktime.m4: New file, which is a preview of what should appear
133490         in the next public autoconf release.
133492 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133494         * m4/lfs.m4: Remove this file.
133495         * m4/largefile.m4: New file.  It contains the old contents of
133496         lfs.m4, except that all names with prefix AC_LFS have been
133497         changed to use the prefix AC_SYS_LARGEFILE instead, to be
133498         compatible with future autoconf versions.  Also, some minor m4
133499         quoting problems have been fixed.
133501 1999-08-01  Paul Eggert  <eggert@twinsun.com>
133503         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
133504         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
133505         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
133506         and simplify the shell code.
133508 1999-08-01  Jim Meyering  <meyering@ascend.com>
133510         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
133511         m4.
133513 1999-07-20  Jim Meyering  <meyering@ascend.com>
133515         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
133517 1999-07-15  Jim Meyering  <meyering@ascend.com>
133519         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
133521 1999-05-22  Jim Meyering  <meyering@ascend.com>
133523         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
133525 1999-05-20  Jim Meyering  <meyering@ascend.com>
133527         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
133528         Add a colon after each `then' in case $4 is empty.
133530 1999-05-16  Jim Meyering  <meyering@ascend.com>
133532         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
133534 1999-05-10  Jim Meyering  <meyering@ascend.com>
133536         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
133538         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
133539         AC_FUNC_MKTIME.
133541 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
133543         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
133545 1999-05-04  Paul Eggert  <eggert@twinsun.com>
133547         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
133548         not CPPFLAGS, so that linking works correctly in IRIX.
133550 1999-04-30  Paul Eggert  <eggert@twinsun.com>
133552         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
133554 1999-04-20  Paul Eggert  <eggert@twinsun.com>
133556         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
133557         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
133558         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
133559         jm_AC_TYPE_UNSIGNED_LONG_LONG.
133560         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
133562         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
133564 1999-04-20  Jim Meyering  <meyering@ascend.com>
133566         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
133567         AC_REPLACE xstroull if necessary.  From Paul Eggert.
133568         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
133570 1999-04-18  Jim Meyering  <meyering@ascend.com>
133572         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
133573         * m4/jm-macros.m4: Use it.
133575 1999-04-06  Jim Meyering  <meyering@ascend.com>
133577         * m4/strftime.m4: Remove test for %f.
133579 1999-03-29  Jim Meyering  <meyering@ascend.com>
133581         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
133582         superset of the AC_TYPE_* checks in the textutils, fileutils,
133583         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
133584         AC_TYPE_PID_T.
133586 1999-03-28  Jim Meyering  <meyering@ascend.com>
133588         * m4/jm-macros.m4: Define GNU_PACKAGE here.
133589         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
133590         replaced e.g., in the *.sh files of the sh-utils.
133592 1999-03-20  Jim Meyering  <meyering@ascend.com>
133594         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
133595         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
133596         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
133598 1999-03-19  Jim Meyering  <meyering@ascend.com>
133600         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
133602 1999-03-12  Jim Meyering  <meyering@ascend.com>
133604         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
133606 1999-03-07  Jim Meyering  <meyering@ascend.com>
133608         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
133609         declared.
133611 1999-02-17  Jim Meyering  <meyering@ascend.com>
133613         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
133614         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
133616 1999-02-07  Jim Meyering  <meyering@ascend.com>
133618         * m4/group-member.m4: New file -- extracted from sh-utils'
133619         configure.in.
133621         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
133622         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
133624 1999-02-06  Jim Meyering  <meyering@ascend.com>
133626         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
133627         * m4/fnmatch.m4: Likewise.
133628         * m4/getgroups.m4: Likewise.
133629         * m4/lstat.m4: Likewise.
133630         * m4/malloc.m4: Likewise.
133631         * m4/putenv.m4: Likewise.
133632         * m4/realloc.m4: Likewise.
133633         * m4/regex.m4: Likewise.
133634         * m4/stat.m4: Likewise.
133635         * m4/strftime.m4: Likewise.
133636         Suggestion from Alain Magloire.
133638         * m4/chown.m4: Use `.$ac_objext', not `.o'.
133639         * m4/fnmatch.m4: Likewise.
133640         * m4/getgroups.m4: Likewise.
133641         * m4/getline.m4: Likewise.
133642         * m4/lstat.m4: Likewise.
133643         * m4/malloc.m4: Likewise.
133644         * m4/memcmp.m4: Likewise.
133645         * m4/putenv.m4: Likewise.
133646         * m4/realloc.m4: Likewise.
133647         * m4/regex.m4: Likewise.
133648         * m4/stat.m4: Likewise.
133649         * m4/strftime.m4: Likewise.
133650         Suggestion from Alain Magloire.
133652         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
133653         an argument.
133655         * m4/regex.m4: Add a run-time Test for proper operation of
133656         re_compile_pattern.
133658 1999-01-31  Jim Meyering  <meyering@ascend.com>
133660         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
133662 1999-01-30  Jim Meyering  <meyering@ascend.com>
133664         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
133666         * m4/jm-mktime.m4: Make this a wrapper around the official
133667         AM_FUNC_MKTIME rather than my private copy, now that the official one
133668         is up to date.
133669         * m4/mktime.m4: Remove file.
133671         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
133672         * m4/uptime.m4: Likewise.
133673         * m4/uintmax_t.m4: Likewise.
133675 1999-01-28  Jim Meyering  <meyering@ascend.com>
133677         * m4/jm-macros.m4: Use jm_AFS.
133678         * m4/afs.m4: New file (from fileutils' configure.in).
133680         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
133681         * m4/chown.m4: Likewise.
133682         * m4/d-ino.m4: Likewise.
133683         * m4/d-type.m4: Likewise.
133684         * m4/fnmatch.m4: Likewise.
133685         * m4/getgroups.m4: Likewise.
133686         * m4/gettext.m4: Likewise.
133687         * m4/jm-mktime.m4: Likewise.
133688         * m4/jm-winsz2.m4: Likewise.
133689         * m4/lcmessage.m4: Likewise.
133690         * m4/ls-mntd-fs.m4: Likewise.
133691         * m4/malloc.m4: Likewise.
133692         * m4/memcmp.m4: Likewise.
133693         * m4/putenv.m4: Likewise.
133694         * m4/realloc.m4: Likewise.
133695         * m4/st_mtim.m4: Likewise.
133696         * m4/strftime.m4: Likewise.
133698 1999-01-16  Jim Meyering  <meyering@ascend.com>
133700         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
133701         (ARGMATCH_DIE_DECL): Define.
133703 1999-01-12  Jim Meyering  <meyering@ascend.com>
133705         * m4/Makefile.am.in: Rewrite to avoid using fmt.
133706         Reported by Lars Hecking.
133708 1999-01-10  Jim Meyering  <meyering@ascend.com>
133710         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
133711         gross kludge.
133712         * m4/inttypes_h.m4: Likewise.
133713         * m4/lstat.m4: Likewise.
133714         * m4/malloc.m4: Likewise.
133715         * m4/readdir.m4: Likewise.
133716         * m4/realloc.m4: Likewise.
133717         * m4/st_dm_mode.m4: Likewise.
133718         * m4/stat.m4: Likewise.
133719         * m4/utimbuf.m4: Likewise.
133720         * m4/utimes.m4: Likewise.
133722         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
133723         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
133724         comments in config.h.in are meaningful.
133726         * m4/jm-macros.m4: Require autoconf-2.13 here.
133728         * m4/regex.m4: By default, don't use the included regex.c on systems
133729         with glibc 2.  Suggestion from Uli Drepper.
133731 1999-01-02  Jim Meyering  <meyering@ascend.com>
133733         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
133735 1998-12-18  Jim Meyering  <meyering@ascend.com>
133737         * m4/Makefile.am.in (Makefile.am): Simplify rule.
133738         Based on a suggestion from Lars Hecking.
133740 1998-11-16  Paul Eggert  <eggert@twinsun.com>
133742         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
133744 1998-11-16  Jim Meyering  <meyering@ascend.com>
133746         * m4/lfs.m4: Double-quote the `uname...` expression.
133748 1998-11-14  Jim Meyering  <meyering@ascend.com>
133750         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
133751         * m4/stat.m4: Likewise.
133753 1998-11-03  Jim Meyering  <meyering@ascend.com>
133755         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
133756         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
133758 1998-10-18  Jim Meyering  <meyering@ascend.com>
133760         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
133762 1998-10-17  Jim Meyering  <meyering@ascend.com>
133764         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
133765         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
133766         calls for those previously hard-coded headers.  Instead, take a new
133767         parameter.
133768         (jm_CHECK_DECLARATIONS): Reflect interface change.
133769         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
133770         (jm_CHECK_DECL_LOCALTIME_R): New macro.
133772         * m4/mktime.m4: Test for spring-forward gap before long-running test.
133774 1998-10-14  Jim Meyering  <meyering@ascend.com>
133776         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
133777         instead of "TZ=America/Vancouver".  From Paul Eggert.
133779 1998-10-11  Jim Meyering  <meyering@ascend.com>
133781         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
133782         This adds a test for a recently added compatibility fix for mktime.c.
133783         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
133785 1998-09-27  Jim Meyering  <meyering@ascend.com>
133787         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
133789         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
133790         ../configure.in, including a change from Gordon Matzigkeit to allow
133791         cross-compiling for the Hurd.
133793         * m4/glibc.m4: New file/macro to test for the GNU C Library
133794         versions 1 and 2.  From Gordon Matzigkeit.
133795         Indent.
133797 1998-09-21  Jim Meyering  <meyering@ascend.com>
133799         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
133801 1998-08-18  Paul Eggert  <eggert@twinsun.com>
133803         Port nanosecond-resolution times to UnixWare 2.1.2 and
133804         pedantic Solaris 2.6.
133806         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
133807         AC_STRUCT_ST_MTIM.
133808         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
133809         Generate name of ns member, instead of just 1 or undef.
133810         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
133812 1998-08-15  Jim Meyering  <meyering@ascend.com>
133814         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
133815         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
133816         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
133817         instead of jm_TYPE_SSIZE_T.
133819 1998-08-12  Jim Meyering  <meyering@ascend.com>
133821         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
133823 1998-08-02  Jim Meyering  <meyering@ascend.com>
133825         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
133826         in acconfig.h manually.
133828 1998-07-31  Paul Eggert  <eggert@twinsun.com>
133830         * m4/st_mtim.m4: New file.
133832 1998-07-28  Jim Meyering  <meyering@ascend.com>
133834         * m4/utimes.m4: Undef stat.
133836 1998-07-25  Jim Meyering  <meyering@ascend.com>
133838         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
133839         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
133841 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
133843         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
133844         uid and gid actually remain unchanged.
133846 1998-07-07  Jim Meyering  <meyering@ascend.com>
133848         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
133850 1998-07-04  Jim Meyering  <meyering@ascend.com>
133852         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
133853         to prove that this macro can be used in packages without regex.c.
133855 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
133857         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
133858         is to be used.
133860 1998-07-03  Jim Meyering  <meyering@ascend.com>
133862         * m4/gettext.m4: Add -lintl if it's found to be necessary.
133864         * m4/gettext.m4: New file -- from gettext-0.10.35.
133865         * m4/lcmessage.m4: Likewise.
133866         * m4/progtest.m4: Likewise.
133868         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
133869         * m4/jm-macros.m4: Require the new macro.
133871 1998-06-29  Jim Meyering  <meyering@ascend.com>
133873         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
133874         for the definition of NGROUPS (used in a system header included
133875         by sys/mount.h).
133877 1998-06-28  Jim Meyering  <meyering@ascend.com>
133879         * m4/ls-mntd-fs.m4: New file.
133880         * m4/fstypename.m4: New file.
133882         * m4/jm-macros.m4: Require the new macro.
133883         * m4/jm-glibc-io.m4: New file.
133885 1998-05-19  Jim Meyering  <meyering@ascend.com>
133887         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
133888         * m4/lchown.m4: New file.
133890         * m4/Makefile.am.in: New file.
133891         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
133893 1998-05-14  Jim Meyering  <meyering@ascend.com>
133895         * m4/Makefile.am (EXTRA_DIST): Add them.
133896         * m4/jm-macros.m4: New file.
133897         * m4/utimbuf.m4: New file.
133899 1998-05-12  Jim Meyering  <meyering@ascend.com>
133901         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
133903 1998-05-11  Jim Meyering  <meyering@ascend.com>
133905         * m4/isc-posix.m4: New file.
133907 1998-05-10  Jim Meyering  <meyering@ascend.com>
133909         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
133911 1998-05-09  Jim Meyering  <meyering@ascend.com>
133913         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
133914         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
133915         with automake.
133917         * m4/ssize_t.m4: New file.
133918         * m4/mktime.m4: Remove file -- the new automake has this now.
133920 1998-04-26  Jim Meyering  <meyering@ascend.com>
133922         * m4/assert.m4: New file.
133923         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
133925 1998-04-05  Jim Meyering  <meyering@ascend.com>
133927         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
133928         (jm_PREREQ): Use it here.
133930 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
133932         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
133933         in acconfig.h.
133935 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
133937         * m4/prereq.m4: New file.
133938         * m4/error.m4: New file.
133939         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
133941 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
133943         * m4/getline.m4: Don't set am_cv_func_working_getline before the
133944         cache-check for the same variable -- that defeated the purpose of
133945         the test; the test program was never run.  This was a problem only
133946         on systems with losing getline functions -- HP-UX 10.20 is one.
133947         Reported by Bjorn Helgaas.
133949 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
133951         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
133953 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
133955         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
133957         * m4/const.m4: New file.  Use an initializer in this declaration
133958         typedef int charset[2]; const charset x;
133959         Reported by Bob Glickstein.
133961 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
133963         * m4/chown.m4: Fix reversed types on -1 args to chown.
133964         From Kaveh Ghazi.
133966 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
133968         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
133969         Add lseek and memchr.
133971         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
133972         T.E.Dickey <dickey@clark.net> said that some older preprocessors
133973         have a 20-character limit on names.
133975 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
133977         * m4/inttypes_h.m4: New file.
133978         * m4/uintmax_t.m4: New file.
133979         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
133982         -----
133984         Local Variables:
133985         coding: utf-8
133986         End:
133988         Copyright (C) 1997-2020 Free Software Foundation, Inc.
133990         Copying and distribution of this file, with or without
133991         modification, are permitted provided the copyright notice
133992         and this notice are preserved.